.container {
  padding: 15px;
  margin: auto;
  max-width: 1350px;
  position: relative;
  z-index: 1;
}

/* device */

.title {
  padding: 0 10px;
}

.title > div[class^=col]:not(#image) {
  border-bottom: solid 2px #172a74;
  margin-bottom: 15px;
}

@media (max-width:992px) {
  .title > div[class^=col]:first-child {
    border-bottom: none;
  }
}

#info_adapter {
  margin-bottom: 10px;
  color: #172a74;
  line-height: 1.4em;
}

#select_adapter {
  color: #172a74;
  padding: .375rem .75rem;
  font-size: 18px;
}

#select_adapter label {
  margin: 0;
}

#select_adapter label i {
  display: inline-block;
}

.return_btn {
  border: 2px solid #172a74;
  color: #172a74;
  font-size: 14px;
  line-height: 1.8em;
  /* position: relative;
  z-index: 10; */
}

.return_btn:not(:disabled):not(.disabled).active:focus, .return_btn:not(:disabled):not(.disabled):active:focus, .show > .return_btn.dropdown-toggle:focus {
  box-shadow: 0 0 0 .2rem rgba(33,169,175,0.2);
}

.return_btn:not(:disabled):not(.disabled).active, .return_btn:not(:disabled):not(.disabled):active, .show > .return_btn.dropdown-toggle {
  color: #ffffff;
  background-color: #172a74;
  border-color: #172a74;
}

.return_btn.focus, .return_btn:focus {
  color: rgba(23,42,116,0.1);
  border-color: rgba(23,42,116,0.8);
  box-shadow: 0 0 0 .2rem rgba(23,42,116,0.2);
}

.return_btn:hover {
  color: #ffffff;
  background-color: rgba(23,42,116,0.8);
  border-color: rgba(23,42,116,0.8);
}

.return_btn > i {
  margin-right: 5px;
}

.adapter_name {
  border: none;
  color: #172a74;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  width: 80%;
}

@media (min-width:992px) {
  .adapter_name {
    width: 65%;
  }
}

@media (max-width:768px) {
  .adapter_name {
    width: 80%;
  }
}

@media (max-width:576px) {
  .adapter_name {
    width: 70%;
  }
}

@media (max-width:360px) {
  .adapter_name {
    width: 50%;
  }
}

/* 見出し */

.h5, h5 {
  padding-top: 5px;
  padding-bottom: 5px;
  color: #172a74;
}

h5 {
  text-align: left;
  width: 100%;
  padding-left: 2em;
  background-color: rgba(96,192,234,0.56);
  font-family: 'Source Sans Pro', sans-serif;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* h5.measurement {
  text-align: left;
  width: 100%;
  padding-left: 2em;
  background-color: rgba(242,178,131,0.56);
  font-family: 'Source Sans Pro', sans-serif;
  margin-top: 10px;
  margin-bottom: 10px;
} */

h4 {
  color: #172a74;
  display: block;
  float: left;
  margin-top: 6px;
}

h4 > i {
  margin-right: 8px;
}

.col-form-label {
  padding-left: 1em;
  color: #6c757d;
}

.form-control {
  color: #6c757d;
}

label {
  color: #6c757d;
}

.form-text {
  padding-left: 1em;
}

.button_container {
  padding: 5px;
  height: auto;
}

/* toggle switch */

#addnew-form input {
  font-size: 14px;
  margin-top: 10px;
  padding-left: 16px;
}

fieldset {
  margin: 0;
  box-sizing: border-box;
  display: block;
  border: none;
  min-width: 0;
  background-color: #FFF;
}

fieldset legend {
  margin: 0 0 1.5rem;
  padding: 0;
  width: 100%;
  float: left;
  display: table;
  font-size: 1.5rem;
  line-height: 140%;
  font-weight: 600;
  color: #333;
}

fieldset legend + * {
  clear: both;
}

.toggle {
  box-sizing: border-box;
  font-size: 0;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: stretch;
}

.toggle input {
  width: 0;
  height: 0;
  position: absolute;
  left: -9999px;
}

.toggle input + label {
  margin: 0;
  padding: .5rem 2rem;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  border: solid 1px #DDD;
  background-color: #FFF;
  font-size: 1rem;
  line-height: 140%;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: border-color .15s ease-out, color .25s ease-out, background-color .15s ease-out, box-shadow .15s ease-out;
}

