Long-Term Debt | (9) Long-Term Debt Long-term debt consisted of the following: March 31, 2018 December 31, 2017 (in millions) 6.5% Senior Notes due 2022 $ 500.0 $ 500.0 9.25% Senior Secured Notes due 2023 645.0 645.0 6.5% Senior Notes due 2021 2.2 2.2 Capital lease obligations 44.5 45.0 Total debt 1,191.7 1,192.2 Unamortized debt issuance cost (11.7 ) (12.2 ) Unamortized debt discount (13.0 ) (13.5 ) Current portion of capital lease obligations (2.2 ) (2.1 ) Long-term debt, net of current portion $ 1,164.8 $ 1,164.4 2022 Senior Notes On October 23, 2012, CVR Refining, LLC ("Refining LLC") and Coffeyville Finance Inc. ("Coffeyville Finance") issued $500.0 million aggregate principal amount of the 6.5% Second Lien Senior Notes due 2022 (the "2022 Notes"). The debt issuance costs of the 2022 Notes totaled approximately $8.7 million and are being amortized over the term of the 2022 Notes as interest expense using the effective-interest amortization method. As of March 31, 2018, the 2022 Notes had an aggregate principal balance and a net carrying value of $500.0 million . The indenture governing the 2022 Notes imposes covenants that restrict the ability of the issuers and subsidiary guarantors to (i) issue debt, (ii) incur or otherwise cause liens to exist on any of its property or assets, (iii) declare or pay dividends, repurchase equity, or make payments on subordinated or unsecured debt, (iv) make certain investments, (v) sell certain assets, (vi) merge, consolidate with or into another entity, or sell all or substantially all of its assets, and (vii) enter into certain transactions with affiliates. Most of the foregoing covenants would cease to apply at such time that the 2022 Notes are rated investment grade by both Standard & Poor's Financial Services LLC and Moody's Investors Service, Inc. However, such covenants would be reinstituted if the 2022 Notes subsequently lost their investment grade rating. In addition, the indenture contains customary events of default, the occurrence of which would result in, or permit the trustee or the holders of at least 25% of the 2022 Notes to cause, the acceleration of the 2022 Notes, in addition to the pursuit of other available remedies. The indenture governing the 2022 Notes prohibits the Refining Partnership from making distributions to its unitholders if any default or event of default (as defined in the indenture) exists. In addition, the indenture limits the Refining Partnership's ability to pay distributions to unitholders. The covenants will apply differently depending on the Refining Partnership's fixed charge coverage ratio (as defined in the indenture). If the fixed charge coverage ratio is not less than 2.5 to 1.0, the Refining Partnership will generally be permitted to make restricted payments, including distributions to its unitholders, without substantive restriction. If the fixed charge coverage ratio is less than 2.5 to 1.0, the Refining Partnership will generally be permitted to make restricted payments, including distributions to unitholders, up to an aggregate $100.0 million basket plus certain other amounts referred to as "incremental funds" under the indenture. The Refining Partnership was in compliance with the covenants as of March 31, 2018 , and the ratio was satisfied (not less than 2.5 to 1.0). At March 31, 2018 , the estimated fair value of the 2022 Notes was approximately $510.0 million . This estimate of fair value is Level 2 as it was determined by quotations obtained from a broker-dealer who makes a market in these and similar securities. Amended and Restated Asset Based (ABL) Credit Facility On November 14, 2017, CRLLC, CVR Refining, Refining LLC and each of the operating subsidiaries of Refining LLC (collectively, the "Credit Parties") entered into Amendment No. 1 to the Amended and Restated ABL Credit Agreement (the "Amendment") with a group of lenders and Wells Fargo Bank, National Association ("Wells Fargo"), as administrative agent and collateral agent. The Amendment amends certain provisions of the Amended and Restated ABL Credit Agreement, dated December 20, 2012, by and among Wells Fargo, the group of lenders party thereto and the Credit Parties (the "Existing Credit Agreement" and as amended by the Amendment, the "Amended and Restated ABL Credit Facility"), which was otherwise scheduled to mature on December 20, 2017. The Amended and Restated ABL Credit Facility is scheduled to mature on November 14, 2022. The Amended and Restated ABL Credit Facility is a $400.0 million asset-based revolving credit facility, with sub-limits for letters of credit and swingline loans of $60.0 million and $40.0 million , respectively. The Amended and Restated ABL Credit Facility permits the payment of distributions, subject to the following conditions: (i) no default or event of default exists, (ii) excess availability exceeds 15% of the lesser of the borrowing base and the total commitments and (iii) the fixed charge coverage ratio for the immediately preceding twelve-month period shall be equal to or greater than 1.00 to 1.00. The Amended and Restated ABL Credit Facility has a five -year maturity and may be used for working capital and other general corporate purposes (including permitted acquisitions). Borrowings under the Amended and Restated ABL Credit Facility bear interest at either a base rate or London Interbank Offered Rate ("LIBOR") plus an applicable margin. The applicable margin is (i) (a) 1.50% for LIBOR borrowings and (b) 0.50% for prime rate borrowings, in each case if quarterly average excess availability exceeds 50% of the lesser of the borrowing base and the total commitments and (ii) (a) 1.75% for LIBOR borrowings and (b) 0.75% for prime rate borrowings, in each case if quarterly average excess availability is less than or equal to 50% of the lesser of the borrowing base and the total commitments. The Amended and Restated ABL Credit Facility also requires the payment of customary fees, including an unused line fee of (i) 0.375% if the daily average amount of loans and letters of credit outstanding is less than 50% of the lesser of the borrowing base and the total commitments and (ii) 0.25% if the daily average amount of loans and letters of credit outstanding is equal to or greater than 50% of the lesser of the borrowing base and the total commitments. The Credit Parties are also required to pay customary letter of credit fees equal to, for standby letters of credit, the applicable margin on LIBOR loans on the maximum amount available to be drawn under and, for commercial letters of credit, the applicable margin on LIBOR loans less 0.50% on the maximum amount available to be drawn under, and customary facing fees equal to 0.125% of the face amount of, each letter of credit. The lenders under the Amended and Restated ABL Credit Facility were granted a perfected, first priority security interest (subject to certain customary exceptions) in the ABL Priority Collateral (as defined in the ABL Intercreditor Agreement) and a second priority lien (subject to certain customary exceptions) and security interest in the Note Priority Collateral (as defined in the ABL Intercreditor Agreement). The Amended and Restated ABL Credit Facility also contains customary covenants for a financing of this type that limit the ability of the Credit Parties and their respective subsidiaries to, among other things, incur liens, engage in a consolidation, merger, purchase or sale of assets, pay dividends, incur indebtedness, make advances, investments and loans, enter into affiliate transactions, issue equity interests, or create subsidiaries and unrestricted subsidiaries. The Amended and Restated ABL Credit Facility also contains a fixed charge coverage ratio financial covenant, as defined under the facility. The Credit Parties were in compliance with the covenants of the Amended and Restated ABL Credit Facility as of March 31, 2018 . As of March 31, 2018 , the Refining Partnership had availability under the Amended and Restated ABL Credit Facility of $297.9 million and had letters of credit outstanding of approximately $6.4 million . There were no borrowings outstanding under the Amended and Restated ABL Credit Facility as of March 31, 2018 . Availability under the Amended and Restated ABL Credit Facility was limited by borrowing base conditions as of March 31, 2018 . 2023 Senior Notes On June 10, 2016, CVR Partners and CVR Nitrogen Finance Corporation ("CVR Nitrogen Finance"), an indirect wholly-owned subsidiary of CVR Partners, certain subsidiary guarantors named therein and Wilmington Trust, National Association, as trustee and as collateral trustee, completed a private offering of $645.0 million aggregate principal amount of 9.250% Senior Secured Notes due 2023 (the "2023 Notes"). The 2023 Notes mature on June 15, 2023, unless earlier redeemed or repurchased by the issuers. Interest on the 2023 Notes is payable semi-annually in arrears on June 15 and December 15 of each year. The 2023 Notes are guaranteed on a senior secured basis by all of the Nitrogen Fertilizer Partnership’s existing subsidiaries. The 2023 Notes were issued at a $16.1 million discount, which is being amortized over the term of the 2023 Notes as interest expense using the effective-interest method. As a result of the issuance, approximately $9.4 million of debt issuance costs were incurred, which are being amortized over the term of the 2023 Notes as interest expense using the effective-interest method. The 2023 Notes contain customary covenants for a financing of this type that, among other things, restrict the Nitrogen Fertilizer Partnership’s ability and the ability of certain of its subsidiaries to: (i) sell assets; (ii) pay distributions on, redeem or repurchase the Nitrogen Fertilizer Partnership’s units or redeem or repurchase its subordinated debt; (iii) make investments; (iv) incur or guarantee additional indebtedness or issue preferred units; (v) create or incur certain liens; (vi) enter into agreements that restrict distributions or other payments from the Nitrogen Fertilizer Partnership’s restricted subsidiaries to the Nitrogen Fertilizer Partnership; (vii) consolidate, merge or transfer all or substantially all of the Nitrogen Fertilizer Partnership’s assets; (viii) engage in transactions with affiliates; and (ix) create unrestricted subsidiaries. The indenture governing the 2023 Notes prohibits the Nitrogen Fertilizer Partnership from making distributions to unitholders if any default or event of default (as defined in the indenture) exists. In addition, the indenture limits the Nitrogen Fertilizer Partnership's ability to pay distributions to unitholders. The covenants will apply differently depending on the Nitrogen Fertilizer Partnership's fixed charge coverage ratio (as defined in the indenture). If the fixed charge coverage ratio is not less than 1.75 to 1.0, the Nitrogen Fertilizer Partnership will generally be permitted to make restricted payments, including distributions to its unitholders, without substantive restriction. If the fixed charge coverage ratio is less than 1.75 to 1.0, the Nitrogen Fertilizer Partnership will generally be permitted to make restricted payments, including distributions to its unitholders, up to an aggregate $75.0 million basket plus certain other amounts referred to as "incremental funds" under the indenture. As of March 31, 2018 , the ratio was less than 1.75 to 1.0. Restricted payments have been made, and $72.7 million of the basket was available as of March 31, 2018 . As of March 31, 2018 , the Nitrogen Fertilizer Partnership was in compliance with the covenants contained in the 2023 Notes. Included in other current liabilities on the Condensed Consolidated Balance Sheets is accrued interest payable totaling approximately $17.6 million and $2.7 million , respectively, as of March 31, 2018 and December 31, 2017 related to the 2023 Notes. At March 31, 2018 and December 31, 2017 , respectively, the estimated fair value of the 2023 Notes was approximately $686.7 million and $694.2 million . This estimate of fair value is Level 2 as it was determined by quotations obtained from a broker-dealer who makes a market in these and similar securities. Asset Based (ABL) Credit Facility On September 30, 2016, the Nitrogen Fertilizer Partnership entered into a senior secured asset based revolving credit facility (the "ABL Credit Facility") with a group of lenders and UBS AG, Stamford Branch, as administrative agent and collateral agent. The ABL Credit Facility has an aggregate principal amount of availability of up to $50.0 million with an incremental facility, which permits an increase in borrowings of up to $25.0 million in the aggregate subject to additional lender commitments and certain other conditions. The proceeds of the loans may be used for capital expenditures and working capital and general corporate purposes of the Nitrogen Fertilizer Partnership and its subsidiaries. The ABL Credit Facility provides for loans and standby letters of credit in an amount up to aggregate availability under the facility, subject to meeting certain borrowing base conditions, with sub-limits of the lesser of 10% of the total facility commitment and $5.0 million for swingline loans and $10.0 million for letters of credit. The ABL Credit Facility is scheduled to mature on September 30, 2021. At the option of the borrowers, loans under the ABL Credit Facility initially bear interest at an annual rate equal to (i) 2.00% plus LIBOR or (ii) 1.00% plus a base rate, subject to a 0.50% step-down based on the previous quarter’s excess availability. The borrowers must also pay a commitment fee on the unutilized commitments and also pay customary letter of credit fees. The ABL Credit Facility also contains customary covenants for a financing of this type that limit the ability of the Nitrogen Fertilizer Partnership and its subsidiaries to, among other things, incur liens, engage in a consolidation, merger, purchase or sale of assets, pay dividends, incur indebtedness, make advances, investments and loans, enter into affiliate transactions, issue equity interests or create subsidiaries and unrestricted subsidiaries. The ABL Credit Facility also contains a fixed charge coverage ratio financial covenant, as defined therein. The Nitrogen Fertilizer Partnership was in compliance with the covenants of the ABL Credit Facility as of March 31, 2018 . As of March 31, 2018 , the Nitrogen Fertilizer Partnership and its subsidiaries had availability under the ABL Credit Facility of $49.2 million . There were no borrowings outstanding under the ABL Credit Facility as of March 31, 2018 . Capital Lease Obligations CVR Refining maintains two leases, accounted for as a capital lease and a financial obligation, related to Magellan Pipeline Terminals, L.P. ("Magellan Pipeline") and Excel Pipeline LLC ("Excel Pipeline"). The underlying assets and related depreciation are included in property, plant and equipment, net of accumulated depreciation on the Condensed Consolidated Balance Sheets. The capital lease, which relates to a sales-lease back agreement with Sunoco Pipeline, L.P. for its membership interest in the Excel Pipeline, has 139 months remaining of its term and will expire in September 2029. The financing agreement, which relates to the Magellan Pipeline terminals, bulk terminal and loading facility, has a lease term with 138 months remaining and will expire in September 2029. |