XML 111 R98.htm IDEA: XBRL DOCUMENT
v3.22.1

Segment Geographical Information and Major Customers (Details) - Schedule of total revenues classified according to geographical destination - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Revenue, Major Customer [Line Items] |  |  |
Total revenues | $ 480,325 | $ 371,194 | $ 325,630
United States [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Total revenues | 254,342 | 177,882 | 158,095
Israel [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Total revenues | 180,462 | 149,094 | 124,523
Europe [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Total revenues | 30,085 | 26,947 | 25,788
Japan [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Total revenues | 11,443 | 12,643 | 12,499
Other [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Total revenues | $ 3,993 | $ 4,628 | $ 4,725

X
- Definition Total revenues + References No definition available. + Details
Name: | mgic_SalesRevenuesNet
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_EntityWideRevenueMajorCustomerLineItems
Namespace Prefix: | us-gaap_
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_OthersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |