.searchable-table {
  color: #334155;
  font-size: 0.75rem;
}

.searchable-table__toolbar,
.searchable-table__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.searchable-table__toolbar {
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.searchable-table__search,
.searchable-table__page-size {
  min-height: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  color: #334155;
  outline: none;
}

.searchable-table__search {
  width: min(100%, 20rem);
}

.searchable-table__search:focus,
.searchable-table__page-size:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgb(16 185 129 / 12%);
}

.searchable-table__summary,
.searchable-table__page-info {
  color: #64748b;
  font-size: 0.6875rem;
}

.searchable-table__scroll {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.searchable-table__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.searchable-table__table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.searchable-table__table th,
.searchable-table__table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.searchable-table__table tbody tr:last-child td {
  border-bottom: 0;
}

.searchable-table__table tbody tr:hover {
  background: #f8fafc;
}

.searchable-table__empty {
  height: 5rem;
  color: #94a3b8;
  text-align: center;
  vertical-align: middle !important;
}

.searchable-table__pagination {
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.searchable-table__page-button {
  min-height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.375rem 0.625rem;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 600;
}

.searchable-table__page-button:not(:disabled):hover {
  background: #f8fafc;
}

.searchable-table__page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.searchable-table__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.searchable-table__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  white-space: nowrap;
}

.searchable-table__badge--success {
  background: #ecfdf5;
  color: #047857;
}

.searchable-table__badge--failure {
  background: #fef2f2;
  color: #b91c1c;
}

.searchable-table__link {
  color: #047857;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.searchable-table__link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .searchable-table__toolbar {
    align-items: stretch;
  }

  .searchable-table__search {
    width: 100%;
  }

  .searchable-table__pagination {
    flex-wrap: wrap;
  }
}
