XML 66 R46.htm IDEA: XBRL DOCUMENT
v3.22.2.2

SIGNIFICANT ACCOUNTING POLICIES - (Gain) Loss on Sale of Assets (Details) - Loss gain on sale of assets $ in Millions | 12 Months Ended
--- | ---
Jul. 31, 2021 USD ($)
Property, Plant and Equipment [Line Items] |
Gain (loss) on sale of assets | $ 50
Finite-Lived Intangible Assets |
Property, Plant and Equipment [Line Items] |
Gain (loss) on sale of assets | 11
Property, Plant and Equipment |
Property, Plant and Equipment [Line Items] |
Gain (loss) on sale of assets | $ 39

X
- Definition 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. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_GainLossOnDispositionOfAssets1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=unfi_LossgainonsaleofassetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_FiniteLivedIntangibleAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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