

/**** settings shared by all widgets****/
/* Animation for the spinning effect */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}    


/*** Proactive Chart ***/
/* loading icon */
.proactivecharts-loading{
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/*checkbox  in the center  */
.proactivecharts-checkbox, .proactivecharts-button{
    padding-top: 4px;
    text-align: center;    
}

.proactivecharts-checkbox input{
  margin-left: 4px;
  margin-right: 4px;
}

/* default style of button */
.proactivecharts-button button {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: black;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  border-radius: 3px;
}

  
/*** 3 months chart ***/
/* loading icon */
.proactive-3month-loading{
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}


/**** 30 days chart ****/
/* loading icon */
.proactive-30day-loading{
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/**** small chart ****/
/* loading icon */
.proactive-smallChart-loading{
  display: none;
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}


/** Proactive Historical Calculater **/
/* default style of input*/
.proactive-historical-price-calculator-form input{
    display: inline-block;
    padding: 1px 2px;
    border: 1px solid #ccc;
    background-color: white;
    color: black;
    font-size: 14px;
    font-family: sans-serif;
    height: auto;
    width: auto;
    outline: none;
  }
  /* default style of button */
  .proactive-historical-price-calculator-button button{
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    color: black;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    border-radius: 3px;
  }
  
  .proactive-historical-price-calculator-container{
    position: relative;  /* So the loading icon can be positioned relative to it */
  }
  
  .proactive-historical-price-calculator-label,
  .proactive-historical-price-calculator-button{
    margin-top: 8px;
  }
  
  .proactive-historical-price-calculator-result
  {
    display: none;
    grid-template-columns: 1fr 1fr;  /* Creates two equal columns */
    grid-gap: 10px;                 /* Adds space between items */
  }
  
  .proactive-historical-price-calculator-result-subtitle{
    grid-column: span 2;            /* Makes this box span both columns */
  }            
  .proactive-historical-price-calculator-result-alert{
    grid-column: span 2;            /* Makes this box span both columns */
    color: red;
  }
  
  .proactive-historical-price-calculator-loading-icon{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite; 
  }

  /** Proactive Share Price Calculater **/
.proactive-price-calculator-form input {
    display: inline-block;
    padding: 1px 2px;
    border: 1px solid #ccc;
    background-color: white;
    color: black;
    font-size: 14px;
    font-family: sans-serif;
    height: auto;
    width: auto;
    outline: none;
}

.proactive-price-calculator-button button {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    color: black;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    border-radius: 3px;
}

.proactive-price-calculator-container {
    position: relative;  /* So the loading icon can be positioned relative to it */
}

.proactive-price-calculator-button {
    margin-top: 8px;
}

.proactive-price-calculator-result{
    display: none;
}

.proactive-price-calculator-result-alert{
    color: red;
}

.proactive-price-calculator-loading-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite; 
}
  
/*** proactive-data ****/
span.proactive-change .proactive-positive:before {
    content: "+"
}

span.proactive-change .proactive-positive {
    color: #20b720;
}

span.proactive-change .proactive-negative:before {
    content: "-"
}
span.proactive-change .proactive-negative {
    color: #e70000
}

span.proactive-pct-change .proactive-positive {
    color: #20b720;
}

span.proactive-pct-change .proactive-negative {
    color: #e70000
}
  
.highcharts-label.highcharts-tooltip-box.highcharts-color-0 span {
    background: #fff;
    margin: 0px;
    padding: 5px;
}

/* Apache ECharts */
.proactive-chart-controls {
    position: absolute;
    left: 0;
    right: 0;
    /*bottom: 55px; it is controlled by code. value depends on navigator-enable */
    text-align: center;
    z-index: 20;
}

.proactive-chart-text {
    font-size: 14px;
    margin-bottom: 5px;
}

.proactive-chart-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.proactive-chart-buttons button {
    padding: 4px 12px;
    cursor: pointer;
}

.proactive-chart-tooltip-box{
    font-size: 12px;
	text-align: left;
}
.proactive-chart-tooltip-box ul.pi_spchart_box.pi_spchart_box_descs{
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
    text-align: left;    
}


.proactive-chart-tooltip-box ul.pi_spchart_box.pi_spchart_box_descs li{
    list-style: none;
    padding-left: 0px;
}	
.proactive-chart-tooltip-box ul.pi_spchart_box.pi_spchart_box_descs li:before{
    content: "- ";
    padding-left: 0px;
	margin-left: 0px;
}	

.proactive-chart-tooltip-box ul.pi_spchart_box_newsitems{
    margin-top: 0px;
    padding-left: 0px;
}
.proactive-chart-tooltip-box ul.pi_spchart_box.pi_spchart_box_newsitems li{
	display: block;
	padding-left: 0px;
    font-size: 12px;	
}
.proactive-chart-tooltip-box ul.pi_spchart_box.pi_spchart_box_newsitems li:before{
    content: "- ";
    margin-left: 0px;
}

.newsDateTime{
    display: inline;
}


/* Range Button */
.proactive-chart-buttons button {
    border: 1px solid var(--chart-grid-line-color);
    color: var(--chart-label-color);
    background: none;
}

.proactive-chart-buttons button:hover {
    color: #fff;
    background: var(--line-stroke-color);

}