XML 61 R45.htm IDEA: XBRL DOCUMENT
v3.24.3

Summary of Significant Accounting Policies - Schedule of Deferred Commissions (Details) - USD ($) $ in Thousands | Aug. 31, 2024 | Aug. 26, 2023
--- | --- | ---
Prepaid expenses and other current assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 18,079 | $ 16,495
Other assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 78,856 | $ 70,393

X
- Definition Deferred commissions. + References No definition available. + Details
Name: | unf_DeferredCommissionsLineItem
Namespace Prefix: | unf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The carrying amount of deferred costs. + References No definition available. + Details
Name: | us-gaap_DeferredCostsCurrentAndNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |