/**
 * Companies Checker - CSS Styles
 */


        .flex-layout-body {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'David', 'Alef', Arial, sans-serif;
            background-color: #f8f9fa;
        }

        /* ===== STATUS INDICATOR ===== */
        .layout-status-indicator {
            position: fixed;
            top: 10px;
            left: 10px;
            background: #333;
            color: white;
            padding: 2px 5px;
            border-radius: 5px;
            font-size: 0.9em;
            z-index: 1000;
        }

        /* ===== RESPONSIVE STATUS TEXT ===== */
        .layout-status-indicator::before {
            content: "🖥️ מצב מחשב";
        }

        @media (max-width: 768px) {
            .layout-status-indicator::before {
                content: "📱 מצב נייד";
            }
        }

        /* ===== MAIN CONTAINER ===== */
        .responsive-main-container {
            width: 100%;
            background-color: #f8f9fa;
            font-family: 'David', 'Alef', Arial, sans-serif;
            padding: 6px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* ===== MAIN CONTENT SECTION ===== */
        .primary-content-section {
            flex: 0 0 60%;
            min-width: 0;
            background-color: #f8f9fa;
            padding: 5px;
            border-radius: 10px;
        }

        .content-section-header {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            color: white;
            padding: 5px;
            border-radius: 5px;
            text-align: center;
            font-weight: bold;
            margin-bottom: 20px;
        }

        /* ===== EXPLANATIONS CONTAINER ===== */
        .explanations-wrapper {
            flex: 0 0 40%;
            min-width: 0;
            display: flex;
            gap: 10px;
        }

        /* ===== EXPLANATION BOXES ===== */
        .explanation-box {
            flex: 1;
            min-width: 0;
            background-color: white;
            padding: 5px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .explanation-box-secondary {
            margin-top: 10px;
        }

        .explanation-header {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            color: white;
            padding: 5px;
            border-radius: 5px;
            text-align: center;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .explanation-header-secondary {
            margin-bottom: 5px;
            margin-top: 10px;
        }

        .explanation-content {
            line-height: 1.6;
            color: #495057;
        }

        /* ===== RESPONSIVE BEHAVIOR ===== */
        @media (max-width: 768px) {
            .responsive-main-container {
                flex-direction: column !important;
            }
            
            .explanations-wrapper {
                flex-direction: column !important;
            }
        }

        @media (min-width: 769px) {
            .responsive-main-container {
                flex-direction: row-reverse !important;
            }
            
            .explanations-wrapper {
                flex-direction: column !important;
            }
        }





/*    14.6.2025   עיצוב טבלת חישוב הכנסות רגילות והכנסות מידיעה אישית להצגה בסופית ///////////////    //////*/
.table_section_62a1_income_calculation {
            width: 100%;
            border-collapse: collapse;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
            font-family: 'David', 'Alef', Arial, sans-serif; 
            direction: rtl; 
            text-align: right;
            table-layout: fixed; /* מונע מהטבלה למתוח את הקונטיינר */
            word-wrap: break-word; /* שוברת טקסטים ארוכים */
        }
        
        
        
 

        .table_section_62a1_income_calculation .main-header-tables td {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            text-align: center;
            font-weight: bold;
            font-size: 1.2em;
            padding: 15px;
            border-bottom: 3px solid #1a252f;
            word-wrap: break-word; /* שוברת טקסט ארוך בכותרת */
        }
        
        
        
        
        .table_section_62a1_income_calculation .note-footer {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-top: 2px solid #6c757d;
            padding: 15px;
            text-align: right;
            font-size: 0.95em;
            color: #495057;
            border-bottom: none;
            word-wrap: break-word; /* שוברת טקסט ארוך בהערה */
        }

        .table_section_62a1_income_calculation .note-footer strong {
            color: #dc3545;
        }
           
        .table_section_62a1_income_calculation th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            text-align: center;
            font-weight: bold;
            border-bottom: 2px solid #5a6fd8;
            word-wrap: break-word; /* שוברת טקסט ארוך בכותרות עמודות */
        }

     .table_section_62a1_income_calculation td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* ← זה חסר! */
    max-width: 0; /* ← וזה גם חסר! */
    overflow: hidden; /* ← ועוד זה! */
    }


        .table_section_62a1_income_calculation tr:hover {
            background-color: #f9f9f9;
        }

        .table_section_62a1_income_calculation .detail-column {
            text-align: right;
            font-weight: 500;
            width: 55%; /* הגדלתי מעט כי עמודה זו יש הכי הרבה טקסט */
        }

        .table_section_62a1_income_calculation .interim-column {
            text-align: center;
            background-color: #f8f9fa;
            width: 20%;
            color: #999;
            font-style: italic;
        }

        .table_section_62a1_income_calculation .amount-column {
            text-align: left;
            font-weight: bold;
            width: 25%; /* הקטנתי מעט כי הסכומים קצרים יותר */
            color: #2c5aa0;
        }

        .table_section_62a1_income_calculation .highlighted-row {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
            font-weight: bold;
        }

        .table_section_62a1_income_calculation .highlighted-row:hover {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        }

        .table_section_62a1_income_calculation .highlighted-row .amount-column {
            color: #856404;
            font-size: 1.1em;
        }

        /* עיצוב לכותרת קטגוריה */
        .table_section_62a1_income_calculation .section-header td {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            color: white;
            text-align: center;
            font-weight: bold;
            padding: 10px;
            border-top: 2px solid #0c7489;
            word-wrap: break-word; /* שוברת טקסט ארוך בכותרות סקציות */
        }

        /* עיצוב לשורת סיכום ביניים */
        .table_section_62a1_income_calculation .subtotal-row {
            background: linear-gradient(135deg, #e2f3ff 0%, #b3d9ff 100%);
            font-weight: bold;
            border-top: 1px solid #007bff;
        }

        .table_section_62a1_income_calculation .subtotal-row:hover {
            background: linear-gradient(135deg, #e2f3ff 0%, #b3d9ff 100%);
        }

        .table_section_62a1_income_calculation .subtotal-row .amount-column {
            color: #0056b3;
        }

        /* עיצוב רספונסיבי לנייד */
        @media (max-width: 768px) {
            .table_section_62a1_income_calculation {
                font-size: 0.9em;
            }
            
            .table_section_62a1_income_calculation th,
            .table_section_62a1_income_calculation td {
                padding: 8px;
            }
            
            .table_section_62a1_income_calculation .detail-column {
                width: 50%; /* יותר מקום לטקסט בנייד */
            }
            
            .table_section_62a1_income_calculation .interim-column {
                width: 25%;
            }
            
            .table_section_62a1_income_calculation .amount-column {
                width: 25%;
            }
        }





/* עיצוב הטופס */
.companies-checker-container {
    direction: rtl;
    text-align: right;
    font-family: 'David', 'Alef', Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
 
    box-sizing: border-box;
}


/* 
.companies-checker-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f8f9fe;
    border-radius: 40px  !important;
}
*/

/* קוד עיצוב שאלות לגבי רווחים צבורים 


.form-section {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f9fe;
    border-radius: 40px  !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-section h1 {
    color: #2c5282;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #c5d5ea;
    padding-bottom: 10px;
}
*/



.form-group {
    display: flex;
    /*flex-direction: column; */
    gap: 10px;
    margin: 35px 0; 
    padding: 10px;
    border-right: 2px solid black;
    
}

.form-group > label {
    font-size: 15px !important;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #2c5282;
    line-height: 1.7 !important;

    
    
}

.form-group input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.error-message {
    color: #d63638;
    font-size: 14px;
    margin-top: 5px;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .companies-checker-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-group input {
        font-size: 15px;
        padding: 10px;
    }
    
    .popup-content {
        width: 90%;
        padding: 20px;
    }
}



/*  עיצוב טופס 26.7.2025  */
small {
    color: #7A6F3C;
    font-size: 13px;
    margin-top: 1px;
    display: block;
    line-height: 1.3;
    text-align: justify;
}


/* הודעת הסבר לפרק */
.form-chapter-explanation {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border: 1px solid #1e3a8a;
    border-radius: 8px;
    padding: 10px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
    font-weight: 500;
}



/* רספונסיביות למובייל */
@media (max-width: 768px) {
    .form-chapter-explanation {
        padding: 15px;
        margin: 20px 0;
    }
    
    .form-chapter-explanation p {
        font-size: 14px;
        line-height: 1.5;
    }
}




/*  עיצוב טבלה בשאלה 6 של בעלי השליטה   */

/* מיכל הטבלה */
.shareholders-table-container {
    width: 98%;
    margin: 10px auto 0 auto;
    overflow-x: auto;
    clear: both;
}

/* הטבלה עצמה */
.shareholders-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #374151;
    border-radius: 10px;
    background: white;
  
}

/* כותרות הטבלה */
.shareholders-table th {
    background-color: #f8f9fa;
    border: 1px solid #374151;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    color: #1f2937;
    font-size: 14px;
    vertical-align: middle;
}

/* תאי הטבלה */
.shareholders-table td {
    border: 1px solid #374151;
    padding: 1px;
    text-align: center;
    vertical-align: middle;
    background-color: white;
}

/* שדות קלט בטבלה */
.shareholders-table input[type="text"],
.shareholders-table input[type="number"],
.shareholders-table select {
   width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
    background: white;
    box-sizing: border-box;
    margin: 0;
     min-width: 100% !important;
    max-width: 100% !important;
}

/* כפתור מחיקה */
.shareholders-table .delete-row {
    background: #dc2626;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}


.add-row-button {
   background: linear-gradient(135deg, #1e3a8a, #1e40af);
   color: white;
   border: none;
   
   border-radius: 6px;
   cursor: pointer;
   font-size: 14px; /* הקטנת פונט */
   font-weight: 600;
   margin: 15px auto 0 auto; /* מרכז את הכפתור */
   display: block; /* לאפשר מרכוז */
   
   transition: all 0.3s ease;
}

.add-row-button:hover {
   background: linear-gradient(135deg, #1e40af, #1d4ed8);
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.add-row-button:disabled {
   background: #9ca3af;
   cursor: not-allowed;
   transform: none;
   box-shadow: none;
}

/* סיכום אחוזים - מתחת לטבלה ולפני הכפתור */
.total-percentage {
   margin-top: 10px;
   margin-bottom: 15px;
   padding: 10px;
   background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
   border-radius: 6px;
   border: 1px solid #e5e7eb;
   font-weight: 600;
   color: #1e3a8a;
   text-align: center;
   font-size: 14px;
}

.percentage-error {
   color: #dc2626 !important;
   font-weight: bold;
}






/* קבוצת checkbox - שורה אחת */
.checkbox-group {
   display: flex;
   flex-wrap: nowrap;
   gap: 30px;
   margin: 15px 0;
   align-items: center;
   font-weight: 600 !important;
   
}

/* פריט checkbox בודד */
.checkbox-item {
   display: flex;
   align-items: center;
   white-space: nowrap; /* למנוע שבירת שורה */
   

   
}

/* checkbox עצמו - לפני הטקסט */

.checkbox-group input[type="checkbox"] {
   width: auto;
   height: auto;
   margin-left: 8px; /* מרחק מהטקסט */
   margin-right: 0;
   padding: 0;
   order: -1; /* מעביר את הcheckbox לפני הlabel */
   font-weight: 600;
   
}

/* הטקסט של הlabel */

.checkbox-group label {
   margin-bottom: 0;
   
   
   cursor: pointer;
   font-size: 13px !important; /* אותיות קטנות יותר */
   white-space: nowrap; /* למנוע שבירת שורה */
    font-weight: 600 !important;
}

/* רספונסיביות למובייל - שבירה לשורות */
@media (max-width: 768px) {
   .checkbox-group {
       
       align-items: flex-start;
       gap: 5px;
       width : 95% !important;
       min-width: 95% !important;
       max-width: 95% !important;
   }
   
   .checkbox-item {
       white-space: normal; /* אפשר שבירה במובייל */
   }
   
   .checkbox-item label {
       white-space: normal; /* אפשר שבירה במובייל */
       font-size: 12px;
   }
}



.shareholders-select-wrapper .checkbox-wrapper {
    display: flex !important;
    flex-direction: row !important;
  
    margin-bottom: 10px !important;
    gap: 0 !important;
    
}
.shareholders-select-wrapper .checkbox-wrapper input[type="checkbox"] {
    margin: 0 8px 0 0 !important;
    order: -1;
    width: auto !important;
    color: blue !important;
   
}




/* 29.7.2025   עיצוב טבלת הוספת תשלומים לחברות קשורות */
/* מיכל תשלומים לחברות קשורות */
#related-companies-payments-container {
   margin-top: 30px;
   padding: 20px;
   background: #f8fafc;
   border-radius: 8px;
   border: 1px solid #e2e8f0;
}

/* רשימת חברות קשורות */
.related-companies-list {
   margin-bottom: 25px;
   display: flex;
   flex-direction: column;
   gap: 20px;
}

/* כפתור הוספת חברה - דק ואופקי */
#add-related-company {
   background: linear-gradient(135deg, #ffffff, #f8fafc);
   color: #1e3a8a;
   border: 2px solid #1e3a8a;
   padding: 12px 25px;
   border-radius: 25px;
   cursor: pointer;
   font-size: 14px;
   font-weight: 600;
   margin: 0 auto;
   display: block;
   width: auto;
   min-width: 180px;
   max-width: 250px;
   transition: all 0.3s ease;
   box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

#add-related-company:hover {
   background: linear-gradient(135deg, #1e3a8a, #1e40af);
   color: white;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* כרטיס חברה קשורה */
.related-company-card {
   background: white;
   border: 1px  #e2e8f0;
   border-radius: 12px;
   padding: 25px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
   transition: all 0.3s ease;
}

.related-company-card:hover {
   border-color: #1e3a8a;
   box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
}

/* כותרת כרטיס */
.related-company-card .card-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 25px;
   padding-bottom: 15px;
   border-bottom: 2px solid #f1f5f9;
}

.related-company-card .card-header h3 {
   margin: 0;
   color: #1e3a8a;
   font-size: 18px;
   font-weight: 600;
}

/* כפתור מחיקת חברה */
.delete-related-company {
   background: #dc2626;
   color: white;
   border: none;
   padding: 8px 16px;
   border-radius: 20px;
   cursor: pointer;
   font-size: 12px;
   font-weight: 600;
   transition: all 0.3s ease;
}

.delete-related-company:hover {
   background: #b91c1c;
   transform: scale(1.05);
}

/* גוף הכרטיס */
.related-company-card .card-body {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

/* שדה שאלה בכרטיס - אנכי */
.related-company-card .question-field {
   display: flex;
   flex-direction: column;
   gap: 8px;
   margin-bottom: 20px;
}

.related-company-card .question-field label {
   margin-bottom: 0;
   font-weight: 600;
   color: #374151;
   font-size: 14px;
   line-height: 1.4;
}

.related-company-card .question-field input,
.related-company-card .question-field select {
   width: 100%;
   padding: 12px 15px;
   border: 1px solid #d1d5db;
   border-radius: 6px;
   font-size: 14px;
   box-sizing: border-box;
   font-family: 'David', 'Alef', Arial, sans-serif;
}

.related-company-card .question-field input:focus,
.related-company-card .question-field select:focus {
   outline: none;
   border-color: #1e3a8a;
   box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* הערות קטנות */
.related-company-card .question-field small {
   color: #7A6F3C;
   font-size: 12px;
   margin-top: 5px;
   line-height: 1.4;
}

/* רספונסיביות למובייל */
@media (max-width: 768px) {
   #related-companies-payments-container {
       padding: 15px;
   }
   
   .related-company-card {
       padding: 20px;
   }
   
   .related-company-card .card-header h3 {
       font-size: 16px;
   }
   
   .related-company-card .question-field {
       gap: 6px;
       margin-bottom: 15px;
   }
   
   .related-company-card .question-field label {
       font-size: 13px;
   }
   
   .related-company-card .question-field input,
   .related-company-card .question-field select {
       padding: 10px 12px;
       font-size: 13px;
   }
   
   #add-related-company {
       padding: 10px 20px;
       font-size: 13px;
       min-width: 160px;
   }
}


/* 1.8.2025   עיצוב טבלת הוספת לקוחות נושאי משרה */
/* מיכל לקוחות ושירותים */
.clients-table-container {
    width: 100%;
     margin: 0 auto;
}

.table-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;   
}




/* רשימת לקוחות */
.clients-services-list {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* כפתור הוספת לקוח - דק ואופקי */
#add-client-row,
#add-employment-client-row,
#add-significant-client-row {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #1e3a8a;
    border: 1px solid #1e3a8a;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto;
    display: block;
    width: auto;
    min-width: 180px;
    max-width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
    
}

#add-client-row:hover,
#add-employment-client-row:hover,
#add-significant-client-row:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    transform: translateY(-1px);
    
}

/* כרטיס לקוח */
.client-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-width: 600px; /* רוחב מקסימלי קבוע */
    margin: 0 auto; /* ממרכז כל כרטיס */
    width: 100%;
}


.client-card:hover {
    border-color: #1e3a8a;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
}

/* כותרת כרטיס */
.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.client-card-header h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 18px;
    font-weight: 600;
}

/* כפתור מחיקת לקוח */
.delete-client-card,
.delete-employment-client-card,
.delete-significant-client-card {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.delete-client-card:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* גוף הכרטיס */
.client-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}




/* שדה שאלה בכרטיס - אנכי   */
.client-card .question-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.client-card .question-field label {
    margin-bottom: 0;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
      min-width: 100% !important;
    max-width: 100% !important;
}

.client-card .question-field input:not([type="checkbox"]),
.client-card .question-field select {
    width: 100%;
      min-width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'David', 'Alef', Arial, sans-serif;
}




.client-card .question-field input:focus,
.client-card .question-field select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.client-card .question-field small {
    color: #7A6F3C;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}




/* ערך מחושב */
.calculated-value {
    background: #f8fafc;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* Make calculated values more prominent 
.calculated-value {
    font-size: 18px;
    font-weight: bold;
    color: #0063B1;
    padding: 8px;
    background-color: #f0f7ff;
    border-radius: 4px;
    display: inline-block;
    min-width: 100px;
    text-align: left;
}*/

/* רספונסיביות למובייל */
@media (max-width: 768px) {
    .clients-table-container {
        padding: 15px;
    }
    
    .client-card {
        padding: 20px;
        max-width: 100%; /* רוחב מלא במובייל */
    }
    
    .client-card-header h3 {
        font-size: 16px;
    }
    
    .client-card .question-field {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .client-card .question-field label {
        font-size: 13px;
    }
    
    .client-card .question-field input,
    .client-card .question-field select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    #add-client-row,
    #add-employment-client-row,
    #add-significant-client-row {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 160px;
    }
}






/* 1.8.2025   עיצוב טבלת הכנסותאחרות והוצאות קשורות והכנסות בכלל  */

/* עיצוב עבור חלק הכנסות נוספות */


#additional-income-section h2 {
    margin-bottom: 15px;
    color: #333;
}




.table-responsive {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}



.additional-income-table,
.expenses-attribution-table {
    width: 800px; /* רוחב קבוע בפיקסלים */
    border-collapse: collapse;
    margin: 10px auto;
    max-width: 100%; /* למובייל */
}

/* עבור התאמה למסכים קטנים */


.additional-income-table th, 
.additional-income-table td,
.expenses-attribution-table th,
.expenses-attribution-table td {
    padding: 5px;
    text-align: right;
    border: 1px solid #ddd;
}


.additional-income-table input[type="number"],
.expenses-attribution-table input[type="number"]
{
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
     direction: rtl;
      min-width: 100% !important;
    max-width: 100% !important;
}

.additional-income-table .total-row {
    background-color: #e9f7ef;
    font-weight: bold;
    border-top: 2px solid #2e86c1;
}


#total_additional_income {
    font-size: 18px;
    color: #2e86c1;
}

/* עבור התאמה למסכים קטנים */
@media screen and (max-width: 768px) {
    .additional-income-table,
    .expenses-attribution-table
    {
        display: block;
        overflow-x: auto;
        min-width: 100% !important;
    max-width: 100% !important;
    width: 100%;
    }
    #additional-income-section {
    margin: 5px 0;
    padding: 5px;
    width: 100%;
    max-width: 100% !important;
    width: 100%;
}
}

/*  1.8.2025   עצוב טבלת עובדים לפי חודש   */


        .employees-table-container {
            width: 800px; /* רוחב קבוע בפיקסלים */
            border-collapse: collapse;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px 0;
            
            
        }

        .employees-table {
            margin: 20px auto !important;
            
            width: 800px;
            max-width: 800px;
            border-collapse: separate;
            border-spacing: 0;
            margin: 20px 0;
            background: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        /* כותרות הטבלה */
        .employees-table thead th {
            background: linear-gradient(135deg, #2d3748, #1a365d);
            color: #ffffff;
            font-weight: 600;
            padding: 18px 15px;
            text-align: center;
            font-size: 14px;
            letter-spacing: 0.3px;
            border-bottom: 3px solid #2b6cb0;
        }

        /* תאי הטבלה */
        .employees-table td {
            padding: 15px 10px;
            text-align: center;
            border-bottom: 1px solid #e8eef5;
            background: #ffffff;
            transition: background-color 0.2s ease;
            
        }

        /* שורות זוגיות */
        .employees-table tbody tr:nth-child(even) td {
            background: #f8fafc;
        }

        /* אפקט hover לשורות */
        .employees-table tbody tr:hover td {
            background: #eef3f8;
        }

        /* שדות קלט */
        .employees-table input[type="number"],
        .employees-table input[type="text"] {
            width: 100%;
            max-width: 100% !important;
            min-width: 100% !important;
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            background: #ffffff;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        /* פוקוס על שדות */
        .employees-table input:focus {
            outline: none;
            border-color: #2b6cb0;
            background: #f0f7ff;
            box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
        }

        /* שורת סיכום */
        .employees-table tfoot td {
            background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
            font-weight: 600;
            padding: 8px 6px;
            border-top: 1px solid #cbd5e0;
            color: #1a365d;
            font-size: 15px;
        }

        /* תא ריק בשורת הסיכום */
        .employees-table tfoot td:first-child {
            text-align: right;
            padding-right: 10px;
        }

        /* סכום כולל */
        .employees-table .total-sum {
            color: #2b6cb0;
            font-size: 18px;
            font-weight: 700;
            width: 100%;
            
        }

        /* רספונסיביות למובייל */
        @media (max-width: 768px) {
            .employees-table-container {
                padding: 10px;
            }

            .employees-table {
                font-size: 13px;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            }

            .employees-table thead th {
                padding: 12px 8px;
                font-size: 13px;
            }

            .employees-table td {
                padding: 10px 5px;
            }

            .employees-table input {
                max-width: 80px;
                padding: 8px;
                font-size: 13px;
            }

            .employees-table tfoot td {
                padding: 14px 10px;
                font-size: 14px;
            }

            .employees-table .total-sum {
                font-size: 16px;
            }
        }

        /* אנימציה עדינה בטעינה */
        .employees-table {
            animation: fadeIn 0.5s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }







/*  2.8.2025   עיצוב טבלת בעלי מניות מהותיים ובעלי מניות פעילים */

/* סגנונות לשאלה  25 וטבלת בעלי מניות מהותיים ופעילים  */
.input-with-choice {
    display: flex;
    align-items: center;
}

.input-with-choice input {
    flex: 1;
    margin-right: 10px;
}

.input-with-choice select {
    width: 100px;
}

/* סגנונות לשאלה 26 */
.significant-shareholders-container {
    margin-top: 10px;
}

.scroll-container {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 15px;
}

.significant-shareholders-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px auto !important;
    border-spacing: 0;
            margin: 20px 0;
            background: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.significant-shareholders-table th,
.significant-shareholders-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
    vertical-align: top;
}

.significant-shareholders-table th {
    background-color: #f2f2f2;
    
    margin: 20px auto;
}

.significant-shareholders-table td:first-child {
    background-color: #f9f9f9;
    min-width: 250px;
    width: 30%;
}

.significant-shareholders-table input,
.significant-shareholders-table select {
    width: 100%;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.significant-shareholders-table label {
    display: block;
    font-size: 15px !important;
    margin-bottom: 5px;
    font-weight: 500 !important;
    width: 100%;
    min-width: 100% !important;
    max-width: 100% !important;
}

.significant-shareholders-table small {
    display: block;
    color: #7A6F3C;
    font-size: 13px;
    margin-top: 3px;
    
}

.add-shareholder-btn {
    background-color: #076EAD;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    
    
}

.delete-shareholder-btn {
 
    right: 5px;
    top: 5px;
    background-color: #f44336;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.percentage-error {
    color: #f44336;
    font-weight: bold;
}

.total-percentage-container {
    padding: 10px;
    max-width: 300px;
    border: 1px solid #ddd;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    margin: 20px auto;
    color: #7A6F3C;
}

.conditional-field {
    background-color: #f0f8ff;
}

.entity-row td {
    background-color: #f1f8ff;
}

.significant-shareholders-table tr.entity-row td {
    padding: 8px;
    border: 1px solid #ddd;
}

.significant-shareholders-table .shareholder-entity {
    width: 90%;
    padding: 8px;
    border: 1px solid #c5d5ea;
    border-radius: 4px;
    font-size: 14px;
}

.significant-shareholders-table select.shareholder-entity {
    height: auto;
    min-height: 30px;
}








/* 2.8.2025  עיצוב טופס שאלות הקשורות לרווחים נצברים לפי סעיף 77 לפקודה   */
/* ברירת מחדל - מסך רגיל */
.form-group.calculated-field .calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    
    background-color: #f8f9fa;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.form-group.calculated-field .calc-row label {
    display: inline-block;
    flex: 0 1 auto;
    margin: 0 15px 0 0;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}

.form-group.calculated-field .calc-row .calculated-value {
    display: inline-block;
    flex: 0 0 auto;
    font-weight: 600;
    color: #2b6cb0;
    background-color: white;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    min-width: 100px !important; /* כנראה נחוץ בגלל ה-width: 100% של client-card */
    text-align: center;
    white-space: nowrap;
}

/* שורה אחרונה */
.form-group.calculated-field .calc-row.final {
    
    border: 0px solid #2b6cb0;
}

.form-group.calculated-field .calc-row.final .calculated-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    border-bottom: 2px solid #2b6cb0;
}

/* מובייל - שומר על אותו פורמט */
@media (max-width: 768px) {
    .form-group.calculated-field .calc-row {
        display: flex !important; /* כנראה יש כללים אחרים למובייל */
        flex-direction: row !important; /* חשוב לשמור על כיוון אופקי */
        justify-content: space-between;
        align-items: flex-start;
        padding: 5px;
    }
    
    .form-group.calculated-field .calc-row label {
        flex: 1 1 60%;
        font-size: 13px;
        line-height: 1.3;
        margin-left: 10px;
    }
    
    .form-group.calculated-field .calc-row .calculated-value {
        flex: 0 0 auto;
        min-width: 70px !important; /* כנראה נחוץ בגלל כללים אחרים */
        font-size: 14px;
        padding: 5px 5px !important;
    }
    
    .form-group.calculated-field .calc-row.final .calculated-value {
        font-size: 16px;
    }
}

/* שורת התוצאה הסופית המודגשת */
.form-group.calculated-field .calc-row.highlight-result {
    
    border: 1px solid #E1E1E5;
    margin-top: 20px;
   
}

.form-group.calculated-field .calc-row.highlight-result .calculated-value {
    font-size: 20px;
    font-weight: 700;
    
    
   
    padding: 10px 25px;
}

/* במובייל */
@media (max-width: 768px) {
    .form-group.calculated-field .calc-row.highlight-result .calculated-value {
        font-size: 18px;
    }
}


#simple_total_accumulated_profit{
    background-color: white;
    padding: 5px;
    border-radius: 6px;
    border-right: 2px solid ;
    margin-top: 5px;
    width: 120px;
    align-content: center;
    flex-direction: row; 
    
}

.profits-table {
    width: 100%;
    border-bottom : 2px solid #cbd5e0;
    margin: 5px 0;
   
}

.profits-table tr td {
    padding: 5px;
    
}

.profits-table tr td:first-child {
    width: 70%;
    background-color: white;
    
}

.profits-table input[type="number"] {
    width: 100%;
    padding: 5px;
     border-bottom : 2px solid #cbd5e0;
    border-radius: 4px;
    
    min-width: 100% !important;
}




@media (max-width: 768px) {
    .calculated-field {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .calculated-field label {
        flex: 1;
        word-wrap: break-word;
    }
    
    .calculated-field .calculated-value {
        flex-shrink: 0;
        white-space: nowrap;
    }
}



/*  4.8.2025  עיצוב טבלאות שותפויות  */

.partnerships-table-container {
    margin: 5px auto;
    padding: 10px;
    width: 60%;
}

.partnerships-list {
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
}

/* כרטיס שותפות בודד */
.partnership-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.partnership-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* כותרת כרטיס */
.partnership-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.partnership-card .card-header h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 16px;
}

/* כפתור מחיקה */
.delete-partnership-card {
    background: #dc2626;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 15px !important;
}

/* שדות בכרטיס - ברירת מחדל למסך רגיל */
.partnership-card .question-field {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 95% ;
    margin-bottom: 15px;
}

.partnership-card .question-field label {
    flex: 0 0 70%;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.partnership-card .question-field input,
.partnership-card .question-field select {
    flex: 0 0 30%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

/* טבלת תשלומים לשותפויות */
.partnership-payments-table-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* רספונסיבי למובייל */
@media (max-width: 768px) {
    
    .partnerships-table-container {
    margin: 5px auto;
    padding: 5px;
    width: 95%;
     }
    
    
    .partnership-card {
        padding: 15px;
    }
    
    .partnership-card .question-field {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .partnership-card .question-field label {
        flex: none;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .partnership-card .question-field input,
    .partnership-card .question-field select {
        flex: none;
        width: 100%;
    }
    
    .partnership-payments-table-container {
        margin: 10px auto;
        padding: 15px;
        max-width: 95%;
    }
}





#partnership-payments-table {
    width: 100%;
    border-collapse: collapse;
}

#partnership-payments-table th {
    background: #1e3a8a;
    color: white;
    padding: 12px;
    text-align: right;
}

#partnership-payments-table td {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

#partnership-payments-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 95% !important;
        min-width:95% !important;
    width: 95% !important;
}

#partnership-payments-table input:focus {
    outline: none;
    border-color: #1e3a8a;
}

/* רספונסיבי */
@media (max-width: 768px) {
    .partnership-payments-table-container {
        max-width: 95% !important;
        min-width:95% !important;
        padding: 15px;
        margin: 10px auto;  /* הוסף auto כדי למרכז */
    }
}




/* פתרון אגרסיבי לצ'קבוקסים בשותפות */
.partnership-card .checkbox-wrapper {
    display: block ;
    width: 100% ;
    clear: both ;
    margin-bottom: 10px ;
    float: none ;
    position: relative ;
}

.partnership-card .checkbox-wrapper:after {
    content: "";
    display: table;
    clear: both;
}

.partnership-card .checkbox-wrapper input[type="checkbox"] {
   
    float: none ;
    margin: 0 8px 0 0 ;
    position: static ;
}

.partnership-card .checkbox-wrapper label {
    
    float: none ;
    width: auto ;
    position: static ;
}

/* אם יש container מסביב לצ'קבוקסים */
.partnership-card .checkbox-group,
.partnership-card .checkboxes-container {
    display: block ;
    width: 100% ;
}


/* תיקון למובייל בלבד */

/* תיקון למובייל - checkbox וטקסט צמודים בתחילת השורה */
/* תיקון למובייל - checkbox וטקסט צמודים בתחילת השורה */
@media (max-width: 768px) {
    .partnership-card .checkbox-wrapper {
         display: flex !important;
        
        gap: 8px !important;
        direction: rtl !important;
        padding-right: 5% !important; /* דוחף 5 %מימין */
        width: 50px !important;
        max-width: 50px !important;
   
       
    }
    
    .partnership-card .checkbox-wrapper input[type="checkbox"] {
        order: -1 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    .partnership-card .checkbox-wrapper label {
        display: inline !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        
    }
}


/*   8.8.2025   סידור שאלת הרווח או הפסד בטופס שותפויות 8 */

.partnership-card .question-field:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
}

.partnership-card .question-field:last-child label {
    flex: 1 1 60% !important; /* גמיש עד 60% */
}

.partnership-card .income-wrapper {
    flex: 1 1 40% !important; /* גמיש עד 40% */
    display: flex !important;
    gap: 10px !important;
   
}

.partnership-card .income-wrapper input[type="number"] {
    flex: 1 !important;
    min-width: 0 !important;
}

.partnership-card .income-wrapper select {
    flex: 0 0 90px !important;
}

/* במובייל */
@media (max-width: 768px) {
    .partnership-card .income-wrapper {
        gap: 10px !important;
    }
    
    .partnership-card .income-wrapper select {
        flex: 0 0 80px !important;
    }
}







/*  עיצוב טבלת שאלות דידיבנדנד   לפיס עיף 62א(א3) */
/* עיצוב לחלק הדיבידנד בטופס */
/* 16.8.2025    עיצוב הערה דיבידדנד   */

#section_62a_dividend_income_default_intro,
#section_62a_dividend_income_intro {
   background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border: 1px solid #1e3a8a;
    border-radius: 8px;
    padding: 10px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
    font-weight: 600;
}




