html,
body {
  width: 100%;
  /* height: 100%; */
  margin: 0;
  padding: 0;
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", sans-serif !important;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  align-items: stretch;
  /* color: rgb(86, 86, 103); */
}
body.calcite-mode-light {
  --calcite-sans-family: "Avenir Next", "Avenir", "Helvetica Neue", sans-serif !important;
  /* --calcite-accordion-item-header-background-color: #0f3b08; */
  --calcite-accordion-item-heading-text-color: #fff;
  --calcite-accordion-item-text-color: #fff;
  --calcite-color-brand: rgb(32, 126, 17);
  --calcite-icon-color: #0f3b08;
  --calcite-color-text-1: #207e11;
  /* --calcite-font-size--1: 1.9rem; */
  --calcite-color-text-2: rgb(86, 86, 103);
}
div.accordion {
  line-height: 1.2rem;
}
.wrapperVA {
  height: 100%;
  width: 100%;
  /* height: calc(100vh - 110px); */
  overflow: hidden;
}
iframe {
  height: calc(100vh - 110px);
  width: 100vw;
}
.block {
  height: auto;
}

#treatmentAccordion {
  display: none;
}
.titleAreaTrend {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 61px;
  padding-left: 32px;
  justify-content: space-between;
  background: #0f3b08;
  width: 80%;
  color: white;
  border-bottom-right-radius: 32px;
  border-top-right-radius: 32px;
  color: white;
  font-weight: 600;
  font-size: 1.3rem;
}
.wrapper {
  max-width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  height: calc(100vh - 180px);
  overflow-x: hidden;
}
#siteDropdownDash {
  font-size: 1rem;
  font-weight: 400;
  font-family: "Avenir Next", Avenir, "Helvetica Neue";
  margin-right: 10rem;
  padding: 0 20px;
  border-radius: 32px;
  border: 1px solid #0f3b08;
}
.middle {
  display: flex;
  /* margin-top: -10px; */
  /* margin-bottom: 0px; */
}
.leftPanel {
  width: 50%;
  margin: 0.5%;
}

#siteNameDiv,
#siteCharDiv {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1rem;
}

.grid-wrapper {
  display: grid;
  gap: 5px;
  /* grid-template-columns: repeat(2, 1fr); */
  /* grid-template-rows: repeat(2, auto); */
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "marshTrend marshTrend"
    "oysterTrend bankTrends";
  width: 99%;
  margin: 0;
}
.marshTrend {
  grid-area: marshTrend;
  display: flex;
  gap: 5px;
  flex-direction: column;
  /* flex-wrap: nowrap; */
  padding: 5px;
  /* margin: 1px 15px; */
  align-items: center;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  -webkit-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
  -moz-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
  box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
}

.oysterTrend {
  grid-area: oysterTrend;
  display: flex;
  flex-direction: column;
  /* flex-wrap: nowrap; */
  padding: 5px;
  /* margin: 1px 5px 1px 10px; */
  align-items: center;
  /* border-bottom: 1px solid #36943460; */
  -webkit-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
  -moz-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
  box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
}

.bankTrends {
  grid-area: bankTrends;
  display: flex;
  /* background: #f7f7f7; */
  flex-direction: column;
  /* flex-wrap: nowrap; */
  padding: 5px;
  /* margin: 1px 10px 1px 5px; */
  align-items: center;
  /* min-width: 120px; */
  -webkit-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
  -moz-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
  box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
}
.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.data-title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: #0f3b08;
  position: relative;
  padding: 0 10px; /* Ensures spacing between text and lines */
  white-space: nowrap;
}

.data-title::before,
.data-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #0f3b08;
  display: block;
  margin: 0 10px; /* Adjust spacing between the title and the lines */
}

.description {
  color: #fff;
}
.text2 {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(86, 86, 103);
}
.text3 {
  font-size: 0.8rem;
  line-height: 1rem;
  padding: 0;
  margin: 0;
  font-weight: 500;
  color: rgb(86, 86, 103);
}
.text4 {
  font-size: 0.8rem;
  line-height: 1rem;
  font-style: italic;
  color: #6e6e6e;
  padding: 0;
  margin: 0;
}
h3 {
  font-size: 0.9rem;
  line-height: 0.9rem;
  padding: 0;
  margin: 0;
  color: rgb(86, 86, 103);
}
.stat-wrapper,
#lowMarshDivs,
#highMarshDivs {
  display: flex; /* Arrange stat divs in a row */
  gap: 4px; /* Space between stat divs */
  width: 100%; /* Ensure the stats take up full width */
  flex-wrap: nowrap;
  justify-content: center; /* Center stats horizontally in the container */
}
.stat {
  flex-grow: 1;
  gap: 10px;
  min-width: 80px;
  max-width: 170px;
  height: auto;
  padding: 5px;
  box-sizing: border-box;
  text-align: center;
  flex-direction: row;
}
.stat i {
  font-size: 2rem; /* icon size*/
  margin-bottom: 5px; /* Space between the icon and the text */
}

/* Show tooltip on hover */
.circle-icon:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}
/**/
/**/
/**/
/**/
/**/
.borderRight {
  border-right: 1px solid gray;
}

.esri-feature__last-edited-info {
  display: none;
}

.styled-table {
  font-size: 1rem;
  padding-left: 10px;
  margin: 0;
}
.styled-table td {
  padding: 0 20px;
  border-radius: 1.5rem;
}
.styled-table tr.selected {
  background-color: #36943460;
}
.styled-table tr:hover {
  cursor: pointer;
  background-color: #e0e0e0;
}

.blank {
  margin-left: 50%;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal content (the image) */
.modal-content {
  margin: 2% auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Map modal panel and view size */
.modal-panel {
  margin: 3% auto;
  width: 92vw;
  height: 86vh;
  max-width: 1400px;
  border-radius: 8px;
}
#mapModalView {
  width: 100%;
  height: 100%;
}

/* Close button */
.close {
  position: fixed;
  top: 5%;
  left: 92%;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

/* Ensure map modal close button sits above ArcGIS UI */
#mapModal .close {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 2001;
  pointer-events: auto;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.circle-icon {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%; /* Creates a circle */
  background-color: #ffffff50;
  text-align: center;
  line-height: 3.2rem;
  -webkit-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.32);
  -moz-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.32);
  box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 32%);
  margin-bottom: 6px;
  margin-top: 0px;
}
.trendIcon {
  vertical-align: middle;
  text-align: center;
  margin: 0px;
}
/* legend panel */
.legendDiv {
  display: grid;
  margin-top: 10px;
  gap: 0.5rem;
  grid-template-rows: auto;
  grid-template-columns: 1fr repeat(3, minmax(60px, 1fr)) 1fr;
  align-items: center;
  width: 100%;
  height: auto;
  justify-content: center;
  background-color: #00000045;
  box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.27);
}
.legendTrend {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto auto;
  grid-template-areas:
    "trendIcon trendIcon"
    "subhead subhead ";
}

.subhead {
  grid-area: subhead;
  overflow: hidden;
  font-size: 0.9rem;
  text-align: center;
  padding: 5px;
}
.legendIcon::before {
  /* border: 1px solid #207e11; */
  padding: 5px;
  border-radius: 50%;
  /* background-color: #00000010; */
  box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1);
}
.legendIconIncreasing,
.legendIconDecreasing,
.legendIconNeutral {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 5px;
  font-size: 2rem;
  margin: 2px;
  padding: 3px;
  cursor: pointer;
}

#queryResults {
  line-height: 1rem;
  display: flex;
  flex-direction: row;
}
.treatment-accordion-item {
  width: 99%;
  padding: 5px;
  display: flex;
  justify-content: center;
}
.treatmentAccordion-header {
  background-color: #e3e3e3;
  padding: 5px 15px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 15px;
  font-size: 1rem;
  width: max-content;
}
.treatmentAccordion-header:hover {
  background-color: rgb(32, 126, 17);
  color: white;
}
.treatmentAccordion-header.active {
  background-color: rgb(32, 126, 17);
  color: white;
}

#siteNameDiv {
  font-size: 1.3rem;
  color: #207e11;
  text-align: center;
}
#siteSummaryAccordion {
  padding: 10px;
  font-size: 0.9rem;
  line-height: 1.1rem;
  margin-left: 10px;
}
.treatmentAccordion-content {
  display: none;
  overflow: hidden;
  max-height: 0px;
  padding: 10px;
  margin-left: 29px;
  font-size: 0.9rem;
  line-height: 1.1rem;
}
.rightPanel {
  display: flex;
  flex-direction: column;
  margin: 0.5%;
  width: max-content;
}

.switch {
  display: flex;
  flex-direction: column;
  margin-top: 1%;
}
.switchItems {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  /* letter-spacing: 1px; */
  color: rgb(86, 86, 103);
  /* font-variant: small-caps; */
  border-radius: 15px;
}
.smallLogo {
  width: auto;
  height: 30px;
  margin: 0px 5px 0px 0;
  float: left;
}
.positive {
  color: green;
}
.negative {
  color: red;
}
a {
  display: inline !important;
  white-space: nowrap;
  /* text-decoration-line: none; */
}
[data-title]:hover:after {
  opacity: 1;
  transition: all 0.1s ease 0.5s;
  visibility: visible;
}
[data-title]:after {
  font-family: "Avenir Next";
  font-size: 0.9rem;
  background-color: rgb(32, 126, 17);
  content: attr(data-title);
  position: absolute;
  bottom: -1.1em;
  left: 80%;
  width: 170px;
  padding: 4px 4px 4px 8px;
  color: white;
  white-space: wrap;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow: 0px 0px 4px #222;
  -webkit-box-shadow: 0px 0px 4px #222;
  box-shadow: 0px 0px 4px #222;
  opacity: 0;
  z-index: 99999;
  visibility: hidden;
}
[data-title] {
  position: relative;
}
@media only screen and (max-width: 1160px) {
  .grid-wrapper {
    gap: 0.5rem;
  }

  .oysterTrend,
  .bankTrends,
  .marshTrend {
    padding: 5px;
    margin: 5px 5px;
  }
}
@media only screen and (max-width: 900px) {
  .text2 {
    font-size: 0.8rem;
  }
  .text3 {
    font-size: 0.8rem;
  }
  .text4 {
    font-size: 0.8rem;
    line-height: 0.9rem;
  }
  body.calcite-mode-light {
    --calcite-font-size--1: 0.8rem;
  }
  .treatmentAccordion-content {
    padding: 5px;
    margin-left: 29px;
    font-size: 0.8rem;
    line-height: 0.9rem;
  }
  #siteNameDiv,
  #siteCharDiv {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.8rem;
  }
}
