v3.24.1.u1
Revenue - Schedule of Net Sales by Product Category (Detail) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2024
Mar. 31, 2023
Entity Wide Information Revenue From External Customer [Line Items]    
Net sales $ 3,891,352 $ 3,883,314
Lumber and Lumber Sheet Goods    
Entity Wide Information Revenue From External Customer [Line Items]    
Net sales 980,567 872,140
Manufactured Products    
Entity Wide Information Revenue From External Customer [Line Items]    
Net sales 979,124 1,080,617
Windows, Doors and Millwork    
Entity Wide Information Revenue From External Customer [Line Items]    
Net sales 1,030,148 1,038,036
Specialty Building Products & Services    
Entity Wide Information Revenue From External Customer [Line Items]    
Net sales $ 901,513 $ 892,521