The markets opened lower due to Greece failing to strike a debt deal and a fall in the rupee, but recovered in the last couple of hours to overcome losses. The Nifty future closed satisfactorily according to its opening, with 8400 as the next resistance and 8240-8190 as support. Oil marketing stocks gained as crude prices fell, while IT shares fell and Tech Mahindra dipped 8% on an earnings warning.