/* Economic calendar history chart polish — scoped to popup only. */

.ec-drawer-content .ec-history {
  position: relative;
  padding: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(244, 190, 24, .16) !important;
  background:
    radial-gradient(320px 150px at 12% -15%, rgba(244, 190, 24, .09), transparent 68%),
    linear-gradient(180deg, rgba(17, 24, 34, .92), rgba(8, 13, 20, .96)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 18px 42px rgba(0,0,0,.18);
}

.ec-drawer-content .ec-history::before {
  content: "TREND STORICO";
  display: inline-flex;
  margin-bottom: 10px;
  color: #a8882b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .14em;
}

.ec-drawer-content .ec-history-head {
  align-items: center;
  margin-bottom: 12px !important;
}

.ec-drawer-content .ec-history-head strong {
  color: #f2f5f8 !important;
  font-size: 13px !important;
  font-weight: 800;
}

.ec-drawer-content .ec-history-head span {
  padding: 5px 8px;
  border: 1px solid rgba(244,190,24,.14);
  border-radius: 999px;
  color: #e6c85a !important;
  background: rgba(244,190,24,.045);
  font-size: 9px !important;
  font-weight: 750;
}

.ec-drawer-content .ec-history-chart-wrap {
  position: relative;
  width: 100%;
  padding: 10px 8px 8px;
  overflow: hidden !important;
  border: 1px solid rgba(148,163,184,.08);
  border-radius: 14px;
  background:
    linear-gradient(rgba(148,163,184,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244,190,24,.025), rgba(4,8,13,.18));
  background-size: 100% 25%, 12.5% 100%, auto;
}

.ec-drawer-content .ec-history-chart {
  width: 100% !important;
  min-width: 0 !important;
  height: 180px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  overflow: visible;
}

.ec-drawer-content .ec-history-grid-line {
  stroke: rgba(148, 163, 184, .08);
  stroke-width: .7;
  stroke-dasharray: 3 5;
}

.ec-drawer-content .ec-history-area {
  fill: rgba(244, 190, 24, .09);
  stroke: none;
}

.ec-drawer-content .ec-history-line {
  fill: none;
  stroke: #f3c83f !important;
  stroke-width: 3 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 7px rgba(244,190,24,.22));
}

.ec-drawer-content .ec-history-dot {
  fill: #ffd85c !important;
  stroke: #1a1406 !important;
  stroke-width: 1.4;
  r: 3.6px;
  filter: drop-shadow(0 0 4px rgba(244,190,24,.35));
}

.ec-drawer-content .ec-history-list {
  margin-top: 10px !important;
  border-color: rgba(148,163,184,.08) !important;
  background: rgba(255,255,255,.008);
}

.ec-drawer-content .ec-history-list li {
  min-height: 40px;
  padding-inline: 11px !important;
}

.ec-drawer-content .ec-history-list li span {
  color: #788594;
  font-size: 9px;
}

.ec-drawer-content .ec-history-list li strong {
  color: #dfe6ee !important;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .ec-drawer-content .ec-history-chart {
    height: 150px !important;
  }

  .ec-drawer-content .ec-history {
    padding: 13px !important;
  }
}
