html,
body,
#viewDiv {
  margin: 0;
  height: 90%;
  width: 100%;
  background: #0061aa;
  float: right;
  /* padding-left: 500px; */
}

#tableContainer {
  display: none;
}

#table-container-header {
  display: flex;
}

body {
  display: flex;
}

.text-center {
  text-align: center;
}

calcite-loader {
  align-self: center;
  justify-self: center;
}

#info-content {
  padding: 0.75rem;
}

calcite-rating {
  margin-top: 0.25rem;
}

.esri-legend__layer-caption {
  visibility: hidden;
}

#toolbarDiv {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: default;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.esri-widget--button.active,
.esri-widget--button.active:hover,
.esri-widget--button.active:focus {
  cursor: default;
  background-color: #4c4d4f;
}
.esri-widget--button.active path,
.esri-widget--button.active:hover path,
.esri-widget--button.active:focus path {
  fill: #e4e4e4;
}

#distance.esri-widget--button {
  border: 150px;
  border-color: #4c4d4f;
  border-width: 0.5px;
  border-style: groove;
}

#area.esri-widget--button {
  border: 100px;
  border-color: #4c4d4f;
  border-width: 0.5px;
  border-style: groove;
}

#clear.esri-widget--button {
  border: 100px;
  border-color: #4c4d4f;
  border-width: 0.5px;
  border-style: groove;
}

.esri-widget--button {
  font-size: 20px;
}

.center {
  text-align: center;
}

.esri-legend__layer-caption {
  display: none;
}

.esri-legend__layer {
  margin: 0;
}

/* word wrapping in legend */
.esri-legend__service {
  /* word-wrap: break-word; */

  /* remove excess horizontal white space and reduce vertical white space between entries in right legend */
  margin-left: 0;
  padding: 7px 0px;
}

.esri-legend__layer-table {
  margin-bottom: 0px;
}

.esri-legend__layer-cell--info {
  text-align: left;
}

/* baseline header elements */
#header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}

.app-header {
  font-size: 18px;
  text-align: center;
  margin: 0rem 0rem 0rem 6rem;
}

.edx-spatial-thumbnail {
  display: flex;
  height: 2rem;
  max-width: 43px;
  padding: 10px;
}

.doe-netl-logo {
  display: flex;
  height: 4rem;
}

/* header elements for laptops */
@media (max-width: 700px) {
  #header-main-div {
    overflow-x: scroll;
    scrollbar-color: rgb(206, 204, 204);
  }

  #footer-main-div {
    overflow-x: hidden;
    scrollbar-color: rgb(206, 204, 204);
  }

  .doe-netl-logo {
    height: 3rem;
    max-width: 220px;
    padding: 1rem;
    margin: 0;
  }

  .edx-spatial-thumbnail {
    margin: 0;
    height: 30px;
    max-width: 43px;
  }
}

/* header elements for tablets */
@media (max-width: 500px) {
  #header-main-div {
    overflow-x: scroll;
    scrollbar-color: rgb(206, 204, 204);
  }

  #footer-main-div {
    overflow-x: hidden;
    scrollbar-color: rgb(206, 204, 204);
    font-size: 10px;
  }

  .doe-netl-logo {
    height: 3rem;
    max-width: 220px;
    padding: 1rem;
    margin: 0;
  }

  .edx-spatial-thumbnail {
    margin: 0;
    height: 30px;
    max-width: 43px;
  }

  #header-title > p {
    padding-left: 5rem;
    font-size: 16px;
  }

  #viewDiv {
    height: 95%;
  }
}

calcite-shell {
  background: #0061aa;
}

calcite-shell > h1[slot="header"] {
  color: #ffffff;
}

.edx-logo {
  height: 100px;
  width: 200px;
  align-content: center;
  flex-wrap: wrap;
  display: flex;
  margin: auto;
}

.cc-png {
  height: 20px;
  width: 20px;
  float: right;
}

.esri-layer-list__item-actions-menu-item:first-of-type {
  display: none;
}

/* doing this will cause teh legend specifically inside of the "Layers" tab to have more proper 
word wrapping without negatively impacting the legend on teh map */
/* .esri-layer-list-panel__content.esri-layer-list-panel__content--legend {
  .esri-legend.esri-widget.esri-widget--panel {
    width: 100%;
  }
} */

.esri-layer-list-panel {
  margin: 12px 15px;
  align-content: center;
  text-align: center;
}

.esri-layer-list__item-action {
  border-color: #ffffff;
  border-width: thin;
}

.esri-layer-list__item-actions-list {
  padding: 0px 0px;
}

.esri-layer-list__item-container {
  padding: 12px 0;
}

/* part of the layers tab lack of word wrap is this 'status icon' that is able to be displayed next ot the words. 
  It has a 12px margin by default even when nothing is there. Left some margin so it wont look too out of place if one shows up */
.esri-layer-list__status-indicator {
  margin-inline: 3px;
}

.overlay {
  opacity: 50;
  position: relative;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.8);
}

.overlay-inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.message {
  border-radius: 10px;
  background: #fff;
  display: inline-block;
  vertical-align: middle;
  width: 50%;
  text-align: left;
  padding: 10px;
}

#close_btn {
  float: right;
  cursor: pointer;
}

#check-box {
  float: left;
  cursor: pointer;
}

#check-box + span {
  cursor: pointer;
}

.doe-netl-logo-footer {
  height: 50px;
  width: 400px;
  position: inherit;
  float: left;
}

.cc-logo-footer {
  display: flex;
  width: 2rem;
  height: 2rem;
  padding: 1rem;
}

#footer-main-div {
  color: white;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  padding-left: 1%; /*10%*/
  overflow-x: hidden;
}

#footer-disclaimer-row {
  display: flex;
  align-items: center;
}

/* unvisited link */
a:link {
  color: rgb(108, 204, 248);
}

a:visited {
  color: #9d9e9e;
}

a:hover {
  color: rgb(72, 157, 255);
}

a:active {
  color: rgb(255, 0, 0);
}

.download-link {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

#download-container p {
  margin-top: 0px;
}

.download-panel-heading {
  margin: 0;
  padding: 1rem 0;
  cursor: pointer;
}

calcite-shell > h2[slot="header"] {
  padding-bottom: 1%;
}

.esri-grid .esri-column__menu-container {
  display: none;
}

#measure-container {
  display: flex;
  padding: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
}

#measure-p {
  margin: 0px;
}

#measure-buttons-row {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;

  button {
    border-radius: 8px;
    border-color: #7b7b7b !important;
  }
}

#measure-buttons-heading-text {
  text-align: center;
  width: 100%;
}

.esri-distance-measurement-2d__container {
  display: flex;
  flex-direction: column;
}

.esri-distance-measurement-2d__hint {
  display: flex;
  animation: none;
}

.esri-distance-measurement-2d.esri-widget.esri-widget--panel {
  width: 100%;
}

.esri-area-measurement-2d.esri-widget.esri-widget--panel {
  width: 100%;
}

#layers-interface {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  flex-wrap: wrap;
  background-color: rgb(247, 246, 246);
  border-radius: 4px;
  width: fit-content;
}

#layers-interface-body {
  width: 100%;
  overflow-y: scroll;
  max-height: 85vh;
}

#layers-header {
  border-block-end: 1px solid;
  z-index: var(--calcite-app-z-index-header);
  inline-size: 100%;
  align-items: stretch;
  justify-content: flex-start;
  background-color: var(--calcite-ui-foreground-1);
  border-block-end-color: var(--calcite-ui-border-3);
  flex: 0 0 auto;
  width: 100%;
  margin: 0px;
}

#layers-header-content {
  padding-inline: 0.75rem;
  padding-block: 0.875rem;
  margin-inline: 0px;
  margin-block: 0px 0.25rem;
  font-size: var(--calcite-font-size-0);
  line-height: 1.25rem;
  font-weight: var(--calcite-font-weight-medium);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 3px;
  padding-bottom: 3px;
}

.filter-text-wrapper {
  display: flex;
  width: 100%; /*13rem;*/
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.filter-text-wrapper p {
  word-wrap: break-word;
}

/* make teh tabs in teh query tool have less margin so they takeu pless space for the box width */
#query-tool-calcite-tab-nav {
  flex-wrap: wrap;

  calcite-tab-title {
    margin-right: 14px;
  }
}

#query-clear-button {
  height: fit-content;
  padding-top: 5px;
  margin-top: 5px;
  margin-right: 3px;
}

#query-download-button {
  padding-top: 10px;
  /* margin-left: 45%; */
  height: fit-content;
  padding-right: 5px;
}

#filter-query-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#filter-data-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#query-user-input-button {
  padding-left: 1rem;
  padding-right: 1rem;
}

#dataset-filter-button {
  padding-right: 1rem;
}

#filter-operations-row {
  margin-top: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#filter-numerical-input {
  display: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

#filter-date-input {
  display: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

#filter-widget-title {
  margin: 0px;
}

#att-table-top-right {
  display: flex;
}

#table-close-button {
  margin-left: auto;
  background-image: url("../img/close-button.png");
  background-size: cover;
  background-position: center;
  border: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 5px;
  border-radius: 2px;
  cursor: pointer;
}

#table-download-button {
  margin-left: auto;
  background-image: url("../img/download-icon.jpg");
  background-size: cover;
  background-position: center;
  border: none;
  width: 2rem;
  height: 1.5rem;
  margin: 5px;
  border-radius: 2px;
  cursor: pointer;
}

.table-tabs {
  font-family: "Avenir Next";
  background-color: white;
  border: none;
  border-radius: 2px;
  margin-top: 3px;
  margin-bottom: 3px;
  cursor: pointer;
}

#filter-clear-button {
  padding-left: 1rem;
}

.esri-ui-top-left {
  padding-left: 100px;
}

#add-data-container {
  padding-bottom: 0rem;
}

#file-upload-container,
#rest-upload-container,
#shp-upload-container {
  padding: 0 1rem;
}

.drawing-board {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 90%;
  display: none;
}

#drawing-canvas {
  width: 100%;
  height: 100%;
  top: inherit;
  position: fixed;
  overflow: hidden;
}

#stroke-container {
  display: flex;
  padding: 5px;
  align-items: center;
}

#line-container {
  display: flex;
  padding: 5px;
  align-items: center;
}

p#add-data-error-message,
p#add-csv-data-error-message {
  display: none;
  color: rgb(168, 4, 4);
  justify-content: center;
  align-items: center; /* Optional: vertically center content */
}

#download-container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

#layers-description-div {
  padding: 0rem 1rem 0rem 1rem;
}

.esri-button-menu__content {
  scrollbar-width: none;
}

#legend-div {
  position: absolute;
  top: 10rem;
  right: 1rem;
  z-index: 10;
  background-color: #c92eaf;
  height: 200px;
  width: 200px;
}

div.esri-legend__service.esri-legend__group-layer > h3 {
  display: none;
}

#field-description-container {
  left: 15%;
  top: 1%;
  padding-top: 0rem;
  flex-direction: column;
  background: white;
  color: black;
  display: none;
}

.draggable {
  display: flex;
  position: absolute;
  top: 50px; /* Initial top position */
  left: 50px; /* Initial left position */
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: move; /* Change cursor to indicate draggable */
}

.esri-legend.esri-widget.esri-widget--panel {
  width: min-content;
}

.esri-popup__main-container.esri-widget {
  width: auto;
}

.esri-popup__pointer {
  display: none;
}

.esri-features__container.esri-features__content-container {
  padding: 0px;
}

.esri-feature__content-node {
  flex-direction: column;
  display: flex;
  margin: 10px 5px 0px 5px;
}

/* reduce gap between esri content and popup table in the feature popups */
.esri-feature__content-node > .esri-feature__content-element.esri-feature__text{
  margin-bottom: 0px;
}

/* the popup is sorted improperly the first time it is opened, so need separate class for the first opening */
.initial-popup-style .esri-ui .esri-popup {
  display: flex;
  flex-direction: column-reverse !important;
}

.default-popup-style .esri-ui .esri-popup {
  display: flex;
  flex-direction: column !important;
}

#viewDiv
  > div.esri-view-root
  > div.esri-ui.calcite-mode-light
  > div.esri-ui-inner-container.esri-ui-manual-container
  > div.esri-component.esri-popup.esri-popup--aligned-top-center.esri-popup--shadow
  > div.esri-popup__main-container.esri-widget
  > div
  > calcite-flow
  > calcite-flow-item
  > h2 {
  font-size: 16px;
  /* do NOT add width for the popup header text, just allow it to fill all the available room */
  /* width: 150px;  */
}

#popup-table.tabulator {
  /* width: 300px; */
  font-size: 12px;
  word-wrap: inherit;
  overflow: overlay;
  z-index: 1;
  pointer-events: fill;
  bottom: 0;
  /* max-height: 150px; */
  margin-top: 2rem;
}

.esri-ui .esri-popup--is-docked {
  margin-right: 17rem;
}

.esri-popup__main-container.esri-widget {
  width: 300px;
}

/* hide layer name in right hand legend and only show sublayers */
.esri-widget__heading.esri-legend__service-label {
  display: none;
}

#lyr-panel-description-list {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-right: 1rem;
}

#feat-table-div {
  height: 500px;
}

.tabulator-cell {
  padding: 5px;
  margin: 0;
  white-space: normal;
  overflow: hidden;
}

.tabulator-tableholder {
  overflow-y: auto !important;
  overflow-x: auto !important;
  pointer-events: auto;
  user-select: auto;
}

#feat-table-div .tabulator-word-wrap {
  white-space: normal;
}

.esri-popup {
  cursor: move;
  resize: none;
  height: fit-content;
  width: fit-content;
}

/* remove popup docking option */
#viewDiv
  > div.esri-view-root
  > div.esri-ui.calcite-mode-light
  > div.esri-ui-inner-container.esri-ui-manual-container
  > div.esri-component.esri-popup.esri-popup--aligned-top-center.esri-popup--shadow
  > div.esri-popup__main-container.esri-widget
  > div
  > calcite-flow
  > calcite-flow-item
  > calcite-action {
  display: none;
}

