XML 107 R95.htm IDEA: XBRL DOCUMENT
v3.25.2

Employee Benefit Plans - Expense for 401 (k) Plan (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jun. 26, 2025 | Jun. 27, 2024 | Jun. 29, 2023
401(k) [Member] |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |
401(k) plan expense | $ 4,085 | $ 3,987 | $ 2,746

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_PlanNameAxis=jbss_K401PlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |