/* Diálogo de confirmación y clave de edición. */

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, .46);
  backdrop-filter: blur(4px);
}

.confirm-overlay[hidden] { display: none; }

.confirm-dialog {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  padding: 22px;
  animation: confirmIn .22s ease both;
}

@keyframes confirmIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.confirm-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.confirm-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-blue);
  border: 1px solid #bfdbfe;
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 18px;
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}

.confirm-dialog p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.confirm-field {
  margin-top: 16px;
}

.confirm-field[hidden] { display: none; }

.confirm-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.confirm-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.confirm-field input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.confirm-field-error {
  min-height: 17px;
  margin-top: 7px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.confirm-actions button {
  min-width: 104px;
  justify-content: center;
  box-shadow: none;
}

.confirm-yes {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.confirm-yes:hover {
  background: #047857;
  border-color: #047857;
  box-shadow: 0 8px 18px rgba(5, 150, 105, .18);
}

.confirm-no {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.confirm-no:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .18);
}
