Long-Term Debt | Long-Term Debt ABL Facility On October 23, 2018, the Company entered into Amendment No. 2 to its Revolving Credit and Security Agreement (the "Second Amendment"), which amends the terms of its existing Revolving Credit and Security Agreement, dated as of June 1, 2015, by and among the Company, the lenders party thereto, and PNC Bank, National Association, as administrative agent (as amended by the Second Amendment, the "Amended Credit Agreement"). The Amended Credit Agreement provides for a senior secured revolving credit facility in an initial aggregate principal amount of up to $350 million (the "Amended ABL Facility"), with an extended maturity date of October 23, 2023. The initial aggregate principal amount under the Amended ABL Facility may be increased from time to time by an additional $150 million to a maximum aggregate principal amount of $500 million ; provided that certain requirements are satisfied. The Company's obligations under the Amended ABL Facility are secured, on a first lien priority basis, by certain working capital assets. Interest is payable at a rate per annum equal to, at the option of the Company, any of the following, plus, in each case, an applicable margin: (a) a base rate determined by reference to the highest of (1) the federal funds effective rate, plus 0.50% , (2) the base commercial lending rate of PNC Bank, National Association and (3) a daily LIBOR rate, plus 1.00% ; or (b) a LIBOR rate determined by reference to the costs of funds for deposits in the relevant currency for the interest period relevant to such borrowing adjusted for certain additional costs. The applicable margin is 0.25% to 0.50% for borrowings at the base rate and 1.25% to 1.50% for borrowings at the LIBOR rate, in each case, based on the excess availability under the Amended ABL Facility. The terms of the Amended ABL Facility include various covenants, including a covenant that requires the Company to maintain a consolidated fixed charge coverage ratio at any time (a) a specified default occurs or (b) excess availability falls below certain specified levels. The Company incurred issuance costs of $0.8 million in 2018 related to the Amended ABL Facility. In 2015, the Company incurred issuance costs of $3.1 million related to the ABL Facility. If the Company has an amount outstanding on the ABL Facility, these issuance costs are presented on the consolidated balance sheet as a reduction to the carrying amount of the debt and amortized to interest expense using straight-line amortization over the 5 -year life of the Amended ABL Facility. If the Company has no outstanding draw on the ABL Facility, the unamortized issuance costs are presented as a deferred asset on the consolidated balance sheet. For the three months ended June 30, 2019 and 2018 , the Company recorded $0.1 million and $0.2 million of interest expense, respectively, related to ABL Facility issuance costs. For the six months ended June 30, 2019 and 2018 , the Company recorded $0.2 million and $0.4 million of interest expense, respectively, related to ABL Facility issuance costs. Under the Amended ABL Facility, the Company is required to pay a commitment fee in respect to the unutilized commitments under the Amended ABL Facility, calculated at a rate of 0.25% . The Company recognized interest expense related to the commitment fee and borrowings on the ABL Facility of $0.3 million and $0.2 million for the three months ended June 30, 2019 and 2018 , respectively. The Company recognized interest expense related to the commitment fee and borrowings on the ABL Facility of $0.5 million and $0.4 million for the six months ended June 30, 2019 and 2018 , respectively. The Company drew $15.0 million and $12.0 million on the ABL Facility during the six months ended June 30, 2019 and 2018, respectively, all of which was repaid as of June 30, 2019 and 2018 . No amounts were outstanding on the ABL Facility as of June 30, 2019 and 2018 . As there is no outstanding draw on the ABL Facility at June 30, 2019 , the unamortized issuance costs are presented as a deferred asset on the consolidated balance sheets. Since June 1, 2015, the Company has been in compliance with all covenants related to the ABL Facility. The issuance of letters of credit under the ABL Facility reduces available borrowings. As of June 30, 2019 , there were $0.7 million of letters of credit outstanding. The total draw allowed on the ABL Facility at June 30, 2019 , as determined by the working capital assets pledged as collateral, was $237.7 million . After adjusting for the letters of credit, the Company's remaining availability under the ABL Facility at June 30, 2019 was $237.0 million . Convertible Senior Notes On May 5, 2015, the Company issued $230 million aggregate principal amount of 2.50% convertible senior notes due 2020 (the “Notes”). The Notes bear interest at a rate of 2.50% per year payable semiannually in arrears in cash on May 1 and November 1 of each year, beginning on November 1, 2015. The Notes will mature on May 1, 2020, unless earlier converted or repurchased in accordance with the terms discussed below. The Notes are the Company's senior unsecured obligations and rank senior in right of payment to any of the Company's indebtedness that is expressly subordinated in right of payment to the Notes; equal in right of payment to any of the Company's unsecured indebtedness that is not so subordinated; effectively junior in right of payment to any of the Company's secured indebtedness to the extent of the value of the assets securing such indebtedness; and structurally junior to all indebtedness and other liabilities (including trade payables) of the Company's subsidiaries. The Notes will be convertible, under certain circumstances and during certain periods, into cash, shares of the Company's common stock, or a combination of cash and shares of common stock at the Company's election, at an initial conversion rate of 25.5428 shares of common stock per $1,000 principal amount of Notes, which is equivalent to an initial conversion price of approximately $39.15 per share of common stock. At issuance, the Company estimated the straight debt borrowing rates to be 5.75% for similar debt to the Notes without the conversion feature, which resulted in a fair value of the liability component of $198.5 million and a fair value of the equity component of $31.5 million . The fair value of the equity component was recorded as a debt discount, with the offset recorded as a credit to additional paid-in capital within stockholders' equity. The $31.5 million debt discount and Note issuance costs discussed below are being amortized to interest expense under the effective interest method over the 5 -year life of the Notes, using an effective interest rate of 6.33% . The Company allocated the total issuance costs related to the Notes to liability and equity components based on their relative fair values. Issuance costs attributable to the liability component were recorded on the consolidated balance sheets as a contra-liability that reduces the carrying amount of the convertible note liability. This amount is being amortized to interest expense over the term of the Notes using the effective interest method and an effective interest rate of 6.33% . Issuance costs attributable to the equity component were recorded as a charge to additional paid-in capital within stockholders' equity. The Company has the intent and ability to refinance on a long-term basis the remaining principal amount of the Notes on May 1, 2020 using the Amended ABL Facility, which is considered noncurrent. As of June 30, 2019, the Company continues to classify the convertible debt as a noncurrent liability on the consolidated balance sheet. The Company expects to settle any excess conversion premium that exists in shares of common stock. As such, the principal amount of the Notes will not be included in the calculation of diluted earnings per common share, but any conversion premium that exists will be included in the calculation of diluted earnings per common share using the treasury stock method. As of June 30, 2019 and 2018 , none of the conditions allowing holders of the Notes to convert have been met and no conversion spread exists. As such, the Notes did not have a dilutive impact on diluted earnings per common share for each of the three and six months ended June 30, 2019 and 2018 . During the six months ended June 30, 2019 , the Company repurchased $34.3 million par value of the Notes for $33.9 million . The Company accounted for these transactions in accordance with ASC 470-20, Debt with Conversion and Other Options , resulting in the recognition of a loss of $0.5 million and $0.7 million for the three and six months ended June 30, 2019 , respectively. The loss is primarily for the write-off of the unamortized debt discount related to the Notes, which was included in interest expense in the Company's respective consolidated statements of operations. During the six months ended June 30, 2018 , the Company did no t repurchase any of the Notes, and thus did no t have a corresponding gain or loss to record on the consolidated statements of operations for three and six ended June 30, 2018 . As of June 30, 2019 and December 31, 2018 , the carrying amounts of the Notes on the consolidated balance sheets were calculated as follows (in thousands): June 30, 2019 December 31, 2018 Convertible senior notes, principal amount $ 158,295 $ 192,585 Unamortized debt discount (4,102 ) (7,862 ) Unamortized debt issuance costs (811 ) (1,555 ) Convertible senior notes, net $ 153,381 $ 183,168 Note: Amounts may not foot due to rounding. The Notes are carried on the consolidated balance sheets at their principal amount, net of the unamortized debt discount and unamortized debt issuance costs, and are not marked to market each period. The approximate fair value of the Notes as of June 30, 2019 was $157.2 million . The fair value of the Notes was estimated based on the trading price of the Notes at June 30, 2019 . As trading volume is low, these are quoted prices for identical instruments in markets that are not active, and thus are Level 2 in the fair value hierarchy. For the three and six months ended June 30, 2019 and 2018 , interest expense related to the Notes consisted of the following (in thousands): Three Months Ended June 30, Six Months Ended 2019 2018 2019 2018 Contractual coupon interest $ 1,064 $ 1,438 $ 2,265 $ 2,875 Debt discount amortization 1,321 1,622 2,726 3,219 Loss on extinguishment of debt 513 — 711 — Debt issuance cost amortization 261 321 539 637 Interest expense, Notes $ 3,159 $ 3,380 $ 6,241 $ 6,730 Note: Amounts may not foot due to rounding. The undiscounted interest and principal payments due in relation to the Notes from June 30, 2019 to the maturity of the Notes on May 1, 2020 are as follows (in thousands): Total 2019 2020 Senior convertible notes, including interest $ 162,252 1,979 $ 160,274 Note: Amounts may not foot due to rounding. |