XML 46 R34.htm IDEA: XBRL DOCUMENT
v3.21.1

Basis of Presentation and Description of Business - Additional Information (Detail) | 9 Months Ended
--- | ---
Mar. 25, 2021 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