.graph-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  resize: vertical;
  overflow: auto;
  min-height: 200px;
  height: 400px;
  width: 100%;
}

.graph-container.graph-container-disabled {
  min-height: auto;
  height: auto;
  overflow: visible;
}

.graph-container .graph-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.graph-container .graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: 0.25em 0.5em;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

.graph-container .graph-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95em;
}

.graph-container .graph-title-label {
  display: inline-flex;
  align-items: baseline;
}

.graph-container .graph-title-description {
  font-size: 0.65em;
  font-style: italic;
  color: #444;
  line-height: 1.2;
}

.graph-container .graph-toggle-control {
  margin: 0;
}

.graph-container .graph-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.graph-container .graph-disabled {
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  color: #666;
  font-style: italic;
  font-size: 0.7em;
}

.graph-container .dash-loading {
  height: 100%;
  width: 100%;
}

.graph-container .dash-loading-output {
  height: 100%;
}

.graph-container .dash-graph {
  height: 100% !important;
  width: 100% !important;
}

.graph-container .dash-loading-spinner {
  pointer-events: none;
}
