XML 163 R87.htm IDEA: XBRL DOCUMENT
v3.25.1

Risk Management (Details 5) - BRL (R$) R$ in Thousands | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
IfrsStatementLineItems [Line Items] |  |
Cash and cash equivalents and financial investments | R$ 5,382,300 | R$ 3,265,236
AAA(bra) [Member] |  |
IfrsStatementLineItems [Line Items] |  |
Cash and cash equivalents and financial investments | 4,186,146 | 2,940,690
Other [member] |  |
IfrsStatementLineItems [Line Items] |  |
Cash and cash equivalents and financial investments | R$ 1,196,154 | R$ 324,546

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

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

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=sbs_AAABraMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=sbs_OthersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |