.calculator-box {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 100%;
    margin: 20px auto;
    background: #fff;
    direction: rtl;
}

.calculator-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

/* الحقول */
.calculator-box .elementor-field {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    background: #FFF;
}

/* زر احسب */
.calculator-box .elementor-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #2271b1;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.calculator-box .elementor-button:hover {
    background-color: #135e96;
}

/* النتيجة */
.calculator-box .result {
    margin-top: 15px;
    font-weight: bold;
    color: #1a1a1a;
    background: #f3f3f3;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    color:red;
}

.calculator-box .sp10 {
    margin-bottom: 10px;
}

/* Select2 تعديل السيلكت */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    padding: 8px 12px;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: #FFF;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 8px;
    right: 8px;
}
.select2-container--default .select2-results > .select2-results__options {
    font-size: 15px;
    line-height: 1.6;
}

.calculator-box table {
    margin-top: 15px;
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    border-collapse: collapse;
}
.calculator-box table th,
.calculator-box table td {
    border: 1px solid #ddd;
    padding: 8px;
}
.calculator-box table th {
    background: #f0f0f0;
    font-weight: bold;
}

/* حاسبة التراكم: تنسيق النتيجة كنص وليس أحمر فقط */
#compound-calculator .result {
    color: #1a1a1a;
    background: #f3f3f3;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: normal;
}

#compound-calculator table th {
    background-color: #dfefff;
    color: #333;
}

#compound-calculator table td {
    background-color: #fff;
}

/* تنسيق قائمة نوع الفترة */
.calculator-box select.period-type {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 12px;
}

/* إصلاح لون الخيارات داخل القائمة */
.calculator-box select.period-type option {
    background-color: #fff;
    color: #000;
}