XML 56 R46.htm IDEA: XBRL DOCUMENT v3.25.0.1
Sale of Trex Commercial Products, Inc. - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
Dec. 30, 2022
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Subsidiary or Equity Method Investee [Line Items]        
Proceeds from sale of assets   $ 0 $ 0 $ 7,290
Gain (loss) on disposition of stock in subsidiary   $ 0 $ 0 $ (15,423)
Trex Commercial Products Inc [Member]        
Subsidiary or Equity Method Investee [Line Items]        
Proceeds from sale of assets $ 7,300      
Gain (loss) on disposition of stock in subsidiary $ (15,400)