/**
 * Airpets Shipping Core — Refresh Buttons
 */

/* Single-action refresh button (legacy/standalone) */
.details__refresh-btn {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 2px 0 0 0;
  margin: 0 4px 0 0;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.details__refresh-btn:hover {
  opacity: 1;
}

/* Unified job refresh button */
.job-refresh-btn {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
  position: absolute;
  top: 50%;
  right: 1rem;
}

.job-refresh-btn:hover {
  opacity: 1;
}

.columns__data {
  position: relative;
}

/* Shared states */
.details__refresh-btn.success,
.job-refresh-btn.success {
  color: #28a745;
  opacity: 1;
}

.details__refresh-btn.error,
.job-refresh-btn.error {
  color: #dc3545;
  opacity: 1;
}

.details__refresh-btn:disabled,
.job-refresh-btn:disabled {
  cursor: wait;
}
