Can you please add a button on Shop Managers and Shop Staffs to copy Vendor Capability settings? That is much easier since both Managers and staff should not have more capabilities than the Vendor itself.
Make it like this:
Shop Managers Capability [ ] Check to copy Vendors Capabilities
Shop Staffs Capability [ ] Check to copy Vendors Capabilities
Then you can click on
Shop Managers Capability Shop Staffs Capability
and modify some more if you wish. But at least you can start with similar capabilities as the Vendor.