XML 72 R61.htm IDEA: XBRL DOCUMENT v3.22.1
LOSS PER SHARE - Reconciliation of (Loss) Earnings Per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2022
Apr. 30, 2021
Apr. 30, 2022
Apr. 30, 2021
Earnings Per Share [Abstract]        
Net income (loss) $ 30,200 $ (27,629) $ (12,271) $ (33,376)
Less: Preferred dividends on redeemable preferred stock (537) (519) (1,611) (1,586)
Net income (loss) attributable to common stockholders 29,663 (28,148) (13,882) (34,962)
Continuing operations, net of tax (10,232) (9,813) (13,774) (13,067)
Discontinued operations, net of tax $ 39,895 $ (18,335) $ (108) $ (21,895)
Weighted average common shares outstanding (in shares) 59,853 62,263 59,961 61,898
Basic and diluted net income (loss) per share attributable to common stockholders:        
Continuing operations (in usd per share) $ (0.17) $ (0.16) $ (0.23) $ (0.21)
Discontinued operations, net of tax (in usd per share) 0.67 (0.29) 0 (0.35)
Total income (loss) per share (in usd per share) $ 0.50 $ (0.45) $ (0.23) $ (0.56)