v3.8.0.1

Acquisition and Divestitures Acquisition and Divestitures (Details) number in Thousands, $ in Millions |  |  |  | 3 Months Ended | 4 Months Ended | 9 Months Ended |  |
--- | --- | --- | --- | --- | --- | --- | --- | ---
Oct. 30, 2017 USD ($) | Jun. 28, 2017 USD ($) | Jan. 01, 2017 USD ($) | Dec. 31, 2017 USD ($) | Sep. 30, 2017 USD ($) | Sep. 30, 2017 USD ($) | Sep. 30, 2017 USD ($) | Sep. 30, 2016 USD ($) | Nov. 08, 2017 | Dec. 31, 2016 USD ($)
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Net Income (Loss), Including Portion Attributable to Noncontrolling Interest | [1] |  |  |  |  |  |  |  |  | $ 314 | [2] | $ 242 |  |  |
Goodwill |  |  |  |  |  | $ 861 | [3] | $ 861 | [3] | 861 | [3] |  |  |  | $ 117
Business Acquisition, Revenue |  |  |  |  |  |  |  |  |  |  |  | 1,100 |  |  |
Business Acquisition, Net Earnings |  |  |  |  |  |  |  |  |  |  |  | 277 |  |  |
Payments for (Proceeds from) Other Investing Activities |  |  | $ 28 |  |  |  |  |  |  | (46) | [2] | 4 | [2] |  |
(Gain) loss on asset disposals and impairments |  |  | $ 25 |  |  |  |  |  |  | 25 | [1] | (3) | [1] |  |
Proceeds from Lines of Credit | [2] |  |  |  |  |  |  |  |  | 319 |  | 761 |  |  |
North Dakota Gathering and Processing Assets [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Business Combination, Provisional Information, Initial Accounting Incomplete, Adjustment, Property, Plant, and Equipment |  |  |  |  |  |  |  |  |  | 31 |  |  |  |  |
Business Combination, Consideration Transferred |  |  |  | $ 705 |  |  |  |  |  |  |  |  |  |  |
Goodwill, Purchase Accounting Adjustments |  |  |  |  |  |  |  |  |  | 4 |  |  |  |  |
Business Combination, Provisional Information, Initial Accounting Incomplete, Adjustment, Intangibles |  |  |  |  |  |  |  |  |  | (32) |  |  |  |  |
Business Combination, Provisional Information, Initial Accounting Incomplete, Adjustment, Inventory |  |  |  |  |  |  |  |  |  | (3) |  |  |  |  |
Inventory |  |  |  |  |  | 2 |  | 2 |  | 2 |  |  |  |  |
Property, plant and equipment |  |  |  |  |  | 571 |  | 571 |  | 571 |  |  |  |  |
Intangibles | [4] |  |  |  |  | 122 |  | 122 |  | 122 |  |  |  |  |
Goodwill | [5] |  |  |  |  | 10 |  | 10 |  | 10 |  |  |  |  |
Total purchase price |  |  |  |  |  | 705 |  | 705 |  | $ 705 |  |  |  |  |
Acquired Finite-lived Intangible Assets, Weighted Average Useful Life |  |  |  |  |  |  |  |  |  | 10 years 7 months 6 days |  |  |  |  |
Amortization of Intangible Assets |  |  |  |  |  |  |  |  |  | $ 9 |  |  |  |  |
Business Acquisition, Revenue |  |  |  |  |  |  |  |  |  | 307 |  |  |  |  |
Business Acquisition, Net Earnings |  |  |  |  |  |  |  |  |  | 42 |  |  |  |  |
Subsequent Event | Anacortes Logistics Assets [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Business Combination, Consideration Transferred |  |  |  |  | $ 445 |  |  |  |  |  |  |  |  |  |
Storage Capacity |  |  |  |  |  |  |  |  |  |  |  |  |  | 3,900 |
Proceeds from Lines of Credit |  |  |  |  | 400 |  |  |  |  |  |  |  |  |  |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable |  |  |  |  | $ 45 |  |  |  |  |  |  |  |  |  |
Subsequent Event | Anacortes Marine Terminal [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Terminal Throughput Capacity, Barrels Per Day |  |  |  |  |  |  |  |  |  |  |  |  |  | 73 |
Subsequent Event | Anacortes Rail Facility Acquisition [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Terminal Throughput Capacity, Barrels Per Day |  |  |  |  |  |  |  |  |  |  |  |  |  | 4 |
Pipeline Throughput Capacity, Barrels per Day |  |  |  |  |  |  |  |  |  |  |  |  |  | 111 |
WNRL Merger |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Finite-Lived Intangible Assets, Amortization Expense, Next Twelve Months |  |  |  |  |  | 9 |  | 9 |  | 9 |  |  |  |  |
Finite-Lived Intangible Assets, Accumulated Amortization |  |  |  |  |  | 3 |  | 3 |  | 3 |  |  |  |  |
Business Combination, Separately Recognized Transactions, Additional Disclosures, Acquisition Cost Expensed |  |  |  |  |  | 9 |  |  |  | 9 |  |  |  |  |
Refining and Marketing Revenue |  |  |  |  |  |  |  | 834 |  |  |  |  |  |  |
Net Income (Loss), Including Portion Attributable to Noncontrolling Interest |  |  |  |  |  |  |  | 15 |  |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross |  |  |  |  |  | $ 130 |  | $ 130 |  | 130 |  |  |  |  |
Business Acquisition, Revenue |  |  |  |  |  |  |  |  |  | 3,148 |  | 2,515 |  |  |
Business Acquisition, Net Earnings |  |  |  |  |  |  |  |  |  | $ 349 |  | $ 245 |  |  |
WNRL Merger | Subsequent Event |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Finite-Lived Intangible Assets, Amortization Expense, Year Two |  | $ 9 |  |  |  |  |  |  |  |  |  |  |  |  |
Finite-Lived Intangible Assets, Amortization Expense, Year Three |  | 9 |  |  |  |  |  |  |  |  |  |  |  |  |
Finite-Lived Intangible Assets, Amortization Expense, Year Four |  | 36 |  |  |  |  |  |  |  |  |  |  |  |  |
Finite-Lived Intangible Assets, Amortization Expense, Year Five |  | 9 |  |  |  |  |  |  |  |  |  |  |  |  |
Inventory |  | 11 |  |  |  |  |  |  |  |  |  |  |  |  |
Property, plant and equipment | [6] | 1,301 |  |  |  |  |  |  |  |  |  |  |  |  |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles |  | 130 |  |  |  |  |  |  |  |  |  |  |  |  |
Goodwill |  | $ 734 |  |  |  |  |  |  |  |  |  |  |  |  |
Acquired Finite-lived Intangible Assets, Weighted Average Useful Life |  | 15 years |  |  |  |  |  |  |  |  |  |  |  |  |
Equity Issued in Business Combination, Fair Value Disclosure |  | $ 1,700 |  |  |  |  |  |  |  |  |  |  |  |  |
Business Combination, Recognized Identifiable Assets Acquired, Goodwill, and Liabilities Assumed, Less Noncontrolling Interest |  | 1,781 |  |  |  |  |  |  |  |  |  |  |  |  |
Terminalling and Transportation | WNRL Merger | Subsequent Event |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Goodwill |  | 357 |  |  |  |  |  |  |  |  |  |  |  |  |
Wholesale Segment [Member] | WNRL Merger | Subsequent Event |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Goodwill |  | 272 |  |  |  |  |  |  |  |  |  |  |  |  |
Other Affiliates [Member] | WNRL Merger | Subsequent Event |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Acquisition and Divestitures |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles |  | $ 130 |  |  |  |  |  |  |  |  |  |  |  |  |
[1] | Adjusted to include the historical results of the Predecessors. See Note 1 for further discussion.
[2] | Adjusted to include the historical results of the Predecessors. See Note 1 for further discussion.
[3] | (a)Adjusted to include the historical results of the Predecessors. See Note 1 for further discussion.
[4] | The intangibles consist of customer contracts with a weighted average amortization period of 10.6 years. Amortization of intangible assets for the nine months ended September 30, 2017 was $9 million.
[5] | We evaluated several factors that contributed to the amount of goodwill presented above. These factors include the geographic proximity of the acquired assets to existing assets owned by the Partnership along with the improved overall basin logistics efficiencies we can leverage.
[6] | (a)Estimated useful lives ranging from 3 to 22 years have been assumed based on the preliminary valuation.

X
- Definition Pipeline Throughput Capacity, Barrels per Day + References No definition available. + Details
Name: | andx_PipelineThroughputCapacityBarrelsperDay
Namespace Prefix: | andx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Storage Capacity + References No definition available. + Details
Name: | andx_StorageCapacity
Namespace Prefix: | andx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Terminal Throughput Capacity, Barrels Per Day + References No definition available. + Details
Name: | andx_TerminalThroughputCapacityBarrelsPerDay
Namespace Prefix: | andx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275 + Details
Name: | us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3602-108585 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_AmortizationOfIntangibleAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The pro forma net Income or Loss for the period as if the business combination or combinations had been completed at the beginning of a period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(2)-(3) -URI http://asc.fasb.org/extlink&oid=65885119&loc=d3e1392-128463 + Details
Name: | us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The pro forma revenue for a period as if the business combination or combinations had been completed at the beginning of the period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(2)-(3) -URI http://asc.fasb.org/extlink&oid=65885119&loc=d3e1392-128463 + Details
Name: | us-gaap_BusinessAcquisitionsProFormaRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=6911251&loc=d3e6578-128477 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=35744584&loc=d3e6927-128479 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6911251&loc=d3e6613-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferred1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=6911251&loc=d3e6578-128477 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6911251&loc=d3e6613-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to intangibles acquired in connection with a business combination for which the initial accounting was incomplete. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 4A -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=SL65897772-128472 + Details
Name: | us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to inventory acquired in connection with a business combination for which the initial accounting was incomplete. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 4A -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=SL65897772-128472 + Details
Name: | us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentInventory
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to property, plant, and equipment acquired in connection with a business combination for which the initial accounting was incomplete. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 4A -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=SL65897772-128472 + Details
Name: | us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentPropertyPlantAndEquipment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of intangible assets, excluding goodwill, acquired at the acquisition date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=d3e4845-128472 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of identifiable intangible assets recognized as of the acquisition date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 55 -Paragraph 37 -URI http://asc.fasb.org/extlink&oid=73531372&loc=d3e2207-128464 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=d3e4845-128472 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of inventory recognized as of the acquisition date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=d3e4845-128472 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 55 -Paragraph 37 -URI http://asc.fasb.org/extlink&oid=73531372&loc=d3e2207-128464 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of property, plant, and equipment recognized as of the acquisition date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=d3e4845-128472 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 55 -Paragraph 37 -URI http://asc.fasb.org/extlink&oid=73531372&loc=d3e2207-128464 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount recognized as of the acquisition date for the assets, including goodwill, in excess of (less than) the aggregate liabilities assumed, less the noncontrolling interest in the acquiree. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=d3e4845-128472 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedLessNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount recognized for assets, including goodwill, in excess of (less than) the aggregate liabilities assumed. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=73530397&loc=d3e4845-128472 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition For transactions that are recognized separately from the acquisition of assets and assumptions of liabilities in the business combination, such as related to pre-existing relationships with the acquiree, this element represents the disclosure of the amount of acquisition related costs which have been expensed. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=65885119&loc=d3e1392-128463 + Details
Name: | us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Fair value of equity issued in a business combination. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=66048111&loc=d3e19207-110258 + Details
Name: | us-gaap_EquityIssuedInBusinessCombinationFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized during the next fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized during the fifth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized during the fourth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized during the third fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized during the second fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of gain (loss) on sale or disposal of property, plant and equipment assets, including oil and gas property and timber property. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3602-108585 + Details
Name: | us-gaap_GainLossOnSaleOfPropertyPlantEquipment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=35741047&loc=d3e13816-109267 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6388280&loc=d3e13770-109266 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=64834752&loc=SL49117168-202975 + Details
Name: | us-gaap_Goodwill
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase (decrease) from adjustments after acquisition date under purchase accounting of an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 25 -Paragraph 16 -URI http://asc.fasb.org/extlink&oid=73531572&loc=d3e961-128460 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (g) -URI http://asc.fasb.org/extlink&oid=35741047&loc=d3e13816-109267 + Details
Name: | us-gaap_GoodwillPurchaseAccountingAdjustments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash (inflow) outflow from investing activities classified as other. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Investing Activities -URI http://asc.fasb.org/extlink&oid=6516133 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 9 -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3098-108585 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3095-108585 + Details
Name: | us-gaap_PaymentsForProceedsFromOtherInvestingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash inflow from contractual arrangement with the lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Financing Activities -URI http://asc.fasb.org/extlink&oid=6513228 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3255-108585 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(f)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_ProceedsFromLinesOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 55 -Paragraph 4K -URI http://asc.fasb.org/extlink&oid=65897068&loc=SL4591552-111686 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 19 -URI http://asc.fasb.org/extlink&oid=68079674&loc=SL4569616-111683 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (c)(1) -URI http://asc.fasb.org/extlink&oid=64809438&loc=SL4573702-111684 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 55 -Paragraph 4J -URI http://asc.fasb.org/extlink&oid=65897068&loc=SL4591551-111686 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=64809438&loc=SL4573702-111684 + Details
Name: | us-gaap_ProfitLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition 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. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 932 -SubTopic 235 -Section 50 -Paragraph 23 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=68064819&loc=d3e62136-109447 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 932 -SubTopic 235 -Section 50 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=68064819&loc=d3e62246-109447 + Details
Name: | us-gaap_RefiningAndMarketingRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=andx_WhitingAssetsDomain
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=andx_AnacortesLogisticsAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=andx_AnacortesMarineTerminalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=andx_AnacortesRailFacilityAcquisitionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=andx_WNRLMergerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=andx_TerminallingandTransportationSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=andx_WholesaleSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MajorCustomersAxis=us-gaap_OtherAffiliatesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |