Surface density of dark matter haloes on galactic and cluster scales