/**
 * Botón "Insertar gráfica" y diálogo de selección de dataset.
 */

.medata-chart-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 0.5rem;
  cursor: pointer;
}

.medata-chart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.medata-chart-modal {
  background: #fff;
  color: #1a1f2b;
  width: min(90vw, 480px);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.medata-chart-modal__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.medata-chart-modal__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.medata-chart-modal__select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #c6cddb;
  border-radius: 5px;
  font-size: 0.95rem;
}

.medata-chart-modal__msg {
  min-height: 1.2em;
  margin: 0.6rem 0 0;
  color: #b56b00;
  font-size: 0.9rem;
}

.medata-chart-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
