.sign-pdf-page {
  margin: 0 auto 24px;
  max-width: 900px;
  min-width: 0;
}
.sign-page-label {
  font-size: 11px;
  color: var(--muted, #8290a8);
  margin: 0 0 9px;
  letter-spacing: 0.02em;
}
.sign-page-paper {
  position: relative;
  width: 100%;
  background: #fff;
  box-shadow: 0 6px 30px #0c15301f;
  overflow: hidden;
}
.sign-page-paper > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sign-field-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sign-pdf-field {
  position: absolute;
  pointer-events: auto;
  overflow: hidden;
  min-height: 0 !important;
  min-width: 0 !important;
  border: 1px dashed #2855ec !important;
  border-radius: 3px !important;
  background: #2855ec12 !important;
  color: #234bcb !important;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 5px !important;
  font: 500 clamp(8px, 1vw, 12px)/1.1 system-ui !important;
  white-space: normal !important;
  word-break: break-word;
  box-shadow: none !important;
}
.sign-pdf-field.signature {
  background: #fff4dbe6 !important;
  border-color: #bc841a !important;
  color: #87590b !important;
  justify-content: center;
}
.sign-pdf-field.signed {
  background: #ffffffd9 !important;
  border-color: #38975e !important;
}
.sign-pdf-field img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.sign-pdf-field.editable {
  cursor: move;
  touch-action: none;
}
.sign-pdf-field.selected {
  outline: 2px solid #2455f5;
  outline-offset: 1px;
  background: #2455f526 !important;
}
.sign-field-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: #2455f5;
  border-radius: 3px 0 0 0;
  cursor: nwse-resize;
}
.sign-surface-notice {
  padding: 30px;
  text-align: center;
  color: var(--muted, #6c7890);
}

.sign-pdf-field.signed {
  padding: 0 !important;
}
