XML 75 R64.htm IDEA: XBRL DOCUMENT v3.21.1
Revenue - Additional Information (Detail)
$ in Thousands
3 Months Ended 9 Months Ended
Feb. 28, 2021
USD ($)
Feb. 29, 2020
USD ($)
Feb. 28, 2021
USD ($)
Segment
Feb. 29, 2020
USD ($)
Nov. 30, 2020
USD ($)
May 31, 2020
USD ($)
Disaggregation Of Revenue [Line Items]            
Number of reportable segments | Segment     4      
Revenue performance obligation description of payment terms     Payment terms and conditions vary by contract type, although our customers’ payment terms generally include a requirement to pay within 30 to 60 days of fulfilling our performance obligations.      
Revenue, Practical Expedient, Financing Component [true false]     false      
Increase in net contract liabilities $ 7,769   $ 8,886      
Net Sales 1,269,395 $ 1,173,976 4,361,981 $ 4,048,033    
Long-term deferred revenue 67,100   67,100   $ 66,900 $ 66,000
General Contracting And Roofing Services            
Disaggregation Of Revenue [Line Items]            
Net Sales $ 26,600   $ 41,900