| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<FilingSummary> |
| <Version> 3.22.2.2 </Version> |
| <ProcessingTime/> |
| <ReportFormat> html </ReportFormat> |
| <ContextCount> 271 </ContextCount> |
| <ElementCount> 428 </ElementCount> |
| <EntityCount> 1 </EntityCount> |
| <FootnotesReported> false </FootnotesReported> |
| <SegmentCount> 86 </SegmentCount> |
| <ScenarioCount> 0 </ScenarioCount> |
| <TuplesReported> false </TuplesReported> |
| <UnitCount> 10 </UnitCount> |
| <MyReports> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R1.htm </HtmlFileName> |
| | | <LongName> 0001001 - Document - Cover </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Cover </Role> |
| | | <ShortName> Cover </ShortName> |
| | | <MenuCategory> Cover </MenuCategory> |
| | | <Position> 1 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R2.htm </HtmlFileName> |
| | | <LongName> 0002002 - Document - Audit Information </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/AuditInformation </Role> |
| | | <ShortName> Audit Information </ShortName> |
| | | <MenuCategory> Cover </MenuCategory> |
| | | <Position> 2 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R3.htm </HtmlFileName> |
| | | <LongName> 1001003 - Statement - Consolidated Statements of Financial Position </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/ConsolidatedStatementsofFinancialPosition </Role> |
| | | <ShortName> Consolidated Statements of Financial Position </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 3 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R4.htm </HtmlFileName> |
| | | <LongName> 1003004 - Statement - Consolidated Statements of Operations </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/ConsolidatedStatementsofOperations </Role> |
| | | <ShortName> Consolidated Statements of Operations </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 4 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R5.htm </HtmlFileName> |
| | | <LongName> 1005005 - Statement - Consolidated Statements of Changes in Equity </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/ConsolidatedStatementsofChangesinEquity </Role> |
| | | <ShortName> Consolidated Statements of Changes in Equity </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 5 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R6.htm </HtmlFileName> |
| | | <LongName> 1006006 - Statement - Consolidated Statements of Cash Flows </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/ConsolidatedStatementsofCashFlows </Role> |
| | | <ShortName> Consolidated Statements of Cash Flows </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 6 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R7.htm </HtmlFileName> |
| | | <LongName> 1402401 - Statement - Consolidated Statements of Financial Position (Parenthetical) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/ConsolidatedStatementsofFinancialPositionParenthetical </Role> |
| | | <ShortName> Consolidated Statements of Financial Position (Parenthetical) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 7 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R8.htm </HtmlFileName> |
| | | <LongName> 1404402 - Statement - Consolidated Statements of Operations (Parenthetical) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/ConsolidatedStatementsofOperationsParenthetical </Role> |
| | | <ShortName> Consolidated Statements of Operations (Parenthetical) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 8 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R9.htm </HtmlFileName> |
| | | <LongName> 2101101 - Disclosure - Description of business </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Descriptionofbusiness </Role> |
| | | <ShortName> Description of business </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 9 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R10.htm </HtmlFileName> |
| | | <LongName> 2103102 - Disclosure - Basis of presentation and significant accounting policies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Basisofpresentationandsignificantaccountingpolicies </Role> |
| | | <ShortName> Basis of presentation and significant accounting policies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 10 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R11.htm </HtmlFileName> |
| | | <LongName> 2108103 - Disclosure - Revenue </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Revenue </Role> |
| | | <ShortName> Revenue </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 11 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R12.htm </HtmlFileName> |
| | | <LongName> 2113104 - Disclosure - Inventories </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Inventories </Role> |
| | | <ShortName> Inventories </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 12 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R13.htm </HtmlFileName> |
| | | <LongName> 2117105 - Disclosure - Property and equipment </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Propertyandequipment </Role> |
| | | <ShortName> Property and equipment </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 13 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R14.htm </HtmlFileName> |
| | | <LongName> 2121106 - Disclosure - Leases </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Leases </Role> |
| | | <ShortName> Leases </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 14 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R15.htm </HtmlFileName> |
| | | <LongName> 2129107 - Disclosure - Goodwill and other intangible assets </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Goodwillandotherintangibleassets </Role> |
| | | <ShortName> Goodwill and other intangible assets </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 15 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R16.htm </HtmlFileName> |
| | | <LongName> 2134108 - Disclosure - Accrued expenses </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Accruedexpenses </Role> |
| | | <ShortName> Accrued expenses </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 16 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R17.htm </HtmlFileName> |
| | | <LongName> 2138109 - Disclosure - Debt </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Debt </Role> |
| | | <ShortName> Debt </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 17 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R18.htm </HtmlFileName> |
| | | <LongName> 2143110 - Disclosure - Derivative instruments </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Derivativeinstruments </Role> |
| | | <ShortName> Derivative instruments </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 18 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R19.htm </HtmlFileName> |
| | | <LongName> 2149111 - Disclosure - Fair value measurements </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Fairvaluemeasurements </Role> |
| | | <ShortName> Fair value measurements </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 19 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R20.htm </HtmlFileName> |
| | | <LongName> 2152112 - Disclosure - Income taxes </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Incometaxes </Role> |
| | | <ShortName> Income taxes </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 20 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R21.htm </HtmlFileName> |
| | | <LongName> 2159113 - Disclosure - Employee benefit plans </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Employeebenefitplans </Role> |
| | | <ShortName> Employee benefit plans </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 21 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R22.htm </HtmlFileName> |
| | | <LongName> 2161114 - Disclosure - Commitment and contingencies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Commitmentandcontingencies </Role> |
| | | <ShortName> Commitment and contingencies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 22 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R23.htm </HtmlFileName> |
| | | <LongName> 2163115 - Disclosure - Equity-based compensation </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Equitybasedcompensation </Role> |
| | | <ShortName> Equity-based compensation </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 23 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R24.htm </HtmlFileName> |
| | | <LongName> 2169116 - Disclosure - Related party transactions </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Relatedpartytransactions </Role> |
| | | <ShortName> Related party transactions </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 24 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R25.htm </HtmlFileName> |
| | | <LongName> 2171117 - Disclosure - Casualty loss (gain) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Casualtylossgain </Role> |
| | | <ShortName> Casualty loss (gain) </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 25 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R26.htm </HtmlFileName> |
| | | <LongName> 2173118 - Disclosure - Earnings per share </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Earningspershare </Role> |
| | | <ShortName> Earnings per share </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 26 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R27.htm </HtmlFileName> |
| | | <LongName> 2177119 - Disclosure - Subsequent events </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/Subsequentevents </Role> |
| | | <ShortName> Subsequent events </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 27 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R28.htm </HtmlFileName> |
| | | <LongName> 2204201 - Disclosure - Basis of presentation and significant accounting policies (Policies) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/BasisofpresentationandsignificantaccountingpoliciesPolicies </Role> |
| | | <ShortName> Basis of presentation and significant accounting policies (Policies) </ShortName> |
| | | <MenuCategory> Policies </MenuCategory> |
| | | <Position> 28 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R29.htm </HtmlFileName> |
| | | <LongName> 2305301 - Disclosure - Basis of presentation and significant accounting policies (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/BasisofpresentationandsignificantaccountingpoliciesTables </Role> |
| | | <ShortName> Basis of presentation and significant accounting policies (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Basisofpresentationandsignificantaccountingpolicies </ParentRole> |
| | | <Position> 29 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R30.htm </HtmlFileName> |
| | | <LongName> 2309302 - Disclosure - Revenue (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/RevenueTables </Role> |
| | | <ShortName> Revenue (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Revenue </ParentRole> |
| | | <Position> 30 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R31.htm </HtmlFileName> |
| | | <LongName> 2314303 - Disclosure - Inventories (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/InventoriesTables </Role> |
| | | <ShortName> Inventories (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Inventories </ParentRole> |
| | | <Position> 31 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R32.htm </HtmlFileName> |
| | | <LongName> 2318304 - Disclosure - Property and equipment (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/PropertyandequipmentTables </Role> |
| | | <ShortName> Property and equipment (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Propertyandequipment </ParentRole> |
| | | <Position> 32 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R33.htm </HtmlFileName> |
| | | <LongName> 2322305 - Disclosure - Leases (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/LeasesTables </Role> |
| | | <ShortName> Leases (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Leases </ParentRole> |
| | | <Position> 33 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R34.htm </HtmlFileName> |
| | | <LongName> 2330306 - Disclosure - Goodwill and other intangible assets (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/GoodwillandotherintangibleassetsTables </Role> |
| | | <ShortName> Goodwill and other intangible assets (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Goodwillandotherintangibleassets </ParentRole> |
| | | <Position> 34 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R35.htm </HtmlFileName> |
| | | <LongName> 2335307 - Disclosure - Accrued expenses (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/AccruedexpensesTables </Role> |
| | | <ShortName> Accrued expenses (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Accruedexpenses </ParentRole> |
| | | <Position> 35 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R36.htm </HtmlFileName> |
| | | <LongName> 2339308 - Disclosure - Debt (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DebtTables </Role> |
| | | <ShortName> Debt (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Debt </ParentRole> |
| | | <Position> 36 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R37.htm </HtmlFileName> |
| | | <LongName> 2344309 - Disclosure - Derivative instruments (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DerivativeinstrumentsTables </Role> |
| | | <ShortName> Derivative instruments (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Derivativeinstruments </ParentRole> |
| | | <Position> 37 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R38.htm </HtmlFileName> |
| | | <LongName> 2350310 - Disclosure - Fair value measurements (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/FairvaluemeasurementsTables </Role> |
| | | <ShortName> Fair value measurements (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Fairvaluemeasurements </ParentRole> |
| | | <Position> 38 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R39.htm </HtmlFileName> |
| | | <LongName> 2353311 - Disclosure - Income taxes (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/IncometaxesTables </Role> |
| | | <ShortName> Income taxes (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Incometaxes </ParentRole> |
| | | <Position> 39 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R40.htm </HtmlFileName> |
| | | <LongName> 2364312 - Disclosure - Equity-based compensation (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EquitybasedcompensationTables </Role> |
| | | <ShortName> Equity-based compensation (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Equitybasedcompensation </ParentRole> |
| | | <Position> 40 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R41.htm </HtmlFileName> |
| | | <LongName> 2374313 - Disclosure - Earnings per share (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EarningspershareTables </Role> |
| | | <ShortName> Earnings per share (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Earningspershare </ParentRole> |
| | | <Position> 41 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R42.htm </HtmlFileName> |
| | | <LongName> 2402403 - Disclosure - Description of business (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DescriptionofbusinessDetails </Role> |
| | | <ShortName> Description of business (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Descriptionofbusiness </ParentRole> |
| | | <Position> 42 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R43.htm </HtmlFileName> |
| | | <LongName> 2406404 - Disclosure - Basis of presentation and significant accounting policies - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/BasisofpresentationandsignificantaccountingpoliciesNarrativeDetails </Role> |
| | | <ShortName> Basis of presentation and significant accounting policies - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/BasisofpresentationandsignificantaccountingpoliciesTables </ParentRole> |
| | | <Position> 43 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R44.htm </HtmlFileName> |
| | | <LongName> 2407405 - Disclosure - Basis of presentation and significant accounting policies - Schedule of Concentration Risk by Customer (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/BasisofpresentationandsignificantaccountingpoliciesScheduleofConcentrationRiskbyCustomerDetails </Role> |
| | | <ShortName> Basis of presentation and significant accounting policies - Schedule of Concentration Risk by Customer (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 44 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R45.htm </HtmlFileName> |
| | | <LongName> 2410406 - Disclosure - Revenue - Disaggregation of Revenue (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/RevenueDisaggregationofRevenueDetails </Role> |
| | | <ShortName> Revenue - Disaggregation of Revenue (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 45 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R46.htm </HtmlFileName> |
| | | <LongName> 2411407 - Disclosure - Revenue - Schedule of Change in Contract Liabilities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/RevenueScheduleofChangeinContractLiabilitiesDetails </Role> |
| | | <ShortName> Revenue - Schedule of Change in Contract Liabilities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 46 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R47.htm </HtmlFileName> |
| | | <LongName> 2412408 - Disclosure - Revenue - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/RevenueNarrativeDetails </Role> |
| | | <ShortName> Revenue - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 47 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R48.htm </HtmlFileName> |
| | | <LongName> 2415409 - Disclosure - Inventories - Schedule of Inventories (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/InventoriesScheduleofInventoriesDetails </Role> |
| | | <ShortName> Inventories - Schedule of Inventories (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 48 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R49.htm </HtmlFileName> |
| | | <LongName> 2416410 - Disclosure - Inventories - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/InventoriesNarrativeDetails </Role> |
| | | <ShortName> Inventories - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 49 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R50.htm </HtmlFileName> |
| | | <LongName> 2419411 - Disclosure - Property and equipment - Schedule of Property and Equipment (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/PropertyandequipmentScheduleofPropertyandEquipmentDetails </Role> |
| | | <ShortName> Property and equipment - Schedule of Property and Equipment (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 50 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R51.htm </HtmlFileName> |
| | | <LongName> 2420412 - Disclosure - Property and equipment - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/PropertyandequipmentNarrativeDetails </Role> |
| | | <ShortName> Property and equipment - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 51 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R52.htm </HtmlFileName> |
| | | <LongName> 2423413 - Disclosure - Leases - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/LeasesNarrativeDetails </Role> |
| | | <ShortName> Leases - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 52 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R53.htm </HtmlFileName> |
| | | <LongName> 2424414 - Disclosure - Leases - Amounts in Consolidated Statements of Financial Position for Leases (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/LeasesAmountsinConsolidatedStatementsofFinancialPositionforLeasesDetails </Role> |
| | | <ShortName> Leases - Amounts in Consolidated Statements of Financial Position for Leases (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 53 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R54.htm </HtmlFileName> |
| | | <LongName> 2425415 - Disclosure - Leases - Lease Costs (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/LeasesLeaseCostsDetails </Role> |
| | | <ShortName> Leases - Lease Costs (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 54 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R55.htm </HtmlFileName> |
| | | <LongName> 2426416 - Disclosure - Leases - Maturity of Operating Lease Liabilities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/LeasesMaturityofOperatingLeaseLiabilitiesDetails </Role> |
| | | <ShortName> Leases - Maturity of Operating Lease Liabilities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 55 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R56.htm </HtmlFileName> |
| | | <LongName> 2427417 - Disclosure - Leases - Supplemental Cash Flow Information (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/LeasesSupplementalCashFlowInformationDetails </Role> |
| | | <ShortName> Leases - Supplemental Cash Flow Information (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 56 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R57.htm </HtmlFileName> |
| | | <LongName> 2428418 - Disclosure - Leases - Future Minimum Payments Prior To Adoption of ASC 842 (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/LeasesFutureMinimumPaymentsPriorToAdoptionofASC842Details </Role> |
| | | <ShortName> Leases - Future Minimum Payments Prior To Adoption of ASC 842 (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 57 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R58.htm </HtmlFileName> |
| | | <LongName> 2431419 - Disclosure - Goodwill and other intangible assets - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/GoodwillandotherintangibleassetsNarrativeDetails </Role> |
| | | <ShortName> Goodwill and other intangible assets - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 58 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R59.htm </HtmlFileName> |
| | | <LongName> 2432420 - Disclosure - Goodwill and other intangible assets - Schedule of Intangible Assets (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/GoodwillandotherintangibleassetsScheduleofIntangibleAssetsDetails </Role> |
| | | <ShortName> Goodwill and other intangible assets - Schedule of Intangible Assets (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 59 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R60.htm </HtmlFileName> |
| | | <LongName> 2433421 - Disclosure - Goodwill and other intangible assets - Schedule of Future Amortization Expense (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/GoodwillandotherintangibleassetsScheduleofFutureAmortizationExpenseDetails </Role> |
| | | <ShortName> Goodwill and other intangible assets - Schedule of Future Amortization Expense (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 60 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R61.htm </HtmlFileName> |
| | | <LongName> 2436422 - Disclosure - Accrued expenses - Schedule of Accrued Liabilities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/AccruedexpensesScheduleofAccruedLiabilitiesDetails </Role> |
| | | <ShortName> Accrued expenses - Schedule of Accrued Liabilities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 61 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R62.htm </HtmlFileName> |
| | | <LongName> 2437423 - Disclosure - Accrued expenses - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/AccruedexpensesNarrativeDetails </Role> |
| | | <ShortName> Accrued expenses - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 62 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R63.htm </HtmlFileName> |
| | | <LongName> 2440424 - Disclosure - Debt - Schedule of Long Term Debt (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DebtScheduleofLongTermDebtDetails </Role> |
| | | <ShortName> Debt - Schedule of Long Term Debt (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 63 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R64.htm </HtmlFileName> |
| | | <LongName> 2441425 - Disclosure - Debt - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DebtNarrativeDetails </Role> |
| | | <ShortName> Debt - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 64 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R65.htm </HtmlFileName> |
| | | <LongName> 2442426 - Disclosure - Debt - Schedule of Long Term Debt Repayment (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DebtScheduleofLongTermDebtRepaymentDetails </Role> |
| | | <ShortName> Debt - Schedule of Long Term Debt Repayment (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 65 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R66.htm </HtmlFileName> |
| | | <LongName> 2445427 - Disclosure - Derivative instruments - Interest Rate Swaps (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DerivativeinstrumentsInterestRateSwapsDetails </Role> |
| | | <ShortName> Derivative instruments - Interest Rate Swaps (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 66 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R67.htm </HtmlFileName> |
| | | <LongName> 2446428 - Disclosure - Derivative instruments - Total Notional Amount (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DerivativeinstrumentsTotalNotionalAmountDetails </Role> |
| | | <ShortName> Derivative instruments - Total Notional Amount (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 67 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R68.htm </HtmlFileName> |
| | | <LongName> 2447429 - Disclosure - Derivative instruments - Estimated Fair Value and Classification of Derivative Instruments on the Condensed Consolidated Statements of Financial Position (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DerivativeinstrumentsEstimatedFairValueandClassificationofDerivativeInstrumentsontheCondensedConsolidatedStatementsofFinancialPositionDetails </Role> |
| | | <ShortName> Derivative instruments - Estimated Fair Value and Classification of Derivative Instruments on the Condensed Consolidated Statements of Financial Position (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 68 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R69.htm </HtmlFileName> |
| | | <LongName> 2448430 - Disclosure - Derivative instruments - Amounts and Classification of the Gains and Losses in the Condensed Consolidated Statements of Operations (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/DerivativeinstrumentsAmountsandClassificationoftheGainsandLossesintheCondensedConsolidatedStatementsofOperationsDetails </Role> |
| | | <ShortName> Derivative instruments - Amounts and Classification of the Gains and Losses in the Condensed Consolidated Statements of Operations (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 69 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R70.htm </HtmlFileName> |
| | | <LongName> 2451431 - Disclosure - Fair value measurements - Assets and Liabilities Measured on a Recurring Basis (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/FairvaluemeasurementsAssetsandLiabilitiesMeasuredonaRecurringBasisDetails </Role> |
| | | <ShortName> Fair value measurements - Assets and Liabilities Measured on a Recurring Basis (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 70 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R71.htm </HtmlFileName> |
| | | <LongName> 2454432 - Disclosure - Income taxes - Provision (Benefit) for Income Taxes (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/IncometaxesProvisionBenefitforIncomeTaxesDetails </Role> |
| | | <ShortName> Income taxes - Provision (Benefit) for Income Taxes (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 71 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R72.htm </HtmlFileName> |
| | | <LongName> 2455433 - Disclosure - Income taxes - Schedule of Deferred Tax Assets and Liabilities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/IncometaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails </Role> |
| | | <ShortName> Income taxes - Schedule of Deferred Tax Assets and Liabilities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 72 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R73.htm </HtmlFileName> |
| | | <LongName> 2456434 - Disclosure - Income taxes - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/IncometaxesNarrativeDetails </Role> |
| | | <ShortName> Income taxes - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 73 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R74.htm </HtmlFileName> |
| | | <LongName> 2457435 - Disclosure - Income taxes - Effective Income Tax Rate Reconciliation (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/IncometaxesEffectiveIncomeTaxRateReconciliationDetails </Role> |
| | | <ShortName> Income taxes - Effective Income Tax Rate Reconciliation (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 74 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R75.htm </HtmlFileName> |
| | | <LongName> 2458436 - Disclosure - Income taxes - Schedule of Unrecognized Tax Benefits (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/IncometaxesScheduleofUnrecognizedTaxBenefitsDetails </Role> |
| | | <ShortName> Income taxes - Schedule of Unrecognized Tax Benefits (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 75 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R76.htm </HtmlFileName> |
| | | <LongName> 2460437 - Disclosure - Employee benefit plans (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EmployeebenefitplansDetails </Role> |
| | | <ShortName> Employee benefit plans (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Employeebenefitplans </ParentRole> |
| | | <Position> 76 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R77.htm </HtmlFileName> |
| | | <LongName> 2462438 - Disclosure - Commitment and contingencies (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/CommitmentandcontingenciesDetails </Role> |
| | | <ShortName> Commitment and contingencies (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Commitmentandcontingencies </ParentRole> |
| | | <Position> 77 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R78.htm </HtmlFileName> |
| | | <LongName> 2465439 - Disclosure - Equity-based compensation - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EquitybasedcompensationNarrativeDetails </Role> |
| | | <ShortName> Equity-based compensation - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 78 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R79.htm </HtmlFileName> |
| | | <LongName> 2466440 - Disclosure - Equity-based compensation - Activity for Awards (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EquitybasedcompensationActivityforAwardsDetails </Role> |
| | | <ShortName> Equity-based compensation - Activity for Awards (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 79 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R80.htm </HtmlFileName> |
| | | <LongName> 2467441 - Disclosure - Equity-based compensation - Valuation Assumptions (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EquitybasedcompensationValuationAssumptionsDetails </Role> |
| | | <ShortName> Equity-based compensation - Valuation Assumptions (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 80 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R81.htm </HtmlFileName> |
| | | <LongName> 2468442 - Disclosure - Equity-based compensation - Stock Option Activity (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EquitybasedcompensationStockOptionActivityDetails </Role> |
| | | <ShortName> Equity-based compensation - Stock Option Activity (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 81 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R82.htm </HtmlFileName> |
| | | <LongName> 2470443 - Disclosure - Related party transactions (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/RelatedpartytransactionsDetails </Role> |
| | | <ShortName> Related party transactions (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Relatedpartytransactions </ParentRole> |
| | | <Position> 82 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R83.htm </HtmlFileName> |
| | | <LongName> 2472444 - Disclosure - Casualty loss (gain) (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/CasualtylossgainDetails </Role> |
| | | <ShortName> Casualty loss (gain) (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.duckhornportfolio.com/role/Casualtylossgain </ParentRole> |
| | | <Position> 83 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R84.htm </HtmlFileName> |
| | | <LongName> 2475445 - Disclosure - Earnings per share - Reconciliation of Basic and Diluted Income Per Share (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EarningspershareReconciliationofBasicandDilutedIncomePerShareDetails </Role> |
| | | <ShortName> Earnings per share - Reconciliation of Basic and Diluted Income Per Share (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 84 </Position> |
| | | </Report> |
| | <Report instance="napa-20220731.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R85.htm </HtmlFileName> |
| | | <LongName> 2476446 - Disclosure - Earnings per share - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.duckhornportfolio.com/role/EarningspershareNarrativeDetails </Role> |
| | | <ShortName> Earnings per share - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 85 </Position> |
| | | </Report> |
| | <Report> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <LongName> All Reports </LongName> |
| | | <ReportType> Book </ReportType> |
| | | <ShortName> All Reports </ShortName> |
| | | </Report> |
| | </MyReports> |
| <Logs> |
| | <Log type="Warning"> [ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 7 fact(s) appearing in ix:hidden were eligible for transformation: napa:DefinedContributionPlanVestingPeriod, us-gaap:AllowanceForDoubtfulAccountsReceivableRecoveries, us-gaap:IncomeTaxExaminationPenaltiesAndInterestExpense, us-gaap:LesseeOperatingLeaseTermOfContract, us-gaap:LongtermPurchaseCommitmentPeriod, us-gaap:ProvisionForDoubtfulAccounts - napa-20220731.htm 4 </Log> |
| | </Logs> |
| <InputFiles> |
| | <File doctype="10-K" original="napa-20220731.htm"> napa-20220731.htm </File> |
| | <File> fy22q4-exhibit1027.htm </File> |
| | <File> fy22q4-exhibit211.htm </File> |
| | <File> fy22q4-exhibit231.htm </File> |
| | <File> fy22q4-exhibit311.htm </File> |
| | <File> fy22q4-exhibit312.htm </File> |
| | <File> fy22q4-exhibit321.htm </File> |
| | <File> napa-20220731.xsd </File> |
| | <File> napa-20220731_cal.xml </File> |
| | <File> napa-20220731_def.xml </File> |
| | <File> napa-20220731_lab.xml </File> |
| | <File> napa-20220731_pre.xml </File> |
| | </InputFiles> |
| <SupplementalFiles> |
| | <File> napa-20220731_g1.jpg </File> |
| | </SupplementalFiles> |
| <BaseTaxonomies> |
| | <BaseTaxonomy items="913"> http://fasb.org/us-gaap/2022 </BaseTaxonomy> |
| | <BaseTaxonomy items="37"> http://xbrl.sec.gov/dei/2022 </BaseTaxonomy> |
| | </BaseTaxonomies> |
| <HasPresentationLinkbase> true </HasPresentationLinkbase> |
| <HasCalculationLinkbase> true </HasCalculationLinkbase> |
| </FilingSummary> |