/* Override seguro: modal estético para copiar fila, sin tocar app.js */
.copy-row-nice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(32, 12, 22, .48);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.copy-row-nice-backdrop[hidden] {
  display: none !important;
}

.copy-row-nice-card {
  position: relative;
  width: min(480px, calc(100vw - 34px));
  background: #fff;
  border-radius: 26px;
  border: 1px solid rgba(135, 38, 73, .16);
  box-shadow: 0 32px 96px rgba(32, 12, 22, .34);
  padding: 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  animation: copyRowNiceIn .16s ease-out;
}

@keyframes copyRowNiceIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.copy-row-nice-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f7edf1;
  color: #872649;
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-row-nice-x:hover,
.copy-row-nice-x:focus {
  background: #872649;
  color: #fff;
  outline: 2px solid rgba(135, 38, 73, .22);
  outline-offset: 2px;
}

.copy-row-nice-icon {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: linear-gradient(135deg, #f7edf1 0%, #ffffff 100%);
  color: #872649;
  border: 1px solid rgba(135, 38, 73, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  font-weight: 900;
}

.copy-row-nice-content {
  padding-right: 26px;
}

.copy-row-nice-content h3 {
  margin: 2px 0 7px 0;
  color: #5f1932;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 900;
}

.copy-row-nice-content p {
  margin: 0;
  color: #66535c;
  font-size: .94rem;
  line-height: 1.45;
}

.copy-row-nice-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.copy-row-nice-actions button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 900;
  font-size: .93rem;
  cursor: pointer;
}

.copy-row-nice-cancel {
  background: #f7edf1;
  color: #5f1932;
}

.copy-row-nice-cancel:hover,
.copy-row-nice-cancel:focus {
  background: #ead4dd;
  outline: 2px solid rgba(135, 38, 73, .22);
  outline-offset: 2px;
}

.copy-row-nice-confirm {
  background: linear-gradient(135deg, #a12f58 0%, #872649 55%, #5f1932 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(135, 38, 73, .24);
}

.copy-row-nice-confirm:hover,
.copy-row-nice-confirm:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(135, 38, 73, .30);
  outline: 2px solid rgba(135, 38, 73, .22);
  outline-offset: 2px;
}

.copy-row-soft-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 21000;
  padding: 13px 16px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(32, 12, 22, .28);
}

.copy-row-soft-toast.ok {
  background: #206a3b;
}

.copy-row-soft-toast.err {
  background: #b3261e;
}

#btnCopyRow.copying {
  opacity: .72;
  cursor: wait !important;
}

@media (max-width: 520px) {
  .copy-row-nice-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px;
  }

  .copy-row-nice-icon {
    margin: 0 auto;
  }

  .copy-row-nice-content {
    padding-right: 0;
  }

  .copy-row-nice-actions {
    flex-direction: column-reverse;
  }

  .copy-row-nice-actions button {
    width: 100%;
  }
}