XML 35 R25.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Basis of Presentation - Additional Information (Detail) | 9 Months Ended
--- | ---
Sep. 30, 2022 | Sep. 30, 2021
Organization Consolidation And Presentation Of Financial Statements [Abstract] |  |
Percentage of comparable consolidated amounts | 95.00% | 95.00%

X
- Definition Percentage of comparable consolidated amount. + References No definition available. + Details
Name: | amsf_PercentageOfComparableConsolidatedAmount
Namespace Prefix: | amsf_
Data Type: | dtr-types:percentItemType
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