XML 180 R104.htm IDEA: XBRL DOCUMENT
v3.25.1

Trade receivables (Details 2) - BRL (R$) R$ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Trade Receivables |  |  |
Balance at beginning of the year | R$ 1,377,209 | R$ 1,428,517 | R$ 1,280,088
Constitution/(reversal) of losses | 41,793 | 21,103 | 209,360
Recoveries | (170,793) | (72,411) | (60,931)
Balance at the end of the year | R$ 1,248,209 | R$ 1,377,209 | R$ 1,428,517

X
- References No definition available. + Details
Name: | sbs_AdditionalAllowanceRecognisedInProfitOrLossAllowanceAccountForCreditLossesOfFinancialAsset
Namespace Prefix: | sbs_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | sbs_AllowanceAccountForCreditLossesOfFinancialAssets1
Namespace Prefix: | sbs_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- References No definition available. + Details
Name: | sbs_DisclosureTradeReceivablesAbstract
Namespace Prefix: | sbs_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | sbs_RecoveriesRecognized
Namespace Prefix: | sbs_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration