/* =============================================================================
   App specific SCSS file.
   ========================================================================== */
@import "../shared/variables";

.content_container {
  display: flex;
  align-items: flex-start;

  @media screen and (max-width: $sm_width) {
    flex-direction: column;
  }
}

.icon-button-link {
  display: flex;
  align-items: center;
}

.data_column {
  padding-inline-start: 15px;
  padding-inline-end: 15px;
  padding-block-end: 15px;
  display: flex;
  flex-direction: column;
  // width: 100%;
  // Screen height - nav height - header height
  // height: calc(100vh - 50px - 65px);

  .graph_container {
    min-height: 450px;
  }
}

.control_panel {
  display: flex;
  flex-direction: column;
  background-color: #f6f8fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: 100%;

  @media screen and (max-width: $xs_width) {
    flex-direction: column;
  }

  legend {
    border-bottom: none;
    font-size: 16px;
    margin-bottom: 8px;
  }
}

.instruction_list {
  padding-inline-start: 15px;
  margin-block-end: 0px;
}

fieldset {
  margin-block-start: 16px;
}

fieldset:first-child {
  margin-block-start: 0px;
}

.option_container {
  background-color: white;
  padding: 10px;
  margin-bottom: 16px;
}
.flexible {
  flex: 1 0 auto;
  width: calc(100% - 250px);
  @media screen and (max-width: $sm_width) {
    width: 100%;
  }
}

.celligner_plot_controls {
  display: flex;
  flex-direction: column;
  overflow: visible;

  & > div {
    & > div {
      background: transparent;
    }
  }
}

.celligner_graph_container {
  position: relative;
  display: flex;
  @media screen and (max-width: $md_width) {
    flex-direction: column;
  }
}

.celligner_graph_plotly_legend_container {
  display: flex;
  flex-direction: column;
  @media screen and (min-width: $md_width) {
    width: 20%;
    height: 450px;
  }
}

.celligner_graph_plotly_legend {
  display: flex;
  flex-direction: column;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 8px;
  background: white;
  margin-block-end: 8px;
  list-style-type: none;
  @media screen and (max-width: $md_width) {
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
  }

  div {
    display: flex;
    align-items: center;
  }

  svg {
    // Just min-height/width causes very large svgs, and just max-height/width causes squished svgs when the label is very long
    min-height: 18px;
    min-width: 18px;
    max-height: 18px;
    max-width: 18px;
    margin-inline-end: 4px;
  }

  i {
    margin-inline-end: 4px;
    opacity: 0.7;
  }
}

.celligner_graph_plotly_legend:last-child {
  overflow: auto;
  @media screen and (max-width: $md_width) {
    width: 100%;
    flex-direction: row;
    justify-content: initial;

    div {
      margin-inline-end: 20px;
    }

    .celligner_graph_plotly_legend_label {
      white-space: nowrap;
    }
  }
}

.celligner_legend_item {
  display: flex;
  align-items: center;
  background-color: transparent;
  text-align: left;
  border: none;
  margin: 0;

  i {
    padding-top: 3px;
    height: 100%;
  }
}

.celligner_legend_item--toggled_off {
  opacity: 0.4;
}

#celligner_plotly_plot {
  width: 80%;
  height: 450px;

  .modebar-btn {
    display: none;
  }

  @media screen and (max-width: $md_width) {
    width: 100%;
    margin-block-end: 8px;
  }
}