.query-tab {
  overflow: visible !important;
  width: 100%;
  height: fit-content;
  padding: 0;
}

.query-tab-content,
.query-tab {
  left: 0;
  width: 100%;
  height: fit-content;
  position: absolute;
  display: flex;
  flex-direction: column;
  background-color: rgb(247, 246, 246);
  border-radius: 4px;
}

.query-tab-content {
  padding: 16px;
  width: calc(100% - 32px);
}

.query-tab .query-tab-notice {
  margin: 0 !important;
}

.query-tab-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  width: fit-content;
  padding-right: 140px; /*since the checkbox text is absulutely positioned, need to have paddign to give issusion of the text taking up space*/
}

.query-tab-checkbox-text {
  position: absolute !important;
  top: 0;
  left: 20px;
  font-size: 0.9rem;
}

.query-tab-checkboxes-container {
  padding-bottom: 15px;
  display: flex;
  justify-content: space-around;
}

/* class used when a query tab is selected to make teh tab(s) highlighted */
.query-tab-use-this-layer {
  border: 3px solid #8d1818;
  border-bottom: none;
}

.query-tab-combobox-container {
  width: 600px;
}

.query-count {
  padding-bottom: 8px;
  padding-top: 10px;
}

.query-count > :first-child {
  margin-bottom: 8px;
}

.query-tab-combobox {
  padding-bottom: 16px;
}

#sketch-widget-div {
  width: fit-content;
}

/*for map note text editing: bottom-left*/
#sketch-text-div {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
}

#sketch-color-picker {
  display: flex;
  margin: auto;
}

#sketch-text-input-div {
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;
  align-items: center;
}

#sketch-clear-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 90%;
}

#text-clear-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 90%;
}

.sketch-help {
  width: 10px;
}

.esri-sketch__panel {
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  display: flex;
}

#csv-lat-long-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-bottom: 1rem;
}

.help-button {
  height: 10px;
  margin-bottom: 10px;
  margin-left: 5px;
}

#annotate-tab-main-div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  flex-wrap: wrap;
  background-color: rgb(247, 246, 246);
  border-radius: 4px;
  width: fit-content;
}

#annotate-tab-header {
  border-block-end: 1px solid;
  z-index: var(--calcite-app-z-index-header);
  inline-size: 100%;
  align-items: stretch;
  justify-content: flex-start;
  background-color: var(--calcite-ui-foreground-1);
  border-block-end-color: var(--calcite-ui-border-3);
  flex: 0 0 auto;
  width: 100%;
  /* font-size: 16px; */
  margin: 0px;
  /* padding-inline: 0.75rem; */
}

#annotate-tab-header-content {
  padding-inline: 0.75rem;
  padding-block: 0.875rem;
  margin-inline: 0px;
  margin-block: 0px 0.25rem;
  font-size: var(--calcite-font-size-0);
  line-height: 1.25rem;
  font-weight: var(--calcite-font-weight-medium);
  margin: 0;
}

#annotate-interface {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  flex-wrap: wrap;
  background-color: rgb(247, 246, 246);
  border-radius: 4px;
  width: 320px;
}

#annotate-tab-body {
  width: 100%;
}

.annotate-bar {
  width: 80%;
}

.sketch-shape-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* change width internal or change flex-direction */
:host([layout="vertical"][width-scale="m"]) .content {
  --calcite-shell-panel-width-internal: var(--calcite-shell-panel-width, 20vw);
  --calcite-shell-panel-max-width-internal: var(
    --calcite-shell-panel-max-width,
    420px
  );
  --calcite-shell-panel-min-width-internal: var(
    --calcite-shell-panel-min-width,
    240px
  );
}

div .content__body {
  display: flex;
  flex: 1 1 auto;
  /* or this line below */
  flex-direction: row !important;
  overflow: hidden;
}

#label-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 79vh;
}

.labeling-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  p {
    font-weight: bold;
  }
}

.labeling-rows-buttons-container {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
}

.labeling-rows-divider-line {
  border: 0;
  border-top: 2px solid #333;
  width: 60%;
  margin-top: 21px;
}

#add-data-excel-container {
  display: flex;
  align-items: center;
}

#add-data-page-help {
  padding-right: 1rem;
}

.date-picker-title {
  margin-bottom: 5px;
}

#label-sample-text {
  margin: 10px 10px 10px 0px;
  padding: 1rem;
  font-size: 12px;
  color: black;
}

.label-hide {
  display: none;
}

.label-show {
  display: contents;
}

#print-loader {
  display: none;
  position: absolute;
  z-index: 999;
}

#layers-container {
  width: max-content;
}

/* #layerlist-panel {
  width: fit-content;
  max-width: 600px; 
  min-width: 280px; 
} */




