.category-tree {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-node {
    display: flex;
    flex-direction: column;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;

}
/* LEFT SIDE */
.category-row-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

/* RIGHT SIDE */
.category-row-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-children {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin-left: 24px;
    padding-left: 12px;

    border-left: 1px solid #e2e2e2;
}
.category-children[hidden] {
    display: none;
}

.category-toggle {
    border: none;
    background: transparent;
    cursor: pointer;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

.category-toggle-icon {
    font-size: 0.85rem;
}

.category-parent {
    font-weight: 600;
}

.category-spacer {
    width: 20px;
    flex-shrink: 0;
}

.category-checkbox {
    display: none;
}

.category-label {
    cursor: pointer;
}

.category-pill {
    display: inline-flex;
    align-items: center;

    padding: 4px 10px;

    border-radius: 999px;

    border: 1px solid #d8d8d8;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.category-label:hover .category-pill {
    background: #f5f5f5;
}

.category-checkbox:checked + .category-pill {
    background: #111827;
    color: white;
    border-color: #111827;
}