XML 44 R33.htm IDEA: XBRL DOCUMENT
v3.23.3

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