#IecenForexFactoryTable {min-height: 500px;}

/*Nav Date*/
.iecen-ff-date-navigation {background-color: #334D7F; color: #fff;}
button#iecen-ffprevDate, button#iecen-ffnextDate {border: none; color: #fff; background: transparent;}
button#iecen-ffprevDate:hover, button#iecen-ffnextDate:hover {background-color: transparent;}

/*Forex Tabs*/

.iecen-ff-forex-tabs table td { padding: 0.5rem;}
.iecen-ff-forex-tabs td img {width: 16px; height: 16px;}

.iecen-ff-forex-tabs table td:first-child {
        border-top: none;
        border-bottom: none;
         background-color: #f1f4f5;
    }
    
.iecen-ff-forex-tabs table tr:second-child {
        background-color: #f1f4f5; 
    }

.iecen-ff-forex-tabs table td:nth-child(1),
.iecen-ff-forex-tabs table td:nth-child(2),
.iecen-ff-forex-tabs table td:nth-child(3),
.iecen-ff-forex-tabs table td:nth-child(5),
.iecen-ff-forex-tabs table td:nth-child(6),
.iecen-ff-forex-tabs table td:nth-child(7),
.iecen-ff-forex-tabs table td:nth-child(8){
    text-align: center;
    vertical-align: middle;
    direction: ltr;
}

.iecen-ff-forex-tabs table tbody>tr:nth-child(odd)>td {background: #f1f4f5;}
.iecen-ff-forex-tabs table tbody>tr:nth-child(even)>td {background: #f1f4f5;}
.iecen-ff-forex-tabs table td, .forex-tabs table th {border: 1px solid #d9d9d9;}

.iecen-ff-table-items {background-color: #365691; color: #fff;}

/*Tab Links*/

.iecen-ff-tab-links { background-color: #334D7F; list-style: none; padding: 0; display: flex; }
.iecen-ff-tab-links li {margin: 10px; cursor: pointer; padding: 5px 10px; }
.iecen-ff-tab-links li.active {color: #fff;}
.iecen-ff-tab-links a:focus {outline: none;}
.iecen-ff-tab-links a { color: #fff !important; text-decoration: none !important;}
.iecen-ff-tab-links a:hover { color: #d9d9d9;}
.iecen-ff-tab-links li.active {border-bottom: 2px solid #fff; padding-bottom: 5px; }
ul.iecen-ff-tab-links {margin: 0 !important;}

/*Tab Content*/

.iecen-ff-tab-content { display: none; }
.iecen-ff-tab-content.active { display: block; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border: 1px solid #ccc; }


@media screen and (max-width: 768px) {
    .iecen-ff-forex-tabs table td {padding: 0;}
    .iecen-ff-tab-content.active {font-size: 10px;}
    
}

/*Tooltip*/

.iecen-ff-tooltip {position: relative; cursor: pointer; direction: rtl; }

.iecen-ff-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    
}

.iecen-ff-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}


/*Spinning Transition*/
#iecen-ff-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(189, 196, 203, 0.7); 
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    display: flex;
}

#iecen-ff-spinner-container {
    text-align: center;
}

#iecen-ff-spinner-container img {
    width: 100px; 
    height: 100px;
}

 /*Mobile View*/
@media (max-width: 480px) {
   
     
     .iecen-ff-forex-tabs td:nth-child(4) {padding: 10px 0;}
     .iecen-ff-forex-tabs th:nth-child(5) {padding-right: 0; padding-left: 0;}
    
     .iecen-ff-forex-tabs th:nth-child(7),
     .iecen-ff-forex-tabs td:nth-child(7),
     .iecen-ff-forex-tabs th:nth-child(8),
     .iecen-ff-forex-tabs td:nth-child(8) {
        display: none;
    }
     
    .iecen-ff-forex-tabs table {
        font-size: 12px;
    }
}
/*Change Color*/
.text-green-600 {
    color: #16A34A;
   
}

.text-red-500   { color: #ef4444 !important; }
.text-green-600 { color: #16a34a !important; }


/*Details*/
 .iecen-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* column size (1fr for label, 2fr for content) */
    gap: 10px; 
    margin-top: 10px;
    direction: rtl;
    background-color: #fff;
    padding: 10px;
}

.iecen-details-grid-item {
    padding: 8px;
    border: 1px solid #ddd;
}

.iecen-details-grid-item strong {
    font-weight: bold;
    margin-right: 10px;
}

.iecen-details-grid-item:nth-child(even) {
    background-color: #f9f9f9;
}

.iecen-details-grid-item:hover {
    background-color: #f1f1f1;
}

.time-passed {
    color: #9CA3AF;
}