:root {
  --pralana_green: #167E5A;
  --pralana_green_lighter: #1a996e;
  --pralana_green_darker: #0f573e;
  --pralana_blue: rgb(159, 207, 255);
  --pralana_blue_background: rgb(238, 247, 255);
  --page_background_color: #F8F8F8;
  --section_background_color: white;
}

/* --------------- base.html --------------------------- */
body, html {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  /*user-select: none;  disabled 8/24/2024 Feedback item #981*/
  background-color: var(--page_background_color);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

footer {}

.html,
.content-container {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: clip;
  box-sizing: border-box;
  min-width: 0;  /* possible fix for Firefox */
  min-height: 0;  /* possible fix for Firefox */


  /* TESTING: */
  /*background-color: darkgreen;*/
}

.content-tab-row {
  display: flex;
  border-top: 1px solid silver;
  margin: 0 -1em 1em -1em;
  padding: 0 1em;
}

#feedback-links-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25em;
  font-size: .85em;
  min-width: 4.5em; /* Accommodate bolded text on hover without shifting */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.feedback-link {
  /*Avoid having surrounding items shift on hover when bolder*/
  min-width: 2em;
  font-weight: 600;
  text-align: center;
  color: var(--pralana_green)
}

.feedback-link:hover {
  font-weight: bold;
  color: var(--pralana_green_darker)
}

.user-manual-link {
  background-color: white;
  color: var(--pralana_green);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  height: 14px;
  width: 14px;
  vertical-align: center;
  border: 1px solid white;
  border-radius: 50%;
}

.user-manual-link:hover {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .045), 0 0 8px #00B074;
}

.green-link {
  color: var(--pralana_green);
  text-decoration: none;
  cursor: pointer;
}

.green-link:hover {
  color: black;
}

.btn-green {
  background-color: var(--pralana_green);
  border: 1px solid var(--pralana_green_darker);
}

/* Override the color of a bootstrap success button to Pralana green*/
.btn-success {
  background-color: var(--pralana_green) !important;
  border-color: var(--pralana_green) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--pralana_green_darker) !important;
  border-color: var(--pralana_green_darker) !important;
}

/* General purpose sticky class*/
.sticky {
  position: sticky;
  top: 0;
}

.user-messages {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(100% - 20px);
  margin: 0 auto 0 auto;
  padding-right: 1em;
}

.user-message-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: .5em;
  margin: .5em;
  padding: .2em .5em;
  background-color: #ffe6e6;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  width: 100%;
  position: relative;
  font-size: .9em;
}

.user-message-container:empty {
  display: none;
}

.user-message-container.info {
  color: darkblue;
  background-color: var(--pralana_blue_background);
  border-color: darkblue;
}

.user-message-container.success {
  color: darkgreen;
  background-color: lightgreen;
  border-color: darkgreen;
}

.user-message-container.warning {
  color: orangered;
  background-color: lightyellow;
  border-color: orangered;
}

.user-message-container.error {
  color: darkred;
  background-color: pink;
  border-color: darkred;
}

.user-message-container.form_error {
  color: darkred;
  background-color: pink;
  border-color: darkred;
}

.user-message-container .icon {
  font-size: 1.2em;
  transform: translateY(1px);
}
.user-message-container ul {
 margin: 0;
  line-height: 1.25em;
}
.user-message-container .close-button {
  position: absolute;
  top: -6px;
  right: -3px;
  cursor: pointer;
  background-color: inherit;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3px; /* Adjust this value to fit your needs */
}

.user-message-container .unknown {
  color: purple;
  background-color: mediumpurple;
  border-color: purple;
}


.alerts {
  grid-row: 2 / 3;
  /*    border: 1px dashed brown;*/
}


.notes-box-blue {
  margin: .5em;
  background-color: var(--pralana_blue_background);
  border: 1px solid darkblue;
  text-align: center;"
}
.notes-box-blue:empty {
  display: none;
}

.scenario-restore-msg {
  margin: -.75em 1em 0 1em;
  padding: .25em 1em;
  width: fit-content;
  min-width: 24em;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
}

.scenario-restore-msg:last-of-type {
  margin-bottom: .5em;
}

.scenario-restore-msg.green {
  color: darkgreen;
  background-color: lightgreen;
  border-color: darkgreen;
}

.scenario-restore-msg.yellow {
  color: orangered;
  background-color: lightyellow;
  border-color: orangered;
}


/* --------------- home.html --------------------------- */
.button-box {
  /*  outline: 1px solid silver;*/
}

/*An extra small button for bootstrap*/
.btn-group-xs > .btn, .btn-xs {
  padding: 0.1rem 0.4rem;
  font-size: .8rem;
  /*line-height: 1.4rem;*/
  border-radius: .3rem;
  height: fit-content;
}

/*An extra skinny button for bootstrap*/
.btn-row {
  padding: 0 0.4rem;
}

/* --------------- Bootstrap 5 Tooltip styling --------------- */
.tooltip {
  opacity: 1 !important;
}

.tooltip-inner {
  background-color: var(--pralana_green);
  box-shadow: 0 0 4px black;
  padding: .5rem;
  text-align: left;
  max-width: 20em;
}

/* Change the color of the tooltip arrow based on the position of the tooltip
and this position-related class the bootstrap gives it. */

/* Tooltip arrow for when tooltip is positioned above the element */
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--pralana_green) !important;
}

/* Tooltip arrow for when tooltip is positioned to the right */
.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: var(--pralana_green) !important;
}

/* Tooltip arrow for when tooltip is positioned below the element */
.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--pralana_green) !important;
}

/* Tooltip arrow for when tooltip is positioned to the left */
.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: var(--pralana_green) !important;
}

.help-button {
  text-decoration: none;
  cursor: pointer;
}

/*.modal-container {*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center;*/
/*  position: fixed;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*}*/

.modal-dialog {
  margin-top: 10em
}

.modal-content {
  background-color: white;
  color: black;
  /*width: 30%;*/
}

#help-panel {
  position: fixed;
  overflow: hidden;
  flex-direction: column;
  z-index: 999 ;
  border: 1px solid var(--pralana_green);
  border-radius: 5px;
  background: white;
  box-shadow: .25em .25em 1em .5em rgba(0, 0, 0, 0.3);
}


.help-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /*height: 30px;*/
  padding: .25em .5em 0 .5em;
  background: var(--pralana_green);
  border: 1px solid var(--pralana_green);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  color: white;
  cursor: move;
}

.help-title {
  text-align: center;
  cursor: move;
}

.help-close-button {
  cursor: pointer;
  width: 25px; /* Adjust as necessary */
  text-align: right;
  font-size: 1.4em;
  transform: translateY(-3px);
}

.help-close-button:hover {
  font-weight: bolder;
}

.help-content {
  /* dimensions of the parent element 'help-panel' are set by help_panel.js */
  height: calc(100% - 40px);
  overflow-y: auto;
  padding: .5em;
  background: white;
  user-select: text;
  font-size: .9em;
}

.help-content h1 {
  color: #3d3d3d;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1.3em;
  font-weight: 600;
  border-top: 0.1em solid #3d3d3d;
  border-bottom: 0.1em solid #3d3d3d;
  margin: 2.5em 0 1.2em 0 !important;
}

.help-content h2 {
  color: black;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1.2em;
  font-weight: 500;
  margin: 1.5em 0 1em 0 !important;
  border-top: 1px solid black;
}

.help-content h3 {
  color: #1a996e;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: 0.5em !important;
}

.help-content h4 {
  color: black;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 0.25em !important;
  /*padding: 0 1.5em;*/
}

.help-content h4 ~ p {
  /*padding: 0 1.5em;*/
}

.help-content h5 {
  color: darkblue;
  font-size: 1em;
  font-weight: 500;
  font-style: italic;
  padding: 0 3em;
  margin-bottom: 0.25em !important;
}

.help-content h5 ~ p {
  padding: 0 3em;
}
.help-content p {
  margin-bottom: .75rem;
}
.help-content li  p {
  margin-bottom: .25em;
}

/*Hide the Sphinx header links*/
.headerlink {
  display: none;
}
.help-content blockquote {
  margin-left: 3em;
  margin-right: 3em;
}
.warning-section {
  height: 12em;
  width: auto;
  margin: 10em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.related-topics-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid silver;
  margin-top: .5em;
  padding-left: .5em;
}