.toggle input + label:first-of-type {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.toggle input + label:last-of-type {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.toggle input:checked + label {
  background-color: #4B9DEA;
  color: #FFF;
  box-shadow: 0 0 10px rgba(102,179,251,0.5);
  border-color: #4B9DEA;
  /* z-index: 11; */
}

/* .measurement input:checked + label {
  background-color: #ea7b4b;
  color: #fff;
  box-shadow: 0 0 10px rgba(102,179,251,0.5);
  border-color: #ea7b4b;
  z-index: 1;
} */

@media (max-width: 991px) {
  .toggle input + label {
    justify-content: center;
    align-items: center;
  }
}

.area_toggle {
  height: 2rem;
}

.area_toggle input + label {
  max-width: 7rem;
  margin: 0;
  padding: .75rem .25rem;
  flex: 0 0 15%;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  border: solid 1px #DDD;
  background-color: #FFF;
  font-size: 1rem;
  line-height: 15%;
  font-weight: 300;
  text-align: center;
}

@media (max-width: 991px) {
  .area_toggle input + label {
    padding: .75rem .25rem;
    display: flex;
    flex: 0 0 15%;
    max-width: 7rem;
  }
}

@media (max-width: 580px) {
  .area_toggle input + label {
    flex: 0 0 50%;
  }
}

/* add button */

.edit-icon {
  margin-left: 10px;
  font-size: 15px;
}

.add-another-btn {
  border: 2px solid #5C99C7;
  color: #5C99C7;
  font-size: 14px;
  line-height: 1.8em;
}

.add-another-btn:hover {
  border: 2px solid #5C99C7;
  background: #5C99C7;
  color: white;
}

#addArea:disabled {
  background: #111111;
  border: 2px solid #b7b7b7;
  color: #b7b7b7;
}

#addAdrsBtn:disabled {
  background: #111111;
  border: 2px solid #b7b7b7;
  color: #b7b7b7;
}

/* scroll */

html {
  scroll-behavior: smooth;
}

#scroll-to-top {
  background-color: rgba(33,169,175,0.6);
  width: 44px;
  height: 40px;
  position: fixed;
  bottom: 0;
  right: 40px;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
}

#scroll-to-top i {
  color: #fff;
  font-size: 22px;
  line-height: 44px;
}

/* modal */

.error_modal {
  color: #ba3232;
}

.err_validation {
  color: #ba3232;
}

.modal-title {
  color: #172a74;
}

.modal-body {
  color: #6c757d;
}

/* ローディング画面 */

.getdata_disp {
  height: 100%;
  width: 100%;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  flex-direction: column;
}

.getdata_font {
  font-size: 20px;
  margin: 20px;
}

/* 再起動コメント */

.diff_comment {
  color: #ba3232;
  font-size: 24px;
  font-weight: bold;
}
.dropdown:hover > .dropdown-menu {/*.dropdown:hover > */
  display: block;
  position: absolute;
  /* z-index: 2147483647; */
  /* pointer-events: none; */
}

#rangeSlider .noUi-tooltip {
  display: none;
}
#rangeSlider .noUi-active .noUi-tooltip {
  display: block;
}

/* .container{
  position: relative;
  z-index: 1;
} */

#th_temperature_thres_up{
  width: 90%;
  padding-left: 12px;
}
#th_temperature_thres_down{
  width: 90%;
}
.col-6 #th_temperature_thres_up{
  width: 100%;
}
.col-6 #th_temperature_thres_down{
  width: 100%;
}
#th_humidity_thres_up{
  width: 90%;
  padding-left: 12px;
}
#th_humidity_thres_down{
  width: 90%;
}
#th_month_date.form-control{
  width: 110px;
}
#th_month_time.form-control{
  width: 110px;
}
#th_week_time.form-control{
  width: 110px;
}
#th_date_time.form-control{
  width: 110px;
}
#th_hour.form-control{
  width: 110px;
}
#th_minute.form-control{
  width: 110px;
}

#month_date.form-control{
  width: 110px;
}
#month_time.form-control{
  width: 110px;
}
#week_time.form-control{
  width: 110px;
}
#date_time.form-control{
  width: 110px;
}
#hour.form-control{
  width: 110px;
}
#minute.form-control{
  width: 110px;
}
