XML 43 R32.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Basis of Presentation and Description of Business - Additional Information (Detail) | 3 Months Ended
--- | ---
Sep. 29, 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