.table-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.table-title-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.top-buyer-count {
  box-sizing: border-box;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid #b8d8cc;
  border-radius: 6px;
  padding: 0 0.55rem 0 0.7rem;
  background: #f6fbf8;
  box-shadow: 0 1px 2px rgba(31, 111, 91, 0.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.top-buyer-count:hover,
.top-buyer-count:focus-within {
  border-color: #1f6f5b;
  background: #eef8f3;
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.1);
}

.top-buyer-count span {
  color: #155e4b;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
}

.top-buyer-count input {
  width: 4.8rem;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.column-picker {
  position: relative;
  flex: 0 0 auto;
}

.column-picker-button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 36px;
  border-color: #cbd5e1;
  padding: 0 0.8rem;
  color: #334155;
  background: #ffffff;
}

.column-picker-button[aria-expanded="true"] {
  border-color: #1f6f5b;
  color: #155e4b;
  background: #eef8f3;
}

.column-picker-button.is-filtering {
  border-color: #b8d8cc;
  color: #155e4b;
  background: #f6fbf8;
}

.column-picker-count[hidden] {
  display: none;
}

.column-picker-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #b8d8cc;
  border-radius: 999px;
  padding: 0 0.35rem;
  color: #155e4b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  background: #e5f4ee;
}

.column-picker-panel[hidden] {
  display: none;
}

.column-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 8px;
  min-width: 210px;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.14);
}

.column-picker-panel label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #334155;
  white-space: nowrap;
}

.column-picker-panel input {
  width: auto;
  min-height: 0;
}

@media (max-width: 760px) {
  .table-title-row {
    display: grid;
  }

  .table-title-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .top-buyer-count {
    flex: 0 0 auto;
  }

  .column-picker {
    flex: 1 1 160px;
  }

  .column-picker-panel {
    right: auto;
    left: 0;
  }
}
