SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES | SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (a) Use of Estimates . The preparation of financial statements in conformity with accounting principles generally accepted in the United States requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, revenues and expenses, and related disclosures of contingent assets and liabilities in the consolidated financial statements and accompanying notes. Estimates are used for, but not limited to, provisions for expected credit losses and inventory reserves, accounting for business combinations, valuation of reporting units for purposes of assessing goodwill for impairment, valuation of asset groups for impairment testing, accruals for employee benefits, general liability insurance, warranties and certain contingencies. We base our estimates on historical experience, market participant fair value considerations, projected future cash flows, and various other factors that are believed to be reasonable under the circumstances. Actual results could differ from those estimates. Given the uncertain economic climate and additional or unforeseen effects from the COVID-19 pandemic, these estimates have become more challenging, and actual results could differ materially from these estimates. (b) Cash and Cash Equivalents . Cash equivalents are stated at cost plus accrued interest, which approximates fair value. Cash equivalents are highly liquid debt instruments with an original maturity of three months or less and may consist of time deposits with a number of commercial banks with high credit ratings, money market instruments, certificates of deposit and commercial paper. The Company’s policy allows it to also invest excess funds in no-load, open-end, management investment trusts (“mutual funds”) that invest exclusively in high quality money market instruments. As of December 31, 2021, the Company’s cash and cash equivalents were only invested in cash. The following table provides a reconciliation of cash, cash equivalents and restricted cash reported within the consolidated balance sheets that total the amounts shown in the consolidated statements of cash flows (in thousands): December 31, December 31, Cash and cash equivalents $ 394,447 $ 674,255 Restricted cash (1) 2,211 6,223 Total cash, cash equivalents and restricted cash shown in the consolidated statements of cash flows $ 396,658 $ 680,478 (1) Restricted cash primarily relates to escrow balances held for an outstanding earn-out agreement as of December 31, 2020 and working capital and other indemnification agreements in both periods presented. (c) Accounts Receivable and Related Allowance . The Company reports accounts receivable net of an allowance for expected credit losses. Trade accounts receivable are the result of sales of vinyl windows, aluminum windows, vinyl siding, metal siding, injection molded products, metal building products, metal coating, and other products and services to customers throughout the United States and Canada and affiliated territories, including international builders who resell to end users. Sales are primarily denominated in U.S. dollars. Credit sales do not normally require a pledge of collateral; however, various types of liens may be filed to enhance the collection process and we require payment prior to shipment for certain international shipments. The Company establishes provisions for expected credit losses based on the Company’s assessment of the collectability of amounts owed to us by our customers. Such provisions are included in selling, general and administrative expenses. In establishing these reserves, the Company considers changes in the financial position of a customer, age of the accounts receivable balances, availability of security, unusual macroeconomic conditions, lien rights and bond rights as well as disputes, if any, with our customers. Our allowance for credit losses reflects reserves for customer receivables to reduce receivables to amounts expected to be collected. Interest on delinquent accounts receivable is included in the trade accounts receivable balance and recognized as interest income when earned and collectability is reasonably assured. Uncollectible accounts are written off when a settlement is reached for an amount that is less than the outstanding historical balance, all collection efforts have been exhausted and/or any legal action taken by the Company has concluded. The following table represents the rollforward of the allowance for credit losses for the periods indicated (in thousands): Year Ended December 31, December 31, December 31, Ending balance, prior period $ 13,313 $ 9,962 $ 10,270 Cumulative effect of accounting change (1) — 678 — Provision for expected credit losses 3,604 5,390 2,035 Amounts charged against allowance for credit losses, net of recoveries (1,729) (3,579) (2,807) Allowance for credit losses of acquired company at date of acquisition 269 862 464 Divestitures (4,158) — — Ending balance $ 11,299 $ 13,313 $ 9,962 (1) Cumulative effect of accounting change reflects the modified retrospective effect of adopting Accounting Standards Update (“ASU”) 2016-13, Financial Instruments—Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments (d) Inventories . Inventories are stated at the lower of cost or net realizable value less allowance for inventory obsolescence using the First-In, First-Out Method (“FIFO”). The components of inventory are as follows (in thousands): December 31, December 31, Raw materials $ 485,642 $ 241,353 Work in process and finished goods 263,090 190,584 $ 748,732 $ 431,937 The following table represents the rollforward of reserve for obsolete materials and supplies activity for the periods indicated (in thousands): Year Ended December 31, December 31, December 31, Beginning balance $ 22,172 $ 18,712 $ 19,227 Provisions 5,155 8,015 3,207 Dispositions (6,029) (4,555) (4,082) Reserve of acquired company at date of acquisition 705 — 360 Divestitures (722) — — Ending balance $ 21,281 $ 22,172 $ 18,712 The principal raw materials used in the Company’s manufacturing processes include PVC resin, glass, aluminum, and steel that we purchase from multiple producers. (e) Assets Held for Sale. The Company records assets held for sale at the lower of the carrying value or fair value less costs to sell. The following criteria are used to determine if property is held for sale: (i) management has the authority and commits to a plan to sell the property; (ii) the property is available for immediate sale in its present condition; (iii) there is an active program to locate a buyer and the plan to sell the property has been initiated; (iv) the sale of the property is probable within one year; (v) the property is being actively marketed at a reasonable sale price relative to its current fair value; and (vi) it is unlikely that the plan to sell will be withdrawn or that significant changes to the plan will be made. In determining the fair value of the assets less costs to sell, the Company considers factors including current sales prices for comparable assets in the area, recent market analysis studies, appraisals and any recent legitimate offers. If the estimated fair value less costs to sell of an asset is less than its current carrying value, the asset is written down to its estimated fair value less costs to sell. Our assumptions about property sales prices require significant judgment because the current market is highly sensitive to changes in economic conditions. We determined the estimated fair values of real property assets held for sale based on current market conditions and assumptions made by management, which may differ from actual results and may result in impairments if market conditions deteriorate. The total carrying value of assets held for sale is $3.4 million and $4.6 million at December 31, 2021 and 2020, respectively. Assets held for sale at December 31, 2021 are actively marketed for sale or are under contract. In addition to the divested businesses discussed in Note 5 — Divestitures , during fiscal 2021 and 2020, the Company completed the sale of certain real property and equipment that was previously classified as held for sale, resulting in net cash proceeds of approximately $5.1 million and $2.0 million, respectively, and a net loss that was immaterial for fiscal 2021 and a net gain of $1.4 million for fiscal 2020, which are included in restructuring and impairment charges, net, in the consolidated statement of operations. During fiscal 2020, the Company determined an alternative use for a facility in the Commercial segment that had previously been classified as held for sale and reclassified the net book value of $1.7 million to property, plant and equipment. (f) Property, Plant and Equipment . Property, plant and equipment are stated at cost and depreciated using the straight-line method over their estimated useful lives. Leasehold improvements are capitalized and amortized using the straight-line method over the shorter of their estimated useful lives or the term of the underlying lease. Depreciation and amortization are recognized in cost of sales and selling, general and administrative expenses based on the nature and use of the underlying assets. Depreciation expense for fiscal 2021, 2020 and 2019 was $103.0 million, $103.5 million, and $86.2 million, respectively. Property, plant and equipment consists of the following (in thousands): December 31, December 31, Land $ 24,812 $ 26,933 Buildings and improvements 253,637 279,113 Machinery and equipment 990,338 970,083 1,268,787 1,276,129 Less: accumulated depreciation (656,492) (644,308) Total property, plant and equipment, net $ 612,295 $ 631,821 Estimated useful lives for depreciation are: Buildings and improvements 15 – 39 years Machinery and equipment 3 – 15 years The Company capitalizes interest on capital invested in projects in accordance with Accounting Standards Codification (“ASC”) 835, Interest . For fiscal 2021, 2020 and 2019, the total amount of interest capitalized was $0.9 million, $1.1 million and $1.2 million, respectively. Upon commencement of operations, capitalized interest, as a component of the total cost of the asset, is amortized over the estimated useful life of the asset. (g) Internally Developed Software . Internally developed software is stated at cost less accumulated amortization, is included within property, plant and equipment within our consolidated balance sheets, and is depreciated using the straight-line method over its estimated useful life ranging from 3 to 7 years. Software assets are reviewed for impairment when events or circumstances indicate the carrying value may not be recoverable over the remaining lives of the assets. During the software application development stage, capitalized costs include external consulting costs, costs of software licenses and internal payroll and payroll related costs for employees who are directly associated with a software project. Upgrades and enhancements are capitalized if they result in added functionality which enable the software to perform tasks it was previously incapable of performing. Software maintenance, training, data conversion and business process reengineering costs are expensed in the period in which they are incurred. (h) Goodwill and Other Intangible Assets . The Company reviews the carrying values of goodwill and identifiable intangibles whenever events or changes in circumstances indicate that such carrying values may not be recoverable and annually for goodwill as required by ASC 350, Intangibles — Goodwill and Other . This guidance provides the option to first assess qualitative factors to determine whether it is more likely than not that the fair value of a reporting unit is less than its carrying value. If, based on a review of qualitative factors, it is more likely than not that the fair value of a reporting unit is less than its carrying value, we perform a quantitative analysis. If the carrying value of a reporting unit exceeds its fair value, we measure any goodwill impairment loss as the amount by which the carrying amount of a reporting unit exceeds its fair value, not to exceed the total amount of goodwill allocated to that reporting unit. Unforeseen events, changes in circumstances, market conditions and material differences in the value of intangible assets due to changes in estimates of future cash flows could negatively affect the fair value of the Company’s assets and result in a non-cash impairment charge. Some factors considered important that could trigger an impairment review include the following: significant underperformance relative to expected historical or projected future operating results, significant changes in the manner of the Company’s use of acquired assets or the strategy for its overall business and significant negative industry or economic trends. (i) Leases . The Company has leases for certain office, manufacturing, warehouse and distribution locations, and vehicles and equipment, including fleet vehicles. Many of these leases have options to terminate prior to or extend beyond the end of the term. The exercise of the majority of lease renewal options is at the Company’s sole discretion. Some lease agreements have variable payments, the majority of which are real estate agreements in which future increases in rent are based on an index. Our lease agreements do not contain any material residual value guarantees or material restrictive covenants. The Company accounts for lease and non-lease components as a single lease component for all leases other than leases of durable tooling. The Company has elected to exclude leases with an initial term of 12 months or less from the consolidated balance sheets and recognizes related lease payments in the consolidated statements of operations on a straight-line basis over the lease term. Operating lease liabilities are recognized based on the present value of the future minimum lease payments over the reasonably expected holding period at the commencement date of the leases. Few of the Company’s lease contracts provide a readily determinable implicit rate. As such, an estimated incremental borrowing rate (“IBR”) is utilized, based on information available at the inception of the lease. The incremental borrowing rate represents an estimate of the interest rate we would incur at lease commencement to borrow an amount equal to the lease payments on a collateralized basis over the term of the lease. Accounting for leases requires judgment, including determining whether a contract contains a lease, the incremental borrowing rates to utilize for leases without a stated implicit rate, the reasonably certain holding period for a leased asset, and the allocation of consideration to lease and non-lease components. The allocation of the lease and non-lease components for durable tooling is based on the Company’s best estimate of standalone price. (j) Revenue Recognition . The Company enters into contracts that pertain to products, which are accounted for as separate performance obligations and are typically one year or less in duration. Given the nature of the Company's sales arrangements, we are not required to exercise significant judgment in determining the timing for the satisfaction of performance obligations or the transaction price. Revenue is measured as the amount of consideration expected to be received in exchange for our products. Revenue is generally recognized when the product has shipped from the Company’s facility and control has transferred to the customer. For certain products, it is industry practice that customers take title to products upon delivery, at which time revenue is then recognized by the Company. For a portion of the Company's business, when the Company processes customer owned material, control is deemed to transfer to the customer as the processing is being completed. Allowances for cash discounts, volume rebates and other customer incentive programs, as well as gross customer returns, among others, are recorded as a reduction of sales at the time of sale based upon the estimated future outcome. Cash discounts, volume rebates and other customer incentive programs are based upon certain percentages agreed upon with the Company’s various customers, which are typically earned by the customer over an annual period. The Company’s revenues are adjusted for variable consideration, which includes customer volume rebates and prompt payment discounts. The Company measures variable consideration by estimating expected outcomes using analysis and inputs based upon anticipated performance, historical data, and current and forecasted information. Customer returns are recorded as a reduction to sales on an actual basis throughout the year and also include an estimate at the end of each reporting period for future customer returns related to sales recorded prior to the end of the period. The Company generally estimates customer returns based upon the time lag that historically occurs between the sale date and the return date, while also factoring in any new business conditions that might impact the historical analysis such as new product introduction. Measurement of variable consideration is reviewed by management periodically and revenue is adjusted accordingly. The Company does not have significant financing components. The Company recognizes installation revenue, primarily within the stone veneer business, over the period for which the stone is installed, which is typically a very short duration. Shipping and handling activities performed by the Company are considered activities to fulfill the sales of our products. Amounts billed for shipping and handling are included in net sales, while costs incurred for shipping and handling are included in cost of sales. In accordance with certain contractual arrangements, the Company receives payment from our customers in advance related to performance obligations that are to be satisfied in the future and recognizes such payments as deferred revenue, primarily related to the Company’s weathertightness warranties (see Warranty accounting policies below ). A portion of the Company’s revenue, exclusively within the Commercial segment, includes multiple-element revenue arrangements due to multiple deliverables. Each deliverable is generally determined based on customer-specific manufacturing and delivery requirements. Because the separate deliverables have value to the customer on a stand-alone basis, they are typically considered separate units of accounting. A portion of the entire job order value is allocated to each unit of accounting. Revenue allocated to each deliverable is recognized upon shipment. The Company uses estimated selling price (“ESP”) based on underlying cost plus a reasonable margin to determine how to separate multiple-element revenue arrangements into separate units of accounting, and how to allocate the arrangement consideration among those separate units of accounting. The Company determines ESP based on normal pricing and discounting practices. The following table presents disaggregated revenue disclosure details of net sales by segment (in thousands): Year Ended December 31, December 31, December 31, Windows Net Sales Disaggregation: Vinyl windows $ 2,190,887 $ 1,763,565 $ 1,838,796 Aluminum windows 85,735 74,672 53,622 Other 45,655 51,388 38,029 Total $ 2,322,277 $ 1,889,625 $ 1,930,447 Siding Net Sales Disaggregation: Vinyl siding $ 667,284 $ 523,724 $ 525,005 Metal 293,427 255,267 263,018 Injection molded 75,361 66,672 66,578 Stone 87,948 86,457 92,228 Other products & services (1) 240,060 209,826 164,578 Total $ 1,364,080 $ 1,141,946 $ 1,111,407 Commercial Net Sales Disaggregation: Metal building products (2) $ 1,473,662 $ 1,107,733 $ 1,249,757 Insulated metal panels (3) 208,220 348,640 441,441 Metal coil coating 214,898 129,425 156,695 Total $ 1,896,780 $ 1,585,798 $ 1,847,893 Total Net Sales: $ 5,583,137 $ 4,617,369 $ 4,889,747 (1) Other products & services primarily consist of installation of stone veneer products. (2) The Company’s roll-up sheet doors (“DBCI”) business is only included in the results of operations through August 17, 2021 as a result of divestiture. See Note 5 — Divestitures for more information. The net sales of UCC, which was acquired on December 3, 2021, are included from the date of acquisition. See Note 4 — Acquisitions for more information. (3) The Company’s insulated metal panels (“IMP”) business is only included in the results of operations through August 8, 2021 as a result of divestiture. See Note 5 — Divestitures for more information. (k) Deferred Financing Costs. Deferred financing costs generally comprising facility, agency, and certain legal fees associated with issuing new debt and debt restructuring, are amortized over the contractual term of the related agreement using the effective interest method. See Note 13 — Long-Term Debt . (l) Cost of Sales . Cost of sales includes the cost of inventory sold during the period, including costs for manufacturing, inbound freight, receiving, inspection, warehousing, and internal transfers less vendor rebates. Costs associated with shipping and handling the Company’s products are also included in cost of sales. Purchasing costs and engineering and drafting costs are included in selling, general and administrative expense. (m) Warranty . The Company offers a number of warranties associated with the products it sells. The specific terms and conditions of these warranties vary depending on the product sold. The Company’s warranty liabilities are undiscounted and adjusted for inflation based on third party actuarial estimates. Factors that affect the Company’s warranty liabilities include the number of units sold, historical and anticipated rates of warranty claims, cost per claim and new product introduction. Warranties are normally limited to replacement or service of defective components for the original customer. Some warranties are transferable to subsequent owners and are generally limited to ten years from the date of manufacture or require pro-rata payments from the customer. A provision for estimated warranty costs is recorded based on historical experience and the Company periodically adjusts these provisions to reflect actual experience. Warranty costs are included within cost of goods sold. The Company assesses the adequacy of the recorded warranty claims and adjusts the amounts as necessary. Separately, upon the sale of a weathertightness warranty in the Commercial segment, the Company records the resulting revenue as deferred revenue, which is included in other accrued expenses and other long-term liabilities on the consolidated balance sheets depending on when the revenues are expected to be recognized. See Note 12 — Warranty . (n) Insurance . Group medical insurance is purchased through Blue Cross Blue Shield (“BCBS”). The plans include a Preferred Provider Organization Plan (“PPO”) and a Consumer Driven Health Plan (“CDHP”). These plans are managed-care plans utilizing networks to achieve discounts through negotiated rates with the providers within these networks. The claims incurred under these plans are self-funded for the first $500,000. The Company purchases individual stop loss reinsurance to limit the claims liability to $500,000 per covered individual per year. BCBS administers all claims, including claims processing, utilization review and network access charges. Insurance is purchased for workers compensation and employer liability, general liability, property and auto liability. The Company utilizes either deductibles or self-insurance retentions (“SIR”) to limit the exposure to catastrophic loss. The workers compensation insurance has a $1,000,000 per-occurrence deductible. The property and auto liability insurances have per-occurrence deductibles of $500,000 each. The general liability insurance has a $1,000,000 SIR. Umbrella insurance coverage is purchased to protect us against claims that exceed the Company’s per-occurrence or aggregate limits set forth in the Company’s respective policies. All claims are adjusted utilizing a third-party claims administrator and insurance carrier claims adjusters. Each reporting period, the Company records the costs of its health insurance plan, including paid claims, an estimate of the change in incurred but not reported (“IBNR”) claims, and administrative fees, when applicable, (collectively the “Plan Costs”) as general and administrative expenses on the consolidated statements of operations. The estimated IBNR claims are based upon (i) the level of paid claims under the plan over the prior 36 months, (ii) an estimated lag factor and (iii) an estimate of incurred and reported but not yet paid claims. The Company uses an actuary to determine the claims lag and estimated liability for IBNR claims. For workers’ compensation costs, the Company monitors the number of accidents and the severity of such accidents to develop appropriate estimates for expected costs to provide both medical care and indemnity benefits, when applicable, for the period of time that an employee is incapacitated and unable to work. These accruals are developed using independent third-party actuarial estimates of the expected cost for similar disabilities. For general liability and automobile claims, accruals are developed based on independent third-party actuarial estimates of the expected cost to resolve each claim, including damages and defense costs, based on legal and industry trends and the nature and severity of the claim. Accruals also include estimates for IBNR claims, and taxes and administrative fees, when applicable. Each reporting period, the Company records the costs of our workers’ compensation, general liability and automobile claims, including paid claims, an estimate of the change in IBNR claims, taxes and administrative fees as general and administrative expenses on the consolidated statements of operations. (o) Advertising Costs . Advertising costs are expensed as incurred. Advertising expense was $16.9 million, $15.1 million and $28.6 million in fiscal 2021, 2020 and 2019, respectively. (p) Impairment of Long-Lived Assets . The Company assesses impairment of property, plant and equipment at an asset group level in accordance with the provisions of ASC 360, Property, Plant and Equipment. The Company assesses the recoverability of the carrying amount of property, plant and equipment if certain events or changes in circumstances indicate that the carrying value of such asset groups may not be recoverable, such as a significant decrease in market value of the asset groups or a significant change in our business conditions. If it is determined that the carrying value of an asset group is not recoverable based on expected undiscounted future cash flows, excluding interest charges, an impairment loss equal to the excess of the carrying amount of the asset group over its fair value is recorded. The fair value of an asset group is determined based on prices of similar assets adjusted for their remaining useful life. (q) Share-Based Compensation . Compensation expense is recorded for restricted stock awards under the fair value method. Compensation expense for performance stock units (“PSUs”) is recorded based on the probable outcome of the performance conditions associated with the respective shares, as determined by management. See Note 9 — Share-Based Compensation . (r) Foreign Currency Remeasurement and Translation . The functional currency for the Company’s Canadian operations is the Canadian dollar. Translation adjustments resulting from translating the functional currency financial statements into U.S. dollar equivalents are reported separately in accumulated other comprehensive income (loss) in stockholders’ equity. The net foreign currency gains (losses) included in net income (loss) for fiscal 2021, 2020 and 2019 were $(3.1) million, $1.1 million and $1.2 million, respectively. Net foreign currency translation adjustments, net of tax, and included in other comprehensive income (loss) were $6.6 million, $17.3 million and $3.2 million for the fiscal 2021, 2020 and 2019, respectively. The functional currency for the Company’s Mexico operations is the U.S. dollar. Adjustments resulting from the remeasurement of the local currency financial statements into the U.S. dollar functional currency, which uses a combination of current and historical exchange rates, are included in net income (loss) in the current period. Net foreign currency remeasurement gains (losses) were $(0.6) million, $0.2 million and $0.9 million for fiscal 2021, 2020 and 2019, respectively. (s) Contingencies . The Company establishes reserves for estimated loss contingencies and unasserted claims when it believes a loss is probable and the amount of the loss can be reasonably estimated. The Company’s contingent liability reserves are related primarily to litigation and environmental matters. Revisions to contingent liability reserves are reflected in income in the period in which there are changes in facts and circumstances that affect our previous assumptions with respect to the likelihood or amount of loss. Reserves for contingent liabilities are based upon assumptions and estimates regarding the probable outcome of the matter. The Company estimates the probability by evaluating historical precedent as well as the specific facts relating to each particular contingency (including the opinion of outside advisors, professionals and experts). Should the outcome differ from the assumptions and estimates or other events result in a material adjustment to the accrued estimated reserves, revisions to the estimated reserves for contingent liabilities would be required and would be recognized in the period the new information becomes known. (t) Income taxes . The determination of the Company’s provision for income taxes requires significant judgment, the use of estimates and the interpretation and application of complex tax laws. The amounts recorded in our consolidated financial statements reflect estimates of final amounts due to timing of completion and filing of actual income tax returns. Estimates are required with respect to, among other things, the appropriate state income tax rates used in the various states in which we and our subsidiaries are required to file, the potential utilization of operating and capital loss carry-forwards for federal, state, and foreign income tax purposes and valuation allowances required, if any, for tax assets that may not be realized in the future. The Company establishes reserves when, despite our belief that our tax return positions are fully supportable, certain positions could be challenged, and the positions may not be fully sustained. The Company’s provision for income taxes reflects a combination of income earned and taxed in the various U.S. federal and state, Canadian federal and provincial, Mexican federal and other jurisdictions. Jurisdictional tax law changes, increases or decreases in permanent differences between book and tax items, accruals or adjustments of accruals for tax contingencies or valuation allowances, and the change in the mix of earnings from these taxing jurisdictions all affect the overall effective tax rate. In assessing the realizability of deferred tax assets, the Company considers whether it is more likely than not that some portion, or all, of the deferred tax assets will not be realized. The Company considers all available evidence, both positive and negative, in determining whether a valuation allowance is required. Such evidence includes the scheduled reversal of deferred tax liabilities, projected future taxable income and tax planning strategies in making this assessment, and judgment is required in considering the relative weight of negative and positive evidence. (u) Acquisitions . The Company records acquisitions resulting in the consolidation of a business using the acquisition method of accounting. Under this method, we record the assets acquired, including intangible assets that can be identified and named, and liabilities assumed based on their estimated fair values at the date of acquisition. Various fair value assumptions are used in the determination of these estimated fair values, including items such as sales growth rates, cost synergies, discount rates and other prospective financial information. The purchase price in excess of the fair value of the assets acquired and liabilities assumed is recorded as goodwill. We believe these estimates are based upon reasonable assumptions; however, they |