/* Scoped to engineering printing; the original manual fields keep their styles. */
#calculator .epdf-tabs {
  display: flex;
  gap: 4px;
  margin: 0 22px 22px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f2f4;
}
#calculator .epdf-tabs button {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #69717d;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#calculator .epdf-tabs button[aria-selected='true'] {
  background: #fff;
  color: var(--red, #ef1024);
  box-shadow: 0 1px 4px #161d2910;
}
#calculator #copycenter-form[hidden],
#calculator .epdf-panel [hidden],
#calculator .epdf-panel[hidden] {
  display: none !important;
}
.epdf-panel {
  min-width: 0;
  color: #20242b;
}
.epdf-body {
  padding: 0 22px 22px;
}
.epdf-intro {
  margin: 0 0 18px;
  color: #6c7380;
  font-size: 14px;
  line-height: 1.6;
}
.epdf-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 20px;
  border: 1px dashed #cbd0dc;
  border-radius: 16px;
  background: #f8f8fa;
  text-align: center;
  cursor: pointer;
}
.epdf-upload:hover,
.epdf-upload.is-dragging {
  border-color: var(--red);
  background: #fff7f8;
}
.epdf-upload:focus-within {
  outline: 2px solid #ffb5bb;
  outline-offset: 3px;
}
.epdf-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.epdf-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #212126;
  color: #fff;
  border-radius: 12px;
  font-size: 28px;
  line-height: 1;
}
.epdf-upload strong {
  font-size: 16px;
}
.epdf-upload span:not(.epdf-upload-icon),
.epdf-upload small {
  color: #7b818b;
  font-size: 12px;
  line-height: 1.5;
}
.epdf-upload small {
  font-size: 11px;
}
.epdf-message {
  margin: 12px 0 0;
  color: #626c7b;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.epdf-message:empty {
  display: none;
}
.epdf-panel .is-error {
  color: #c81327;
}
.epdf-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
}
.epdf-section-title h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}
.epdf-text-button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: #6c7380;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.epdf-text-button:hover {
  color: var(--red);
}
.epdf-hint {
  margin: 8px 0;
  color: #7b818b;
  font-size: 12px;
  line-height: 1.6;
}
.epdf-albums {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.epdf-album {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
}
.epdf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.epdf-check input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--red);
}
.epdf-check span {
  min-width: 0;
}
.epdf-check strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}
.epdf-check small {
  display: block;
  margin-top: 3px;
  color: #7b818b;
  font-size: 11px;
  line-height: 1.5;
}
.epdf-album > label {
  flex: 1;
}
.epdf-contribution {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.epdf-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f6f6f7;
  color: var(--red);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}
.epdf-formats {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f6f6f7;
}
.epdf-formats summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.epdf-format-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.epdf-format {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, auto) minmax(86px, auto);
  gap: 10px 16px;
  padding: 12px;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  background: #fff;
}
.epdf-format.is-unresolved {
  border-color: #eab1b7;
}
.epdf-format-info,
.epdf-format-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: #6c7380;
  font-size: 12px;
  line-height: 1.5;
}
.epdf-format-info {
  grid-column: 1 / -1;
}
.epdf-dimensions {
  margin: 0;
}
.epdf-format-suggestion strong {
  color: #20242b;
}
.epdf-suggestion-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #eab1b7;
  border-radius: 7px;
  background: #fff7f8;
  color: #c81327;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.epdf-suggestion-button:hover {
  border-color: var(--red);
  background: #ffeef0;
}
.epdf-format label,
.epdf-options label,
.epdf-comment {
  display: block;
  min-width: 0;
  color: #6c7380;
  font-size: 13px;
  line-height: 1.5;
}
.epdf-format .epdf-hint {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
}
.epdf-page-reference {
  grid-column: 1 / -1;
  margin: 0;
  color: #c81327;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.epdf-column-label {
  display: block;
  color: #7b818b;
  font-size: 11px;
  line-height: 1.5;
}
.epdf-format-quantity strong,
.epdf-format-price strong {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
  white-space: nowrap;
}
.epdf-format-price {
  text-align: right;
}
.epdf-format-price strong {
  justify-content: flex-end;
}
.epdf-format-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  color: #6c7380;
  font-size: 12px;
}
.epdf-format .epdf-format-tools .epdf-check {
  display: flex;
  font-size: 12px;
}
.epdf-panel select,
.epdf-panel input[type='number'],
.epdf-panel textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #dddfe6;
  border-radius: 8px;
  background: #fff;
  color: #20242b;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}
.epdf-panel textarea {
  resize: vertical;
}
.epdf-panel :is(button, input, select, textarea):focus-visible {
  outline: 2px solid #ffb5bb;
  outline-offset: 2px;
}
.epdf-panel :disabled {
  cursor: wait;
  opacity: 0.55;
}
.epdf-options,
.epdf-binding {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.epdf-binding {
  grid-column: 1 / -1;
}
.epdf-options label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.epdf-options label > :is(select, input) {
  margin-top: auto;
}
.epdf-lowering {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
}
.epdf-comment {
  margin-top: 20px;
}
.epdf-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 20px;
  padding: 24px 22px;
  border-top: 1px solid #ebedef;
  background: #f8f8f9;
  border-radius: 0 0 20px 20px;
}
.epdf-result-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.epdf-total {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}
.epdf-result .epdf-add {
  min-width: 180px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.epdf-result .epdf-hint,
.epdf-result-actions {
  grid-column: 1 / -1;
}
.epdf-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.epdf-result .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.epdf-result .button-secondary {
  border: 1px solid #d7dbe3;
  background: #fff;
  color: #20242b;
}
.epdf-result .button-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}
.epdf-transfer {
  margin: 0;
}
@media (max-width: 600px) {
  #calculator .epdf-tabs {
    margin: 0 16px 18px;
  }
  .epdf-body {
    padding: 0 16px 20px;
  }
  .epdf-upload {
    padding: 22px 14px;
  }
  .epdf-section-title h3 {
    font-size: 17px;
  }
  .epdf-album {
    gap: 8px;
    padding: 10px;
  }
  .epdf-contribution {
    font-size: 12px;
  }
  .epdf-format {
    grid-template-columns: minmax(0, 1fr) minmax(56px, auto) minmax(64px, auto);
    gap: 8px;
    padding: 10px;
  }
  .epdf-formats {
    padding: 12px;
  }
  .epdf-format select {
    padding-left: 8px;
    padding-right: 4px;
  }
  .epdf-format-quantity strong,
  .epdf-format-price strong {
    font-size: 13px;
  }
  .epdf-options,
  .epdf-binding {
    gap: 14px 12px;
  }
  .epdf-result {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  .epdf-result .button {
    width: 100%;
  }
  .epdf-result-actions {
    display: grid;
    gap: 8px;
  }
}
