/* P2 - Estorno formal e fechamento seguro */
.cc-reversal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff5d9;
  color: #9a5b00;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cc-reversal-badge.done {
  background: #edf0f1;
  color: #66747b;
}

.cc-reversal-row td {
  background: rgba(255, 188, 66, .055);
}

.cc-reversal-row .money {
  color: #9a5b00 !important;
}

.cc-reversal-button {
  color: #9a5b00 !important;
}

.cc-reversal-button:hover {
  text-decoration: underline;
}

.cc-reversal-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cc-reversal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 29, 38, .58);
  backdrop-filter: blur(2px);
}

.cc-reversal-modal {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(2, 29, 38, .28);
  overflow: hidden;
}

.cc-reversal-modal header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.cc-reversal-modal header p {
  margin: 0 0 4px;
  color: #9a5b00;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cc-reversal-modal h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.cc-reversal-modal .cc-body {
  padding: 18px 22px 22px;
}

.cc-reversal-modal .cc-warning {
  margin: 0 0 16px;
  padding: 12px 13px;
  border-radius: 9px;
  background: #fff5d9;
  color: #9a5b00;
  font-size: 11px;
  line-height: 1.55;
}

.cc-reversal-modal label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cc-reversal-modal textarea {
  min-height: 100px;
}

.cc-reversal-modal .cc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.cc-reversal-error {
  min-height: 18px;
  margin-top: 9px;
  color: var(--red);
  font-size: 11px;
}
