2.2.0.7 false CONDENSED CONSOLIDATED STATEMENTS OF INCOME AND COMPREHENSIVE INCOME (LOSS) (Unaudited) (USD $) 001000 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF INCOME AND COMPREHENSIVE INCOME (LOSS) (Unaudited) true false In Thousands, except Per Share data false false 1 USD false false u000 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 u002 Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 $ false 2 USD false false u000 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 u002 Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 $ false 3 USD false false u000 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 u002 Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 $ false 4 USD false false u000 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 u002 Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 $ 3 1 us-gaap_RevenuesAbstract us-gaap true na duration No definition available. false false false false false true false false false false false false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 4 2 us-gaap_RefiningAndMarketingRevenue us-gaap true credit duration No definition available. false false false false false false false false false false false false 1 true true false false 1419997000 1419997 false false false 2 true true false false 1196899000 1196899 false false false 3 true true false false 4215546000 4215546 false false false 4 true true false false 3147210000 3147210 false false false xbrli:monetaryItemType monetary Revenue related to the downstream oil and gas activities, including the refining of crude oil, as well as the marketing and distribution of crude oil, refined petroleum products, and natural gas. No authoritative reference available. false 5 2 us-gaap_OtherSalesRevenueNet us-gaap true credit duration No definition available. false false false false false false false false false false false false 1 false true false false -3525000 -3525 false false false 2 false true false false 3683000 3683 false false false 3 false true false false 21950000 21950 false false false 4 false true false false 1464000 1464 false false false xbrli:monetaryItemType monetary Revenues from the sale of other goods or rendering of other services, not elsewhere specified in the taxonomy; net of (reduced by) sales adjustments, returns, allowances, and discounts. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 1 -Article 5 false 6 2 us-gaap_Revenues us-gaap true credit duration No definition available. false false false false false false false false false false false totallabel false 1 false true false false 1416472000 1416472 false false false 2 false true false false 1200582000 1200582 false false false 3 false true false false 4237496000 4237496 false false false 4 false true false false 3148674000 3148674 false false false xbrli:monetaryItemType monetary Aggregate revenue recognized during the period (derived from goods sold, services rendered, insurance premiums, or other activities that constitute an entity's earning process). For financial services companies, also includes investment and interest income, and sales and trading gains. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 1 -Article 5 true 7 1 us-gaap_CostsAndExpensesAbstract us-gaap true na duration No definition available. false false false false false true false false false false false false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 8 2 us-gaap_RefiningAndMarketingCosts us-gaap true debit duration No definition available. false false false false false false false false false false false false 1 false true false false 1283773000 1283773 false false false 2 false true false false 1089612000 1089612 false false false 3 false true false false 3844828000 3844828 false false false 4 false true false false 2814341000 2814341 false false false xbrli:monetaryItemType monetary Cost incurred related to the downstream oil and gas activities, including refining of crude oil and marketing and distribution of crude oil, refined petroleum products, and natural gas. No authoritative reference available. false 9 2 us-gaap_OperatingCostsAndExpenses us-gaap true debit duration No definition available. false false false false false false false false false false false false 1 false true false false 82878000 82878 false false false 2 false true false false 83701000 83701 false false false 3 false true false false 221901000 221901 false false false 4 false true false false 232175000 232175 false false false xbrli:monetaryItemType monetary Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Excludes Selling, General and Administrative Expense. No authoritative reference available. false 10 2 us-gaap_SellingGeneralAndAdministrativeExpense us-gaap true debit duration No definition available. false false false false false false false false false false false false 1 false true false false 13194000 13194 false false false 2 false true false false 13650000 13650 false false false 3 false true false false 35390000 35390 false false false 4 false true false false 38937000 38937 false false false xbrli:monetaryItemType monetary The aggregate total costs related to selling a firm's product and services, as well as all other general and administrative expenses. Direct selling expenses (for example, credit, warranty, and advertising) are expenses that can be directly linked to the sale of specific products. Indirect selling expenses are expenses that cannot be directly linked to the sale of specific products, for example telephone expenses, Internet, and postal charges. General and administrative expenses include salaries of non-sales personnel, rent, utilities, communication, etc. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 4 -Article 5 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 43 -Chapter 4 -Paragraph 5A false 11 2 us-gaap_DepreciationDepletionAndAmortization us-gaap true debit duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 20309000 20309 false false false 2 false true false false 18099000 18099 false false false 3 false true false false 61156000 61156 false false false 4 false true false false 54226000 54226 false false false xbrli:monetaryItemType monetary The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets. No authoritative reference available. false 12 2 us-gaap_GainLossOnDispositionOfAssets us-gaap true credit duration No definition available. false false false false false false false false false false true negated false 1 false true false false 0 0 false false false 2 false true false false 0 0 false false false 3 false true false false -1000 -1 false false false 4 false true false false 0 0 false false false xbrli:monetaryItemType monetary The gains and losses included in earnings resulting from the sale or disposal of tangible assets. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 144 -Paragraph 47 false 13 2 us-gaap_CostsAndExpenses us-gaap true debit duration No definition available. false false false false false false false false false false false totallabel false 1 false true false false 1400154000 1400154 false false false 2 false true false false 1205062000 1205062 false false false 3 false true false false 4163274000 4163274 false false false 4 false true false false 3139679000 3139679 false false false xbrli:monetaryItemType monetary Total costs of sales and operating expenses for the period. No authoritative reference available. true 14 1 us-gaap_OperatingIncomeLoss us-gaap true credit duration No definition available. false false false false false false false false false false false totallabel false 1 false true false false 16318000 16318 false false false 2 false true false false -4480000 -4480 false false false 3 false true false false 74222000 74222 false false false 4 false true false false 8995000 8995 false false false xbrli:monetaryItemType monetary The net result for the period of deducting operating expenses from operating revenues. No authoritative reference available. true 15 1 us-gaap_InterestExpense us-gaap true debit duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 9025000 9025 false false false 2 false true false false 6709000 6709 false false false 3 false true false false 24306000 24306 false false false 4 false true false false 21046000 21046 false false false xbrli:monetaryItemType monetary The cost of borrowed funds accounted for as interest that was charged against earnings during the period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 34 -Paragraph 21 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher OTS -Name Federal Regulation (FR) -Number Title 12 -Chapter V -Section 563c.102 -Paragraph 9 -Subsection II Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 9 -Article 9 false 16 1 us-gaap_InvestmentIncomeNet us-gaap true credit duration No definition available. false false false false false false false false false false true negated false 1 false true false false -696000 -696 false false false 2 false true false false -661000 -661 false false false 3 false true false false -1791000 -1791 false false false 4 false true false false -1948000 -1948 false false false xbrli:monetaryItemType monetary This item represents investment income derived from investments in debt and equity securities consisting of interest income earned from investments in debt securities and on cash and cash equivalents, dividend income from investments in equity securities, and income or expense derived from the amortization of investment related discounts or premiums, respectively, net of related investment expenses. This item does not include realized or unrealized gains or losses on the sale or holding of investments in debt and equity securities required to be included in earnings for the period or for other than temporary losses related to investments in debt and equity securities which are included in realized losses in the period recognized, and does not include investment income from real or personal property, such as rental income. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name FASB Staff Position (FSP) -Number FAS115-1/124-1 -Paragraph 13, 14, 15, 16 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 115 -Paragraph 14, 16 false 17 1 us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments us-gaap true credit duration No definition available. false false false false false false false false false false false totallabel false 1 false true false false 7989000 7989 false false false 2 false true false false -10528000 -10528 false false false 3 false true false false 51707000 51707 false false false 4 false true false false -10103000 -10103 false false false xbrli:monetaryItemType monetary Sum of operating profit and nonoperating income (expense) before income (loss) from equity method investments, income taxes, extraordinary items, cumulative effects of changes in accounting principles, and noncontrolling interest. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 08 -Paragraph h -Subparagraph 1(i) -Article 4 true 18 1 us-gaap_IncomeTaxExpenseBenefit us-gaap true debit duration No definition available. false false false false false false false false false false false false 1 false true false false -319000 -319 false false false 2 false true false false -1744000 -1744 false false false 3 false true false false 17549000 17549 false false false 4 false true false false -1397000 -1397 false false false xbrli:monetaryItemType monetary The sum of the current income tax expense (benefit) and the deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 08 -Paragraph h -Article 4 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 109 -Paragraph 45 -Subparagraph a, b false 19 1 us-gaap_NetIncomeLoss us-gaap true credit duration No definition available. false false false false false false false false false false false totallabel false 1 false true false false 8308000 8308 false false false 2 false true false false -8784000 -8784 false false false 3 false true false false 34158000 34158 false false false 4 false true false false -8706000 -8706 false false false xbrli:monetaryItemType monetary The portion of consolidated profit or loss for the period, net of income taxes, which is attributable to the parent. If the entity does not present consolidated financial statements, the amount of profit or loss for the period, net of income taxes. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 19 -Article 5 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph d Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph A7 -Appendix A Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph a Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 20 -Article 9 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 130 -Paragraph 10, 15 Reference 7: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Emerging Issues Task Force (EITF) -Number 87-21 Reference 8: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 95 -Paragraph 28, 29, 30 true 20 1 us-gaap_ComprehensiveIncomeNetOfTax us-gaap true credit duration No definition available. false false false false false false false false false false false false 1 true true false false 8177000 8177 false false false 2 true true false false -8780000 -8780 false false false 3 true true false false 33762000 33762 false false false 4 true true false false -8827000 -8827 false false false xbrli:monetaryItemType monetary The change in equity [net assets] of a business enterprise during a period from transactions and other events and circumstances from non-owner sources which are attributable to the reporting entity. It includes all changes in equity during a period except those resulting from investments by owners and distributions to owners, but excludes any and all transactions which are directly or indirectly attributable to that ownership interest in subsidiary equity which is not attributable to the parent. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph A5 -Appendix A Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 30 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph c(3) Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 8, 9, 10, 11, 12, 13, 14 false 21 1 us-gaap_EarningsPerShareBasic us-gaap true na duration No definition available. false false false false false false false false false false false true 1 true true false false 0.08 0.08 false false false 2 true true false false -0.08 -0.08 false false false 3 true true false false 0.33 0.33 false false false 4 true true false false -0.08 -0.08 false false false us-types:perShareItemType decimal The amount of net income or loss for the period per each share of common stock outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 21 -Article 9 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 36, 37, 38 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 20 -Article 5 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 18 -Article 7 false 22 1 us-gaap_EarningsPerShareDiluted us-gaap true na duration No definition available. false false false false false false false false false false false true 1 true true false false 0.08 0.08 false false false 2 true true false false -0.08 -0.08 false false false 3 true true false false 0.32 0.32 false false false 4 true true false false -0.08 -0.08 false false false us-types:perShareItemType decimal The amount of net income or loss for the period per each share of common stock and dilutive common stock equivalents outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 11, 12, 36 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 20 -Article 5 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 18 -Article 7 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 21 -Article 9 false 4 20 false Thousands UnKnown NoRounding false true