/* cignyl-sftp 20260824 */
/* ------------------------------ */
/* v2 Badge (shadcn-like)         */
/* ------------------------------ */

.v2-theme .v2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
  vertical-align: middle;

  font-size: 0.75rem; /* text-xs-ish */
  font-weight: 600;
  line-height: 1;

  padding: 0.125rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 9999px;

  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.v2-theme .v2-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.85em;
}

/* shape */
.v2-theme .v2-badge--pill-true {
  border-radius: 9999px;
}

.v2-theme .v2-badge--pill-false {
  border-radius: calc(var(--radius) - 2px);
}

/* disabled / clickable */
.v2-theme .v2-badge--disabled-true {
  opacity: 0.5;
  pointer-events: none;
}

.v2-theme .v2-badge--clickable-true {
  cursor: pointer;
}

/* sizes */
.v2-theme .v2-badge--size-xsm {
  font-size: 0.625rem;
  padding: 0.0625rem 0.5rem;
}

.v2-theme .v2-badge--size-sm {
  font-size: 0.6875rem;
  padding: 0.0625rem 0.5625rem;
}

.v2-theme .v2-badge--size-default {
  font-size: 0.75rem;
  padding: 0.125rem 0.625rem;
}

.v2-theme .v2-badge--size-lg {
  font-size: 0.8125rem;
  padding: 0.1875rem 0.75rem;
}

.v2-theme .v2-badge--size-xlg {
  font-size: 0.875rem;
  padding: 0.25rem 0.875rem;
}

/* variants */
.v2-theme .v2-badge--variant-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.v2-theme .v2-badge--variant-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.v2-theme .v2-badge--variant-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.v2-theme .v2-badge--variant-success {
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.v2-theme .v2-badge--variant-warning {
  background-color: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
}

.v2-theme .v2-badge--variant-info {
  background-color: hsl(var(--info));
  color: hsl(var(--info-foreground));
}

.v2-theme .v2-badge--variant-outline {
  background-color: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.v2-theme .v2-badge--variant-ghost {
  background-color: transparent;
  border-color: transparent;
  color: hsl(var(--foreground));
}

.v2-theme .v2-badge--variant-link {
  background-color: transparent;
  border-color: transparent;
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* hover (only when clickable) */
.v2-theme .v2-badge--clickable-true.v2-badge--variant-default:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.v2-theme .v2-badge--clickable-true.v2-badge--variant-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.v2-theme .v2-badge--clickable-true.v2-badge--variant-outline:hover,
.v2-theme .v2-badge--clickable-true.v2-badge--variant-ghost:hover {
  background-color: hsl(var(--muted) / 0.6);
}

