XML 44 R32.htm IDEA: XBRL DOCUMENT
v3.22.1

Basis of Presentation and Description of Business - Additional Information (Detail) | 9 Months Ended
--- | ---
Mar. 24, 2022 Channel
Organization, Consolidation and Presentation of Financial Statements [Abstract] |
Number of distribution channels | 3

X
- Definition Number of distribution channels. + References No definition available. + Details
Name: | jbss_NumberOfDistributionChannels
Namespace Prefix: | jbss_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration