/* Compilation server connection mgmt */

.dialogWrapper {
  padding: 10px;
}

.details {
  color: var(--mui-palette-grey-500);
  font-size: smaller;
}

.dockerRun {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.SamplerError {
  color: var(--mui-palette-error-main);
  white-space: pre-wrap;
}
.stdout pre {
  margin: 0px;
  padding: 1px;
}

.stderr pre {
  margin: 0px;
  padding: 1px;
}

/* Compilation Results (StanCompileResultWindow) */
.CompileResultPanel {
  height: 100%;
  width: 100%;
  overflow: auto;
}

.ErrorWarningMessage {
  font-family: "courier";
  font-size: 13px;
}

/* Main window */
.MainWindow {
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Main Window toolbar/TopBar */

.MenuBarSpacer {
  margin-left: auto;
}

/* Sidebar */
.Sidebar {
  overflow-x: hidden;
}

.Sidebar h3 {
  padding: 0px;
  padding-left: 10px;
  margin-bottom: 0px;
  margin-top: 0px;
}

.Sidebar li {
  margin-top: 0px;
  margin-bottom: 5px;
  padding: 0px;
  padding-left: 10px;
  padding-right: 10px;
}

/* File Upload */
.FileDropAreaWrapper {
  border: 1px solid black;
  padding: 10px;
}

.FileDropAreaInner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Text Editors ------ */

:root {
  --editor-menu-height: 30px;
}

.EditorMenuBar {
  height: var(--editor-menu-height);
  position: relative;
  display: flex;
  align-content: center;
  align-items: center;
  container-name: EditorMenuBar;
  container-type: inline-size;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.EditorWithToolbar {
  height: calc(100% - var(--editor-menu-height));
}

span.EditorToolbarItem {
  padding-left: 15px;
}

.ToolbarButtonText {
  text-transform: none;
  font-weight: normal;
  letter-spacing: normal;
  display: inline-block;
  white-space: nowrap;
  padding-left: 5px;
  font-size: 14px;
}

@container EditorMenuBar (max-width: 500px) {
  .ToolbarButtonText {
    display: none;
    width: 0;
    padding: 0;
  }
  span.EditorToolbarItem {
    padding: 0px;
  }
}

span.EditorTitle {
  padding-left: 5px;
  padding-right: 5px;
}

.NotSelectable {
  user-select: none;
}

.StanEditorDefaultText {
  padding: 20px;
}

/* Sampling section ---- */
/* Run-Sampling */
.RunPanel {
  overflow-y: auto;
}

.RunPanelPadded {
  padding: 5px;
}

.SamplingProgress {
  width: 85%;
}

/* Draws */

.DrawAbbreviationToggle {
  padding: 5px;
}

/* Histograms */

.PlotAbbreviationToggle {
  padding: 5px;
}

.Loading {
  padding: 10px;
  display: grid;
  place-items: center;
}

.ScatterHelpText {
  text-align: center;
}

/* Sampling Opts ------ */
.SamplingOptsWrapper {
  padding: 10px;
  width: 80%;
  min-width: 8em;
}


/* Save/Load Project ------ */
.GistExplainer {
  max-width: 800px;
}

/* Pyodide/WebR -------- */
.ConsoleOutputArea {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.ImageOutputArea {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.EditorHintText {
  font-style: italic;
  color: var(--mui-palette-grey-500);
  pointer-events: none;
}

.EditorHintText a {
  color: var(--mui-palette-grey-600);
  text-decoration: underline;
  pointer-events: all;
}

.HoverHelp {
  cursor: help;
  text-decoration: underline;
}

.HomeEmbedded {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
