html, body {
  height:100%;
}

body {
  font-family: Verdana,Arial,sans-serif !important;
  font-size: 12px !important;
  margin: 0 !important;
  color: #454545 !important;
}

#viz-container {
  height: initial;
}

#viz-footer {
  text-align: center;
}

/* override style in datatables.css causing permalink dialog box to display incorrectly */
input[type="text"] {
  padding: 0;
}

/********************/
/* BUTTONS, GENERIC */
/********************/

.button,
.button:focus,
.button:hover,
.button:disabled,
.button:disabled:focus,
.button:disabled:hover {
  font-size: 13.2px;
  font-family: Verdana, Arial, sans-serif;
  font-weight: normal;
  text-align: center;
  line-height: 22px;
  height: 23px;
  line-height: 22px;
  color: rgb(85, 85, 85);
  background-color: rgb(238, 238, 238);
  /* overriding Drupal's default button background */
  background-image: none;
  /* overriding Drupal's text shadow */
  text-shadow: none;
  cursor: pointer;
  border-color: rgb(204, 204, 204);
  border-style: solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  /* no right border, so borders between buttons will be exactly 1px wide */
  border-right-width: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0;
  outline: none;
}

.button:disabled,
.button:disabled:focus,
.button:disabled:hover {
  cursor: auto;
  color: rgb(170, 170, 170);
  background-color: rgb(243, 243, 243);
}

.button:hover {
  color: #000;
}

.button:first-child {
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
}

.button:last-child,
.button:disabled:last-child {
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  /* only show right border on rightmost button */
  border-right-width: 1px;
}

/* remove left border of a button to the right of a selected button */
.button--selected + .button,
.button--selected + .button:disabled {
  border-left-width: 0px;
}

.button--selected,
.button--selected:focus,
.button--selected:hover, .button--selected.metric-select__button:hover {
  color: #fff;
  background-color: rgb(39, 174, 96);
  border-color: rgb(39, 174, 96);
  border-right-width: 1px;
}

/******************/
/* PARAM CONTROLS */
/******************/

.control-container {
  width: 33.3%;
  display: inline-block;
  padding: 2px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: 25px;
}

@media all and (max-width: 1210px) {
  .control-container {
    width: 50%;
  }
}

@media all and (max-width: 810px) {
  .control-container {
    width: 100%;
  }
}

.control-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.control-label {
  width: 80px;
  margin: 5px;
  vertical-align: middle;
  line-height: initial !important;
}

.control {
  margin: 0;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: hidden;
}

.control-buttonset {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.control-option .ui-button-text {
  line-height: 22px;
  vertical-align: middle;
  padding: 0;
}

.control-option-buttonset {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 75px;
}

#param-controls {
  padding-top: 4px;
}

.no-checkbox input {
  display: none;
}

/*******************/
/* ACTION CONTROLS */
/*******************/

.action-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 10px 0;
}

.action-controls__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  width: 95%;
  min-width: 400px;
}

.action-controls__button:focus,
.action-controls__button:hover,
.action-controls__button {
  width: 30%;
  margin: 10px;
  border-radius: 4px;
  border-right-width: 1px;
}

.action-controls__button:active {
  border-right-width: 1px;
  color: #fff;
  background-color: rgb(39, 174, 96);
  border-color: rgb(39, 174, 96);
}

/*******************/
/* LINK CONTAINERS */
/*******************/

.link__list {
  margin: 0;
}

.link__list__item {
  padding: 4px 0;
}

/*********/
/* TABLE */
/*********/

.dataTables_info {
  text-align: center;
}

/*
override datatables.css directives to center text:
"Showing {x} to {y} of {z} entries"
*/
.columns {
  margin: 0 auto;
  padding: 0;
  float: none;
}

.data-table__cell--quantitative {
  text-align: right;
}

#data-table {
  width: 100%;
}

#message {
  display: table;
  width: 100%;
  text-align: center;
  font-size: 18px;
  color: #aaa;
}

/**********/
/* CHARTS */
/**********/

.charts {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 16px;
}

.metric-select {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.metric-select__button {
  min-width: 11em;
}

.charts__settings {
  margin: 8px 0px 16px 0px;
}

.charts__checkbox-label {
  display: inline;
}

.charts__checkbox {
  margin: 0px 20px 0px 5px;
}

.charts__container {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.chart {
  height: 300px;
  width: 400px;
  margin-bottom: 30px;
}

.chart__label {
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  display: block;
}

.chart__line {
  stroke-width: 3px;
}

.chart__tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  border: 3px solid black;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  overflow: hidden;
  padding: 5px 5px;
}

.tooltip__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.tooltip__list-item {}

.legend {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 10px;
}

.legend__title {
  font-size: 1em;
  font-weight: bold;
  margin: 5px;
  text-align: center;
}

.legend__list {
  width: 60em;
  background-color: rgba(0, 0, 0, 0.03);
  list-style-type: none;
}

.legend__list li {
  margin: 0.5em 0;
}

/**********/
/* MODALS */
/**********/

.modal {
  font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
}

.modal label {
  line-height: unset;
  font-weight: 400;
}

.modal input {
  height: unset;
}

.modal .header {
  background-color: unset;
}

.ui.button {
  height: unset;
}

.modal .error {
  background: white;
}

.modal p {
  font-size: unset;
}

.modal a {
  color: #338f2f !important;
  font-weight: bolder !important;
  text-decoration: underline !important;
}

.modal a:hover {
  color: #1e70bf !important;
}

.form-radio {
  display: inline-block !important; 
  margin-right: 18px !important;
}

.user-header {
  color: #338f2f;
}

.required-field-legend {
  position: absolute;
  top: 0;
  right: 6px;
  font-size: 10px;
  text-align: end;
  margin: 0;
}

.required-asterisk {
  color: #db2828;
  font-weight: 600;
}

.checkbox-group-prompt {
  display: inline-block;
  margin-top: 0;
}

.email-form {
  margin-bottom: 0 !important;
}

.email-form-warning-active input {
  border-color: red !important;
}

.email-form-warning-active input {
  border-color: initial;
}

.form-warning-message-active {
  visibility: visible;
  color: red;
}

.form-warning-message-inactive {
  visibility: hidden !important;
}

.form-section-commercial-users {
  margin-top: 20px !important;
  border-radius: 4px 4px 0 0 !important;
}

.ui.attached.segment {
  border-radius: 0 0 4px 4px !important;
}

/**************************************/
/* Optional header and message banner */
/**************************************/

.header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  font-size: 1rem;
  font-family: Verdana Arial sans-serif;
  font-weight: normal;
  background-color: rgb(195, 240, 142);
  -ms-flex-line-pack: center;
      align-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.header__logo {
  width: 2em;
  height: 2em;
}

.header__organization-name {
  font-size: 1.5em;
  color: rgb(0, 130, 0);
  padding: 5px 10px;
}

.header__text {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-family: Verdana, Arial, sans-serif;
  font-size: 1.2em;
  color: #454545;
  padding: 5px 20px;
}

.message-banner {
  background: #FF9F55;
  text-align: center;
  line-height: 30px;
  overflow: hidden;
  margin: -5px -5px 10px -5px;
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,.5);
  -webkit-box-shadow: 0px 4px 12px -5px #454545;
          box-shadow: 0px 4px 12px -5px #454545;
}
