.murex-custom-chart-widget {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
}
.murex-custom-chart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.murex-custom-chart-head > div:first-child {
  min-width: 0;
}
.murex-custom-chart-head span,
.murex-custom-chart-head small,
.murex-custom-chart-meta small,
.murex-custom-chart-foot {
  color: var(--muted);
}
.murex-custom-chart-head span,
.murex-custom-chart-meta small {
  display: block;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}
.murex-custom-chart-head strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.murex-custom-chart-head small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.murex-custom-chart-badge {
  min-height: 28px;
  border-radius: 14px;
  background: #fff2b8;
  color: #6a4b00;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.murex-custom-chart-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}
.murex-custom-chart-meta > span {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line-soft);
}
.murex-custom-chart-meta > span:last-child {
  border-right: 0;
}
.murex-custom-chart-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.murex-custom-chart-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
  background: #f5f8f6;
}
.murex-custom-chart-summary > span {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line-soft);
}
.murex-custom-chart-summary > span:last-child {
  border-right: 0;
}
.murex-custom-chart-summary small,
.murex-custom-chart-summary strong,
.murex-custom-chart-summary em {
  display: block;
  overflow-wrap: anywhere;
}
.murex-custom-chart-summary small {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}
.murex-custom-chart-summary strong {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}
.murex-custom-chart-summary em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.25;
}
.murex-custom-chart-canvas {
  position: relative;
  min-height: 390px;
  padding: 14px 14px 6px;
  background: #fff;
}
.murex-custom-chart-canvas [data-murex-vega-chart],
.murex-custom-chart-canvas .vega-embed,
.murex-custom-chart-canvas .vega-embed > div {
  width: 100%;
  min-height: 360px;
}
.murex-custom-chart-canvas svg,
.murex-custom-chart-canvas canvas {
  display: block;
  max-width: 100%;
}
.murex-custom-chart-empty {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 32px;
  color: var(--negative-deep, #a72027);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}
.murex-custom-chart-warnings {
  border-top: 1px solid var(--line-soft);
}
.murex-custom-chart-warnings p {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  line-height: 1.35;
}
.murex-custom-chart-warnings p:last-child {
  border-bottom: 0;
}
.murex-custom-chart-warnings p.is-warning,
.murex-custom-chart-warnings p.is-error {
  background: #fff7e2;
}
.murex-custom-chart-warnings p.is-error strong {
  color: var(--negative-deep, #a72027);
}
.murex-custom-chart-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}
.murex-custom-chart-foot strong {
  color: var(--ink);
}
.murex-custom-chart-disclaimer {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line-soft);
  background: #f4f5f3;
  color: var(--body);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .murex-custom-chart-head {
    grid-template-columns: 1fr;
  }
  .murex-custom-chart-badge {
    justify-self: start;
  }
  .murex-custom-chart-meta {
    grid-template-columns: 1fr 1fr;
  }
  .murex-custom-chart-meta > span:nth-child(2) {
    border-right: 0;
  }
  .murex-custom-chart-meta > span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
  .murex-custom-chart-summary {
    grid-template-columns: 1fr 1fr;
  }
  .murex-custom-chart-summary > span:nth-child(2) {
    border-right: 0;
  }
  .murex-custom-chart-summary > span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
  .murex-custom-chart-canvas {
    min-height: 320px;
    padding: 10px 8px 4px;
  }
  .murex-custom-chart-canvas [data-murex-vega-chart],
  .murex-custom-chart-canvas .vega-embed,
  .murex-custom-chart-canvas .vega-embed > div {
    min-height: 290px;
  }
}
