.sw-compact .table > :not(caption) > * > * {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

.sw-compact-actions th:last-child,
.sw-compact-actions td:last-child {
  width: 1%;
}

.sw-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
}

.sw-row-actions .sw-row-action {
  display: inline-flex;
  margin: 0;
}

.sw-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #fff;
  color: #212529;
  line-height: 1;
  text-decoration: none;
}

.sw-icon-btn:hover,
.sw-icon-btn:focus-visible {
  background: #f8f9fa;
  color: #212529;
}

.sw-icon-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 1px;
}

.sw-icon-btn-danger {
  color: #842029;
  border-color: #f1aeb5;
}

.sw-icon-btn-danger:hover,
.sw-icon-btn-danger:focus-visible {
  background: #f8d7da;
  color: #842029;
}

@media (max-width: 575.98px) {
  .sw-row-actions {
    justify-content: flex-start;
  }
}
