.badgeGroup {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
}

:global([data-theme="light"]) .badgeGroup {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
  color: #16a34a;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badgeBtn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.badgeBtn:hover {
  opacity: 1;
}

.badgeBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.badgeBtnActive {
  opacity: 1;
  color: #86efac;
}

:global([data-theme="light"]) .badgeBtnActive {
  color: #15803d;
}

.spinner {
  animation: badgeSpin 1s linear infinite;
}

@keyframes badgeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Overflow dropdown */
.overflow {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 280px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 200;
  overflow: hidden;
}

.overflowHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
}

.overflowClose {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}

.overflowClose:hover {
  color: var(--text-primary);
}

.overflowList {
  max-height: 300px;
  overflow-y: auto;
}

.overflowItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.overflowItem:last-child {
  border-bottom: none;
}

.overflowLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.overflowActions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
