Ideal is detergent powder in recycled paper packaging. Or would be, I don't think you can buy it that way.
Same with dishwasher detergent. It /used/ to be powder. There's still powder now easy to find, at least, and it works perfectly fine.
No affiliation, but I want to try them out after they popped up in my youtube ads following searches on exactly these kind of products. I do not know if they are good but zt least they tick the sustainability part I was looking for.