/* Кнопка «Обновить» перед «Сброс» в списке договоров-счетов (js/contracts-list-refresh-20261014.js). */
.contracts-refresh-list-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.contracts-refresh-list-btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.contracts-refresh-list-btn--busy {
  cursor: progress;
  opacity: 0.75;
}

.contracts-refresh-list-btn--busy .contracts-refresh-list-btn__icon {
  animation: contracts-refresh-list-spin 0.8s linear infinite;
}

.contracts-refresh-list-btn:disabled:hover {
  border-color: var(--border);
  color: var(--text);
}

.contracts-refresh-list-btn__note {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes contracts-refresh-list-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contracts-refresh-list-btn--busy .contracts-refresh-list-btn__icon {
    animation-duration: 2.4s;
  }
}
