﻿.json-view {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 480px;
  overflow: auto;
  background: #f1edf8;
  border: 1px solid #ddd5ee;
  border-radius: 12px;
  padding: 18px;
  font:
    12px/1.6 ui-monospace,
    monospace;
}
.form-page {
  position: relative;
  margin-bottom: 18px;
  line-height: 0;
  user-select: none;
}
.form-page .pdf-page {
  margin: 0;
  pointer-events: none;
}
.placement-box {
  position: absolute;
  border: 2px solid #c28a1b;
  background: #ffe4a526;
  cursor: pointer;
  min-height: 5px;
  padding: 0;
  border-radius: 2px;
  line-height: 1;
  box-shadow: none;
}
.placement-box.confirmed {
  border-color: #25805c;
  background: #9edfc326;
}
.placement-box span {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #fff8e4;
  padding: 2px 4px;
  font: 9px/1.2 sans-serif;
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #624b21;
}
.drawing-box {
  position: absolute;
  border: 2px dashed #6549db;
  background: #6549db20;
  pointer-events: none;
}
.drawing .form-page {
  touch-action: none;
  cursor: crosshair;
}
.placement-controls {
  padding: 15px;
  background: #f1edf8;
  border-radius: 10px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.placement-controls input,
#completion-email {
  width: 100%;
  padding: 10px;
  border: 1px solid #dcd6e9;
  border-radius: 8px;
  margin-bottom: 10px;
}
.placement-editor {
  background: #faf8ef;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #e8d8b7;
  border-radius: 8px;
}
.placement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.placement-grid label {
  font-size: 11px !important;
  margin: 4px 0 !important;
}
.placement-grid input {
  font-size: 12px;
  padding: 6px;
}
.placement-grid .wide {
  grid-column: 1/-1;
}
.field:target {
  outline: 2px solid #6549db;
}
#preview .panel {
  max-width: 680px;
  margin: 25px 0;
}
#local-inbox {
  display: block;
  margin: 15px 0;
}
#local-inbox[hidden] {
  display: none;
}
.extraction-note {
  font-size: 12px;
  color: #71654c;
  padding: 8px;
  background: #fff8e4;
  border-radius: 6px;
}
