/* ══════════════════════════════════════════════════
   Form-specific styles
   ══════════════════════════════════════════════════ */

/* ── Formset row soft-delete styling ── */
tr.is-deleting {
  opacity: .55;
}
tr.is-deleting td {
  text-decoration: line-through;
}
tr.is-deleting .status-pill {
  text-decoration: none;
  opacity: .9;
}

/* ── Payment section (used in sale/quote update) ── */
.payment-section {
  background: rgba(255, 213, 0, 0.05);
  border: 1px solid rgba(255, 213, 0, 0.2);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}
.payment-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.payment-section-title {
  color: var(--esp-yellow);
  font-weight: 600;
  font-size: 1rem;
}

/* ── Category modal (product form) ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.show {
  display: flex;
}
.modal-box {
  background: var(--esp-surface);
  border: 1px solid var(--esp-border);
  border-radius: 16px;
  padding: 24px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  animation: fadeInUp 300ms ease forwards;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h3 {
  margin: 0;
  color: var(--esp-text-main);
  font-size: 1rem;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--esp-text-soft);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 200ms;
}
.modal-close:hover {
  color: var(--esp-text-main);
}
.category-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px dashed rgba(255, 213, 0, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--esp-yellow);
  cursor: pointer;
  transition: all 200ms;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.category-add-btn:hover {
  background: rgba(255, 213, 0, 0.08);
  border-color: var(--esp-yellow);
}
