/* Sign PDF — signature pad, page previews, and placement markers. */

.sig-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg);
}

.sig-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.sig-pad {
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 3 / 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.sig-pad.sig-preview { cursor: default; }

.pdf-pages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.page-wrap {
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  line-height: 0;
}

.page-wrap canvas { max-width: 100%; height: auto; }

.sig-marker {
  position: absolute;
  border: 1px dashed var(--accent);
  background: rgba(37, 99, 235, 0.04);
  cursor: move;
  user-select: none;
}

.sig-marker img { width: 100%; height: 100%; display: block; pointer-events: none; }

.sig-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.sig-handle {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  cursor: nwse-resize;
}
