/* styles/components/tag.css */

/* Tag Component - Reusable tag/chip UI pattern
 * Used in: User permissions, Document types, and other tag-based UIs
 */

/* Container for permission/entity tags */
.perm-list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

/* Individual permission/entity tag */
.perm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f1f8fb;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Tag label text */
.perm-tag__label {
  line-height: 1.2;
}

/* Remove button within tag */
.perm-tag__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: var(--interactive-primary);
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
  border-radius: 2px;
}

.perm-tag__remove:hover {
  color: var(--interactive-secondary);
  background: rgba(147, 199, 242, 0.1);
}

.perm-tag__remove:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
