Debt | Debt (a) Debt — Related Party September 30, Interest Rate Interest Rate as of Maturity Date Revolving Credit Facility—Related Party $ — 4.75% + LIBOR + 0.25% 6.24% January 20, 2020 September 30, Interest Rate Interest Rate as of Maturity Date Term Loan Facility—Related Party $ 200,000 6.75% + Adjusted LIBOR + 0.25% 8.31% January 20, 2020 December 31, Interest Rate Interest Rate as of Maturity Date Revolving Credit Facility—Related Party $ 35,000 3.50% + LIBOR + 0.25% 4.63% January 20, 2020 December 31, Interest Rate Interest Rate as of Maturity Date Term Loan Facility—Related Party $ 200,000 6.75% + Adjusted LIBOR + 0.25% 8.28% January 20, 2020 The intercompany revolving credit facility between OCIB and OCI USA Inc. (the “Revolving Credit Facility—Related Party”) became effective on November 30, 2016 and has a borrowing capacity of $40,000 and a maturity date of January 20, 2020 . The amount that can be drawn under the Revolving Credit Facility—Related Party is limited by the Revolving Credit Facility (as defined below) to $40,000 minus the amount of indebtedness outstanding under the Revolving Credit Facility. Borrowings under the Revolving Credit Facility—Related Party bear interest at a rate equal to the sum of (i) the rate per annum applicable to the Revolving Credit Facility (including as such per annum rate may fluctuate from time to time in accordance with the terms of the agreement governing the Revolving Credit Facility) discussed in note 5(b), plus (ii) 0.25%. OCIB pays a commitment fee to OCI USA Inc, an indirect, wholly-owned subsidiary of OCI, (“OCI USA”) under the Revolving Credit Facility—Related Party on the undrawn available portion at a rate of 0.5% per annum, which is included as a component of interest expense—related party on the unaudited condensed consolidated statements of operations. The Revolving Credit Facility—Related Party is subordinated to indebtedness under the Term Loan B Credit Facility (as defined below) and the Revolving Credit Facility. As of September 30, 2017 , OCIB had no amounts drawn under the Revolving Credit Facility—Related Party. The intercompany term loan facility between OCIB and OCI USA (the “Term Loan Facility—Related Party”) became effective on November 30, 2016 and has a borrowing capacity of $200,000 and a maturity date of January 20, 2020 . Borrowings under the Term Loan Facility—Related Party are subordinated to indebtedness under the Term Loan B Credit Facility and the Revolving Credit Facility. Borrowings under the Term Loan Facility—Related Party bear interest at a rate equal to the sum of (i) the rate per annum applicable to the Term Loan B Credit Facility (including as such per annum rate may fluctuate from time to time in accordance with the terms of the agreement governing the Term Loan B Credit Facility) discussed in note 5(b) plus (ii) 0.25%. Such interest is payable on or before the date that is two business days after each payment of interest under the Term Loan B Credit Facility either, at the election of OCIB, (i) in cash or (ii) in-kind (“PIK Interest”) on which date (in the case of PIK Interest) such accrued interest shall be added to the principal amount of the loan outstanding and accrue interest as set forth in the Term Loan Facility—Related Party. On November 30, 2016, OCIB borrowed $200,000 under the Term Loan Facility—Related Party to prepay a portion of the Term Loan B Credit Facility as discussed in note 5(b). As of September 30, 2017 , OCIB had $200,000 drawn under the Term Loan Facility—Related Party. (b) Debt — Third Party September 30, Interest Rate Interest Rate as of Maturity Date Revolving Credit Facility $ 25,000 4.75% + LIBOR 5.99% March 31, 2018 Less: Unamortized Debt Issue Costs 50 Revolving Credit Facility, Net $ 24,950 September 30, Interest Rate Interest Rate as of Maturity Date Term Loan B Credit Facility $ 232,945 6.75% + Adjusted LIBOR 8.06% August 20, 2019 Less: Current Portion 4,480 Less: Unamortized Discount and Debt Issue Costs 4,470 Term Loan Facility, Net $ 223,995 December 31, Interest Rate Interest Rate as of Maturity Date Term Loan B Credit Facility $ 236,305 6.75% + Adjusted LIBOR 8.03% August 20, 2019 Less: Current Portion 4,480 Less: Unamortized Discount and Debt Issue Costs 6,077 Term Loan Facility, Net $ 225,748 Term Loan B Credit Facility and Amendments Thereto On August 20, 2013, OCIB and OCI USA entered into a senior secured term loan facility agreement (as amended, supplemented or restated from time to time, the “Term Loan B Credit Facility”) with a syndicate of lenders. The Partnership subsequently became a party to the Term Loan B Credit Facility through a credit agreement joinder, dated as of October 18, 2013. The Term Loan B Credit Facility is comprised of three tranches of term debt in the amounts of $235,000 (the “Term B-2 Loan”), $165,000 (the “Term B-3 Loan”) and $50,000 (the “Term B-4 Loan” and, together with the Term B-2 Loan and Term B-3 Loan, the “Term B Loans”). On March 17, 2016, OCIB, the Partnership and OCI USA entered into Amendment No. 6 to the Term Loan B Credit Facility (“Term Loan Amendment No. 6”) with Bank of America, N.A., as administrative agent, and the other lenders party thereto. The Term Loan Amendment No. 6 (i) increased the maximum consolidated senior secured net leverage ratio from 1.75 to 4.25 for the quarter ending June 30, 2016, (ii) increased the maximum consolidated senior secured net leverage ratio from 1.75 to 4.75 for the quarter ending September 30, 2016, (iii) increased the maximum consolidated senior secured net leverage ratio from 1.75 to 5.00 for each of the quarters ending December 31, 2016 and March 31, 2017, (iv) decreased the minimum consolidated interest coverage ratio from 5.00 to 3.00 for the quarter ending June 30, 2016 and to 2.50 for each of the quarters ending September 30, 2016, December 31, 2016 and March 31, 2017, and (v) increased the interest rate margin on the outstanding term loans under the Term Loan B Credit Facility such that OCIB may select an interest rate of (a) 6.75% above LIBOR for the Term B Tranche of LIBO Rate Term Loans (as defined in the Term Loan B Credit Facility) or (b) 5.75% above the Base Rate for the Term B Tranche of Base Rate Term Loans (as each such term is defined in the Term Loan B Credit Facility). On November 30, 2016, OCIB utilized the funds borrowed under the Term Loan Facility—Related Party (see note 5(a)) to prepay $200,000 of Term B Loans under the Term B Loan Credit Facility and entered into Amendment No. 7 to the Term Loan B Credit Facility ("Term Loan Amendment No. 7”) with Bank of America, N.A., as administrative agent, and the other lenders party thereto. The Term Loan Amendment No. 7, among other things, (i) increased the maximum consolidated senior secured net leverage ratio covenant (a) from 5.00 to 6.25 for the quarter ending March 31, 2017, (b) from 1.75 to 5.50 for each of the quarters ending June 30, 2017 and September 30, 2017, (c) from 1.75 to 5.25 for the quarter ending December 31, 2017, and (d) from 1.75 to 4.75 for the quarter ending March 31, 2018 and for each fiscal quarter ending thereafter, (ii) decreased the minimum consolidated interest coverage ratio covenant (a) from 2.50 to 1.25 for each of the quarters ending December 31, 2016 and March 31, 2017, (b) from 5.00 to 1.50 for the quarter ending June 30, 2017, (c) from 5.00 to 1.75 for the quarter ending September 30, 2017 and (d) from 5.00 to 2.25 for the quarter ending December 31, 2017 and for each fiscal quarter ending thereafter, and (iii) updated the computation of certain financial covenants to exclude interest incurred under the Term Loan Facility—Related Party and the Revolving Credit Facility—Related Party. As a result of the $200,000 principal prepayment on November 30, 2016, we accelerated amortization in the amount of $7,600 of unamortized deferred financing fees, which was included as a component of interest expense in the consolidated statement of operations for the year ended December 31, 2016. The Term B Loans mature on August 20, 2019 and are subject to certain mandatory prepayment obligations upon the disposition of certain assets and the incurrence of certain indebtedness. Interest on the Term Loan B Credit Facility accrues, at OCIB's option, at adjusted LIBOR plus 6.75% per annum or the alternate base rate (as each such term is defined in the Term Loan B Credit Facility) plus 5.75% . The Term B Loans are also subject to mandatory quarterly repayments equal to $1,120 . Scheduled maturities with respect to the Term Loan B Credit Facility at September 30, 2017 are as follows: Fiscal Year 2017 $ 1,120 2018 4,480 2019 227,345 Total $ 232,945 The Term B Loans, as well as related fees and expenses, are unconditionally guaranteed by OCI USA, the Partnership and certain of its future subsidiaries other than OCIB. The Term B Loans, and related fees and expenses, are secured by a first priority lien on substantially all of OCIB’s and the Partnership's assets (OCI USA does not provide any security with its guarantee). In addition, the Term Loan B Credit Facility contains customary covenants and conditions, including limitations on our ability to finance future operations or capital needs or to engage in other business activities. These restrictions and covenants will limit our ability, among other things, to: • incur additional indebtedness; • create liens on assets; • engage in mergers or consolidations; • sell assets; • pay dividends and distributions or repurchase our common units; • make investments, loans or advances; • prepay certain subordinated indebtedness; • make certain acquisitions or enter into agreements with respect to our equity interests; and • engage in certain transactions with affiliates. Under the Term Loan B Credit Facility, OCIB is also subject to certain financial covenants that are tested on a quarterly basis. As of September 30, 2017 , OCIB may not permit, on the last day of any fiscal quarter (i) the consolidated senior secured net leverage ratio to exceed (a) in the fiscal quarter ending September 30, 2017, 5.50 to 1.00, (b) in the fiscal quarter ending December 31, 2017, 5.25 to 1.00, and (c) 4.75 to 1.00, for each fiscal quarter ending thereafter, and (ii) the consolidated interest coverage ratio on the last day of any fiscal quarter to be less than (a) 1.75 to 1.00, for the fiscal quarter ending September 30, 2017 and (b) 2.25 to 1.00, for the fiscal quarter ending December 31, 2017 and for each fiscal quarter ending thereafter. The consolidated senior secured net leverage ratio is defined as the ratio of (i) (A) consolidated senior secured debt less (B) the aggregate amount of unrestricted cash and cash equivalents included on the consolidated balance sheet to (ii) consolidated EBITDA for the last four quarters. The consolidated interest coverage ratio is defined as the ratio of (i) consolidated EBITDA for the last four quarters to (ii) consolidated interest expense for the last four quarters (excluding interest recorded on subordinated debt). As of September 30, 2017 , OCIB’s consolidated senior secured net leverage ratio was 2.40 to 1.00, and its consolidated interest coverage ratio was 3.14 to 1.00. Upon the occurrence of certain events of default under the Term Loan B Credit Facility, OCIB’s obligations under the Term Loan B Credit Facility may be accelerated. The Term Loan B Credit Facility also contains various nonfinancial covenants, which include, among others, undertakings with respect to reporting requirements, maintenance of specified insurance coverage, and compliance with applicable laws and regulations. As of September 30, 2017 , OCIB was in compliance with all these covenants. The Term Loan B Credit Facility contains events of default customary for credit facilities of this nature, including, but not limited to, the failure to pay any principal, interest or fees when due, failure to satisfy any covenant, untrue representations or warranties, impairment of liens, events of default under any other loan document, default under any other material debt agreements, insolvency, certain bankruptcy proceedings, change of control and material litigation resulting in a final judgment against any borrower or subsidiary guarantor. Upon the occurrence and during the continuation of an event of default under the Term Loan B Credit Facility, the lenders may, among other things, accelerate and declare the outstanding loans to be immediately due and payable and exercise remedies against OCIB, the Partnership and the collateral as may be available to the lenders under the Term Loan B Credit Facility and other loan documents. Revolving Credit Facility and Amendments Thereto On April 4, 2014, OCIB as borrower, the Partnership as a guarantor, Bank of America, N.A. as administrative agent and a syndicate of lenders entered into a revolving credit facility agreement (as amended, supplemented or restated from time to time, the “Revolving Credit Facility”), with an initial aggregate borrowing capacity of up to $40,000 (less any amounts borrowed under the Revolving Credit Facility—Related Party (as defined in note 5(a)), including a $20,000 sublimit for letters of credit. The aggregate borrowing capacity of the Revolving Credit Facility was reduced by $2,500 on the last day of each fiscal quarter commencing with the fiscal quarter ending June 30, 2017, leaving an aggregate borrowing capacity of $35,000 as of September 30, 2017. The borrowing capacity of the Revolving Credit Facility will continue to be reduced by $2,500 on the last day of each fiscal quarter until the facility expires on March 31, 2018 . All proceeds from this facility are used by OCIB for working capital, capital expenditures and other general corporate purposes. On March 11, 2016, OCIB, the Partnership and OCI USA entered into Amendment No. 4 to the Revolving Credit Facility (“Revolving Credit Amendment No. 4”) with Bank of America, N.A., as administrative agent, and the other lenders party thereto. The Revolving Credit Amendment No. 4 extended the maturity of the Revolving Credit Facility until March 31, 2016 . On March 17, 2016, OCIB, the Partnership and OCI USA entered into Amendment No. 5 to the Revolving Credit Facility (“Revolving Credit Amendment No. 5”) with Bank of America, N.A., as administrative agent, and the other lenders party thereto. The Revolving Credit Amendment No. 5, among other things, (i) increased the maximum consolidated senior secured net leverage ratio from 1.75 to 4.25 for the quarter ending June 30, 2016, (ii) increased the maximum consolidated senior secured net leverage ratio from 1.75 to 4.75 for the quarter ending September 30, 2016, (iii) increased the maximum consolidated senior secured net leverage ratio from 1.75 to 5.00 for each of the quarters ending December 31, 2016 and March 31, 2017, (iv) decreased the minimum consolidated interest coverage ratio from 5.00 to 3.00 for the quarter ending June 30, 2016 and to 2.50 for each of the quarters ending September 30, 2016 and December 31, 2016, (v) extended the maturity of the Revolving Credit Facility until March 31, 2017, (vi) increased the interest rate margin to 3.50% , (vii) introduced specified liquidity targets to meet on a quarterly basis for each of the three quarters ending June 30, 2016, September 30, 2016 and December 31, 2016 (viii) imposed the requirement that OCIB repay in full all outstanding revolving loans under the Revolving Credit Facility on the last business day of each fiscal quarter commencing September 30, 2016, provided that with respect to the repayment occurring on September 30, 2016, OCIB shall only be required to repay an amount such that no more than $20,000 in aggregate principal amount of the revolving loans remain outstanding on such date after giving effect to such repayment and (ix) increased the applicable commitment fee to 1.40% per annum. On January 4, 2017, OCIB, the Partnership and OCI USA entered into Amendment No. 6 to the Revolving Credit Facility (“Revolving Credit Amendment No. 6”) with Bank of America, N.A., as administrative agent, and the other lenders party thereto. The Revolving Credit Amendment No. 6, among other things, (i) added a maximum consolidated senior secured net leverage ratio covenant of (a) 6.25 for the quarter ending March 31, 2017, (b) 5.50 for each of the quarters ending June 30, 2017 and September 30, 2017 and (c) 5.25 for the quarter ending December 31, 2017, (ii) added a minimum consolidated interest coverage ratio of (a) 1.25 for each of the quarters ending December 31, 2016 and March 31, 2017, (b) 1.50 for the quarter ending June 30, 2017, (c) 1.75 for the quarter ending September 30, 2017 and (d) 2.25 for the quarter ending December 31, 2017, (iii) extended the maturity of the Revolving Credit Facility until March 31, 2018 , (iv) increased the interest rate margin to 4.75% , (v) set the specified liquidity target to be met on a quarterly basis, (vi) added a requirement that proceeds from certain types of debt incurrences be used to repay borrowings outstanding under the Revolving Credit Facility, (vii) introduced the recurring reduction of the total revolving loan commitment beginning with the quarter ending June 30, 2017 and continuing at the end of each quarter thererafter, (viii) added a requirement that the general liens basket only be used when the consolidated senior secured net leverage ratio does not exceed 2.75 to 1.00 and (ix) updated the computation of certain financial covenants to exclude interest incurred under the Term Loan Facility—Related Party and the Revolving Credit Facility—Related Party. Outstanding principal amounts under the Revolving Credit Facility bear interest at OCIB’s option at either LIBOR plus a margin of 4.75% or a base rate plus a margin of 3.75%. OCIB also pays a commitment fee of 1.40% per annum on the unused portion of the Revolving Credit Facility. The Revolving Credit Facility has a one -year term that may be extended for additional one -year periods subject to the consent of the lenders. OCIB’s obligations under the Revolving Credit Facility are guaranteed by the Partnership and certain of its future subsidiaries other than OCIB. OCIB’s obligations under the Revolving Credit Facility are secured by a first priority lien (which is pari passu with the first priority lien securing obligations under the Term Loan B Credit Facility) on substantially all of the tangible and intangible assets of OCIB and the Partnership. In addition, the Revolving Credit Facility contains covenants and provisions that affect OCIB and the Partnership, including, among others, customary covenants and provisions: • prohibiting OCIB from incurring indebtedness (subject to customary exceptions); • limiting OCIB’s ability and that of the Partnership from creating or incurring specified liens on their respective properties (subject to customary exceptions); • limiting OCIB’s ability and that of the Partnership to make distributions and equity repurchases (which shall be permitted if no default exists and in the case of distributions and equity repurchases from a subsidiary to its parent); and • prohibiting consolidations, mergers and asset transfers by OCIB and the Partnership (subject to customary exceptions). Under the Revolving Credit Facility, OCIB is also subject to certain financial covenants that are tested on a quarterly basis. As of September 30, 2017 , OCIB may not permit, on the last day of any fiscal quarter (i) the consolidated senior secured net leverage ratio to exceed (a) in the fiscal quarter ending September 30, 2017, 5.50 to 1.00, and (b) in the fiscal quarter ending December 31, 2017, 5.25 to 1.00, and (ii) the consolidated interest coverage ratio on the last day of any fiscal quarter to be less than (a) 1.75 to 1.00, for the fiscal quarter ending September 30, 2017 and (b) 2.25 to 1.00, for the fiscal quarter ending December 31, 2017. The consolidated senior secured net leverage ratio is defined as the ratio of (i) (A) consolidated senior secured debt less (B) the aggregate amount of unrestricted cash and cash equivalents included on the consolidated balance sheet to (ii) consolidated EBITDA for the last four quarters. The consolidated interest coverage ratio is defined as the ratio of (i) consolidated EBITDA for the last four quarters to (ii) consolidated interest expense for the last four quarters (excluding interest recorded on subordinated debt). As of September 30, 2017 , OCIB’s consolidated senior secured net leverage ratio was 2.40 to 1.00, and its consolidated interest coverage ratio was 3.14 to 1.00. Upon the occurrence of certain events of default under the Revolving Credit Facility, OCIB’s obligations under the Revolving Credit Facility may be accelerated. The Revolving Credit Facility also contains various nonfinancial covenants, which include, among others, undertaking with respect to reporting requirements, maintenance of specified insurance coverage, and compliance with applicable laws and regulations. As of September 30, 2017 , OCIB was in compliance with all of these covenants. The Revolving Credit Facility contains events of default customary for credit facilities of this nature, including, but not limited to, the failure to pay any principal, interest or fees when due, failure to satisfy any covenant, untrue representations or warranties, impairment of liens, events of default under any other loan document under the credit facility, default under any other material debt agreements, insolvency, certain bankruptcy proceedings, change of control and material litigation resulting in a final judgment against any borrower or subsidiary guarantor. Upon the occurrence and during the continuation of an event of default under the Revolving Credit Facility, the lenders may, among other things, accelerate and declare the outstanding loans to be immediately due and payable and exercise remedies against OCIB, the Partnership and the collateral as may be available to the lenders under the Revolving Credit Facility and other loan documents. (c) Debt Issuance Costs Term Loan B Credit Facility and Amendments Thereto Term Loan Amendment No. 6 included an amendment fee of $1,102 , legal fees of $31 and $12 of other fees and expenses. Term Loan Amendment No. 7 included a prepayment fee of $776 paid to nonconsenting lenders and legal fees of $55 . OCIB recorded the debt issuance costs as a reduction of long-term debt in the accompanying unaudited condensed consolidated balance sheets and is amortizing them over the term of the Term Loan B Credit Facility using the effective-interest method. OCIB amortized debt issuance costs related to the Term Loan B Credit Facility of $540 and $1,607 during the three and nine -months ended September 30, 2017 , respectively, as compared to $1,049 and $3,029 during the three and nine -months ended September 30, 2016 , respectively. The amortization of the debt issuance costs is presented as a component of interest expense in the accompanying unaudited condensed consolidated statements of operations. Revolving Credit Facility and Amendments Thereto Revolving Credit Agreement Amendment No. 4 included $30 of legal fees and expenses, Revolving Credit Agreement Amendment No. 5 included $31 of legal fees and expenses, and Revolving Credit Agreement Amendment No. 6 included a 0.25% consent fee of $100 and $36 of legal fees and expenses. OCIB recorded the debt issuance costs as a reduction of short-term debt in the accompanying unaudited condensed consolidated balance sheets and is amortizing them over the term of the Revolving Credit Facility using the effective-interest method. OCIB amortized debt issuance costs related to the Revolving Credit Facility of $28 and $86 during the three and nine -months ended September 30, 2017 , respectively, as compared to $8 and $120 during the three and nine -months ended September 30, 2016 , respectively. The amortization of the debt issuance costs is presented as a component of interest expense in the accompanying unaudited condensed consolidated statement of operations. |