

.pdfeditor_inner {
  display: block;
  position: relative;
  margin: 0 auto;
}

.pdfeditor_pages {
  position: absolute;
}

.pdfeditor_scaled-container {
  position: relative;
  margin-bottom: 20px;
  transform-origin: top left;
  overflow: hidden;
}

.pdfeditor_sign-button {
  position:absolute;
  height:100%;
  width:100%;
  left:0;
  top:0;
  z-index:1;
  border: 2px dashed #007BFF;
  background: rgba(0, 123, 255, 0.08);
  color: #007BFF;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

.pdfeditor_sign-button:hover {
  background: rgba(0, 123, 255, 0.18);
}

.pdfeditor_error ~ .pdfeditor_sign-button {
  border: none;
  background: none;
}

.pdfeditor_pdf-page {
  /*border: 1px solid black;*/
}

.pdfeditor_input-field, .pdfeditor_checkbox-field, .pdfeditor_signature-container, .pdfeditor_textarea-field, .pdfeditor_radio-field, .pdfeditor_select-field {
  position: absolute;
  background-color: rgba(255, 255, 255, 0);
  border: none;
  padding:0;
}





.pdfeditor_signature-canvas {
 background: none;
  border: 1px solid #ccc;
}

/* Автоподпись pdf-forms Signature1: в редакторе не показываем (только в итоговом PDF). */
.pdfeditor_signature-container.pdfeditor_signature-readonly {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pdfeditor_error {
  border: 1px solid red;
  background-color: rgba(255, 0, 0, 0.2);
}

/* rgb(0 117 255) */


.pdfeditor_radio-field {
appearance: none;
border: 1px solid #ccc;
border-radius: 50%; /* Делаем круг */
cursor: pointer;
outline: none;
display: flex;
align-items: center;
justify-content: center;

}
.pdfeditor_radio-field:checked {
background-color: white;
}
.pdfeditor_radio-field:checked::before {
content: '';
position: absolute;
width: 70%;
height: 70%;
border-radius: 50%;
background-color: #007BFF; /* Цвет внутренней точки */
}
.pdfeditor_radio-field.pdfeditor_error {
border: 1px solid red;
}
.pdfeditor_radio-field.pdfeditor_error:checked {
background-color: rgba(255, 0, 0, 0.2);
}
.pdfeditor_radio-field.pdfeditor_error:checked::before {
background-color: red; /* Цвет внутренней точки */
}



.pdfeditor_clear-button {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 18px;
  z-index:2;
}


/* Кнопка */
#download-pdf {
  padding: 10px 20px;
  margin: 10px auto;
  display: block;
  font-size: 16px;
  cursor: pointer;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
}



#download-pdf:hover {
  background-color: #0056b3;
}

/* ===== Модалка для текстовой подписи ===== */
.pdfeditor_modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pdfeditor_modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.pdfeditor_modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 14px;
  color: #222;
}

.pdfeditor_modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.pdfeditor_modal-input:focus {
  border-color: #007BFF;
}

.pdfeditor_modal-preview {
  margin-top: 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  line-height: 1.2;
  color: #000;
  border: 1px dashed #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Samarata", "Great Vibes", "Brush Script MT", "Segoe Script", cursive;
}

.pdfeditor_modal-buttons {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pdfeditor_modal-buttons button {
  padding: 8px 18px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.pdfeditor_modal-cancel {
  background: #e5e5e5;
  color: #333;
}

.pdfeditor_modal-cancel:hover {
  background: #d5d5d5;
}

.pdfeditor_modal-apply {
  background: #007BFF;
  color: #fff;
}

.pdfeditor_modal-apply:hover {
  background: #0056b3;
}

.pdfeditor_checkbox-field-circle {
  appearance: none;
  -webkit-appearance: none; /* Для Safari */
  position: absolute;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
/* Если чекбокс отмечен, закрашиваем круг */
.pdfeditor_checkbox-field-circle:checked {
  border: 2px solid black;
}