.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 170px;
}

.receipt-view-button,
.cancel-sale-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 7px 10px;
  color: var(--green);
  font: 600 11px inherit;
  cursor: pointer;
}

.cancel-sale-button {
  border-color: #f0c8c2;
  color: #b33b2e;
  background: #fff7f5;
}

.cancel-sale-button:hover {
  border-color: #d86151;
  background: #fff0ed;
}

.status.cancelled {
  color: #a43b30;
  background: #fdecea;
}

.cancelled-sale-row td {
  color: #78837d;
  background: #fcfafa;
}

.cancel-sale-warning {
  display: grid;
  gap: 5px;
  margin: 4px 0 18px;
  padding: 14px;
  border: 1px solid #f0c8c2;
  border-radius: 12px;
  background: #fff6f4;
  color: #8a332a;
  font-size: 12px;
  line-height: 1.55;
}

.cancel-sale-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

.danger-btn {
  border: 0;
  border-radius: 11px;
  background: #b64034;
  color: #fff;
  padding: 12px;
  font: 700 13px inherit;
  cursor: pointer;
}

.danger-btn:hover { background: #963329; }
.danger-btn:disabled { cursor: not-allowed; opacity: .55; }

.receipt-cancelled {
  margin-bottom: 12px;
  border: 2px solid #a83c31;
  padding: 7px;
  color: #a83c31;
  text-align: center;
  font-weight: 800;
  letter-spacing: .4px;
}

@media (max-width: 820px) {
  .history-actions { min-width: 150px; }
  .cancel-sale-actions { grid-template-columns: 1fr; }
}

@media print {
  .receipt-cancelled { border-color: #000; color: #000; }
}
