{
 "instance": {
  "ns-20200930.htm": {
   "axisCustom": 2,
   "axisStandard": 26,
   "contextCount": 335,
   "dts": {
    "calculationLink": {
     "local": [
      "ns-20200930_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "ns-20200930_def.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-eedm-def-2020-01-31.xml",
      "http://xbrl.fasb.org/srt/2020/elts/srt-eedm1-def-2020-01-31.xml"
     ]
    },
    "inline": {
     "local": [
      "ns-20200930.htm"
     ]
    },
    "labelLink": {
     "local": [
      "ns-20200930_lab.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-doc-2020-01-31.xml",
      "http://xbrl.fasb.org/srt/2020/elts/srt-doc-2020-01-31.xml",
      "https://xbrl.sec.gov/dei/2020/dei-doc-2020-01-31.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "ns-20200930_pre.xml"
     ]
    },
    "referenceLink": {
     "remote": [
      "http://xbrl.fasb.org/srt/2020/elts/srt-ref-2020-01-31.xml",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-ref-2020-01-31.xml",
      "https://xbrl.sec.gov/dei/2020/dei-ref-2020-01-31.xml"
     ]
    },
    "schema": {
     "local": [
      "ns-20200930.xsd"
     ],
     "remote": [
      "http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd",
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-types-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-roles-2020-01-31.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-roles-2020-01-31.xsd",
      "https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-types-2020-01-31.xsd",
      "https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-parts-codification-2020-01-31.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd"
     ]
    }
   },
   "elementCount": 486,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2020-01-31": 10,
    "http://www.nustarenergy.com/20200930": 1,
    "http://xbrl.sec.gov/dei/2020-01-31": 5,
    "total": 16
   },
   "keyCustom": 44,
   "keyStandard": 307,
   "memberCustom": 43,
   "memberStandard": 34,
   "nsprefix": "ns",
   "nsuri": "http://www.nustarenergy.com/20200930",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "0001001 - Document - DEI Document",
     "role": "http://www.nustarenergy.com/role/DEIDocument",
     "shortName": "DEI Document",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2106103 - Disclosure - IMPAIRMENTS AND DISCONTINUED OPERATIONS",
     "role": "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONS",
     "shortName": "IMPAIRMENTS AND DISCONTINUED OPERATIONS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2111104 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS",
     "role": "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERS",
     "shortName": "REVENUE FROM CONTRACTS WITH CUSTOMERS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2117105 - Disclosure - DEBT",
     "role": "http://www.nustarenergy.com/role/DEBT",
     "shortName": "DEBT",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2123106 - Disclosure - COMMITMENTS AND CONTINGENCIES",
     "role": "http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIES",
     "shortName": "COMMITMENTS AND CONTINGENCIES",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativesAndFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2125107 - Disclosure - DERIVATIVES AND FAIR VALUE MEASUREMENTS",
     "role": "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTS",
     "shortName": "DERIVATIVES AND FAIR VALUE MEASUREMENTS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativesAndFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ns:MezzanineEquityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2131108 - Disclosure - SERIES D CUMULATIVE CONVERTIBLE PREFERRED UNITS",
     "role": "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITS",
     "shortName": "SERIES D CUMULATIVE CONVERTIBLE PREFERRED UNITS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ns:MezzanineEquityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PartnersCapitalNotesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2133109 - Disclosure - PARTNERS' EQUITY",
     "role": "http://www.nustarenergy.com/role/PARTNERSEQUITY",
     "shortName": "PARTNERS' EQUITY",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PartnersCapitalNotesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2139110 - Disclosure - NET (LOSS) INCOME PER COMMON UNIT",
     "role": "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNIT",
     "shortName": "NET (LOSS) INCOME PER COMMON UNIT",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2142111 - Disclosure - SUPPLEMENTAL CASH FLOW INFORMATION",
     "role": "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATION",
     "shortName": "SUPPLEMENTAL CASH FLOW INFORMATION",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2147112 - Disclosure - SEGMENT INFORMATION",
     "role": "http://www.nustarenergy.com/role/SEGMENTINFORMATION",
     "shortName": "SEGMENT INFORMATION",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1001002 - Statement - CONSOLIDATED BALANCE SHEETS",
     "role": "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
     "shortName": "CONSOLIDATED BALANCE SHEETS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AccountsReceivableNetCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:CondensedFinancialStatementsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2151113 - Disclosure - CONDENSED CONSOLIDATING FINANCIAL STATEMENTS",
     "role": "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTS",
     "shortName": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:CondensedFinancialStatementsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2157114 - Disclosure - SUBSEQUENT EVENTS",
     "role": "http://www.nustarenergy.com/role/SUBSEQUENTEVENTS",
     "shortName": "SUBSEQUENT EVENTS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ns:DiscontinuedOperationsSupplementalIncomeStatementDisclosuresTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2307301 - Disclosure - IMPAIRMENTS AND DISCONTINUED OPERATIONS (Tables)",
     "role": "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTables",
     "shortName": "IMPAIRMENTS AND DISCONTINUED OPERATIONS (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ns:DiscontinuedOperationsSupplementalIncomeStatementDisclosuresTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2312302 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)",
     "role": "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables",
     "shortName": "REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ns:ScheduleOfGoZoneBondsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2318303 - Disclosure - DEBT (Tables)",
     "role": "http://www.nustarenergy.com/role/DEBTTables",
     "shortName": "DEBT (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ns:ScheduleOfGoZoneBondsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2326304 - Disclosure - DERIVATIVES AND FAIR VALUE MEASUREMENTS (Tables)",
     "role": "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTables",
     "shortName": "DERIVATIVES AND FAIR VALUE MEASUREMENTS (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2334305 - Disclosure - PARTNERS' EQUITY (Tables)",
     "role": "http://www.nustarenergy.com/role/PARTNERSEQUITYTables",
     "shortName": "PARTNERS' EQUITY (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2340306 - Disclosure - NET (LOSS) INCOME PER COMMON UNIT (Tables)",
     "role": "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTables",
     "shortName": "NET (LOSS) INCOME PER COMMON UNIT (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashFlowOperatingCapitalTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2343307 - Disclosure - SUPPLEMENTAL CASH FLOW INFORMATION (Tables)",
     "role": "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTables",
     "shortName": "SUPPLEMENTAL CASH FLOW INFORMATION (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashFlowOperatingCapitalTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2348308 - Disclosure - SEGMENT INFORMATION (Tables)",
     "role": "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTables",
     "shortName": "SEGMENT INFORMATION (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TemporaryEquitySharesOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1002003 - Statement - CONSOLIDATED BALANCE SHEETS (parenthetical)",
     "role": "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
     "shortName": "CONSOLIDATED BALANCE SHEETS (parenthetical)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TemporaryEquitySharesOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2352309 - Disclosure - CONDENSED CONSOLIDATING FINANCIAL STATEMENTS (Tables)",
     "role": "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables",
     "shortName": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NumberOfReportableSegments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2402401 - Disclosure - ORGANIZATION AND BASIS OF PRESENTATION Narrative 1 (Details)",
     "role": "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details",
     "shortName": "ORGANIZATION AND BASIS OF PRESENTATION Narrative 1 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NumberOfReportableSegments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GainsLossesOnExtinguishmentOfDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2403402 - Disclosure - ORGANIZATION AND BASIS OF PRESENTATION Narrative 2 (Details)",
     "role": "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details",
     "shortName": "ORGANIZATION AND BASIS OF PRESENTATION Narrative 2 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillImpairmentLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2404403 - Disclosure - ORGANIZATION AND BASIS OF PRESENTATION Narrative 3 (Details)",
     "role": "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details",
     "shortName": "ORGANIZATION AND BASIS OF PRESENTATION Narrative 3 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "iad8e3e390073435f850d2aff013f643c_D20191015-20191015",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:UnusualOrInfrequentItemNatureOfEventOrTransaction",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillImpairmentLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2408404 - Disclosure - IMPAIRMENTS AND DISCONTINUED OPERATIONS Narrative (Details)",
     "role": "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
     "shortName": "IMPAIRMENTS AND DISCONTINUED OPERATIONS Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i48cb5d104b8d485c8551b57dfefdc40c_D20190401-20190630",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:OtherAssetImpairmentCharges",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ns:DiscontinuedOperationsSupplementalIncomeStatementDisclosuresTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i0d10781c943e473daf35aca37a4d4698_D20190701-20190930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationRevenue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2409405 - Disclosure - IMPAIRMENTS AND DISCONTINUED OPERATIONS Table 1 (Details)",
     "role": "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details",
     "shortName": "IMPAIRMENTS AND DISCONTINUED OPERATIONS Table 1 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ns:DiscontinuedOperationsSupplementalIncomeStatementDisclosuresTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i0d10781c943e473daf35aca37a4d4698_D20190701-20190930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationRevenue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillImpairmentLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2410406 - Disclosure - IMPAIRMENTS AND DISCONTINUED OPERATIONS Table 2 (Details)",
     "role": "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details",
     "shortName": "IMPAIRMENTS AND DISCONTINUED OPERATIONS Table 2 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i870789eadcf343679d4a9cc1a9f01ee4_D20190101-20190930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:CapitalExpenditureDiscontinuedOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ContractWithCustomerAssetNetNoncurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2413407 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS Table 1 - Contract Assets and Liabilities (Details)",
     "role": "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails",
     "shortName": "REVENUE FROM CONTRACTS WITH CUSTOMERS Table 1 - Contract Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ContractWithCustomerAssetNetNoncurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ContractWithCustomerLiabilityRevenueRecognized",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2414408 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS Narrative (Details)",
     "role": "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails",
     "shortName": "REVENUE FROM CONTRACTS WITH CUSTOMERS Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "if612a9483e5849ac9e084c84e208b784_D20190101-20190331",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:ContractWithCustomerLiabilityRevenueRecognized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueRemainingPerformanceObligation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2415409 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS Table 2 - Expected Timing of Satisfaction of Performance Obligations (Details)",
     "role": "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails",
     "shortName": "REVENUE FROM CONTRACTS WITH CUSTOMERS Table 2 - Expected Timing of Satisfaction of Performance Obligations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueRemainingPerformanceObligation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1003004 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)",
     "role": "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:DirectOperatingCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2416410 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS Table 3 - Disaggregation of Revenues (Details)",
     "role": "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
     "shortName": "REVENUE FROM CONTRACTS WITH CUSTOMERS Table 3 - Disaggregation of Revenues (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i22471efe2b974a41b465720b8a1f1420_D20200701-20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i6a4aea44672846218648d914bfc67642_D20200914-20200914",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromIssuanceOfOtherLongTermDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2419411 - Disclosure - DEBT Narrative 1 (Details)",
     "role": "http://www.nustarenergy.com/role/DEBTNarrative1Details",
     "shortName": "DEBT Narrative 1 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DebtInstrumentRedemptionDescription",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i92aa818d34e64895a35099d380c39d56_D20200101-20200930",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentRedemptionDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i82f235bea63c48c5b73ed151f4a5f0c0_I20200914",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DeferredFinanceCostsGross",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2420412 - Disclosure - DEBT Narrative 2 (Details)",
     "role": "http://www.nustarenergy.com/role/DEBTNarrative2Details",
     "shortName": "DEBT Narrative 2 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i901ec3791f0140fea0c1db450518a855_D20200916-20200916",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:GainsLossesOnExtinguishmentOfDebt",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ns:ScheduleOfGoZoneBondsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i2762551a038340b0a484337f7379bd05_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentIssuanceDate1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2421413 - Disclosure - DEBT GoZone Bonds Table (Details)",
     "role": "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
     "shortName": "DEBT GoZone Bonds Table (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ns:ScheduleOfGoZoneBondsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i2762551a038340b0a484337f7379bd05_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentIssuanceDate1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i34723facabd34918ab59aa1585b9fdd9_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2422414 - Disclosure - DEBT Narrative 3 (Details)",
     "role": "http://www.nustarenergy.com/role/DEBTNarrative3Details",
     "shortName": "DEBT Narrative 3 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i34723facabd34918ab59aa1585b9fdd9_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LossContingencyAccrualAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2424415 - Disclosure - COMMITMENTS AND CONTINGENCIES Narrative (Details)",
     "role": "http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIESNarrativeDetails",
     "shortName": "COMMITMENTS AND CONTINGENCIES Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LossContingencyAccrualAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i40a582ebf20a421890a0e51f447d9496_D20200601-20200630",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeCostOfHedgeNetOfCashReceived",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2427416 - Disclosure - DERIVATIVES AND FAIR VALUE MEASUREMENTS Narrative 1 (Details)",
     "role": "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
     "shortName": "DERIVATIVES AND FAIR VALUE MEASUREMENTS Narrative 1 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i40a582ebf20a421890a0e51f447d9496_D20200601-20200630",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeCostOfHedgeNetOfCashReceived",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ic68ed1b83a1e4e3dba4026354c2e4557_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2428417 - Disclosure - DERIVATIVES AND FAIR VALUE MEASUREMENTS Table 1 - Impact of Derivatives on Earnings (Details)",
     "role": "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails",
     "shortName": "DERIVATIVES AND FAIR VALUE MEASUREMENTS Table 1 - Impact of Derivatives on Earnings (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ic68ed1b83a1e4e3dba4026354c2e4557_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2429418 - Disclosure - DERIVATIVES AND FAIR VALUE MEASUREMENTS Narrative 2 (Details)",
     "role": "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
     "shortName": "DERIVATIVES AND FAIR VALUE MEASUREMENTS Narrative 2 (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2430419 - Disclosure - DERIVATIVES AND FAIR VALUE MEASUREMENTS Table 2 - Estimated Fair Values and Carrying Amounts of Long-Term Debt (Details)",
     "role": "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable2EstimatedFairValuesandCarryingAmountsofLongTermDebtDetails",
     "shortName": "DERIVATIVES AND FAIR VALUE MEASUREMENTS Table 2 - Estimated Fair Values and Carrying Amounts of Long-Term Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1004005 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "role": "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
     "shortName": "CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "ns:DepreciationDepletionAndAmortizationFromContinuingAndDiscontinuedOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ib0b094f032e54dcb9da9a409413fb69d_D20200101-20200930",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "ns:MinimumPerUnitCashDividendRequiredToPermitDividendInKind",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2432420 - Disclosure - SERIES D CUMULATIVE CONVERTIBLE PREFERRED UNITS Narrative (Details)",
     "role": "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails",
     "shortName": "SERIES D CUMULATIVE CONVERTIBLE PREFERRED UNITS Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ib0b094f032e54dcb9da9a409413fb69d_D20200101-20200930",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "ns:MinimumPerUnitCashDividendRequiredToPermitDividendInKind",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i6f3dc9575d024ca0b2017b83aa28c1ac_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockDividendRatePercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2435421 - Disclosure - PARTNERS' EQUITY Table 1 - Cash Distributions - Preferred Units (Details)",
     "role": "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
     "shortName": "PARTNERS' EQUITY Table 1 - Cash Distributions - Preferred Units (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i6f3dc9575d024ca0b2017b83aa28c1ac_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockDividendRatePercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "ns:PercentOfAvailableCashDistributed",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2436422 - Disclosure - PARTNERS' EQUITY Narrative (Details)",
     "role": "http://www.nustarenergy.com/role/PARTNERSEQUITYNarrativeDetails",
     "shortName": "PARTNERS' EQUITY Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "ns:PercentOfAvailableCashDistributed",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DistributionsMadeToLimitedPartnerByDistributionTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i7c81225a7c1a48e5af5a703ec517efef_D20200701-20200930",
      "decimals": "2",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2437423 - Disclosure - PARTNERS' EQUITY Table 2 - Cash Distributions Declared - Common Limited Partners (Details)",
     "role": "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails",
     "shortName": "PARTNERS' EQUITY Table 2 - Cash Distributions Declared - Common Limited Partners (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DistributionsMadeToLimitedPartnerByDistributionTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i7c81225a7c1a48e5af5a703ec517efef_D20200701-20200930",
      "decimals": "2",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i969185a1b9d444949fb5ee162c08cf60_I20191231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2438424 - Disclosure - PARTNERS' EQUITY Table 3 - Balance of and Changes in Accumulated Other Comprehensive Income (Loss) (Details)",
     "role": "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails",
     "shortName": "PARTNERS' EQUITY Table 3 - Balance of and Changes in Accumulated Other Comprehensive Income (Loss) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "if0778b3c5f15452287f447b7e52a285a_I20200630",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "srt:ScheduleOfCondensedIncomeStatementTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2441425 - Disclosure - NET (LOSS) INCOME PER COMMON UNIT Table - Net Income (Loss) per Common Unit (Details)",
     "role": "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails",
     "shortName": "NET (LOSS) INCOME PER COMMON UNIT Table - Net Income (Loss) per Common Unit (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "ns:PreferredLimitedPartnerDistribution",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:CashFlowOperatingCapitalTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncreaseDecreaseInAccountsReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2444426 - Disclosure - SUPPLEMENTAL CASH FLOW INFORMATION - Table 1 - Changes in Current Assets and Liabilities (Details)",
     "role": "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails",
     "shortName": "SUPPLEMENTAL CASH FLOW INFORMATION - Table 1 - Changes in Current Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:CashFlowOperatingCapitalTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncreaseDecreaseInAccountsReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestPaidNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2445427 - Disclosure - SUPPLEMENTAL CASH FLOW INFORMATION - Table 2 - Cash Flows Related to Interest and Income Taxes (Details)",
     "role": "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable2CashFlowsRelatedtoInterestandIncomeTaxesDetails",
     "shortName": "SUPPLEMENTAL CASH FLOW INFORMATION - Table 2 - Cash Flows Related to Interest and Income Taxes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestPaidNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2446428 - Disclosure - SUPPLEMENTAL CASH FLOW INFORMATION - Table 3 - Schedule of Cash, Cash Equivalents and Restricted Cash (Details)",
     "role": "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails",
     "shortName": "SUPPLEMENTAL CASH FLOW INFORMATION - Table 3 - Schedule of Cash, Cash Equivalents and Restricted Cash (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i1750693d6d4e4cd3a4eaad1de2b939f1_I20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2449429 - Disclosure - SEGMENT INFORMATION Table 1 - Results of Operations (Details)",
     "role": "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
     "shortName": "SEGMENT INFORMATION Table 1 - Results of Operations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i0d318d5013ba4223ba4949cc28819d35_D20200701-20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:OperatingIncomeLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ib6e554b983e1409ebbe17905e7960ac6_I20181231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PartnersCapital",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1005006 - Statement - CONSOLIDATED STATEMENTS OF PARTNERS' EQUITY AND MEZZANINE EQUITY",
     "role": "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
     "shortName": "CONSOLIDATED STATEMENTS OF PARTNERS' EQUITY AND MEZZANINE EQUITY",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i4fea19be229c4c2aa40aff985386e4a3_I20181231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:PartnersCapital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Assets",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2450430 - Disclosure - SEGMENT INFORMATION Table 2 - Assets by Reportable Segment (Details)",
     "role": "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails",
     "shortName": "SEGMENT INFORMATION Table 2 - Assets by Reportable Segment (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ReconciliationOfAssetsFromSegmentToConsolidatedTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ia4a0472b7a2144f084806c6ba0bcb2d7_I20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:Assets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest",
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ie73f80f17a524aab89af2b0813657e73_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2453431 - Disclosure - CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Narrative (Details)",
     "role": "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails",
     "shortName": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest",
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "ie73f80f17a524aab89af2b0813657e73_D20200101-20200930",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2454432 - Disclosure - CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 1 - Condensed Consolidating Balance Sheets (Details)",
     "role": "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
     "shortName": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 1 - Condensed Consolidating Balance Sheets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i96b404814d1e4d10a971983ea8af8646_I20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:ReceivablesNetCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2455433 - Disclosure - CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 2 - Condensed Consolidating Statements of Comprehensive Income (Details)",
     "role": "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
     "shortName": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 2 - Condensed Consolidating Statements of Comprehensive Income (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "srt:ScheduleOfCondensedIncomeStatementTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i99a09e4b37d1454484310e1621e4be5d_D20200701-20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromSubsidiariesBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetCashProvidedByUsedInOperatingActivities",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2456434 - Disclosure - CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 3 - Condensed Consolidating Statements of Cash Flows (Details)",
     "role": "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
     "shortName": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 3 - Condensed Consolidating Statements of Cash Flows (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i5810ecd39d41441bb13c3b8c0d5cd37c_D20190101-20190930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "ns:InvestmentInSubsidiaries",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "srt:ScheduleOfCondensedCashFlowStatementTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromSaleOfProductiveAssets",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2459435 - Disclosure - SUBSEQUENT EVENTS (Details)",
     "role": "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails",
     "shortName": "SUBSEQUENT EVENTS (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i95345479da9b42adb3e649eccba0e559_D20201101-20201101",
      "decimals": "0",
      "lang": "en-US",
      "name": "ns:NumberOfTerminals",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i7c81225a7c1a48e5af5a703ec517efef_D20200701-20200930",
      "decimals": "2",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DistributionMadeToLimitedPartnerDistributionsPaidPerUnit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1006007 - Statement - CONSOLIDATED STATEMENTS OF PARTNERS' EQUITY AND MEZZANINE EQUITY (Parenthetical)",
     "role": "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical",
     "shortName": "CONSOLIDATED STATEMENTS OF PARTNERS' EQUITY AND MEZZANINE EQUITY (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i7c81225a7c1a48e5af5a703ec517efef_D20200701-20200930",
      "decimals": "2",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DistributionMadeToLimitedPartnerDistributionsPaidPerUnit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2101101 - Disclosure - ORGANIZATION AND BASIS OF PRESENTATION",
     "role": "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATION",
     "shortName": "ORGANIZATION AND BASIS OF PRESENTATION",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2105102 - Disclosure - NEW ACCOUNTING PRONOUNCEMENTS",
     "role": "http://www.nustarenergy.com/role/NEWACCOUNTINGPRONOUNCEMENTS",
     "shortName": "NEW ACCOUNTING PRONOUNCEMENTS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ns-20200930.htm",
      "contextRef": "i36a11ed1dc174614a02781b5d81617fd_D20200101-20200930",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 84,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]",
        "terseLabel": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Document Information [Line Items]",
        "terseLabel": "Document Information [Line Items]"
       }
      }
     },
     "localname": "DocumentInformationLineItems",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_DocumentInformationTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package.",
        "label": "Document Information [Table]",
        "terseLabel": "Document Information [Table]"
       }
      }
     },
     "localname": "DocumentInformationTable",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The end date of the period reflected on the cover page if a periodic report. For all other reports and registration statements containing historical data, it is the date up through which that historical data is presented.  If there is no historical data in the report, use the filing date. The format of the date is YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r447"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an quarterly report.",
        "label": "Document Quarterly Report",
        "terseLabel": "Document Quarterly Report"
       }
      }
     },
     "localname": "DocumentQuarterlyReport",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r448"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Street"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "Entity Partnership Units Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]",
        "terseLabel": "Entity [Domain]"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r450"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Entity Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r445"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r446"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "ns_AmendedReceivablesFinancingAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "$125.0 million NuStar Energy L.P. and NuStar Finance LLC receivables financing agreement due 2021 [Member]",
        "label": "Amended Receivables Financing Agreement [Member]",
        "terseLabel": "Receivables Financing Agreement [Member]"
       }
      }
     },
     "localname": "AmendedReceivablesFinancingAgreementMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_AssetsHeldforSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assets of a component or group of components classified as held-for-sale and representing a strategic shift that has or will have a major effect on operations and financial results",
        "label": "Assets Held for Sale [Member]",
        "terseLabel": "Assets held for sale"
       }
      }
     },
     "localname": "AssetsHeldforSaleMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_BusinessInterruptionLossfromSelbyCaliforniaFireMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Business Interruption Loss from Selby, California Fire [Member]",
        "label": "Business Interruption Loss from Selby, California Fire [Member]",
        "terseLabel": "Business Interruption Loss from Selby, California Fire [Member]"
       }
      }
     },
     "localname": "BusinessInterruptionLossfromSelbyCaliforniaFireMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_ChangeinContractwithCustomerAssetTotal": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total change in contract with customer asset balance in the current period.",
        "label": "Change in Contract with Customer, Asset, Total",
        "totalLabel": "Total activity"
       }
      }
     },
     "localname": "ChangeinContractwithCustomerAssetTotal",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_ChangeinContractwithCustomerLiabilityTotal": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total change in contract with customer liability balance in the current period.",
        "label": "Change in Contract with Customer, Liability, Total",
        "negatedLabel": "Total activity"
       }
      }
     },
     "localname": "ChangeinContractwithCustomerLiabilityTotal",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_CommonLimitedPartnerDistribution": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails": {
       "order": 3.0,
       "parentTag": "ns_EpuDistributionsLessThanGreaterThanEarnings",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Distribution amount earned during the period allocated to the common limited partners.",
        "label": "Common Limited Partner Distribution",
        "negatedLabel": "Distributions to common limited partners",
        "verboseLabel": "Distributions to common limited partners"
       }
      }
     },
     "localname": "CommonLimitedPartnerDistribution",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_CommonLimitedPartnerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Partner with ownership interests in the issuer that is subordinate to the preferred limited partner.",
        "label": "Common Limited Partner [Member]",
        "terseLabel": "Common Limited Partner [Member]"
       }
      }
     },
     "localname": "CommonLimitedPartnerMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical",
      "http://www.nustarenergy.com/role/DEIDocument",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_CondensedConsolidatingFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Condensed Consolidating Financial Statements Abstract",
        "label": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS [Abstract]",
        "terseLabel": "CONDENSED CONSOLIDATING FINANCIAL STATEMENTS [Abstract]"
       }
      }
     },
     "localname": "CondensedConsolidatingFinancialStatementsAbstract",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "xbrltype": "stringItemType"
    },
    "ns_ContractWithCustomerAssetTransferToRevenues": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "ns_ChangeinContractwithCustomerAssetTotal",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contract with Customer, Asset, Transfer to Revenues",
        "label": "Contract with Customer, Asset, Transfer to Revenues",
        "negatedTerseLabel": "Transfer to revenues, including amounts reported in discontinued operations, contract assets"
       }
      }
     },
     "localname": "ContractWithCustomerAssetTransferToRevenues",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_ContractwithCustomerAssetAdditions": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "ns_ChangeinContractwithCustomerAssetTotal",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contract with Customer, Asset, Additions",
        "label": "Contract with Customer, Asset, Additions",
        "terseLabel": "Additions"
       }
      }
     },
     "localname": "ContractwithCustomerAssetAdditions",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_ContractwithCustomerLiabilityAdditions": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contract with Customer, Liability, Additions",
        "label": "Contract with Customer, Liability, Additions",
        "negatedTerseLabel": "Additions"
       }
      }
     },
     "localname": "ContractwithCustomerLiabilityAdditions",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_ContributionsFromDistributionsToAffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contributions from (distributions to) subsidiaries and/or parent",
        "label": "Contributions From Distributions To Affiliates",
        "terseLabel": "Contributions from (distributions to) affiliates"
       }
      }
     },
     "localname": "ContributionsFromDistributionsToAffiliates",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_CrudeOilPipelinesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Crude Oil Pipelines",
        "label": "Crude Oil Pipelines [Member]",
        "terseLabel": "Crude Oil Pipelines [Member]"
       }
      }
     },
     "localname": "CrudeOilPipelinesMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_DebtExtinguishmentCostsTypeAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt extinguishment Costs, type",
        "label": "Debt Extinguishment Costs, Type [Axis]",
        "terseLabel": "Debt Extinguishment Costs, Type [Axis]"
       }
      }
     },
     "localname": "DebtExtinguishmentCostsTypeAxis",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "ns_DebtExtinguishmentCostsTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt extinguishment costs, type",
        "label": "Debt Extinguishment Costs, Type [Domain]",
        "terseLabel": "Debt Extinguishment Costs, Type [Domain]"
       }
      }
     },
     "localname": "DebtExtinguishmentCostsTypeDomain",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_DepreciationDepletionAndAmortizationFromContinuingAndDiscontinuedOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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. Includes expense included in continuing and discontinued operations.",
        "label": "Depreciation, Depletion and Amortization, From Continuing and Discontinued Operations",
        "terseLabel": "Depreciation and amortization expense"
       }
      }
     },
     "localname": "DepreciationDepletionAndAmortizationFromContinuingAndDiscontinuedOperations",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_DerivativeNotionalAmountTerminated": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate notional amount that was terminated, specified by the derivative(s).",
        "label": "Derivative, Notional Amount, Terminated",
        "terseLabel": "Notional amount of forward-starting interest rate swaps terminated"
       }
      }
     },
     "localname": "DerivativeNotionalAmountTerminated",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_DescriptionOfAssetsSold": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of assets sold",
        "label": "Description of Assets Sold",
        "terseLabel": "Description of assets sold"
       }
      }
     },
     "localname": "DescriptionOfAssetsSold",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ns_DiscontinuedOperationsSelectedCashFlowInformationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discontinued Operations, Selected Cash Flow Information [Table Text Block]",
        "label": "Discontinued Operations, Selected Cash Flow Information [Table Text Block]",
        "verboseLabel": "Discontinued Operations, Selected Cash Flow Information"
       }
      }
     },
     "localname": "DiscontinuedOperationsSelectedCashFlowInformationTableTextBlock",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ns_DiscontinuedOperationsSupplementalIncomeStatementDisclosuresTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discontinued Operations, Supplemental Income Statement Disclosures [Table Text Block]",
        "label": "Discontinued Operations, Supplemental Income Statement Disclosures [Table Text Block]",
        "terseLabel": "Discontinued Operations, Supplemental Income Statement Disclosures [Table Text Block]"
       }
      }
     },
     "localname": "DiscontinuedOperationsSupplementalIncomeStatementDisclosuresTableTextBlock",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ns_DisposalGroupIncludingDiscontinuedOperationCostOfRevenues": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 1.0,
       "parentTag": "ns_DisposalGroupIncludingDiscontinuedOperationTotalExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cost of revenues attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "DisposalGroupIncludingDiscontinuedOperationCostOfRevenues",
        "terseLabel": "Cost of revenues"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationCostOfRevenues",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_DisposalGroupIncludingDiscontinuedOperationImpairmentLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 2.0,
       "parentTag": "ns_DisposalGroupIncludingDiscontinuedOperationTotalExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of impairment losses attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Impairment Losses",
        "terseLabel": "Impairment losses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationImpairmentLosses",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_DisposalGroupIncludingDiscontinuedOperationTotalExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 2.0,
       "parentTag": "us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of total expenses attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Total Expenses",
        "totalLabel": "Total costs and expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationTotalExpenses",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_DistributionPaymentDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Distribution payment date for distribution earned during the reporting period. Includes distributions to be paid to the limited partners.",
        "label": "Distribution payment date",
        "verboseLabel": "Distribution payment date"
       }
      }
     },
     "localname": "DistributionPaymentDate",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "ns_EPUCommonLimitedPartnerAllocation": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Allocation of distributed and undistributed earnings (loss) to the common limited partners in the EPU calculation.",
        "label": "EPU Common Limited Partner Allocation",
        "terseLabel": "Net (loss) income attributable to common units"
       }
      }
     },
     "localname": "EPUCommonLimitedPartnerAllocation",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_EarlyRepaymentPremiumsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Early repayment premiums",
        "label": "Early Repayment Premiums [Member]",
        "terseLabel": "Early repayment premiums [Member]"
       }
      }
     },
     "localname": "EarlyRepaymentPremiumsMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_EpuDistributionsLessThanGreaterThanEarnings": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Net income less general and limited partner distributions.",
        "label": "EPU Distributions Less Than Greater Than Earnings",
        "totalLabel": "Distributions in excess of loss"
       }
      }
     },
     "localname": "EpuDistributionsLessThanGreaterThanEarnings",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_EpuDistributionsLessThanGreaterThanEarningsAllocatedToLimitedPartners": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Distributions less than or (greater than) earnings, allocated to the limited partners.",
        "label": "EPU Distributions Less Than Greater Than Earnings Allocated to Limited Partners",
        "terseLabel": "Allocation of distributions in excess of loss"
       }
      }
     },
     "localname": "EpuDistributionsLessThanGreaterThanEarningsAllocatedToLimitedPartners",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_FuelsMarketingSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Segment of the business engaged in the marketing of products",
        "label": "Fuels Marketing Segment [Member]",
        "terseLabel": "Fuels Marketing Segment"
       }
      }
     },
     "localname": "FuelsMarketingSegmentMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_GoZoneBondsDueAugust2041Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "$75.0 million GoZone Bonds Due August 2041",
        "label": "GoZone Bonds Due August 2041 [Member]",
        "terseLabel": "GoZone Bonds Due August 2041"
       }
      }
     },
     "localname": "GoZoneBondsDueAugust2041Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_GoZoneBondsDueDecember2040Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "GoZone Bonds Due December 2040",
        "label": "GoZone Bonds Due December 2040 [Member]",
        "terseLabel": "GoZone Bonds Due December 2040"
       }
      }
     },
     "localname": "GoZoneBondsDueDecember2040Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_GoZoneBondsDueJuly2040Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "$100.0 million GoZone Bonds Due July 2040",
        "label": "GoZone Bonds Due July 2040 [Member]",
        "terseLabel": "GoZone Bonds Due July 2040"
       }
      }
     },
     "localname": "GoZoneBondsDueJuly2040Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_GoZoneBondsDueJune2038Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "$55.4 million GoZone Bonds Due June 2038",
        "label": "GoZone Bonds Due June 2038 [Member]",
        "terseLabel": "GoZone Bonds Due June 2038"
       }
      }
     },
     "localname": "GoZoneBondsDueJune2038Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_GoZoneBondsDueOctober2040Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "GoZone Bonds Due October 2040",
        "label": "GoZone Bonds Due October 2040 [Member]",
        "terseLabel": "GoZone Bonds Due October 2040"
       }
      }
     },
     "localname": "GoZoneBondsDueOctober2040Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_GozoneBondsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "GoZone Bonds [Member]",
        "label": "GoZone Bonds [Member]",
        "terseLabel": "GoZone Bonds [Member]"
       }
      }
     },
     "localname": "GozoneBondsMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_IncomeLossFromDiscontinuedOperationsNetOfTaxMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Income (Loss) from Discontinued Operations, Net of Tax",
        "label": "Income (Loss) from Discontinued Operations, Net of Tax [Member]",
        "terseLabel": "Income (Loss) from Discontinued Operations, Net of Tax [Member]"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) in accounts payable related to capital expenditures that have been incurred but not yet paid.",
        "label": "Increase (Decrease) in Accounts Payable Related to Capital Expenditures",
        "terseLabel": "Change in accounts payable related to capital expenditures"
       }
      }
     },
     "localname": "IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_IntercompanyPayable": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Payables between consolidated subsidiaries of the entity or between consolidated subsidiaries and the parent of the entity. These payables are eliminated when preparing consolidated financial statements.",
        "label": "Intercompany payable",
        "terseLabel": "Intercompany payable"
       }
      }
     },
     "localname": "IntercompanyPayable",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_IntercompanyReceivable": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Receivables between consolidated subsidiaries of the entity or between consolidated subsidiaries and the parent of the entity. These receivables are eliminated when preparing consolidated financial statements.",
        "label": "Intercompany Receivable",
        "terseLabel": "Intercompany receivable"
       }
      }
     },
     "localname": "IntercompanyReceivable",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_InterestRateSwapsInterestRateReceived": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest rate received under the terms of the interest rate swap agreements.",
        "label": "Interest Rate Swaps Interest Rate Received",
        "terseLabel": "Interest rate swaps, interest rate received"
       }
      }
     },
     "localname": "InterestRateSwapsInterestRateReceived",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details"
     ],
     "xbrltype": "stringItemType"
    },
    "ns_InvestmentInSubsidiaries": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments in subsidiaries",
        "label": "Investment in Subsidiaries",
        "terseLabel": "Investment in subsidiaries"
       }
      }
     },
     "localname": "InvestmentInSubsidiaries",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_InvestmentInWhollyOwnedSubsidiaries": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investment in Wholly Owned Subsidiaries",
        "label": "Investment in Wholly Owned Subsidiaries",
        "terseLabel": "Investment in wholly owned subsidiaries"
       }
      }
     },
     "localname": "InvestmentInWhollyOwnedSubsidiaries",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_LiabilitiesHeldforSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Liabilities of a component or group of components classified as held-for-sale and representing a strategic shift that has or will have a major effect on operations and financial results",
        "label": "Liabilities Held for Sale [Member]",
        "terseLabel": "Liabilities held for sale"
       }
      }
     },
     "localname": "LiabilitiesHeldforSaleMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_LogisticsNotesDue2020Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Logistics 4.80% Notes due September 2020",
        "label": "Logistics Notes due 2020 [Member]",
        "terseLabel": "Logistics Notes due 2020 [Member]"
       }
      }
     },
     "localname": "LogisticsNotesDue2020Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_LogisticsNotesDue2025Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Logistics 5.75% Notes due October 1, 2025",
        "label": "Logistics Notes due 2025 [Member]",
        "terseLabel": "Logistics Notes due 2025 [Member]"
       }
      }
     },
     "localname": "LogisticsNotesDue2025Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_LogisticsNotesDue2030Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Logistics 6.375% Notes due October 1, 2030",
        "label": "Logistics Notes due 2030 [Member]",
        "terseLabel": "Logistics Notes due 2030 [Member]"
       }
      }
     },
     "localname": "LogisticsNotesDue2030Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_LogisticsRevolvingCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Logistics' revolving credit agreement",
        "label": "Logistics' Revolving Credit Agreement [Member]",
        "terseLabel": "Revolving Credit Agreement [Member]"
       }
      }
     },
     "localname": "LogisticsRevolvingCreditAgreementMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_MezzanineEquityDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mezzanine Equity Disclosure [Text Block]",
        "label": "Mezzanine Equity Disclosure [Text Block]",
        "terseLabel": "SERIES D CUMULATIVE COVERTIBLE PREFERRED UNITS"
       }
      }
     },
     "localname": "MezzanineEquityDisclosureTextBlock",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITS"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ns_MinimumPerUnitCashDividendRequiredToPermitDividendInKind": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Minimum amount of per unit dividend to be paid in cash before in-kind dividend permitted",
        "label": "Minimum Per Unit Cash Dividend Required To Permit Dividend In Kind",
        "terseLabel": "Required amount of per unit cash dividends to permit dividend paid in kind"
       }
      }
     },
     "localname": "MinimumPerUnitCashDividendRequiredToPermitDividendInKind",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "ns_NetIncomeLossExcludingPortionAttributableToTemporaryEquity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, excluding amount attributable to temporary equity.",
        "label": "Net Income (Loss) Excluding Portion Attributable To Temporary Equity",
        "terseLabel": "Net income (loss) excluding portion attributable to temporary equity"
       }
      }
     },
     "localname": "NetIncomeLossExcludingPortionAttributableToTemporaryEquity",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_NetIntercompanyBorrowingsRepayments": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Net Intercompany Borrowings (Repayments)",
        "label": "Net Intercompany Borrowings Repayments",
        "terseLabel": "Net intercompany activity"
       }
      }
     },
     "localname": "NetIntercompanyBorrowingsRepayments",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_NumberOfTerminals": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of Terminals",
        "label": "Number of Terminals",
        "terseLabel": "Number of terminals"
       }
      }
     },
     "localname": "NumberOfTerminals",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "ns_NumberofDaysWithinWhichDistributionIsPaidToCommonUnitholders": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of days within which distribution must be paid to common unitholders after end of quarter (per the terms of the partnership agreement).",
        "label": "Number of Days Within Which Distribution Is Paid To Common Unitholders",
        "terseLabel": "Number of days within which distribution is paid to common unitholders"
       }
      }
     },
     "localname": "NumberofDaysWithinWhichDistributionIsPaidToCommonUnitholders",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "ns_NustarEnergyLpMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "NuStar Energy L.P. [Member]",
        "label": "NuStar Energy LP [Member]",
        "terseLabel": "NuStar Energy"
       }
      }
     },
     "localname": "NustarEnergyLpMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_NustarLogisticsLpMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "NuStar Logistics, L.P. [Member]",
        "label": "NuStar Logistics LP [Member]",
        "terseLabel": "NuStar Logistics"
       }
      }
     },
     "localname": "NustarLogisticsLpMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_NustarPipelineOperatingPartnershipLpMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "NuStar Pipeline Operating Partnership L.P. [Member]",
        "label": "NuStar Pipeline Operating Partnership LP [Member]",
        "terseLabel": "NuPOP"
       }
      }
     },
     "localname": "NustarPipelineOperatingPartnershipLpMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_OriginalIssueDiscount": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Original Issue Discount",
        "label": "Original Issue Discount",
        "terseLabel": "Long-term debt, original issue discount, rate"
       }
      }
     },
     "localname": "OriginalIssueDiscount",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "percentItemType"
    },
    "ns_ParentCompanyGuarantorMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The registrant that controls, directly or indirectly, another entity (or entities) and has guaranteed the issue of securities by one of its subsidiaries.",
        "label": "Parent Company Guarantor [Member]",
        "terseLabel": "Parent Company Guarantor [Member]"
       }
      }
     },
     "localname": "ParentCompanyGuarantorMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PartnersCapitalOtherIncludingTemporaryEquity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Partners' capital, other, including temporary equity",
        "label": "Partners' Capital, Other, Including Temporary Equity",
        "terseLabel": "Other, including temporary equity"
       }
      }
     },
     "localname": "PartnersCapitalOtherIncludingTemporaryEquity",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_PartnersCapitalandTemporaryEquity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Partners' capital and temporary equity",
        "label": "Partners' Capital and Temporary Equity",
        "periodEndLabel": "Partners' capital and temporary equity - ending balance",
        "periodStartLabel": "Partners' capital and temporary equity - beginning balance"
       }
      }
     },
     "localname": "PartnersCapitalandTemporaryEquity",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_PercentOfAvailableCashDistributed": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percent of available cash distributed to partners (per the terms of the partnership agreement).",
        "label": "Percent of Available Cash Distributed",
        "terseLabel": "Percent of available cash distributed"
       }
      }
     },
     "localname": "PercentOfAvailableCashDistributed",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "ns_PetroleosdeVenezuelaS.A.PDVSAMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Petroleos de Venezuela, S.A. (PDVSA) [Member]",
        "label": "Petroleos de Venezuela, S.A. (PDVSA) [Member]",
        "terseLabel": "Petroleos de Venezuela, S.A. (PDVSA) [Member]"
       }
      }
     },
     "localname": "PetroleosdeVenezuelaS.A.PDVSAMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PipelineSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Segment of the business engaged in the transportation of products",
        "label": "Pipeline Segment [Member]",
        "terseLabel": "Pipeline Segment"
       }
      }
     },
     "localname": "PipelineSegmentMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PreferredLimitedPartnerDistribution": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails": {
       "order": 2.0,
       "parentTag": "ns_EpuDistributionsLessThanGreaterThanEarnings",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Distribution amount earned during the period allocated to the preferred limited partners.",
        "label": "Preferred Limited Partner Distribution",
        "negatedTerseLabel": "Distributions to preferred limited partners"
       }
      }
     },
     "localname": "PreferredLimitedPartnerDistribution",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_PreferredLimitedPartnerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Partner with preferential rights over the common limited partner in areas that could include, but are not limited to, liquidation, redemption, conversion, tax status of distribution or sharing in distributions.",
        "label": "Preferred Limited Partner [Member]",
        "terseLabel": "Preferred Limited Partner [Member]"
       }
      }
     },
     "localname": "PreferredLimitedPartnerMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PreferredStockAccretionofRedemptionDiscountIncludingTemporaryEquity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Preferred Stock, Accretion of Redemption Discount, Including Temporary Equity",
        "label": "Preferred Stock, Accretion of Redemption Discount, Including Temporary Equity",
        "negatedTerseLabel": "Series D Preferred Unit accretion, total"
       }
      }
     },
     "localname": "PreferredStockAccretionofRedemptionDiscountIncludingTemporaryEquity",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_PreferredStockDistributionsPeriodDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "[Domain] for Information about timing of distributions.",
        "label": "Preferred Stock, Distributions, Period [Domain]",
        "terseLabel": "Preferred Stock, Distributions, Period [Domain]"
       }
      }
     },
     "localname": "PreferredStockDistributionsPeriodDomain",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information about timing of distributions.",
        "label": "Preferred Stock, Distributions, Period During Which Rate Is Effective [Axis]",
        "terseLabel": "Preferred Stock, Distributions, Period [Axis]"
       }
      }
     },
     "localname": "PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveAxis",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292018toJune282020Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Preferred Stock, Distributions, Period - June 29, 2018 to June 28, 2020.",
        "label": "Preferred Stock, Distributions, Period During Which Rate Is Effective - June 29, 2018 to June 28, 2020 [Member]",
        "terseLabel": "Preferred Stock, Distributions, Period - June 29, 2018 to June 28, 2020 [Member]"
       }
      }
     },
     "localname": "PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292018toJune282020Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292020toJune282023Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Preferred Stock, Distributions, Period - June 29, 2020 to June 28, 2023 [Member]",
        "label": "Preferred Stock, Distributions, Period During Which Rate Is Effective - June 29, 2020 to June 28, 2023 [Member]",
        "terseLabel": "Preferred Stock, Distributions, Period - June 29, 2020 to June 28, 2023 [Member]"
       }
      }
     },
     "localname": "PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292020toJune282023Member",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PreferredStockDistributionsPeriodPeriodDuringWhichRateIsEffectiveJune292023andthereafterMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Preferred Stock, Distributions, Period - June 29, 2023 and thereafter [Member]",
        "label": "Preferred Stock, Distributions, Period Period During Which Rate Is Effective - June 29, 2023 and thereafter [Member]",
        "terseLabel": "Preferred Stock, Distributions, Period - June 29, 2023 and thereafter [Member]"
       }
      }
     },
     "localname": "PreferredStockDistributionsPeriodPeriodDuringWhichRateIsEffectiveJune292023andthereafterMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_PreferredStockDividendAmountPerUnitPerDistributionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The dividend amount per unit on preferred stock for the distribution period.",
        "label": "Preferred Stock, Dividend Amount, Per Unit, Per Distribution Period",
        "terseLabel": "Preferred stock, dividend amount, per unit"
       }
      }
     },
     "localname": "PreferredStockDividendAmountPerUnitPerDistributionPeriod",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "ns_ProceedsFromPaymentsForOtherFinancingActivitiesCondensedFinancialStatements": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net cash proceeds from (payments for) other types of financing activities.",
        "label": "Proceeds From (Payments For) Other Financing Activities, Condensed Financial Statements",
        "terseLabel": "Other, net"
       }
      }
     },
     "localname": "ProceedsFromPaymentsForOtherFinancingActivitiesCondensedFinancialStatements",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds from (payments for) termination of interest rate swap agreements",
        "label": "Proceeds from (Payments for) Termination of Interest Rate Swaps",
        "negatedTerseLabel": "Payments for termination of interest rate swaps"
       }
      }
     },
     "localname": "ProceedsFromPaymentsForTerminationOfInterestRateSwaps",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_RefinedProductsandAmmoniaPipelinesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Refined products and ammonia pipelines",
        "label": "Refined Products and Ammonia Pipelines [Member]",
        "terseLabel": "Refined Products and Ammonia Pipelines [Member]"
       }
      }
     },
     "localname": "RefinedProductsandAmmoniaPipelinesMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_RepaymentOfDebtAndPaymentForExtinguishmentCosts": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Repayment of debt and payment for extinguishment costs: The cash outflow to repay long-term debt and the associated extinguishment costs.",
        "label": "Repayment of Debt and Payment for Extinguishment Costs",
        "negatedLabel": "Term Loan repayment, including the debt extinguishment costs"
       }
      }
     },
     "localname": "RepaymentOfDebtAndPaymentForExtinguishmentCosts",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_RepaymentOfTermLoanAndPaymentForExtinguishmentCosts": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Repayment of Term Loan and payment for extinguishment costs: The cash outflow to repay long-term debt and the associated extinguishment costs.",
        "label": "Repayment of Term Loan and Payment for Extinguishment Costs",
        "negatedLabel": "Term Loan repayment, including debt extinguishment costs"
       }
      }
     },
     "localname": "RepaymentOfTermLoanAndPaymentForExtinguishmentCosts",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_ScheduleOfGoZoneBondsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of GoZone bonds, including identification, terms, features and other information necessary to a fair presentation.",
        "label": "Schedule of GoZone Bonds [Table Text Block]",
        "terseLabel": "Schedule of GoZone Bonds"
       }
      }
     },
     "localname": "ScheduleOfGoZoneBondsTableTextBlock",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ns_SelbyCaliforniaFireMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Selby, California Fire [Member]",
        "label": "Selby, California Fire [Member]",
        "terseLabel": "Selby, California Fire [Member]"
       }
      }
     },
     "localname": "SelbyCaliforniaFireMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_SeriesAPreferredLimitedPartnerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Series A Preferred Limited Partner - Partner with preferential rights over the common limited partner in areas that could include, but are not limited to, liquidation, redemption, conversion, tax status of distribution or sharing in distributions.",
        "label": "Series A Preferred Limited Partner [Member]",
        "terseLabel": "Series A Preferred Limited Partner [Member]"
       }
      }
     },
     "localname": "SeriesAPreferredLimitedPartnerMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
      "http://www.nustarenergy.com/role/DEIDocument",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_SeriesBPreferredLimitedPartnerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Series B Preferred Limited Partner - Partner with preferential rights over the common limited partner in areas that could include, but are not limited to, liquidation, redemption, conversion, tax status of distribution or sharing in distributions.",
        "label": "Series B Preferred Limited Partner [Member]",
        "terseLabel": "Series B Preferred Limited Partner [Member]"
       }
      }
     },
     "localname": "SeriesBPreferredLimitedPartnerMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
      "http://www.nustarenergy.com/role/DEIDocument",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_SeriesCPreferredLimitedPartnerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Series C Preferred Limited Partner - Partner with preferential rights over the common limited partner in areas that could include, but are not limited to, liquidation, redemption, conversion, tax status of distribution or sharing in distributions.",
        "label": "Series C Preferred Limited Partner [Member]",
        "terseLabel": "Series C Preferred Limited Partner [Member]"
       }
      }
     },
     "localname": "SeriesCPreferredLimitedPartnerMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
      "http://www.nustarenergy.com/role/DEIDocument",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_SeriesDPreferredLimitedPartnerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Series D Preferred Limited Partner - Partner with preferential rights over the common limited partner in areas that could include, but are not limited to; liquidation, redemption, conversion, tax status of distribution of sharing in distributions.",
        "label": "Series D Preferred Limited Partner [Member]",
        "terseLabel": "Series D Preferred Limited Partner [Member]"
       }
      }
     },
     "localname": "SeriesDPreferredLimitedPartnerMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_SharebasedPaymentArrangementAmortization": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share-based Payment Arrangement, Amortization",
        "label": "Share-based Payment Arrangement, Amortization",
        "terseLabel": "Amortization of unit-based compensation"
       }
      }
     },
     "localname": "SharebasedPaymentArrangementAmortization",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ns_St.EustatiusBunkersMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "St. Eustatius Bunkers [Member]",
        "label": "St. Eustatius Bunkers [Member]",
        "terseLabel": "St. Eustatius Bunkers [Member]"
       }
      }
     },
     "localname": "St.EustatiusBunkersMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_StorageSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Storage Segment [Member]",
        "label": "Storage Segment [Member]",
        "terseLabel": "Storage Segment"
       }
      }
     },
     "localname": "StorageSegmentMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_StorageTerminalMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Storage Terminal",
        "label": "Storage Terminal [Member]",
        "terseLabel": "Storage Terminal [Member]"
       }
      }
     },
     "localname": "StorageTerminalMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_TexasCityTXOwnershipInterestMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Texas City, TX ownership interest",
        "label": "Texas City, TX Ownership Interest [Member]",
        "terseLabel": "Texas City, TX Ownership Interest [Member]"
       }
      }
     },
     "localname": "TexasCityTXOwnershipInterestMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_TheSt.EustatiusDispositionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The St. Eustatius Disposition [Member]",
        "label": "The St. Eustatius Disposition [Member]",
        "terseLabel": "The St. Eustatius Disposition [Member]"
       }
      }
     },
     "localname": "TheSt.EustatiusDispositionMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_ThroughputTerminalMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Throughput Terminal",
        "label": "Throughput Terminal [Member]",
        "terseLabel": "Throughput Terminal [Member]"
       }
      }
     },
     "localname": "ThroughputTerminalMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_UnamortizedDebtIssuanceCostsUnamortizedDiscountAndCommitmentFeeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unamortized debt issuance costs, unamortized discount, and commitment fee",
        "label": "Unamortized Debt Issuance Costs, Unamortized Discount, and Commitment Fee [Member]",
        "terseLabel": "Unamortized Debt Issuance Costs, Unamortized Discount, and Commitment Fee [Member]"
       }
      }
     },
     "localname": "UnamortizedDebtIssuanceCostsUnamortizedDiscountAndCommitmentFeeMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "ns_UnsecuredTermLoanCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unsecured Term Loan Credit Agreement due 2023 [Member]",
        "label": "Unsecured Term Loan Credit Agreement [Member]",
        "terseLabel": "Unsecured Term Loan Credit Agreement [Member]"
       }
      }
     },
     "localname": "UnsecuredTermLoanCreditAgreementMember",
     "nsuri": "http://www.nustarenergy.com/20200930",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CondensedFinancialStatementsCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Condensed Financial Statements, Captions [Line Items]",
        "terseLabel": "Condensed Financial Statements, Captions [Line Items]"
       }
      }
     },
     "localname": "CondensedFinancialStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedFinancialStatementsTextBlock": {
     "auth_ref": [
      "r453",
      "r454",
      "r457",
      "r458",
      "r459"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for condensed financial statements.",
        "label": "Condensed Financial Statements [Text Block]",
        "terseLabel": "Condensed Financial Statements"
       }
      }
     },
     "localname": "CondensedFinancialStatementsTextBlock",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTS"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r327",
      "r328",
      "r331",
      "r332",
      "r444",
      "r452"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by consolidated entity or group of entities.",
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities [Axis]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r327",
      "r328",
      "r331",
      "r332"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Entity or group of entities consolidated into reporting entity.",
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities [Domain]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidationEliminationsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Eliminating entries used in consolidating a parent entity and its subsidiaries.",
        "label": "Consolidation, Eliminations [Member]",
        "terseLabel": "Eliminations [Member]"
       }
      }
     },
     "localname": "ConsolidationEliminationsMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidationItemsAxis": {
     "auth_ref": [
      "r172",
      "r185",
      "r186",
      "r187",
      "r188",
      "r190",
      "r192",
      "r196"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by components, eliminations, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments.",
        "label": "Consolidation Items [Axis]",
        "terseLabel": "Consolidation Items [Axis]"
       }
      }
     },
     "localname": "ConsolidationItemsAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidationItemsDomain": {
     "auth_ref": [
      "r172",
      "r185",
      "r186",
      "r187",
      "r188",
      "r190",
      "r192",
      "r196"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components, elimination, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments.",
        "label": "Consolidation Items [Domain]",
        "terseLabel": "Consolidation Items [Domain]"
       }
      }
     },
     "localname": "ConsolidationItemsDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_GuarantorSubsidiariesMember": {
     "auth_ref": [
      "r240",
      "r455"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Entity owned or controlled by another entity which has guaranteed the issue of securities by another subsidiary of the parent or has guaranteed the issue of securities by the parent.",
        "label": "Guarantor Subsidiaries [Member]",
        "terseLabel": "Guarantor Subsidiaries [Member]"
       }
      }
     },
     "localname": "GuarantorSubsidiariesMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MajorCustomersAxis": {
     "auth_ref": [
      "r202",
      "r276",
      "r282",
      "r432"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by name or description of a single external customer or a group of external customers.",
        "label": "Customer [Axis]",
        "terseLabel": "Customer [Axis]"
       }
      }
     },
     "localname": "MajorCustomersAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r302",
      "r305",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r389",
      "r430",
      "r433"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Upper limit of the provided range.",
        "label": "Maximum [Member]",
        "terseLabel": "Maximum [Member]"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r302",
      "r305",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r389",
      "r430",
      "r433"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Lower limit of the provided range.",
        "label": "Minimum [Member]",
        "terseLabel": "Minimum [Member]"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_NameOfMajorCustomerDomain": {
     "auth_ref": [
      "r202",
      "r276",
      "r282",
      "r432"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Single external customer or group of external customers.",
        "label": "Customer [Domain]",
        "terseLabel": "Customer [Domain]"
       }
      }
     },
     "localname": "NameOfMajorCustomerDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_NonGuarantorSubsidiariesMember": {
     "auth_ref": [
      "r241",
      "r456"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Entity owned or controlled by another entity which has not guaranteed the issue of securities by another subsidiary of the parent or has not guaranteed the issue of securities by the parent.",
        "label": "Non-Guarantor Subsidiaries [Member]",
        "terseLabel": "Non-Guarantor Subsidiaries [Member]"
       }
      }
     },
     "localname": "NonGuarantorSubsidiariesMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_OwnershipAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "Ownership [Axis]",
        "terseLabel": "Ownership [Axis]"
       }
      }
     },
     "localname": "OwnershipAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_OwnershipDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "Ownership [Domain]",
        "terseLabel": "Ownership [Domain]"
       }
      }
     },
     "localname": "OwnershipDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r199",
      "r276",
      "r280",
      "r390",
      "r429",
      "r431"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by product and service, or group of similar products and similar services.",
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service [Axis]"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r199",
      "r276",
      "r280",
      "r390",
      "r429",
      "r431"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Product or service, or a group of similar products or similar services.",
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service [Domain]"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r292",
      "r302",
      "r305",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r389",
      "r430",
      "r433"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r292",
      "r302",
      "r305",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r389",
      "r430",
      "r433"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ReportableLegalEntitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Legal entities of the consolidated entity reporting separate financial information in the entity's financial statements.",
        "label": "Reportable Legal Entities [Member]",
        "terseLabel": "Reportable Legal Entities [Member]"
       }
      }
     },
     "localname": "ReportableLegalEntitiesMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioForecastMember": {
     "auth_ref": [
      "r303",
      "r451"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information reported for future period.",
        "label": "Forecast [Member]",
        "terseLabel": "Forecast [Member]"
       }
      }
     },
     "localname": "ScenarioForecastMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioUnspecifiedDomain": {
     "auth_ref": [
      "r303"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts.",
        "label": "Scenario [Domain]",
        "terseLabel": "Scenario [Domain]"
       }
      }
     },
     "localname": "ScenarioUnspecifiedDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScheduleOfCondensedBalanceSheetTableTextBlock": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of condensed balance sheet, including, but not limited to, balance sheets of consolidated entities and consolidation eliminations.",
        "label": "Condensed Balance Sheet [Table Text Block]",
        "terseLabel": "Condensed Balance Sheet"
       }
      }
     },
     "localname": "ScheduleOfCondensedBalanceSheetTableTextBlock",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_ScheduleOfCondensedCashFlowStatementTableTextBlock": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of condensed cash flow statement, including, but not limited to, cash flow statements of consolidated entities and consolidation eliminations.",
        "label": "Condensed Cash Flow Statement [Table Text Block]",
        "terseLabel": "Condensed Cash Flow Statement"
       }
      }
     },
     "localname": "ScheduleOfCondensedCashFlowStatementTableTextBlock",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_ScheduleOfCondensedFinancialStatementsTable": {
     "auth_ref": [
      "r132",
      "r323",
      "r453",
      "r461",
      "r462",
      "r463"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about condensed financial statements, including, but not limited to, the balance sheet, income statement, and statement of cash flows.",
        "label": "Condensed Financial Statements [Table]",
        "terseLabel": "Schedule of Condensed Financial Statements [Table]"
       }
      }
     },
     "localname": "ScheduleOfCondensedFinancialStatementsTable",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ScheduleOfCondensedIncomeStatementTableTextBlock": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of condensed income statement, including, but not limited to, income statements of consolidated entities and consolidation eliminations.",
        "label": "Condensed Income Statement [Table Text Block]",
        "terseLabel": "Condensed Income Statement"
       }
      }
     },
     "localname": "ScheduleOfCondensedIncomeStatementTableTextBlock",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_StatementScenarioAxis": {
     "auth_ref": [
      "r238",
      "r303",
      "r377"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts.",
        "label": "Scenario [Axis]",
        "terseLabel": "Statement, Scenario [Axis]"
       }
      }
     },
     "localname": "StatementScenarioAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SubsidiaryIssuerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A company controlled, directly or indirectly, by its parent, which has issued securities and those securities are guaranteed by its parent and another subsidiary of the parent.",
        "label": "Subsidiary Issuer [Member]",
        "terseLabel": "Subsidiary Issuer [Member]"
       }
      }
     },
     "localname": "SubsidiaryIssuerMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountsPayableCurrent": {
     "auth_ref": [
      "r54"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accounts Payable, Current",
        "terseLabel": "Accounts payable"
       }
      }
     },
     "localname": "AccountsPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableNetCurrent": {
     "auth_ref": [
      "r28",
      "r46",
      "r204",
      "r205"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current.",
        "label": "Accounts Receivable, after Allowance for Credit Loss, Current",
        "terseLabel": "Accounts receivable, net"
       }
      }
     },
     "localname": "AccountsReceivableNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent": {
     "auth_ref": [
      "r33",
      "r58",
      "r310"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable for real and property taxes. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrual for Taxes Other than Income Taxes, Current",
        "terseLabel": "Taxes other than income tax"
       }
      }
     },
     "localname": "AccrualForTaxesOtherThanIncomeTaxesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrent": {
     "auth_ref": [
      "r58"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrued Liabilities, Current",
        "terseLabel": "Accrued liabilities"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesMember": {
     "auth_ref": [
      "r58"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered.",
        "label": "Accrued Liabilities [Member]",
        "terseLabel": "Accrued liabilities"
       }
      }
     },
     "localname": "AccruedLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember": {
     "auth_ref": [
      "r76",
      "r80",
      "r81",
      "r330"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive (income) loss related to defined benefit plans attributable to the parent.",
        "label": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent [Member]",
        "terseLabel": "Pension and Other Postretirement Benefits"
       }
      }
     },
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r52",
      "r224"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services.",
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "negatedLabel": "Accumulated depreciation and amortization"
       }
      }
     },
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember": {
     "auth_ref": [
      "r80",
      "r88",
      "r329"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive income (loss) from gain (loss) of derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness, attributable to parent.",
        "label": "Accumulated Gain (Loss), Net, Cash Flow Hedge, Parent [Member]",
        "terseLabel": "Cash Flow Hedges"
       }
      }
     },
     "localname": "AccumulatedGainLossNetCashFlowHedgeParentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Line Items]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r47",
      "r78",
      "r79",
      "r80",
      "r418",
      "r438",
      "r441"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_PartnersCapital",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end. Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners. Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Accumulated other comprehensive loss"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "auth_ref": [
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r367"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss).",
        "label": "Accumulated Other Comprehensive Income (Loss) [Table]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Table]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r77",
      "r80",
      "r81",
      "r133",
      "r134",
      "r135",
      "r330",
      "r434",
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "AOCI [Member]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedTranslationAdjustmentMember": {
     "auth_ref": [
      "r74",
      "r80",
      "r81",
      "r330",
      "r362",
      "r363",
      "r364",
      "r365",
      "r367"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive income (loss) resulting from foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature, attributable to the parent.",
        "label": "Accumulated Foreign Currency Adjustment Attributable to Parent [Member]",
        "terseLabel": "Foreign Currency Translation"
       }
      }
     },
     "localname": "AccumulatedTranslationAdjustmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net loss to net cash provided by operating activities:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetImpairmentCharges": {
     "auth_ref": [
      "r122",
      "r221"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of write-down of assets recognized in the income statement. Includes, but is not limited to, losses from tangible assets, intangible assets and goodwill.",
        "label": "Asset Impairment Charges",
        "terseLabel": "Asset and goodwill impairment losses"
       }
      }
     },
     "localname": "AssetImpairmentCharges",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r129",
      "r180",
      "r187",
      "r194",
      "r207",
      "r327",
      "r331",
      "r359",
      "r397",
      "r414"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "terseLabel": "Total assets",
        "totalLabel": "Total assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsCurrent": {
     "auth_ref": [
      "r30",
      "r32",
      "r71",
      "r129",
      "r207",
      "r327",
      "r331",
      "r359"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold, or consumed within one year (or the normal operating cycle, if longer). Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Current",
        "totalLabel": "Total current assets"
       }
      }
     },
     "localname": "AssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Assets, Current [Abstract]",
        "terseLabel": "Current assets:"
       }
      }
     },
     "localname": "AssetsCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails",
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r338",
      "r342"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails",
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessInterruptionLossAxis": {
     "auth_ref": [
      "r106"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by business interruption loss.",
        "label": "Business Interruption Loss [Axis]",
        "terseLabel": "Business Interruption Loss [Axis]"
       }
      }
     },
     "localname": "BusinessInterruptionLossAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessInterruptionLossDomain": {
     "auth_ref": [
      "r106"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type or name of business interruption loss.",
        "label": "Business Interruption Loss [Domain]",
        "terseLabel": "Business Interruption Loss [Domain]"
       }
      }
     },
     "localname": "BusinessInterruptionLossDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CapitalExpenditureDiscontinuedOperations": {
     "auth_ref": [
      "r18"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of capital expenditure attributable to discontinued operations.",
        "label": "Capital Expenditure, Discontinued Operations",
        "negatedLabel": "Capital expenditures"
       }
      }
     },
     "localname": "CapitalExpenditureDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r26",
      "r50",
      "r124"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash and Cash Equivalents [Member]",
        "terseLabel": "Cash and cash equivalents [Member]"
       }
      }
     },
     "localname": "CashAndCashEquivalentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r118",
      "r124",
      "r126"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
        "periodEndLabel": "Cash, cash equivalents and restricted cash as of the end of the period",
        "periodStartLabel": "Cash, cash equivalents and restricted cash as of the beginning of the period",
        "terseLabel": "Cash, cash equivalents and restricted cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r118",
      "r360"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "terseLabel": "Net increase (decrease) in cash, cash equivalents and restricted cash",
        "totalLabel": "Net increase (decrease) in cash, cash equivalents and restricted cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowHedgingMember": {
     "auth_ref": [
      "r336"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Hedge of the exposure to variability in the cash flows of a recognized asset or liability, or of a forecasted transaction, that is attributable to a particular risk.",
        "label": "Cash Flow Hedging [Member]",
        "terseLabel": "Cash Flow Hedges"
       }
      }
     },
     "localname": "CashFlowHedgingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashFlowOperatingCapitalTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the net increase (decrease) in operating capital in the operating section of the statement of cash flows, represents the entire footnote disclosure that provides details regarding the net change during the reporting period of all assets and liabilities used in operating activities.",
        "label": "Cash Flow, Operating Capital [Table Text Block]",
        "terseLabel": "Schedule of Changes in Current Assets and Liabilities [Table Text Block]"
       }
      }
     },
     "localname": "CashFlowOperatingCapitalTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashFlowSupplementalDisclosuresTextBlock": {
     "auth_ref": [
      "r127"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for supplemental cash flow activities, including cash, noncash, and part noncash transactions, for the period. Noncash is defined as information about all investing and financing activities of an enterprise during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period.",
        "label": "Cash Flow, Supplemental Disclosures [Text Block]",
        "terseLabel": "Cash Flow, Supplemental Disclosures"
       }
      }
     },
     "localname": "CashFlowSupplementalDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATION"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ClassOfStockDomain": {
     "auth_ref": [
      "r128",
      "r129",
      "r152",
      "r153",
      "r154",
      "r156",
      "r157",
      "r164",
      "r165",
      "r166",
      "r207",
      "r359"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock.",
        "label": "Class of Stock [Domain]",
        "terseLabel": "Class of Stock [Domain]"
       }
      }
     },
     "localname": "ClassOfStockDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfStockLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Class of Stock [Line Items]",
        "terseLabel": "Class of Stock [Line Items]"
       }
      }
     },
     "localname": "ClassOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r67",
      "r237",
      "r401",
      "r422"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingencies (Note 6)"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]",
        "terseLabel": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r234",
      "r235",
      "r236",
      "r239"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "COMMITMENTS AND CONTINGENCIES"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIES"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r84",
      "r86",
      "r87",
      "r94",
      "r405",
      "r426"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "terseLabel": "Comprehensive (loss) income",
        "verboseLabel": "Comprehensive income (loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerAssetAndLiabilityTableTextBlock": {
     "auth_ref": [
      "r265"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of receivable, contract asset, and contract liability from contract with customer. Includes, but is not limited to, change in contract asset and contract liability.",
        "label": "Contract with Customer, Contract Asset, Contract Liability, and Receivable [Table Text Block]",
        "terseLabel": "Contract with Customer, Asset and Liability [Table Text Block]"
       }
      }
     },
     "localname": "ContractWithCustomerAssetAndLiabilityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ContractWithCustomerAssetNet": {
     "auth_ref": [
      "r261",
      "r263",
      "r277"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time.",
        "label": "Contract with Customer, Asset, after Allowance for Credit Loss",
        "verboseLabel": "Total"
       }
      }
     },
     "localname": "ContractWithCustomerAssetNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerAssetNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Contract with Customer, Asset, after Allowance for Credit Loss [Abstract]",
        "terseLabel": "Contract assets"
       }
      }
     },
     "localname": "ContractWithCustomerAssetNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ContractWithCustomerAssetNetCurrent": {
     "auth_ref": [
      "r261",
      "r263",
      "r277"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time, classified as current.",
        "label": "Contract with Customer, Asset, after Allowance for Credit Loss, Current",
        "verboseLabel": "Current portion/Held for sale"
       }
      }
     },
     "localname": "ContractWithCustomerAssetNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerAssetNetNoncurrent": {
     "auth_ref": [
      "r261",
      "r263",
      "r277"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time, classified as noncurrent.",
        "label": "Contract with Customer, Asset, after Allowance for Credit Loss, Noncurrent",
        "verboseLabel": "Noncurrent portion"
       }
      }
     },
     "localname": "ContractWithCustomerAssetNetNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerAssetReclassifiedToReceivable": {
     "auth_ref": [
      "r264"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "ns_ChangeinContractwithCustomerAssetTotal",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of decrease in right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time from transfer to receivable due to right to consideration becoming unconditional.",
        "label": "Contract with Customer, Asset, Reclassified to Receivable",
        "negatedTerseLabel": "Transfer to accounts receivable"
       }
      }
     },
     "localname": "ContractWithCustomerAssetReclassifiedToReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerLiability": {
     "auth_ref": [
      "r261",
      "r262",
      "r277"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable.",
        "label": "Contract with Customer, Liability",
        "negatedLabel": "Total"
       }
      }
     },
     "localname": "ContractWithCustomerLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerLiabilityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Contract with Customer, Liability [Abstract]",
        "terseLabel": "Contract liabilities"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ContractWithCustomerLiabilityCurrent": {
     "auth_ref": [
      "r261",
      "r262",
      "r277"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable, classified as current.",
        "label": "Contract with Customer, Liability, Current",
        "negatedTerseLabel": "Current portion/Held for sale"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerLiabilityNoncurrent": {
     "auth_ref": [
      "r261",
      "r262",
      "r277"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable, classified as noncurrent.",
        "label": "Contract with Customer, Liability, Noncurrent",
        "negatedTerseLabel": "Noncurrent portion"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerLiabilityRevenueRecognized": {
     "auth_ref": [
      "r278"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of revenue recognized that was previously included in balance of obligation to transfer good or service to customer for which consideration from customer has been received or is due.",
        "label": "Contract with Customer, Liability, Revenue Recognized",
        "terseLabel": "Revenue recognized",
        "verboseLabel": "Transfer to revenues, including amounts reported in discontinued operations, contract liabilities"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityRevenueRecognized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CorporateNonSegmentMember": {
     "auth_ref": [
      "r185",
      "r186",
      "r187",
      "r188",
      "r190",
      "r196",
      "r198"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Corporate headquarters or functional department that may not earn revenues or may earn revenues that are only incidental to the activities of the entity and is not considered an operating segment.",
        "label": "Corporate, Non-Segment [Member]",
        "terseLabel": "Other partnership assets",
        "verboseLabel": "Consolidation and intersegment eliminations"
       }
      }
     },
     "localname": "CorporateNonSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CostOfGoodsAndServicesSold": {
     "auth_ref": [
      "r98",
      "r390"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 1.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate costs related to goods produced and sold and services rendered by an entity during the reporting period. This excludes costs incurred during the reporting period related to financial services rendered and other revenue generating activities.",
        "label": "Cost of Goods and Services Sold",
        "terseLabel": "Total costs associated with service revenues/Cost of product sales"
       }
      }
     },
     "localname": "CostOfGoodsAndServicesSold",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostOfGoodsAndServicesSoldDepreciationAndAmortization": {
     "auth_ref": [
      "r95"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense for allocation of cost of tangible and intangible assets over their useful lives directly used in production of good and rendering of service.",
        "label": "Cost, Depreciation and Amortization",
        "terseLabel": "Depreciation and amortization expense"
       }
      }
     },
     "localname": "CostOfGoodsAndServicesSoldDepreciationAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostsAndExpenses": {
     "auth_ref": [
      "r96"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total costs of sales and operating expenses for the period.",
        "label": "Costs and Expenses",
        "terseLabel": "Costs and expenses",
        "totalLabel": "Costs and expenses"
       }
      }
     },
     "localname": "CostsAndExpenses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostsAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Costs and Expenses [Abstract]",
        "terseLabel": "Costs and expenses:"
       }
      }
     },
     "localname": "CostsAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Disclosure [Abstract]",
        "terseLabel": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r246"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "terseLabel": "DEBT"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBT"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r39",
      "r40",
      "r41",
      "r398",
      "r399",
      "r413"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/DEBTNarrative3Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "auth_ref": [
      "r41",
      "r242",
      "r399",
      "r413"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt.",
        "label": "Long-term Debt, Gross",
        "terseLabel": "Long-term debt"
       }
      }
     },
     "localname": "DebtInstrumentCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/DEBTNarrative3Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentCollateralAmount": {
     "auth_ref": [
      "r410"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of assets pledged to secure a debt instrument.",
        "label": "Debt Instrument, Collateral Amount",
        "terseLabel": "Debt instrument, collateral amount"
       }
      }
     },
     "localname": "DebtInstrumentCollateralAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentDescription": {
     "auth_ref": [
      "r39",
      "r41",
      "r251",
      "r398",
      "r399",
      "r408",
      "r413"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identification of the lender and information about a contractual promise to repay a short-term or long-term obligation, which includes borrowings under lines of credit, notes payable, commercial paper, bonds payable, debentures, and other contractual obligations for payment. This may include rationale for entering into the arrangement, significant terms of the arrangement, which may include amount, repayment terms, priority, collateral required, debt covenants, borrowing capacity, call features, participation rights, conversion provisions, sinking-fund requirements, voting rights, basis for conversion if convertible and remarketing provisions. The description may be provided for individual debt instruments, rational groupings of debt instruments, or by debt in total.",
        "label": "Debt Instrument, Description",
        "terseLabel": "Debt instrument, description"
       }
      }
     },
     "localname": "DebtInstrumentDescription",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentFairValue": {
     "auth_ref": [
      "r358"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable.",
        "label": "Debt Instrument, Fair Value Disclosure",
        "terseLabel": "Fair value, long-term debt"
       }
      }
     },
     "localname": "DebtInstrumentFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable2EstimatedFairValuesandCarryingAmountsofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r60"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Long-term debt, rate"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentIssuanceDate1": {
     "auth_ref": [
      "r63"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date the debt instrument was issued, in CCYY-MM-DD format.",
        "label": "Debt Instrument, Issuance Date",
        "terseLabel": "Debt instrument, issuance date"
       }
      }
     },
     "localname": "DebtInstrumentIssuanceDate1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/DEBTNarrative3Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "auth_ref": [
      "r61",
      "r356"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in CCYY-MM-DD format.",
        "label": "Debt Instrument, Maturity Date",
        "terseLabel": "Debt instrument, maturity date"
       }
      }
     },
     "localname": "DebtInstrumentMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r65"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/DEBTNarrative3Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentPaymentTerms": {
     "auth_ref": [
      "r62",
      "r409"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the payment terms of the debt instrument (for example, whether periodic payments include principal and frequency of payments) and discussion about any contingencies associated with the payment.",
        "label": "Debt Instrument, Payment Terms",
        "terseLabel": "Debt instrument, payment terms"
       }
      }
     },
     "localname": "DebtInstrumentPaymentTerms",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentRedemptionDescription": {
     "auth_ref": [
      "r411"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Description",
        "terseLabel": "Debt instrument, redemption, description"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionDescription",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative1Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r65",
      "r131",
      "r251",
      "r254",
      "r255",
      "r256",
      "r369",
      "r370",
      "r372",
      "r412"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-term Debt Instruments [Table]",
        "terseLabel": "Schedule of Long-term Debt Instruments [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails",
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/DEBTNarrative3Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscount": {
     "auth_ref": [
      "r369",
      "r372"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of debt discount.",
        "label": "Debt Instrument, Unamortized Discount",
        "terseLabel": "Long-term debt, original issue discount"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount": {
     "auth_ref": [
      "r64"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unused borrowing capacity under the long-term financing arrangement that is available to the entity as of the balance sheet date.",
        "label": "Debt Instrument, Unused Borrowing Capacity, Amount",
        "terseLabel": "Debt instrument, unused borrowing capacity, amount"
       }
      }
     },
     "localname": "DebtInstrumentUnusedBorrowingCapacityAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtWeightedAverageInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average interest rate of debt outstanding.",
        "label": "Debt, Weighted Average Interest Rate",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "DebtWeightedAverageInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DeferredFinanceCostsGross": {
     "auth_ref": [
      "r371"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs.",
        "label": "Debt Issuance Costs, Gross",
        "terseLabel": "Long-term debt, issuance costs"
       }
      }
     },
     "localname": "DeferredFinanceCostsGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilitiesNet": {
     "auth_ref": [
      "r311",
      "r312"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting.",
        "label": "Deferred Income Tax Liabilities, Net",
        "terseLabel": "Deferred income tax liability"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAndAmortizationDiscontinuedOperations": {
     "auth_ref": [
      "r18",
      "r122"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of deprecation and amortization expense attributable to property, plant and equipment and intangible assets of discontinued operations.",
        "label": "Depreciation and Amortization, Discontinued Operations",
        "terseLabel": "Depreciation and amortization expense"
       }
      }
     },
     "localname": "DepreciationAndAmortizationDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract [Domain]"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeCostOfHedgeNetOfCashReceived": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The premium (cost) of a hedge, net of any cash received on settlement during the period.",
        "label": "Derivative, Cost of Hedge Net of Cash Received",
        "terseLabel": "Cash paid from termination of interest rate swaps"
       }
      }
     },
     "localname": "DerivativeCostOfHedgeNetOfCashReceived",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "auth_ref": [
      "r72",
      "r73",
      "r340",
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Derivative Liability, Fair Value, Gross Liability",
        "negatedTerseLabel": "Liability derivatives"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFixedInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fixed interest rate related to the interest rate derivative.",
        "label": "Derivative, Fixed Interest Rate",
        "terseLabel": "Interest rate swaps, interest rate paid"
       }
      }
     },
     "localname": "DerivativeFixedInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r339",
      "r341",
      "r344",
      "r347"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "auth_ref": [
      "r337",
      "r339",
      "r344"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of hedging relationship.",
        "label": "Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable": {
     "auth_ref": [
      "r337",
      "r339",
      "r344",
      "r347",
      "r348",
      "r350",
      "r351"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Derivative Instruments, Gain (Loss) [Table]",
        "terseLabel": "Derivative Instruments, Gain (Loss) by Hedging Relationship, by Income Statement Location, by Derivative Instrument Risk [Table]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Derivative Instruments, Gain (Loss) [Line Items]",
        "terseLabel": "Derivative Instruments, Gain (Loss) [Line Items]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet": {
     "auth_ref": [
      "r343",
      "r346"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The effective portion of net gain (loss) reclassified from accumulated other comprehensive income into income on derivative instruments designated and qualifying as hedging instruments.",
        "label": "Derivative Instruments, Gain (Loss) Reclassified from Accumulated OCI into Income, Effective Portion, Net",
        "terseLabel": "Gain (loss)\u00a0reclassified from AOCI into\u00a0interest expense, net"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeNotionalAmount": {
     "auth_ref": [
      "r334",
      "r335"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payment on derivative.",
        "label": "Derivative, Notional Amount",
        "terseLabel": "Notional amount of forward-starting interest rate swaps"
       }
      }
     },
     "localname": "DerivativeNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativesAndFairValueTextBlock": {
     "auth_ref": [
      "r354",
      "r357"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for derivatives and fair value of assets and liabilities.",
        "label": "Derivatives and Fair Value [Text Block]",
        "terseLabel": "DERIVATIVES AND FAIR VALUE MEASUREMENTS"
       }
      }
     },
     "localname": "DerivativesAndFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTS"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "auth_ref": [
      "r337"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative instrument designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Designated as Hedging Instrument [Member]",
        "terseLabel": "Designated as Hedging Instruments"
       }
      }
     },
     "localname": "DesignatedAsHedgingInstrumentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DirectOperatingCosts": {
     "auth_ref": [
      "r99"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate direct operating costs incurred during the reporting period.",
        "label": "Direct Operating Costs",
        "terseLabel": "Operating expenses (excluding depreciation and amortization expense)"
       }
      }
     },
     "localname": "DirectOperatingCosts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisaggregationOfRevenueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Disaggregation of Revenue [Line Items]",
        "terseLabel": "Disaggregation of Revenue [Line Items]"
       }
      }
     },
     "localname": "DisaggregationOfRevenueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisaggregationOfRevenueTable": {
     "auth_ref": [
      "r276",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor.",
        "label": "Disaggregation of Revenue [Table]",
        "terseLabel": "Disaggregation of Revenue [Table]"
       }
      }
     },
     "localname": "DisaggregationOfRevenueTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisaggregationOfRevenueTableTextBlock": {
     "auth_ref": [
      "r276"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor.",
        "label": "Disaggregation of Revenue [Table Text Block]",
        "terseLabel": "Disaggregation of Revenue [Table Text Block]"
       }
      }
     },
     "localname": "DisaggregationOfRevenueTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax": {
     "auth_ref": [
      "r4",
      "r5",
      "r6",
      "r7",
      "r8",
      "r16",
      "r91",
      "r423"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of income (loss) from a discontinued operation. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal.",
        "label": "Discontinued Operation, Income (Loss) from Discontinued Operation, before Income Tax",
        "totalLabel": "(Loss) income from discontinued operations before income tax expense"
       }
      }
     },
     "localname": "DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationProvisionForLossGainOnDisposalNetOfTax": {
     "auth_ref": [
      "r4",
      "r6",
      "r8",
      "r20"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of (gain) loss recognized for the (reversal of write-down) write-down to fair value, less cost to sell, of a discontinued operation.",
        "label": "Discontinued Operation, Provision for Loss (Gain) on Disposal, Net of Tax",
        "terseLabel": "Loss from sale of the St. Eustatius Operations"
       }
      }
     },
     "localname": "DiscontinuedOperationProvisionForLossGainOnDisposalNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation": {
     "auth_ref": [
      "r5",
      "r6",
      "r7",
      "r8",
      "r16",
      "r20",
      "r313",
      "r319",
      "r321"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) related to a discontinued operation. Includes, but is not limited to, tax expense (benefit) related to income (loss) from operations during the phase-out period, tax expense (benefit) related to gain (loss) on disposal, tax expense (benefit) related to gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and tax expense (benefit) related to adjustments of a prior period gain (loss) on disposal.",
        "label": "Discontinued Operation, Tax Effect of Discontinued Operation",
        "terseLabel": "Income tax expense"
       }
      }
     },
     "localname": "DiscontinuedOperationTaxEffectOfDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Discontinued Operations and Disposal Groups [Abstract]",
        "terseLabel": "Discontinued Operations and Disposal Groups [Abstract]"
       }
      }
     },
     "localname": "DiscontinuedOperationsAndDisposalGroupsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationsHeldForSaleOrDisposedOfBySaleMember": {
     "auth_ref": [
      "r1",
      "r2",
      "r3"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Component or group of components classified as held-for-sale or disposed of by sale and representing a strategic shift that has or will have a major effect on operations and financial results. Includes a business or nonprofit activity on acquisition classified as held-for-sale.",
        "label": "Discontinued Operations, Held-for-sale or Disposed of by Sale [Member]",
        "terseLabel": "Discontinued operations"
       }
      }
     },
     "localname": "DiscontinuedOperationsHeldForSaleOrDisposedOfBySaleMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r17"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 3.0,
       "parentTag": "ns_DisposalGroupIncludingDiscontinuedOperationTotalExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of general and administrative expense attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, General and Administrative Expense",
        "verboseLabel": "General and administrative expenses (excluding depreciation and amortization expense)"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationInterestIncome": {
     "auth_ref": [
      "r17"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 3.0,
       "parentTag": "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of interest income attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Interest Income",
        "terseLabel": "Interest income, net"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationInterestIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss": {
     "auth_ref": [
      "r17"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 2.0,
       "parentTag": "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of operating income (loss) attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Operating Income (Loss)",
        "totalLabel": "Operating income (loss)"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherExpense": {
     "auth_ref": [
      "r17"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 1.0,
       "parentTag": "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of other expense attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Other Expense",
        "negatedTerseLabel": "Other expense, net"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue": {
     "auth_ref": [
      "r17",
      "r23"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": 1.0,
       "parentTag": "us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of revenue attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Revenue",
        "verboseLabel": "Revenues"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationRevenue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock": {
     "auth_ref": [
      "r24",
      "r231"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations, Disclosure [Text Block]",
        "terseLabel": "IMPAIRMENTS AND DISCONTINUED OPERATIONS"
       }
      }
     },
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONS"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain": {
     "auth_ref": [
      "r301",
      "r304"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of disposal group.",
        "label": "Disposal Group Name [Domain]",
        "terseLabel": "Disposal Group Name [Domain]"
       }
      }
     },
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DistributionMadeToLimitedPartnerCashDistributionsDeclared": {
     "auth_ref": [
      "r257"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of equity impact of cash distribution declared to unit-holder of limited partnership (LP).",
        "label": "Distribution Made to Limited Partner, Cash Distributions Declared",
        "terseLabel": "Cash distributions applicable to common unitholders"
       }
      }
     },
     "localname": "DistributionMadeToLimitedPartnerCashDistributionsDeclared",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DistributionMadeToLimitedPartnerDateOfRecord": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date of record for distribution of cash or unit to limited partner of limited partnership (LP), in CCYY-MM-DD format.",
        "label": "Distribution Made to Limited Partner, Date of Record",
        "verboseLabel": "Distribution date of record"
       }
      }
     },
     "localname": "DistributionMadeToLimitedPartnerDateOfRecord",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount of cash distributions declared to unit-holder of a limited partnership (LP).",
        "label": "Distribution Made to Limited Partner, Distributions Declared, Per Unit",
        "terseLabel": "Cash distributions per unit",
        "verboseLabel": "Preferred unit distribution"
       }
      }
     },
     "localname": "DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails",
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_DistributionMadeToLimitedPartnerDistributionsPaidPerUnit": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount of cash distributions paid to unit-holder of a limited partnership (LP).",
        "label": "Distribution Made to Limited Partner, Distributions Paid, Per Unit",
        "terseLabel": "Cash distributions paid, per unit"
       }
      }
     },
     "localname": "DistributionMadeToLimitedPartnerDistributionsPaidPerUnit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_DistributionMadeToLimitedPartnerLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Distribution Made to Limited Partner [Line Items]",
        "terseLabel": "Distribution Made to Preferred Limited Partner [Line Items]",
        "verboseLabel": "Distribution Made to Common Limited Partners [Line Items]"
       }
      }
     },
     "localname": "DistributionMadeToLimitedPartnerLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DistributionsMadeToLimitedPartnerByDistributionTableTextBlock": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of payment of cash or stock made to limited partner of limited partnership (LP).",
        "label": "Distributions Made to Limited Partner, by Distribution [Table Text Block]",
        "terseLabel": "Distributions Made to Limited Partner, by Distribution [Table Text Block]"
       }
      }
     },
     "localname": "DistributionsMadeToLimitedPartnerByDistributionTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DistributionsMadeToLimitedPartnerTable": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about payment of cash or stock made to limited partner of limited partnership (LP).",
        "label": "Distributions Made to Limited Partner [Table]",
        "terseLabel": "Distributions Made to Preferred Limited Partner [Table]",
        "verboseLabel": "Distributions Made to Common Limited Partner [Table]"
       }
      }
     },
     "localname": "DistributionsMadeToLimitedPartnerTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsPreferredStockCash": {
     "auth_ref": [
      "r257",
      "r407"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of paid and unpaid preferred stock dividends declared with the form of settlement in cash.",
        "label": "Dividends, Preferred Stock, Cash",
        "negatedTerseLabel": "Cash distributions to partners, temporary equity"
       }
      }
     },
     "localname": "DividendsPreferredStockCash",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsShareBasedCompensationCash": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails": {
       "order": 4.0,
       "parentTag": "ns_EpuDistributionsLessThanGreaterThanEarnings",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of paid and unpaid cash dividends declared for award under share-based payment arrangement.",
        "label": "Dividend, Share-based Payment Arrangement, Cash",
        "negatedTerseLabel": "Distribution equivalent rights to restricted units"
       }
      }
     },
     "localname": "DividendsShareBasedCompensationCash",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerLimitedPartnershipUnitAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Income (Loss), Per Outstanding Limited Partnership Unit, Basic, Net of Tax [Abstract]",
        "terseLabel": "Basic net income (loss) per common unit"
       }
      }
     },
     "localname": "EarningsPerLimitedPartnershipUnitAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Earnings Per Share [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r158",
      "r159",
      "r160",
      "r161"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "NET INCOME (LOSS) PER COMMON UNIT"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNIT"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents": {
     "auth_ref": [
      "r360"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) from the effect of exchange rate changes on cash and cash equivalent balances held in foreign currencies.",
        "label": "Effect of Exchange Rate on Cash and Cash Equivalents",
        "terseLabel": "Effect of foreign exchange rate changes on cash"
       }
      }
     },
     "localname": "EffectOfExchangeRateOnCashAndCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r133",
      "r134",
      "r135",
      "r139",
      "r146",
      "r148",
      "r163",
      "r208",
      "r250",
      "r257",
      "r306",
      "r307",
      "r308",
      "r314",
      "r315",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r367",
      "r434",
      "r435",
      "r436"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component [Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r355",
      "r379",
      "r380",
      "r381"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r293",
      "r294",
      "r299",
      "r300",
      "r355",
      "r380"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Fair Value, Inputs, Level 2 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r379",
      "r380",
      "r381"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainLossOnDispositionOfAssets1": {
     "auth_ref": [
      "r122"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss) on sale or disposal of assets, including but not limited to property plant and equipment, intangible assets and equity in securities of subsidiaries or equity method investee.",
        "label": "Gain (Loss) on Disposition of Assets",
        "negatedTerseLabel": "Loss (gain) from sale or disposition of assets",
        "terseLabel": "Loss from sale or disposition of assets"
       }
      }
     },
     "localname": "GainLossOnDispositionOfAssets1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnExtinguishmentOfDebt": {
     "auth_ref": [
      "r122",
      "r244",
      "r245"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 4.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_IncomeLossAttributableToParent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity.",
        "label": "Gain (Loss) on Extinguishment of Debt",
        "negatedTerseLabel": "Loss on extinguishment of debt",
        "terseLabel": "Loss on extinguishment of debt"
       }
      }
     },
     "localname": "GainsLossesOnExtinguishmentOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r102"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 3.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate total of expenses of managing and administering the affairs of an entity, including affiliates of the reporting entity, which are not directly or indirectly associated with the manufacture, sale or creation of a product or product line.",
        "label": "General and Administrative Expense",
        "terseLabel": "General and administrative expenses",
        "verboseLabel": "General and administrative expenses (excluding depreciation and amortization expense)"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Goodwill": {
     "auth_ref": [
      "r212",
      "r214",
      "r396"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Goodwill",
        "terseLabel": "Goodwill"
       }
      }
     },
     "localname": "Goodwill",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillImpairmentLoss": {
     "auth_ref": [
      "r122",
      "r213",
      "r215",
      "r218"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 2.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of loss from the write-down 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.",
        "label": "Goodwill, Impairment Loss",
        "terseLabel": "Goodwill impairment loss"
       }
      }
     },
     "localname": "GoodwillImpairmentLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r337",
      "r348"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation [Axis]"
       }
      }
     },
     "localname": "HedgingDesignationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r337"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation [Domain]"
       }
      }
     },
     "localname": "HedgingDesignationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingRelationshipDomain": {
     "auth_ref": [
      "r337"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Nature or intent of a hedge.",
        "label": "Hedging Relationship [Domain]",
        "terseLabel": "Hedging Relationship [Domain]"
       }
      }
     },
     "localname": "HedgingRelationshipDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeLossAttributableToParent": {
     "auth_ref": [
      "r100"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax, of income (loss) attributable to parent. Includes, but is not limited to, income (loss) from continuing operations, discontinued operations and equity method investments.",
        "label": "Income (Loss) Attributable to Parent, before Tax",
        "totalLabel": "Income (loss) before income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeLossAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperations": {
     "auth_ref": [
      "r97",
      "r123",
      "r142",
      "r143",
      "r144",
      "r145",
      "r155",
      "r157",
      "r324"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of income (loss) from continuing operations attributable to the parent.",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Attributable to Parent",
        "terseLabel": "Income (loss) from continuing operations",
        "totalLabel": "Income (loss) from continuing operations"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r90",
      "r180",
      "r186",
      "r190",
      "r193",
      "r196",
      "r394",
      "r402",
      "r406",
      "r427"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "totalLabel": "Income (loss) from continuing operations before income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount after tax of income (loss) from continuing operations available to limited partnership (LP) unit-holder and units that would have been outstanding assuming the issuance of limited partner units for dilutive potential units outstanding.",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Per Outstanding Limited Partnership Unit, Diluted",
        "terseLabel": "Continuing operations"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerOutstandingLimitedPartnershipUnitBasicNetOfTax": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount after tax of income (loss) from continuing operations available to limited partnership (LP) unit-holder in a publicly trade limited partnership (LP) or master limited partnership (MLP).",
        "label": "Income (Loss) from Continuing Operations, Per Outstanding Limited Partnership Unit, Basic, Net of Tax",
        "terseLabel": "Continuing operations"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsPerOutstandingLimitedPartnershipUnitBasicNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity": {
     "auth_ref": [
      "r4",
      "r5",
      "r6",
      "r7",
      "r8",
      "r16",
      "r20",
      "r325"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of income (loss) from a discontinued operation attributable to the parent. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal.",
        "label": "Income (Loss) from Discontinued Operations, Net of Tax, Attributable to Parent",
        "terseLabel": "Loss from discontinued operations, net of tax",
        "totalLabel": "(Loss) income from discontinued operations, net of tax",
        "verboseLabel": "(Loss) income from discontinued operations, net of tax"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitBasic": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount after tax of gain (loss) on disposal of discontinued operations available to limited partnership (LP) unit-holder.",
        "label": "Income (Loss) from Discontinued Operations, Net of Tax, Per Outstanding Limited Partnership Unit, Basic",
        "terseLabel": "Discontinued operations"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted1": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount after tax of gain (loss) on disposal of discontinued operations available to limited partnership (LP) unit-holder and units that would have been outstanding assuming the issuance of limited partner units for all dilutive potential units outstanding.",
        "label": "Income (Loss) from Discontinued Operations, Net of Tax, Per Outstanding Limited Partnership Unit, Diluted",
        "terseLabel": "Discontinued operations"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromSubsidiariesBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of income (loss) of subsidiary attributable to the parent entity.",
        "label": "Income (Loss) from Subsidiaries, before Tax",
        "terseLabel": "Equity in earnings (loss) of subsidiaries"
       }
      }
     },
     "localname": "IncomeLossFromSubsidiariesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Income Statement [Abstract]",
        "terseLabel": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis": {
     "auth_ref": [
      "r301",
      "r304"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by name of disposal group.",
        "label": "Disposal Group Name [Axis]",
        "terseLabel": "Disposal Group Name [Axis]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]",
        "terseLabel": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable": {
     "auth_ref": [
      "r0",
      "r10",
      "r11",
      "r12",
      "r13",
      "r14",
      "r15",
      "r19",
      "r21",
      "r22",
      "r23",
      "r229",
      "r230"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations [Table]",
        "terseLabel": "Disposal Groups, Including Discontinued Operations [Table]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r227"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]",
        "terseLabel": "Income Statement Location [Axis]"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Location in the income statement.",
        "label": "Income Statement Location [Domain]",
        "terseLabel": "Income Statement Location [Domain]"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r130",
      "r147",
      "r148",
      "r178",
      "r313",
      "r319",
      "r320",
      "r428"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "terseLabel": "Income tax (benefit) expense",
        "verboseLabel": "Income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaidNet": {
     "auth_ref": [
      "r125"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income, net of any cash received during the current period as refunds for the overpayment of taxes.",
        "label": "Income Taxes Paid, Net",
        "terseLabel": "Cash paid for income taxes, net of tax refunds received"
       }
      }
     },
     "localname": "IncomeTaxesPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable2CashFlowsRelatedtoInterestandIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsPayableTrade": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingCapital",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Change in recurring obligations of a business that arise from the acquisition of merchandise, materials, supplies and services used in the production and sale of goods and services.",
        "label": "Increase (Decrease) in Accounts Payable, Trade",
        "terseLabel": "Increase (decrease) in accounts payable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsPayableTrade",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsReceivable": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingCapital",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in amount due within one year (or one business cycle) from customers for the credit sale of goods and services.",
        "label": "Increase (Decrease) in Accounts Receivable",
        "negatedTerseLabel": "Decrease (increase) in accounts receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedLiabilities": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingCapital",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of expenses incurred but not yet paid.",
        "label": "Increase (Decrease) in Accrued Liabilities",
        "terseLabel": "Increase (decrease) in accrued liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingCapital",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in interest payable, which represents the amount owed to note holders, bond holders, and other parties for interest earned on loans or credit extended to the reporting entity.",
        "label": "Increase (Decrease) in Interest Payable, Net",
        "terseLabel": "Increase (decrease) in accrued interest payable"
       }
      }
     },
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInventories": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingCapital",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities.",
        "label": "Increase (Decrease) in Inventories",
        "negatedTerseLabel": "Decrease (increase) in inventories"
       }
      }
     },
     "localname": "IncreaseDecreaseInInventories",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingCapital": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period of all assets and liabilities used in operating activities.",
        "label": "Increase (Decrease) in Operating Capital",
        "negatedTotalLabel": "Changes in current assets and current liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in current operating assets after deduction of current operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Current Assets and Liabilities, Net",
        "negatedLabel": "Changes in current assets and current liabilities (Note 11)"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherNoncurrentAssets": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in noncurrent assets classified as other.",
        "label": "Increase (Decrease) in Other Noncurrent Assets",
        "negatedTerseLabel": "(Increase) decrease in other long-term assets"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherNoncurrentAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in noncurrent operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Noncurrent Liabilities",
        "terseLabel": "Increase (decrease) in other long-term liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherNoncurrentLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingCapital",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets classified as other.",
        "label": "Increase (Decrease) in Other Operating Assets",
        "negatedTerseLabel": "Decrease (increase) in other currrent assets"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInPartnersCapitalRollForward": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Increase (Decrease) in Partners' Capital [Roll Forward]",
        "terseLabel": "Increase (Decrease) in Partners' Capital [Roll Forward]"
       }
      }
     },
     "localname": "IncreaseDecreaseInPartnersCapitalRollForward",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInPropertyAndOtherTaxesPayable": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingCapital",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the period in the amount of cash payments due to taxing authorities for non-income-related taxes.",
        "label": "Increase (Decrease) in Property and Other Taxes Payable",
        "terseLabel": "Increase (decrease) in taxes other than income tax"
       }
      }
     },
     "localname": "IncreaseDecreaseInPropertyAndOtherTaxesPayable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "auth_ref": [
      "r219",
      "r220"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts of all intangible assets, excluding goodwill, as of the balance sheet date, net of accumulated amortization and impairment charges.",
        "label": "Intangible Assets, Net (Excluding Goodwill)",
        "terseLabel": "Intangible assets, net"
       }
      }
     },
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseMember": {
     "auth_ref": [
      "r346"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing interest expense.",
        "label": "Interest Expense [Member]",
        "terseLabel": "Interest expense, net"
       }
      }
     },
     "localname": "InterestExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestIncomeExpenseNonoperatingNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net amount of nonoperating interest income (expense).",
        "label": "Interest Income (Expense), Nonoperating, Net",
        "terseLabel": "Interest expense, net",
        "verboseLabel": "Interest income (expense), net"
       }
      }
     },
     "localname": "InterestIncomeExpenseNonoperatingNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r117",
      "r119",
      "r125"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Cash paid for interest, net of amount capitalized"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable2CashFlowsRelatedtoInterestandIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPayableCurrent": {
     "auth_ref": [
      "r33",
      "r34",
      "r58"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of [accrued] interest payable on all forms of debt, including trade payables, that has been incurred and is unpaid. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Interest Payable, Current",
        "terseLabel": "Accrued interest payable"
       }
      }
     },
     "localname": "InterestPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet": {
     "auth_ref": [
      "r353"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The estimated net amount of unrealized gains or losses on interest rate cash flow hedges as of the balance sheet date expected to be reclassified to earnings within the next twelve months.",
        "label": "Interest Rate Cash Flow Hedge Gain (Loss) to be Reclassified During Next 12 Months, Net",
        "terseLabel": "Loss to be reclassified during next 12 months"
       }
      }
     },
     "localname": "InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateContractMember": {
     "auth_ref": [
      "r293",
      "r345"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative instrument whose primary underlying risk is tied to the right to receive or pay a sum of money at a given interest rate.",
        "label": "Interest Rate Contract [Member]",
        "terseLabel": "Interest rate swaps"
       }
      }
     },
     "localname": "InterestRateContractMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details",
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IntersegmentEliminationMember": {
     "auth_ref": [
      "r172",
      "r185",
      "r186",
      "r187",
      "r188",
      "r190",
      "r192",
      "r196"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Eliminating entries used in operating segment consolidation.",
        "label": "Intersegment Eliminations [Member]",
        "terseLabel": "Intersegment Eliminations [Member]"
       }
      }
     },
     "localname": "IntersegmentEliminationMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InventoryNet": {
     "auth_ref": [
      "r27",
      "r70"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer.",
        "label": "Inventory, Net",
        "terseLabel": "Inventories"
       }
      }
     },
     "localname": "InventoryNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LettersOfCreditOutstandingAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The total amount of the contingent obligation under letters of credit outstanding as of the reporting date.",
        "label": "Letters of Credit Outstanding, Amount",
        "terseLabel": "Letters of credit outstanding, amount"
       }
      }
     },
     "localname": "LettersOfCreditOutstandingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r57",
      "r129",
      "r188",
      "r207",
      "r328",
      "r331",
      "r332",
      "r359"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r48",
      "r129",
      "r207",
      "r359",
      "r400",
      "r419"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities, mezzanine equity and partners\u2019 equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "Liabilities, Mezzanine Equity and Partners\u2019 Equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesCurrent": {
     "auth_ref": [
      "r59",
      "r129",
      "r207",
      "r328",
      "r331",
      "r332",
      "r359"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total obligations incurred as part of normal operations that are expected to be paid during the following twelve months or within one business cycle, if longer.",
        "label": "Liabilities, Current",
        "totalLabel": "Total current liabilities"
       }
      }
     },
     "localname": "LiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liabilities, Current [Abstract]",
        "terseLabel": "Current liabilities:"
       }
      }
     },
     "localname": "LiabilitiesCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LimitedPartnersCapitalAccount": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_PartnersCapital",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of the limited partners' ownership interests.",
        "label": "Limited Partners' Capital Account",
        "terseLabel": "Common limited partners (109,195,394 and 108,527,806 common units outstanding as of September\u00a030, 2020 and December\u00a031, 2019, respectively)"
       }
      }
     },
     "localname": "LimitedPartnersCapitalAccount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LimitedPartnersCapitalAccountUnitsOutstanding": {
     "auth_ref": [
      "r259"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of limited partner units outstanding.",
        "label": "Limited Partners' Capital Account, Units Outstanding",
        "terseLabel": "Limited partners common units outstanding"
       }
      }
     },
     "localname": "LimitedPartnersCapitalAccountUnitsOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_LineOfCreditFacilityCovenantTerms": {
     "auth_ref": [
      "r55"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the conditions for borrowing under the credit facility including the nature of any restrictions.",
        "label": "Line of Credit Facility, Covenant Terms",
        "terseLabel": "Line of credit facility, covenant terms"
       }
      }
     },
     "localname": "LineOfCreditFacilityCovenantTerms",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityInterestRateDescription": {
     "auth_ref": [
      "r55"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the interest rate for the amounts borrowed under the credit facility, including the terms and the method for determining the interest rate (for example, fixed or variable, LIBOR plus a percentage, increasing rate, timing of interest rate resets, remarketing provisions).",
        "label": "Line of Credit Facility, Interest Rate Description",
        "terseLabel": "Line of credit facility, interest rate description"
       }
      }
     },
     "localname": "LineOfCreditFacilityInterestRateDescription",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "auth_ref": [
      "r55"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility.",
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "Maximum borrowing capacity"
       }
      }
     },
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/DEBTNarrative3Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity": {
     "auth_ref": [
      "r55"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding).",
        "label": "Line of Credit Facility, Remaining Borrowing Capacity",
        "terseLabel": "Current remaining borrowing capacity"
       }
      }
     },
     "localname": "LineOfCreditFacilityRemainingBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative3Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility.",
        "label": "Line of Credit Facility, Unused Capacity, Commitment Fee Percentage",
        "terseLabel": "Long-term debt, commitment fee, percent"
       }
      }
     },
     "localname": "LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r41",
      "r243",
      "r399",
      "r416"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term Debt",
        "verboseLabel": "Long-term debt, including current portion and excluding finance leases"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable2EstimatedFairValuesandCarryingAmountsofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtAndCapitalLeaseObligations": {
     "auth_ref": [
      "r41"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt and lease obligation, classified as noncurrent.",
        "label": "Long-term Debt and Lease Obligation",
        "terseLabel": "Long-term debt, less current portion"
       }
      }
     },
     "localname": "LongTermDebtAndCapitalLeaseObligations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtCurrent": {
     "auth_ref": [
      "r56"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt, classified as current. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term Debt, Current Maturities",
        "terseLabel": "Current portion of long-term debt"
       }
      }
     },
     "localname": "LongTermDebtCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtTerm": {
     "auth_ref": [
      "r356"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period between issuance and maturity of long-term debt, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Long-term Debt, Term",
        "terseLabel": "Long-term debt, term"
       }
      }
     },
     "localname": "LongTermDebtTerm",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LossContingencyAccrualAtCarryingValue": {
     "auth_ref": [
      "r237"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of loss contingency liability.",
        "label": "Loss Contingency Accrual",
        "terseLabel": "Loss contingency accrual, at carrying value"
       }
      }
     },
     "localname": "LossContingencyAccrualAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIESNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r118"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash (used in) provided by financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Cash flows from financing activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r118"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash (used in) provided by investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Cash flows from investing activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r118",
      "r120",
      "r123"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "terseLabel": "Net cash provided by operating activities",
        "totalLabel": "Net cash provided by operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Cash Flows from Operating Activities:",
        "verboseLabel": "Cash flows from operating activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r23",
      "r82",
      "r85",
      "r92",
      "r123",
      "r129",
      "r138",
      "r142",
      "r143",
      "r144",
      "r145",
      "r147",
      "r148",
      "r155",
      "r180",
      "r186",
      "r190",
      "r193",
      "r196",
      "r207",
      "r359",
      "r403",
      "r424"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails": {
       "order": 1.0,
       "parentTag": "ns_EpuDistributionsLessThanGreaterThanEarnings",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "terseLabel": "Net income (loss)",
        "totalLabel": "Net (loss) income",
        "verboseLabel": "Net income (loss)"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount after tax of income (loss) available to limited partnership (LP) unit-holder and units that would have been outstanding assuming the issuance of limited partner units for dilutive potential units outstanding.",
        "label": "Net Income (Loss), Net of Tax, Per Outstanding Limited Partnership Unit, Diluted",
        "terseLabel": "Diluted net income (loss) per common unit",
        "totalLabel": "Total (Note 10)"
       }
      }
     },
     "localname": "NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per unit of ownership amount after tax of income (loss) available to outstanding limited partnership (LP) unit-holder.",
        "label": "Net Income (Loss), Per Outstanding Limited Partnership Unit, Basic, Net of Tax",
        "terseLabel": "Basic net income (loss) per common unit",
        "totalLabel": "Total (Note 10)"
       }
      }
     },
     "localname": "NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Income (Loss), Net of Tax, Per Outstanding Limited Partnership Unit, Diluted [Abstract]",
        "terseLabel": "Diluted net income (loss) per common unit"
       }
      }
     },
     "localname": "NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Accounting Standards Update and Change in Accounting Principle [Abstract]",
        "terseLabel": "New Accounting Pronouncements and Changes in Accounting Principles [Abstract]"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "auth_ref": [
      "r136",
      "r137",
      "r140",
      "r141",
      "r149",
      "r150",
      "r151",
      "r209",
      "r210",
      "r287",
      "r288",
      "r289",
      "r290",
      "r309",
      "r316",
      "r317",
      "r318",
      "r391",
      "r392",
      "r393",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for change in accounting principle. Includes, but is not limited to, nature, reason, and method of adopting amendment to accounting standards or other change in accounting principle.",
        "label": "Accounting Standards Update and Change in Accounting Principle [Text Block]",
        "terseLabel": "NEW ACCOUNTING PRONOUNCEMENTS"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/NEWACCOUNTINGPRONOUNCEMENTS"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NumberOfReportableSegments": {
     "auth_ref": [
      "r168"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements.",
        "label": "Number of Reportable Segments",
        "terseLabel": "Number of business segments"
       }
      }
     },
     "localname": "NumberOfReportableSegments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OperatingExpenseMember": {
     "auth_ref": [
      "r346"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing expenses associated with normal operations.",
        "label": "Operating Expense [Member]",
        "terseLabel": "Operating Expense [Member]"
       }
      }
     },
     "localname": "OperatingExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OperatingIncomeLoss": {
     "auth_ref": [
      "r180",
      "r186",
      "r190",
      "r193",
      "r196"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net result for the period of deducting operating expenses from operating revenues.",
        "label": "Operating Income (Loss)",
        "totalLabel": "Operating income",
        "verboseLabel": "Operating income (loss)"
       }
      }
     },
     "localname": "OperatingIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLeaseIncome": {
     "auth_ref": [
      "r162",
      "r373",
      "r374"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of operating lease income from lease payments and variable lease payments paid and payable to lessor. Includes, but is not limited to, variable lease payments not included in measurement of lease receivable.",
        "label": "Operating Lease, Lease Income",
        "terseLabel": "Lessor revenues"
       }
      }
     },
     "localname": "OperatingLeaseLeaseIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingSegmentsMember": {
     "auth_ref": [
      "r185",
      "r186",
      "r187",
      "r188",
      "r190",
      "r196"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identifies components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Operating Segments [Member]",
        "terseLabel": "Total segment",
        "verboseLabel": "Total segment assets"
       }
      }
     },
     "localname": "OperatingSegmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]",
        "terseLabel": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "auth_ref": [
      "r25",
      "r333"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure.",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "terseLabel": "ORGANIZATION AND BASIS OF PRESENTATION"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATION"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherAmortizationOfDeferredCharges": {
     "auth_ref": [
      "r101",
      "r122"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of amortization of other deferred costs recognized in the income statement.",
        "label": "Amortization of Other Deferred Charges",
        "terseLabel": "Amortization of debt related items"
       }
      }
     },
     "localname": "OtherAmortizationOfDeferredCharges",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetImpairmentCharges": {
     "auth_ref": [
      "r122",
      "r226"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The charge against earnings resulting from the write down of long lived assets other than goodwill due to the difference between the carrying value and lower fair value.",
        "label": "Other Asset Impairment Charges",
        "terseLabel": "Asset impairment losses",
        "verboseLabel": "Asset impairment loss"
       }
      }
     },
     "localname": "OtherAssetImpairmentCharges",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsNoncurrent": {
     "auth_ref": [
      "r53"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of noncurrent assets classified as other.",
        "label": "Other Assets, Noncurrent",
        "terseLabel": "Other long-term assets, net"
       }
      }
     },
     "localname": "OtherAssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax": {
     "auth_ref": [
      "r80",
      "r88",
      "r361",
      "r363",
      "r367"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax, before reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), before Reclassifications, Net of Tax",
        "terseLabel": "Other comprehensive income (loss) before reclassification adjustments"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeTax": {
     "auth_ref": [
      "r93",
      "r206",
      "r361",
      "r366",
      "r367",
      "r404",
      "r425"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax, after reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), before Tax",
        "verboseLabel": "Other comprehensive income (loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r83",
      "r86",
      "r325",
      "r326",
      "r329"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity.",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "terseLabel": "Other comprehensive income (loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r346"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption in which reported facts about other comprehensive income have been included.",
        "label": "Other Comprehensive Income (Loss) [Member]",
        "terseLabel": "Other comprehensive income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherComprehensiveIncomeOtherNetOfTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in other comprehensive income, after tax, from changes classified as other.",
        "label": "Other Comprehensive Income, Other, Net of Tax",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeOtherNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax": {
     "auth_ref": [
      "r75",
      "r78",
      "r352"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of increase (decrease) in accumulated gain (loss) from derivative instruments designated and qualifying as the effective portion of cash flow hedges and an entity's share of an equity investee's increase (decrease) in deferred hedging gain (loss).",
        "label": "Other Comprehensive Income (Loss), Unrealized Gain (Loss) on Derivatives Arising During Period, before Tax",
        "terseLabel": "Gain (loss)\u00a0recognized\u00a0in other comprehensive income (loss)\u00a0on\u00a0derivative"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCurrentAssetsMember": {
     "auth_ref": [
      "r338",
      "r350"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other current assets.",
        "label": "Other Current Assets [Member]",
        "terseLabel": "Other current assets"
       }
      }
     },
     "localname": "OtherCurrentAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherCurrentLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other current liabilities.",
        "label": "Other Current Liabilities [Member]",
        "terseLabel": "Accrued Liabilities [Member]"
       }
      }
     },
     "localname": "OtherCurrentLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherDepreciationAndAmortization": {
     "auth_ref": [
      "r101",
      "r122",
      "r222"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 4.0,
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense charged against earnings to allocate the cost of tangible and intangible assets over their remaining economic lives, classified as other.",
        "label": "Other Depreciation and Amortization",
        "verboseLabel": "Other depreciation and amortization expense"
       }
      }
     },
     "localname": "OtherDepreciationAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherIncomeMember": {
     "auth_ref": [
      "r349"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other revenue.",
        "label": "Other Income [Member]",
        "terseLabel": "Other income, net"
       }
      }
     },
     "localname": "OtherIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherLiabilitiesNoncurrent": {
     "auth_ref": [
      "r66"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer.",
        "label": "Other Liabilities, Noncurrent",
        "terseLabel": "Other long-term liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoncashIncomeExpense": {
     "auth_ref": [
      "r123"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of income (expense) included in net income that results in no cash inflow (outflow), classified as other.",
        "label": "Other Noncash Income (Expense)",
        "negatedLabel": "Other, net"
       }
      }
     },
     "localname": "OtherNoncashIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoncurrentAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other noncurrent assets.",
        "label": "Other Noncurrent Assets [Member]",
        "terseLabel": "Other long-term assets, net [Member]"
       }
      }
     },
     "localname": "OtherNoncurrentAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNonoperatingIncomeExpense": {
     "auth_ref": [
      "r103"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_IncomeLossAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of income (expense) related to nonoperating activities, classified as other.",
        "label": "Other Nonoperating Income (Expense)",
        "terseLabel": "Other (expense) income, net",
        "verboseLabel": "Other income (expense), net"
       }
      }
     },
     "localname": "OtherNonoperatingIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherPrepaidExpenseCurrent": {
     "auth_ref": [
      "r29",
      "r31",
      "r211"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for other costs that provide economic benefits within a future period of one year or the normal operating cycle, if longer.",
        "label": "Other Prepaid Expense, Current",
        "terseLabel": "Prepaid and other current assets"
       }
      }
     },
     "localname": "OtherPrepaidExpenseCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ParentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Portion of equity, or net assets, in the consolidated entity attributable, directly or indirectly, to the parent. Excludes noncontrolling interests.",
        "label": "Parent [Member]",
        "verboseLabel": "Total"
       }
      }
     },
     "localname": "ParentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PartnerCapitalComponentsAxis": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by partner capital components which are allocated for example, but not limited to accumulated other comprehensive income or comprehensive income.",
        "label": "Partner Capital Components [Axis]",
        "terseLabel": "Partner Capital Components [Axis]"
       }
      }
     },
     "localname": "PartnerCapitalComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PartnerCapitalComponentsDomain": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Partner capital components are the parts of the total Partners' Capital balance including that which is allocated to accumulated other comprehensive income, comprehensive income.",
        "label": "Partner Capital Components [Domain]",
        "terseLabel": "Partner Capital Components [Domain]"
       }
      }
     },
     "localname": "PartnerCapitalComponentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PartnerTypeOfPartnersCapitalAccountAxis": {
     "auth_ref": [
      "r258"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type or class of partner's capital account. Examples of classes of partners include, but not limited to, general partners, limited partners, preferred partners, and other ownership interests.",
        "label": "Partner Type [Axis]",
        "terseLabel": "Partner Type [Axis]"
       }
      }
     },
     "localname": "PartnerTypeOfPartnersCapitalAccountAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables",
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain": {
     "auth_ref": [
      "r259",
      "r442"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Capital accounts of each type or class of partner. Examples of classes of partners include, but are not limited to, general partners, limited partners, preferred partners, and other ownership interests.",
        "label": "Partner Type of Partners' Capital Account, Name [Domain]",
        "terseLabel": "Partner Type of Partners' Capital Account, Name [Domain]"
       }
      }
     },
     "localname": "PartnerTypeOfPartnersCapitalAccountNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables",
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PartnersCapital": {
     "auth_ref": [
      "r257"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of ownership interest of different classes of partners in limited partnership.",
        "label": "Partners' Capital",
        "periodEndLabel": "Partners' capital - ending balance",
        "periodStartLabel": "Partners' capital - beginning balance",
        "totalLabel": "Total partners\u2019 equity",
        "verboseLabel": "Total partners' equity"
       }
      }
     },
     "localname": "PartnersCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PartnersCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Partners' Capital [Abstract]",
        "terseLabel": "Partners\u2019 equity (Note 9):"
       }
      }
     },
     "localname": "PartnersCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PartnersCapitalAccountDistributions": {
     "auth_ref": [
      "r257",
      "r259"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total distributions to each class of partners (i.e., general, limited and preferred partners).",
        "label": "Partners' Capital Account, Distributions",
        "negatedTerseLabel": "Cash distributions to partners",
        "terseLabel": "Fixed distribution per quarter"
       }
      }
     },
     "localname": "PartnersCapitalAccountDistributions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PartnersCapitalAccountUnitBasedCompensation": {
     "auth_ref": [
      "r257",
      "r259"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in partners' capital account for unit-based payment arrangement issued by partnership. Partner includes, but is not limited to, general, limited and preferred partners.",
        "label": "Partners' Capital Account, Unit-based Payment Arrangement, Amount",
        "terseLabel": "Unit-based compensation"
       }
      }
     },
     "localname": "PartnersCapitalAccountUnitBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PartnersCapitalNotesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Partners' Capital Notes [Abstract]",
        "terseLabel": "Partners' Capital Notes [Abstract]"
       }
      }
     },
     "localname": "PartnersCapitalNotesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PartnersCapitalNotesDisclosureTextBlock": {
     "auth_ref": [
      "r260"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for the formation, structure, control and ownership of the partnership. Disclosures related to accounts comprising partners' capital. Includes balances of general partners' capital account, limited partners' capital account, preferred partners' capital account and total partners' capital account and units outstanding; accumulated other comprehensive income; amount and nature of changes to amount of partner's capital and units outstanding by class, rights and privileges for each class of units; distribution policies and distributions paid by unit class; impact of and correction of an error in previously issued financial statements; limitations of partners' liability; redemption, conversion and distribution policies; and deferred compensation related to the issuance of units.",
        "label": "Partners' Capital Notes Disclosure [Text Block]",
        "terseLabel": "PARTNERS' EQUITY"
       }
      }
     },
     "localname": "PartnersCapitalNotesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITY"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PartnersCapitalOther": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in partners' capital classified as other.",
        "label": "Partners' Capital, Other",
        "verboseLabel": "Other"
       }
      }
     },
     "localname": "PartnersCapitalOther",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForProceedsFromOtherInvestingActivities": {
     "auth_ref": [
      "r109",
      "r111",
      "r132"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash (inflow) outflow from investing activities classified as other.",
        "label": "Payments for (Proceeds from) Other Investing Activities",
        "negatedTerseLabel": "Other, net"
       }
      }
     },
     "localname": "PaymentsForProceedsFromOtherInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r114"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
        "label": "Payments of Ordinary Dividends, Common Stock",
        "negatedTerseLabel": "Distributions to common unitholders"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock": {
     "auth_ref": [
      "r114"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to preferred shareholders of the parent entity.",
        "label": "Payments of Ordinary Dividends, Preferred Stock and Preference Stock",
        "negatedTerseLabel": "Distributions to preferred unitholders"
       }
      }
     },
     "localname": "PaymentsOfDividendsPreferredStockAndPreferenceStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation": {
     "auth_ref": [
      "r114"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow to satisfy grantee's tax withholding obligation for award under share-based payment arrangement.",
        "label": "Payment, Tax Withholding, Share-based Payment Arrangement",
        "negatedTerseLabel": "Payment of tax withholding for unit-based compensation"
       }
      }
     },
     "localname": "PaymentsRelatedToTaxWithholdingForShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireProductiveAssets": {
     "auth_ref": [
      "r110"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow for purchases of and capital improvements on property, plant and equipment (capital expenditures), software, and other intangible assets.",
        "label": "Payments to Acquire Productive Assets",
        "negatedLabel": "Capital expenditures"
       }
      }
     },
     "localname": "PaymentsToAcquireProductiveAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockAccretionOfRedemptionDiscount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of accretion of the preferred stock redemption discount during the period.",
        "label": "Preferred Stock, Accretion of Redemption Discount",
        "negatedLabel": "Series D Preferred Unit accretion, common",
        "negatedTerseLabel": "Series D Preferred Unit accretion"
       }
      }
     },
     "localname": "PreferredStockAccretionOfRedemptionDiscount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockDividendPaymentRateVariable": {
     "auth_ref": [
      "r43",
      "r44",
      "r251"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of basis of dividend, such as adjustable rate. Excludes percentage rate dividend payments or fixed dollar amounts per share.",
        "label": "Preferred Stock, Dividend Payment Rate, Variable",
        "terseLabel": "Preferred units, dividend payment rate, variable"
       }
      }
     },
     "localname": "PreferredStockDividendPaymentRateVariable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PreferredStockDividendRatePercentage": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The percentage rate used to calculate dividend payments on preferred stock.",
        "label": "Preferred Stock, Dividend Rate, Percentage",
        "terseLabel": "Preferred units distribution percentage"
       }
      }
     },
     "localname": "PreferredStockDividendRatePercentage",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails",
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PreferredUnitsOutstanding": {
     "auth_ref": [
      "r259"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of preferred units outstanding.",
        "label": "Preferred Units, Outstanding",
        "terseLabel": "Preferred units outstanding"
       }
      }
     },
     "localname": "PreferredUnitsOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredUnitsPreferredPartnersCapitalAccounts": {
     "auth_ref": [
      "r259"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_PartnersCapital",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of the preferred partners' ownership interests.",
        "label": "Preferred Units, Preferred Partners' Capital Accounts",
        "terseLabel": "Preferred limited partners"
       }
      }
     },
     "localname": "PreferredUnitsPreferredPartnersCapitalAccounts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromDivestitureOfBusinesses": {
     "auth_ref": [
      "r107"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the amount received from the sale of a portion of the company's business, for example a segment, division, branch or other business, during the period.",
        "label": "Proceeds from Divestiture of Businesses",
        "terseLabel": "Proceeds from sale of St. Eustatius operations"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfBusinesses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested": {
     "auth_ref": [
      "r107"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents the cash inflow during the period from the sale of a component of the entity.",
        "label": "Proceeds from Divestiture of Businesses, Net of Cash Divested",
        "terseLabel": "Proceeds from sale"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfBusinessesNetOfCashDivested",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfDebt": {
     "auth_ref": [
      "r112"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow during the period from additional borrowings in aggregate debt. Includes proceeds from short-term and long-term debt.",
        "label": "Proceeds from Issuance of Debt",
        "terseLabel": "Other debt borrowings"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfLongTermDebt": {
     "auth_ref": [
      "r112"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from a debt initially having maturity due after one year or beyond the operating cycle, if longer.",
        "label": "Proceeds from Issuance of Long-term Debt",
        "terseLabel": "Proceeds from Issuance of Long-term Debt"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt": {
     "auth_ref": [
      "r112"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow from issuance of long-term debt classified as other.",
        "label": "Proceeds from Issuance of Other Long-term Debt",
        "terseLabel": "Proceeds from note offerings, net of issuance costs"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfOtherLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/DEBTNarrative1Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfUnsecuredDebt": {
     "auth_ref": [
      "r112"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from the issuance of long-term debt that is not secured by collateral. Excludes proceeds from tax exempt unsecured debt.",
        "label": "Proceeds from Issuance of Unsecured Debt",
        "terseLabel": "Proceeds from Term Loan, net of discount and issuance costs"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfUnsecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromLongTermLinesOfCredit": {
     "auth_ref": [
      "r112"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from a contractual arrangement with the lender, including letter of credit, standby letter of credit and revolving credit arrangements, under which borrowings can be made up to a specific amount at any point in time with maturities due beyond one year or the operating cycle, if longer.",
        "label": "Proceeds from Long-term Lines of Credit",
        "terseLabel": "Proceeds from other long-term debt borrowings"
       }
      }
     },
     "localname": "ProceedsFromLongTermLinesOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromPaymentsForOtherFinancingActivities": {
     "auth_ref": [
      "r113",
      "r116",
      "r132"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities classified as other.",
        "label": "Proceeds from (Payments for) Other Financing Activities",
        "terseLabel": "Other, net"
       }
      }
     },
     "localname": "ProceedsFromPaymentsForOtherFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfProductiveAssets": {
     "auth_ref": [
      "r108"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from the sale of property, plant and equipment (capital expenditures), software, and other intangible assets.",
        "label": "Proceeds from Sale of Productive Assets",
        "terseLabel": "Proceeds from sale or disposition of assets"
       }
      }
     },
     "localname": "ProceedsFromSaleOfProductiveAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromShortTermDebt": {
     "auth_ref": [
      "r112"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from a borrowing having initial term of repayment within one year or the normal operating cycle, if longer.",
        "label": "Proceeds from Short-term Debt",
        "terseLabel": "Proceeds from short-term debt borrowings"
       }
      }
     },
     "localname": "ProceedsFromShortTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProductMember": {
     "auth_ref": [
      "r280"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Article or substance produced by nature, labor or machinery.",
        "label": "Product [Member]",
        "terseLabel": "Product [Member]"
       }
      }
     },
     "localname": "ProductMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "auth_ref": [
      "r51",
      "r223"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Gross",
        "terseLabel": "Property, plant and equipment, at cost"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r36",
      "r37",
      "r225",
      "r421"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Property, plant and equipment, net",
        "totalLabel": "Property, plant and equipment, net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReceivablesNetCurrent": {
     "auth_ref": [
      "r46",
      "r49",
      "r420",
      "r443"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The total amount due to the entity within one year of the balance sheet date (or one operating cycle, if longer) from outside sources, including trade accounts receivable, notes and loans receivable, as well as any other types of receivables, net of allowances established for the purpose of reducing such receivables to an amount that approximates their net realizable value.",
        "label": "Receivables, Net, Current",
        "terseLabel": "Receivables, net"
       }
      }
     },
     "localname": "ReceivablesNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax": {
     "auth_ref": [
      "r80",
      "r81",
      "r88",
      "r361",
      "r365",
      "r367"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of reclassification adjustments of other comprehensive income (loss).",
        "label": "Reclassification from Accumulated Other Comprehensive Income, Current Period, Net of Tax",
        "negatedTerseLabel": "Net (gain) loss reclassified from AOCI"
       }
      }
     },
     "localname": "ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable": {
     "auth_ref": [
      "r187",
      "r190"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identification, description, and amounts of all significant reconciling items in the reconciliation of total assets from reportable segments to the entity's consolidated assets.",
        "label": "Reconciliation of Assets from Segment to Consolidated [Table]",
        "terseLabel": "Reconciliation of Assets from Segment to Consolidated [Table]"
       }
      }
     },
     "localname": "ReconciliationOfAssetsFromSegmentToConsolidatedTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTextBlock": {
     "auth_ref": [
      "r187",
      "r190"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of all significant reconciling items in the reconciliation of total assets from reportable segments to the entity's consolidated assets.",
        "label": "Reconciliation of Assets from Segment to Consolidated [Table Text Block]",
        "terseLabel": "Reconciliation of Assets from Segment to Consolidated [Table Text Block]"
       }
      }
     },
     "localname": "ReconciliationOfAssetsFromSegmentToConsolidatedTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfDebt": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow during the period from the repayment of aggregate short-term and long-term debt. Excludes payment of capital lease obligations.",
        "label": "Repayments of Debt",
        "negatedTerseLabel": "Debt repayments"
       }
      }
     },
     "localname": "RepaymentsOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfLongTermDebt": {
     "auth_ref": [
      "r115"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer.",
        "label": "Repayments of Long-term Debt",
        "terseLabel": "Amount repaid"
       }
      }
     },
     "localname": "RepaymentsOfLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfOtherLongTermDebt": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow for the payment of debt classified as other, maturing after one year or the operating cycle, if longer.",
        "label": "Repayments of Other Long-term Debt",
        "negatedLabel": "Other long-term debt repayments"
       }
      }
     },
     "localname": "RepaymentsOfOtherLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfShortTermDebt": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow for a borrowing having initial term of repayment within one year or the normal operating cycle, if longer.",
        "label": "Repayments of Short-term Debt",
        "negatedLabel": "Short-term debt repayments"
       }
      }
     },
     "localname": "RepaymentsOfShortTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReportingUnitAxis": {
     "auth_ref": [
      "r217",
      "r218"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by reporting unit.",
        "label": "Reporting Unit [Axis]",
        "terseLabel": "Reporting Unit [Axis]"
       }
      }
     },
     "localname": "ReportingUnitAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReportingUnitDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Level of reporting at which goodwill is tested for impairment.",
        "label": "Reporting Unit [Domain]",
        "terseLabel": "Reporting Unit [Domain]"
       }
      }
     },
     "localname": "ReportingUnitDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Restricted Cash and Cash Equivalents Items [Line Items]",
        "terseLabel": "Restricted Cash and Cash Equivalents Items [Line Items]"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalentsItemsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Revenue from Contract with Customer [Abstract]",
        "terseLabel": "Revenue from Contract with Customer [Abstract]"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax": {
     "auth_ref": [
      "r171",
      "r172",
      "r185",
      "r191",
      "r192",
      "r199",
      "r200",
      "r202",
      "r275",
      "r276",
      "r390"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise.",
        "label": "Revenue from Contract with Customer, Excluding Assessed Tax",
        "terseLabel": "Revenues from contracts with customers"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerExcludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerTextBlock": {
     "auth_ref": [
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r273",
      "r274",
      "r279",
      "r291"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure of revenue from contract with customer to transfer good or service and to transfer nonfinancial asset. Includes, but is not limited to, disaggregation of revenue, credit loss recognized from contract with customer, judgment and change in judgment related to contract with customer, and asset recognized from cost incurred to obtain or fulfill contract with customer. Excludes insurance and lease contracts.",
        "label": "Revenue from Contract with Customer [Text Block]",
        "terseLabel": "REVENUE FROM CONTRACTS WITH CUSTOMERS [Text Block]"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERS"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligation": {
     "auth_ref": [
      "r271"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of transaction price allocated to performance obligation that has not been recognized as revenue.",
        "label": "Revenue, Remaining Performance Obligation, Amount",
        "verboseLabel": "Revenue, remaining performance obligation, amount"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items]",
        "terseLabel": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items]"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1": {
     "auth_ref": [
      "r272"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period in which remaining performance obligation is expected to be recognized as revenue, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period",
        "terseLabel": "Revenue, remaining performance obligation, expected timing of satisfaction, period"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis": {
     "auth_ref": [
      "r272"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Start date of time band for expected timing of satisfaction of remaining performance obligation, in CCYY-MM-DD format.",
        "label": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]",
        "terseLabel": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about expected timing for satisfying remaining performance obligation.",
        "label": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table]",
        "terseLabel": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table]"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTableTextBlock": {
     "auth_ref": [
      "r272"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of expected timing for satisfying remaining performance obligation.",
        "label": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table Text Block]",
        "terseLabel": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table Text Block]"
       }
      }
     },
     "localname": "RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Revenues": {
     "auth_ref": [
      "r89",
      "r129",
      "r171",
      "r172",
      "r185",
      "r191",
      "r192",
      "r199",
      "r200",
      "r202",
      "r207",
      "r359",
      "r406"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss).",
        "label": "Revenues",
        "terseLabel": "Total revenues",
        "verboseLabel": "Revenues"
       }
      }
     },
     "localname": "Revenues",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenuesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Revenues [Abstract]",
        "terseLabel": "Revenues:"
       }
      }
     },
     "localname": "RevenuesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r80",
      "r366",
      "r367"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the components of accumulated other comprehensive income (loss).",
        "label": "Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block]"
       }
      }
     },
     "localname": "ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfCarryingValuesAndEstimatedFairValuesOfDebtInstrumentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of information pertaining to carrying amount and estimated fair value of short-term and long-term debt instruments or arrangements, including but not limited to, identification of terms, features, and collateral requirements.",
        "label": "Schedule of Carrying Values and Estimated Fair Values of Debt Instruments [Table Text Block]",
        "terseLabel": "Fair Value and Carrying Value of Debt [Table Text Block]"
       }
      }
     },
     "localname": "ScheduleOfCarryingValuesAndEstimatedFairValuesOfDebtInstrumentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfCashAndCashEquivalentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the components of cash and cash equivalents.",
        "label": "Schedule of Cash and Cash Equivalents [Table Text Block]",
        "terseLabel": "Schedule of Cash and Cash Equivalents [Table Text Block]"
       }
      }
     },
     "localname": "ScheduleOfCashAndCashEquivalentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of supplemental cash flow information for the periods presented.",
        "label": "Schedule of Cash Flow, Supplemental Disclosures [Table Text Block]",
        "terseLabel": "Schedule of Supplemental Cash Flow Information [Table Text Block]"
       }
      }
     },
     "localname": "ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "auth_ref": [
      "r339",
      "r344",
      "r348"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Derivative Instruments, Gain (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Derivative Instruments, Gain (Loss) in Statement of Financial Performance [Text Block]"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r157"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "terseLabel": "Schedule of Net Income (Loss) Per Common Unit"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable": {
     "auth_ref": [
      "r35",
      "r126",
      "r395",
      "r417"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about cash and cash equivalents restricted as to withdrawal or usage.",
        "label": "Restrictions on Cash and Cash Equivalents [Table]",
        "terseLabel": "Restrictions on Cash and Cash Equivalents [Table]"
       }
      }
     },
     "localname": "ScheduleOfRestrictedCashAndCashEquivalentsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "auth_ref": [
      "r180",
      "r183",
      "r189",
      "r216"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule of Segment Reporting Information, by Segment [Table]",
        "terseLabel": "Schedule of Segment Reporting Information, by Segment [Table]"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "auth_ref": [
      "r180",
      "r183",
      "r189",
      "r216"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the profit or loss and total assets for each reportable segment. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule of Segment Reporting Information, by Segment [Table Text Block]",
        "terseLabel": "Schedule of Segment Reporting Information, by Segment [Table Text Block]"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "auth_ref": [
      "r68",
      "r128",
      "r164",
      "r165",
      "r247",
      "r248",
      "r249",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity.",
        "label": "Schedule of Stock by Class [Table]",
        "terseLabel": "Schedule of Stock by Class [Table]"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTables",
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This table describes the key aspects of a subsidiary (partnership, corporation, or other entity) of the Limited Liability Company (LLC) or Limited Partnership (LP).",
        "label": "Schedule of Subsidiary of Limited Liability Company or Limited Partnership [Table]",
        "terseLabel": "Schedule of Subsidiary of Limited Liability Company or Limited Partnership [Table]"
       }
      }
     },
     "localname": "ScheduleOfSubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentDomain": {
     "auth_ref": [
      "r167",
      "r171",
      "r172",
      "r173",
      "r174",
      "r175",
      "r176",
      "r177",
      "r178",
      "r179",
      "r180",
      "r181",
      "r182",
      "r185",
      "r186",
      "r187",
      "r188",
      "r190",
      "r191",
      "r192",
      "r193",
      "r194",
      "r196",
      "r202",
      "r429"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Segments [Domain]",
        "terseLabel": "Reporting Segment [Domain]",
        "verboseLabel": "Segments [Domain]"
       }
      }
     },
     "localname": "SegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Segment Reporting [Abstract]",
        "terseLabel": "Segment Reporting [Abstract]"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "auth_ref": [
      "r167",
      "r169",
      "r170",
      "r180",
      "r184",
      "r190",
      "r194",
      "r195",
      "r196",
      "r197",
      "r199",
      "r201",
      "r202",
      "r203"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments.",
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "SEGMENT INFORMATION"
       }
      }
     },
     "localname": "SegmentReportingDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATION"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Segment Reporting Information [Line Items]",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Segment Reporting Information, Operating Income (Loss) [Abstract]",
        "terseLabel": "Operating income:"
       }
      }
     },
     "localname": "SegmentReportingInformationOperatingIncomeLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingInformationRevenueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Segment Reporting Information, Revenue for Reportable Segment [Abstract]",
        "terseLabel": "Revenues:"
       }
      }
     },
     "localname": "SegmentReportingInformationRevenueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ServiceMember": {
     "auth_ref": [
      "r280"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assistance, including, but not limited to, technology, license and maintenance, license and service, maintenance, oil and gas, and financial service.",
        "label": "Service [Member]",
        "terseLabel": "Service [Member]"
       }
      }
     },
     "localname": "ServiceMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortTermBorrowings": {
     "auth_ref": [
      "r38",
      "r398",
      "r415"
     ],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reflects the total carrying amount as of the balance sheet date of debt having initial terms less than one year or the normal operating cycle, if longer.",
        "label": "Short-term Debt",
        "terseLabel": "Short-term debt and current portion of finance leases"
       }
      }
     },
     "localname": "ShortTermBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "auth_ref": [
      "r9",
      "r167",
      "r171",
      "r172",
      "r173",
      "r174",
      "r175",
      "r176",
      "r177",
      "r178",
      "r179",
      "r180",
      "r181",
      "r182",
      "r185",
      "r186",
      "r187",
      "r188",
      "r190",
      "r191",
      "r192",
      "r193",
      "r194",
      "r196",
      "r202",
      "r216",
      "r228",
      "r232",
      "r233",
      "r429"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by business segments.",
        "label": "Segments [Axis]",
        "terseLabel": "Segment Reporting Information, by Segment [Axis]",
        "verboseLabel": "Segments [Axis]"
       }
      }
     },
     "localname": "StatementBusinessSegmentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails",
      "http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementClassOfStockAxis": {
     "auth_ref": [
      "r43",
      "r44",
      "r45",
      "r128",
      "r129",
      "r152",
      "r153",
      "r154",
      "r156",
      "r157",
      "r164",
      "r165",
      "r166",
      "r207",
      "r250",
      "r359"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by the different classes of stock of the entity.",
        "label": "Class of Stock [Axis]",
        "terseLabel": "Class of Stock [Axis]"
       }
      }
     },
     "localname": "StatementClassOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEIDocument"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r69",
      "r133",
      "r134",
      "r135",
      "r139",
      "r146",
      "r148",
      "r163",
      "r208",
      "r250",
      "r257",
      "r306",
      "r307",
      "r308",
      "r314",
      "r315",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r367",
      "r434",
      "r435",
      "r436"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]",
        "terseLabel": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Financial Position [Abstract]",
        "terseLabel": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfPartnersCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Partners' Capital [Abstract]",
        "terseLabel": "Statement of Partners' Capital [Abstract]"
       }
      }
     },
     "localname": "StatementOfPartnersCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r133",
      "r134",
      "r135",
      "r163",
      "r390"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails",
      "http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event.",
        "label": "Subsequent Event [Line Items]",
        "terseLabel": "Subsequent Event [Line Items]"
       }
      }
     },
     "localname": "SubsequentEventLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [
      "r368",
      "r376"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event [Member]"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTable": {
     "auth_ref": [
      "r368",
      "r376"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.",
        "label": "Subsequent Event [Table]",
        "terseLabel": "Subsequent Event [Table]"
       }
      }
     },
     "localname": "SubsequentEventTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r368",
      "r376"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]",
        "terseLabel": "Subsequent Event Type [Axis]"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r368",
      "r376"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]",
        "terseLabel": "Subsequent Event Type [Domain]"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails",
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Subsequent Events [Abstract]",
        "terseLabel": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r375",
      "r378"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
        "label": "Subsequent Events [Text Block]",
        "terseLabel": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/SUBSEQUENTEVENTS"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Subsidiary of Limited Liability Company or Limited Partnership [Line Items]",
        "terseLabel": "Subsidiary of Limited Liability Company or Limited Partnership [Line Items]"
       }
      }
     },
     "localname": "SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of units or percentage investment held in the subsidiary by the limited liability company or limited partnership.",
        "label": "Subsidiary of Limited Liability Company or Limited Partnership, Ownership Interest",
        "terseLabel": "Subsidiary of Limited Liability Company or Limited Partnership, Ownership Interest"
       }
      }
     },
     "localname": "SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_TemporaryEquityAccretionToRedemptionValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value of accretion of temporary equity to its redemption value during the period.",
        "label": "Temporary Equity, Accretion to Redemption Value",
        "terseLabel": "Series D Preferred Unit accretion, preferred"
       }
      }
     },
     "localname": "TemporaryEquityAccretionToRedemptionValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityCarryingAmountAttributableToParent": {
     "auth_ref": [],
     "calculation": {
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount, attributable to parent, of an entity's issued and outstanding stock which is not included within permanent equity. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. Includes stock with a put option held by an ESOP and stock redeemable by a holder only in the event of a change in control of the issuer.",
        "label": "Temporary Equity, Carrying Amount, Attributable to Parent",
        "periodEndLabel": "Temporary equity - ending balance",
        "periodStartLabel": "Temporary equity - beginning balance",
        "terseLabel": "Series D preferred limited partners (23,246,650 preferred units outstanding as of September\u00a030, 2020 and December\u00a031, 2019) (Note 8)",
        "verboseLabel": "Series D preferred units"
       }
      }
     },
     "localname": "TemporaryEquityCarryingAmountAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails",
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS",
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Temporary Equity Disclosure [Abstract]",
        "terseLabel": "Temporary Equity Disclosure [Abstract]"
       }
      }
     },
     "localname": "TemporaryEquityDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_TemporaryEquityNetIncome": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The portion of net income or loss attributable to temporary equity interest.",
        "label": "Temporary Equity, Net Income",
        "verboseLabel": "Net income, temporary equity"
       }
      }
     },
     "localname": "TemporaryEquityNetIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquityOtherChanges": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in temporary equity from changes classified as other.",
        "label": "Temporary Equity, Other Changes",
        "terseLabel": "Other, temporary equity"
       }
      }
     },
     "localname": "TemporaryEquityOtherChanges",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TemporaryEquitySharesOutstanding": {
     "auth_ref": [
      "r42"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of securities classified as temporary equity that have been issued and are held by the entity's shareholders. Securities outstanding equals securities issued minus securities held in treasury. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer.",
        "label": "Temporary Equity, Shares Outstanding",
        "terseLabel": "Series D preferred units outstanding"
       }
      }
     },
     "localname": "TemporaryEquitySharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_UnsecuredDebt": {
     "auth_ref": [
      "r41",
      "r399",
      "r416"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of uncollateralized debt obligations (with maturities initially due after one year or beyond the operating cycle if longer).",
        "label": "Unsecured Debt",
        "terseLabel": "The Term Loan, Initial Loan"
       }
      }
     },
     "localname": "UnsecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/DEBTNarrative2Details",
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnusualOrInfrequentItemAxis": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by an event or transaction that is unusual in nature or infrequent in occurrence, or both.",
        "label": "Unusual or Infrequent Item, or Both [Axis]",
        "terseLabel": "Unusual or Infrequent Item, or Both [Axis]"
       }
      }
     },
     "localname": "UnusualOrInfrequentItemAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnusualOrInfrequentItemDomain": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Event or transaction that is unusual in nature or infrequent in occurrence, or both.",
        "label": "Unusual or Infrequent Item, or Both [Domain]",
        "terseLabel": "Unusual or Infrequent Item, or Both [Domain]"
       }
      }
     },
     "localname": "UnusualOrInfrequentItemDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnusualOrInfrequentItemInsuranceProceeds": {
     "auth_ref": [
      "r105"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of insurance proceeds for an event or transaction that is unusual in nature or infrequent in occurrence, or both.",
        "label": "Unusual or Infrequent Item, or Both, Insurance Proceeds",
        "terseLabel": "Insurance proceeds received"
       }
      }
     },
     "localname": "UnusualOrInfrequentItemInsuranceProceeds",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnusualOrInfrequentItemLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Unusual or Infrequent Item, or Both [Line Items]",
        "terseLabel": "Unusual or Infrequent Item, or Both [Line Items]"
       }
      }
     },
     "localname": "UnusualOrInfrequentItemLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnusualOrInfrequentItemNatureOfEventOrTransaction": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the nature of an event or transaction that is unusual in nature or infrequent in occurrence, or both.",
        "label": "Unusual or Infrequent Item, or Both, Nature of Event or Transaction",
        "terseLabel": "Impact of fire at Selby, CA terminal"
       }
      }
     },
     "localname": "UnusualOrInfrequentItemNatureOfEventOrTransaction",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnusualOrInfrequentItemNetGainLoss": {
     "auth_ref": [
      "r104",
      "r105",
      "r176",
      "r322"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of (gain) loss for an event or transaction that is unusual in nature or occurs infrequently, or both.",
        "label": "Unusual or Infrequent Item, or Both, Net (Gain) Loss",
        "terseLabel": "Gain from business interruption insurance"
       }
      }
     },
     "localname": "UnusualOrInfrequentItemNetGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnusualOrInfrequentItemTable": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about the nature and financial statement effect of an event or transaction that is unusual in nature or infrequent in occurrence, or both.",
        "label": "Unusual or Infrequent Item, or Both [Table]",
        "terseLabel": "Unusual or Infrequent Item, or Both [Table]"
       }
      }
     },
     "localname": "UnusualOrInfrequentItemTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageLimitedPartnershipUnitsOutstanding": {
     "auth_ref": [
      "r259"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average number of limited partnership units outstanding determined by relating the portion of time within a reporting period that limited partnership units have been outstanding to the total time in that period.",
        "label": "Weighted Average Limited Partnership Units Outstanding, Basic",
        "terseLabel": "Basic weighted-average common units outstanding"
       }
      }
     },
     "localname": "WeightedAverageLimitedPartnershipUnitsOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageLimitedPartnershipUnitsOutstandingDiluted": {
     "auth_ref": [
      "r259"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average number of limited partnership units outstanding determined by relating the portion of time within a reporting period that limited partnership units have been outstanding to the total time in that period. Used in the calculation of diluted net income or loss per limited partnership unit.",
        "label": "Weighted Average Limited Partnership Units Outstanding, Diluted",
        "terseLabel": "Diluted weighted-average common units outstanding"
       }
      }
     },
     "localname": "WeightedAverageLimitedPartnershipUnitsOutstandingDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumerDilutedLimitedPartnershipUnitsOutstandingAdjustment": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The sum of dilutive potential limited partnership units used in the calculation of the diluted per-unit computation.",
        "label": "Weighted Average Number Diluted Limited Partnership Units Outstanding Adjustment",
        "terseLabel": "Effect of dilutive potential common units"
       }
      }
     },
     "localname": "WeightedAverageNumerDilutedLimitedPartnershipUnitsOutstandingAdjustment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 4
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721533-107759"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721494-107759"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.20)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.3)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.9)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114868879&loc=SL114871939-224231"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114868883&loc=SL114871943-224233"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114868897&loc=SL114872001-224240"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1474-107760"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3367-108585"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3521-108585"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721659-107760"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3044-108585"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4297-108586"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=SL98516268-108586"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "230",
   "URI": "http://asc.fasb.org/topic&trid=2134446"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721663-107760"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(e),(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21914-107793"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21930-107793"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21711-107793"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721665-107760"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22583-107794"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22595-107794"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22658-107794"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22663-107794"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=112272810&loc=d3e31137-122693"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721671-107760"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=112272810&loc=SL108384541-122693"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "250",
   "URI": "http://asc.fasb.org/topic&trid=2122394"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1252-109256"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1278-109256"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "55",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e2626-109256"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "270",
   "URI": "http://asc.fasb.org/extlink&oid=121640914&loc=SL77927221-108306"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6828210&loc=d3e70191-108054"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6828210&loc=d3e70229-108054"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6373374&loc=d3e70434-108055"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6373374&loc=d3e70478-108055"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8657-108599"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8672-108599"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8721-108599"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8721-108599"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8813-108599"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8813-108599"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8813-108599"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "26",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8844-108599"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8924-108599"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8981-108599"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8475-108599"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721494-107759"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "280",
   "URI": "http://asc.fasb.org/topic&trid=2134510"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4428-111522"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4531-111522"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=109237563&loc=d3e33775-111570"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "340",
   "URI": "http://asc.fasb.org/extlink&oid=6387103&loc=d3e6435-108320"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=99380562&loc=d3e13777-109266"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=120320667&loc=SL49117168-202975"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=SL108378252-109267"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13854-109267"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=6388964&loc=d3e16212-109274"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721677-107760"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "((a)(1),(b))",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226348&loc=d3e2420-110228"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2921-110230"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=SL51724579-110230"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "http://asc.fasb.org/topic&trid=2155823"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=121559207&loc=d3e25336-109308"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=121559207&loc=d3e25336-109308"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "http://asc.fasb.org/topic&trid=2144648"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14615-108349"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "http://asc.fasb.org/topic&trid=2127136"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/subtopic&trid=2122178"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-10(d)(4)(iii))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=120397115&loc=d3e168853-122756"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-10(d)(4)(iv))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=120397115&loc=d3e168853-122756"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=117329964&loc=d3e12317-112629"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=117329964&loc=d3e12355-112629"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(CFRR 211.02)",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=65877616&loc=d3e177068-122764"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=65888546&loc=d3e21300-112643"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21553-112644"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "http://asc.fasb.org/topic&trid=2122149"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21484-112644"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21488-112644"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21506-112644"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21521-112644"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21538-112644"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 4.F)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187171-122770"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.F)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187171-122770"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "http://asc.fasb.org/topic&trid=2208762"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121556615&loc=SL49130531-203044"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121556615&loc=SL49130532-203044"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121556615&loc=SL49130533-203044"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130551-203045"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130551-203045"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130556-203045"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130556-203045"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130556-203045"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130558-203045"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130543-203045"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130545-203045"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130549-203045"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130549-203045"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130550-203045"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "606",
   "URI": "http://asc.fasb.org/topic&trid=49130388"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721503-107759"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118257860&loc=d3e4179-114921"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6787-107765"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "720",
   "URI": "http://asc.fasb.org/extlink&oid=6419918&loc=d3e35281-107843"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120406818&loc=d3e31917-109318"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120406818&loc=d3e31931-109318"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32672-109319"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "740"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "740"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "740"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6801-107765"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=109227538&loc=d3e44648-109337"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=d3e5283-111683"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4613673-111683"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569616-111683"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569643-111683"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6935-107765"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "http://asc.fasb.org/topic&trid=2197479"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5580258-113959"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)(ii)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e7018-107765"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624181-113959"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624186-113959"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121582272&loc=SL5629052-113961"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121558989&loc=d3e80720-113993"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121549185&loc=d3e80748-113994"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "820",
   "URI": "http://asc.fasb.org/topic&trid=2155941"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13433-108611"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28541-108399"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(14))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121561866&loc=SL77919311-209978"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121576215&loc=SL77919372-209981"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314020-165662"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "http://asc.fasb.org/topic&trid=2122774"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19)(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=SL51823488-111719"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "http://asc.fasb.org/extlink&oid=119991564&loc=SL119991595-234733"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(1)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(2)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(3)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "http://asc.fasb.org/extlink&oid=68072869&loc=d3e41242-110953"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10)(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=d3e957-107759"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6957935&loc=d3e64057-112817"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "e",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(1))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(5))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121643868&loc=SL117782755-158439"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121639165&loc=SL117783719-158441"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121639165&loc=SL117783719-158441"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121639165&loc=SL117819544-158441"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(16))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401414&loc=d3e603758-122996"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-06(3))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401414&loc=d3e604059-122996"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r445": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r446": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r447": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "308",
   "Subsection": "a"
  },
  "r448": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r449": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r450": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r451": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "11",
   "Subsection": "03"
  },
  "r452": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r453": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "a",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "04"
  },
  "r454": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "c",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "4",
   "Subsection": "10"
  },
  "r455": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "d",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "(4)(iii)",
   "Subsection": "10"
  },
  "r456": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "d",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "(4)(iv)",
   "Subsection": "10"
  },
  "r457": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "d",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "4",
   "Subsection": "10"
  },
  "r458": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "e",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "4",
   "Subsection": "10"
  },
  "r459": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "f",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "4",
   "Subsection": "10"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r460": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "i",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "10"
  },
  "r461": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "c",
   "Publisher": "SEC",
   "Section": "5",
   "Subparagraph": "Schedule I",
   "Subsection": "04"
  },
  "r462": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "c",
   "Publisher": "SEC",
   "Section": "7",
   "Subparagraph": "Schedule II",
   "Subsection": "05"
  },
  "r463": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "9",
   "Subsection": "06"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(4))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721523-107759"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.1)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.13)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.14)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.17)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19,20)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.20)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.21)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721525-107759"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.24)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.28,29)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=d3e1012-107759"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.6(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.9)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226000-175313"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a),(b),(c)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i),(j),(k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e637-108580"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e681-108580"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669686-108580"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL34724394-108580"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e557-108580"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121640130&loc=d3e1436-108581"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(14))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(2))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.13)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2(a),(d))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  }
 },
 "version": "2.1"
}