/* כרטיס חברה מחלקת דיבידנד */
.dividend-company-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 60%;
    margin: 10px auto;
}


/* כותרת כרטיס */
.dividend-company-card .card-header {
    background-color: #f0f7fc;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dividend-company-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2980b9;
}

/* גוף כרטיס */
.dividend-company-card .card-body {
    padding: 15px;
}





.dividend-company-card .question-field label {
   
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.dividend-company-card .question-field input[type="text"],
.dividend-company-card .question-field input[type="number"] {
     
    padding: 5px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}




@media (max-width: 768px) {
    
    .dividend-company-card {
    
        width: 100%;        
    }
}



/* כפתורים */
.delete-dividend-company {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.delete-dividend-company:hover {
    background-color: #c0392b;
}

#add_section_62a_dividend_income_company {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    display: block;
    width: 100%;
    max-width: 250px;
    
}

#add_section_62a_dividend_income_company:hover {
    background-color: #27ae60;
}

/* הודעות שגיאה */
#section_62a_dividend_income_q37_error,
#section_62a_dividend_income_q38_error,
#section_62a_dividend_income_q39_error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* מצב חסר בעלי מניות */
.no-shareholders {
    color: #7f8c8d;
    font-style: italic;
    padding: 10px 0;
    background-color: #27ae60;
}




