.ap-table-wrapper {
    overflow-x: auto;
}
.ap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-radius: 5px;
}
.ap-table th, .ap-table td {
    padding: 10px;
    border: 1px solid #ddd;
}
.ap-table thead {
    background-color: #f8f8f8;
    font-weight: bold;
}
.ap-table-search {
    margin-bottom: 15px;
}

.ap-table-search input{
	width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 14px;
}

.gram-color{
	font-size:11px;
	color:#006cac;
}


}
.gold-price-info .update-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}
.gold-price-info .conversion-note {
    font-size: 11px;
    color: #999;
}
.currency-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #000;
    border:1px solid #006cac;
    padding:5px;
    width::100%;
}
        .gold-update-time {
            text-align: right;
            font-size: 14px;
            color: #555;
            margin-bottom: 20px;
        }
        .gold-widgets {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        .gold-widget {
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 15px;
            flex: 1 1 300px;
            box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
            background: #fff;
        }
        .gold-widget h3 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 20px;
            border-bottom: 2px solid #f0ad4e;
            padding-bottom: 5px;
            color: #c98918;
        }
        .gold-price-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .gold-price-table th, .gold-price-table td {
            border: 1px solid #ddd;
            padding: 8px 12px;
            text-align: center;
        }
        .gold-price-table th {
            background-color: #f9f9f9;
            font-weight: bold;
        }
        .currency-flag {
            width: 22px;
            height: 15px;
            vertical-align: middle;
            margin-left: 5px;
            border: 1px solid #ddd;
        }

.gold-20days-table .gr, .gold-20days-table .oz{
    font-weight: bold;
}



.silver-update-time {
            text-align: right;
            font-size: 14px;
            color: #555;
            margin-bottom: 20px;
        }
        .silver-widgets {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        .silver-widget {
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 15px;
            flex: 1 1 300px;
            box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
            background: #fff;
        }
        .silver-widget h3 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 20px;
            border-bottom: 2px solid #5a5a5a;
            padding-bottom: 5px;
            color: #5a5a5a;
        }
        .silver-price-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .silver-price-table th, .silver-price-table td {
            border: 1px solid #ddd;
            padding: 8px 12px;
            text-align: center;
        }
        .silver-price-table th {
            background-color: #f9f9f9;
            font-weight: bold;
        }
        .currency-flag {
            width: 22px;
            height: 15px;
            vertical-align: middle;
            margin-left: 5px;
            border: 1px solid #ddd;
        }

.silver-20days-table .gr, .silver-20days-table .oz{
    font-weight: bold;
}


       #fcs-chart-container {
            background: #fff;
            border-radius: 5px;
            padding: 15px;
            max-width: 100%;
            border: 1px solid #dee2e6;
        }
        .fcs-chart-controls {
            text-align: center;
            margin-bottom: 15px;
        }
        .fcs-btn {
            margin: 4px;
            padding: 8px 16px;
            border-radius: 5px;
            border: none;
            background-color: #2F94D2;
            color: #FFF;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }
        .fcs-btn.active, .fcs-btn:hover {
            background-color: #1C1715;
        }



        .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: 12px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.calculator-box .sp10 label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
}

/* 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;
}


#drawdown-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;
}

.calculator-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.calculator-box select.dd-type {
    background-color: #fff;
    color: #000;
}


#swap-currencies {
    width: 100px;
  margin-top: 10px;
  background-color: #2271b1;
  color: white;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  font-weight: 400;
}
}
#swap-currencies:hover {
    background-color: #e0e0e0;
    color:#000;
}

.mt-10{
    margin-top: 10px;
}

.gsc-radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}
.gsc-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.responsive-table {
    overflow-x: auto;
}
.gsc-result-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.gsc-result-table th,
.gsc-result-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 15px;
}
.gsc-result-table th {
    background: #f0f0f0;
    font-weight: bold;
}

.result-table-wrapper h4{
    margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
  color: red;
}