/* Global Defaults  */
body {
  background-color: #e9ecef;
}
input:focus, select:focus, textarea:focus, button:focus {
  outline: none;
}
input[readonly], select[readonly], textarea[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}
input, select, textarea, button {
  padding: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: .2rem;
  display: block;
  width: 100%;
  color: #495057;
  background-color: #fff;
  background-image: none;
  background-clip: padding-box;
  border: 1px solid #ced4da;
}
label {
  padding-top: calc(.25rem + 1px);
  padding-bottom: calc(.25rem + 1px);
  font-size: .875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Classes  */
.wrapper {
  margin-top: 100px;
  margin-bottom: 96px;
  min-height: 1000px;
}
.light-container {
  max-width: 1200px;
  width: 100%;
  font-size: 80%;
  padding: 0.75rem 15px 16px;
  margin: 0 auto 2rem;
  background-color: #f8f9fa;
}

/* Buttons  */
.btn-sub {
  color: #323232 !important;
  background-color: #dcdcdc !important;
}
.btn-war {
  background-color: #ae9b65 !important;
}
.btn-dis {
  background-color: #8e96a8 !important;
}
.btn-std {
  color: #ffffff;
  background-color: #85a05d;
  display: block;
  width: 100%;
  padding: .25rem .5rem;
  border-radius: .2rem;
  border: 1px solid transparent;
  line-height: 1.5;
  font-size: .875rem;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

/* Forms & Lists */
.form-list-input-custom {
  border: 0;
  width: 97%;
}
.form-list-label-custom {
  margin-bottom: 0;
  margin-right: 0.25rem;
}
.btn-icons {
  margin-right: 0.2rem;
  cursor: pointer;
  color: #85a05d;
}
.btn-link {
  color: #85a05d;
  cursor: pointer;
  text-decoration: none;
}
.btn-link:hover {
  color: #85a05d;
  cursor: pointer;
  text-decoration: none;
}
.btn-click {
  color: #85a05d;
  cursor: pointer;
  text-decoration: none;
}
.btn-click-warning {
  color: #ae9b65;
  cursor: pointer;
  text-decoration: none;
}
.btn-top-margin {
  margin-top: 16px;
}
.btn-center-align {
  margin-top: auto;
  margin-bottom: auto;
}
.input-warning {
  color: #ae9b65;
}
.input-error {
  color: #dc3545;
}
.remove-focus-ouline:focus {
  outline: 0;
}
.status-bar {
  background-color: #cbdfbd;
  padding-top: 0.25rem;
  padding-bottom: 0rem;
  color: #373b49;
  position: sticky;
  position: -webkit-sticky; /* Safari */
}
.icon-placement {
  margin-top: auto;
  margin-bottom: auto;
  font-size: 1rem;
}
.chk-box {
  height: 1rem;
  width: 1rem;
  margin: 0 0.75rem 0 0.25rem;
}

/* Site Footer */
.site-footer {
  background-color: #608133;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #cbdfbd;
  max-width: 100%;
  padding-left: calc(50% - 600px);
  padding-right: calc(50% - 600px);
  font-size: 80%;
}
.site-footer b {
  color: white;
}
.site-footer span {
  cursor: pointer;
}

/* Graphs */
.plotting {
  height: 100%;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  background-color: #ffffff;
  padding-top: 1rem;
  padding-bottom: 0.4rem;
  border: 1px solid #dfdfdf;
  border-radius: 4px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Water Number Cards */
.number-card-table {
  background-color: #ffffff;
  border: 1px solid lightgrey;
}
.number-card-table td {
  border-top: 0;
  border-bottom: 0;
  text-align: center;
  font-weight: 500;
  font-size: 1.75em;
  padding-bottom: 0.25rem;
  padding-top: 0;
}
.number-card-table thead th {
  border-top: 0;
  border-bottom: 0;
  font-size: 1.5em;
  font-weight: 400;
  text-align: center;
  padding-top: 0.25rem;
  padding-bottom: 0;
}

/* Style Cards */
.style-card-table {
  background-color: #ffffff;
  border: 1px solid lightgrey;
}
.style-card-table td {
  width: 9.0909090909%;
  border-top: 0;
  border-bottom: 0;
  font-size: 1.75em;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  padding: 0;
}
.style-card-table thead th {
  border-top: 0;
  border-bottom: 0;
  font-size: 1.25em;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  padding: 0;
}
.fw-500 {
  font-weight: 500 !important;
}
.fs-1 {
  font-size: 1em !important;
}
.lh-1-2 {
  line-height: 0.5em !important;
}
.lh-2 {
  line-height: 2em !important;
}
.bg-indicator-black {
  background-color: #1f1f1f !important;
}
.bg-indicator-red {
  background-color: #f79d9d !important;
}
.bg-indicator-amber {
  background-color: #ffeb3b !important;
}
.bg-indicator-green {
  background-color: #8bc34a !important;
}

/* Top Nav Bar */
.nav-link {
  line-height: 0.75;
}
#sub_nav_bar .nav-item .nav-link {
  color: #373b49;
}
#sub_nav_bar .nav-item .nav-link:hover {
  /*old browsers*/
  background-color: #e9ecef;
  /*new browsers*/
  background-color: rgba(233, 236, 239, 0.5);
}
#sub_nav_bar .nav-item .active,
#sub_nav_bar .nav-item .active:hover {
  background-color: #e9ecef;
}
.navbar#sub_nav_bar {
  background-color: #cbdfbd;
  top: 40px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Sub Nav Bar */
#top_nav_bar li:first-child {
  border-left: 0;
}
#top_nav_bar li {
  border-left: 1px solid #cbdfbd;
}
#top_nav_bar .nav-link {
  color: #cbdfbd;
}
#top_nav_bar .nav-item .active {
  color: #ffffff;
}
#top_nav_bar .version {
  color: #ffffff;
  font-size: 66.67%;
  margin-bottom: 0.65rem;
}
.nav-link {
  line-height: 0.75;
}
.navbar#top_nav_bar {
  background-color: #608133;
  padding-top: 0;
  padding-bottom: 0;
}

/* Style dash centering */
#centered-dash {
  display: inline-block;
  vertical-align: sub;
}

/* Modal */
.modal-mask {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
}
.modal-container {
  width: 600px;
  max-height: 90%;
  overflow: auto;
  margin: 40px auto 0;
  padding-top: 0.75rem;
  padding-bottom: 16px;
  background-color: #f8f9fa;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
  font-size: 80%;
}
.small-modal-container {
  position: absolute;
  width: 400px;
  max-height: 50%;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  padding-top: 0.75rem;
  padding-bottom: 16px;
  background-color: #f8f9fa;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
  font-size: 80%;
}

/* Search Modal */
#search_table tbody {
  height: 150px;
  overflow: auto;
}
#search_table {
  background-color: #ffffff;
}
#search_table .selected_table_row {
  background-color: #cbdfbd;
}

.list-form-control {
  padding: .1rem .4rem;
  font-size: 100%;
  line-height: 1;
  border-radius: .1rem;
}
.list-form-label {
  padding-top: calc(.2rem + 1px);
  padding-bottom: calc(.2rem + 1px);
  line-height: 1;
  margin-bottom: 0;
}

/* Forms */
.is-invalid {
  border: 1px solid #f00;
}

/* Text Elements */
.attention-box {
  border: #dcdcdc solid 1px;
  padding: 0.5rem;
  border-radius: 0.2rem;
  background: #fff;
}
.attention-span {
  color: #ae9b65;
}