/* 16.8.2025   עיצוב כפתור שליחת טופס */

    .submit-button {
        font-family: 'David', 'Alef', Arial, sans-serif;
        font-size: 16px;
        font-weight: 600;
        width: 30%;
        background-color: white;
        color: black;
        padding: 10px 30px;
        border-radius: 4px;
        margin: 20px auto;
        display: block;  
         border: 1px solid #183F80; /* הוספת גבול דק */
          
    }
    @media (max-width: 768px) {
      .submit-button {
          width: 70%;
      }
    }

















































/* אנימציית טעינה */
.loading-spinner {
    display: none;
    justify-content: center;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* פופאפ */
.companies-checker-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 90%;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
}

.popup-content.show {
    opacity: 1;
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-popup:hover {
    color: #333;
}

#popup-message {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.6;
}











/* תיבות הערות */
.note-box {
    background-color: #fff9e6;
    border: 1px solid #ffd699;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}






/* קוד עיצוב של הצגת רווחים צבורים לפי סעיף 77 בסוף ה POPUP */
.accumulated-profits-summary {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    border: 2px solid #4CAF50;
}

.accumulated-profits-summary th {
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    padding: 12px;
    text-align: center;
}

.accumulated-profits-summary td {
    padding: 10px;
    border: 1px solid #c5d5ea;
}

.accumulated-profits-summary tr:last-child {
    background-color: #e8f5e9;
    font-weight: bold;
}

.accumulated-profits-summary tr:last-child td {
    border-top: 2px solid #4CAF50;
}

.accumulated-profits-summary tr td:first-child {
    width: 70%;
    text-align: right;
}

.accumulated-profits-summary tr td:last-child {
    width: 30%;
    text-align: left;
    font-weight: bold;
    direction: ltr; /* To ensure numbers display right-to-left */
}





/* להוסיף ל-style.css */
.green-summary {
    background-color: #AFC7B8;
    margin-top: 20px;
    border: 1px solid #4CAF50;
}

.green-summary td {
    padding: 10px 15px;
    border: 1px solid #b8d8b8;
}

.green-summary tr td:first-child {
    font-weight: bold;
    text-align: right;
}

.green-summary tr td:last-child {
    text-align: left;
}



/* הערות (טולטיפ) */
.tooltip-text {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70% !important;
    max-width: 70%;
    background-color: white;
    color: #062645;
    text-align: right;
    border-radius: 6px;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: 'David', 'Alef', Arial, sans-serif;
    line-height: 1.9;
}

.info-icon {
    background-color: #062645;
     width: 13px;
    height: 13px;
    font-size: 12px;
}

.tooltip-text.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}













