XML 137 R123.htm IDEA: XBRL DOCUMENT
v3.23.1

Operating segments (Details) - Schedule of long-lived assets - USD ($) $ in Thousands | Dec. 31, 2022 | Dec. 31, 2021 | Jan. 01, 2021
--- | --- | --- | ---
Operating segments (Details) - Schedule of long-lived assets [Line Items] |  |  |
Total long-lived assets | $ 246,630 | $ 227,345 | $ 218,437
UNITED STATES |  |  |
Operating segments (Details) - Schedule of long-lived assets [Line Items] |  |  |
Total long-lived assets | 82,325 | 76,369 | 74,577
ISRAEL |  |  |
Operating segments (Details) - Schedule of long-lived assets [Line Items] |  |  |
Total long-lived assets | 148,819 | 138,071 | 129,248
Europe [Member] |  |  |
Operating segments (Details) - Schedule of long-lived assets [Line Items] |  |  |
Total long-lived assets | 7,885 | 4,423 | 5,115
JAPAN |  |  |
Operating segments (Details) - Schedule of long-lived assets [Line Items] |  |  |
Total long-lived assets | 4,696 | 5,543 | 6,428
Other [Member] |  |  |
Operating segments (Details) - Schedule of long-lived assets [Line Items] |  |  |
Total long-lived assets | $ 2,905 | $ 2,939 | $ 3,069

X
- Definition Long-lived assets other than financial instruments, long-term customer relationships of a financial institution, mortgage and other servicing rights, deferred policy acquisition costs, and deferred tax assets. + References No definition available. + Details
Name: | mgic_LonglivedAssets
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Details
Name: | srt_StatementGeographicalAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_IL
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=srt_EuropeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_JP
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=mgic_OtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |