.nav-pills {
  display: inline-block;
  font-size: 1rem;
}

body {
  overflow-y: scroll;
}

.valign-middle {
  vertical-align: middle;
}

.col-border {
  border-top: 1px solid #ddd;
}

.console {
  padding: 10px 20px;
  width: 100%;
  height: 100px;
  border: 1px solid #ddd;
  overflow-y: scroll;
  font-family: "courier";
  font-size: 9pt;
}

.console div:last-child:after {
  content: "";
  display: block;
  height: 10px;
  width: 100%;
}

.pin-title {
  font-family: sans-serif;
  font-weight: bold;
  color: #999999;
}

.text-secondary {
  color: #6c757d !important;
}

.btn-dropdown {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* on/off switch */
.onoffswitch {
  margin: auto;
  position: relative; width: 90px;
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
  display: none;
}
.onoffswitch-label {
  display: block; overflow: hidden; cursor: pointer;
  border: 2px solid #999999; border-radius: 0px;
}
.onoffswitch-inner {
  display: block; width: 200%; margin-left: -100%;
  transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
  display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 26px;
  font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
  box-sizing: border-box;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.onoffswitch-inner:before {
  content: "";
  padding-left: 10px;
  background-color: #2E8DEF; color: #FFFFFF;
}
.onoffswitch-inner:after {
  content: "";
  padding-right: 10px;
  background-color: #CCCCCC; color: #333333;
  text-align: right;
}
.onoffswitch-switch {
  display: block; width: 25px; margin: 0px;
  background: #000000;
  position: absolute; top: 0; bottom: 0;
  right: 65px;
  transition: all 0.3s ease-in 0s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  right: 0px; 
}

/* manual/schedule switch */
.overrideswitch {
  margin: auto;
  position: relative; width: 90px;
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.overrideswitch-checkbox {
  display: none;
}
.overrideswitch-label {
  display: block; overflow: hidden; cursor: pointer;
  border: 2px solid #999999; border-radius: 10px;
}
.overrideswitch-inner {
  display: block; width: 200%; margin-left: -100%;
  transition: margin 0.3s ease-in 0s;
}
.overrideswitch-inner:before, .overrideswitch-inner:after {
  display: block; float: left; width: 50%; height: 20px; padding: 0; line-height: 20px;
  font-size: 12px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
  box-sizing: border-box;
}
.overrideswitch-inner:before {
  content: "Manual";
  padding-right: 30px;
  background-color: #FFFFFF; color: #2E8DEF;
}
.overrideswitch-inner:after {
  content: "Schedule";
  padding-right: 8px;
  background-color: #FFFFFF; color: #999999;
  text-align: right;
}
.overrideswitch-switch {
  display: block; width: 16px; height: 16px; margin: 4px;
  background: #FFFFFF;
  position: absolute; top: 0; bottom: 0;
  right: 66px;
  border: 2px solid #999999; border-radius: 10px;
  transition: all 0.3s ease-in 0s; 
}
.overrideswitch-checkbox:checked + .overrideswitch-label .overrideswitch-inner {
  margin-left: 0;
}
.overrideswitch-checkbox:checked + .overrideswitch-label .overrideswitch-switch {
  right: 0px; 
  background-color: #FFFFFF;
  border-color: #2E8DEF;
}

/* data log */
.form-control-sm {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.log-header {
  margin-bottom: 0.25rem;
}

.log-header-title {
  margin-bottom: 0.25rem;
  margin-right: 1rem;
}

.log-header-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.log-header-date > div {
  margin-bottom: 0.5rem;
  margin-right: 0.75rem;
}

.date-group {
  display: flex;
}
.date-group > div {
  flex: 1;
}
.date-group div:first-child input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.date-group div:last-child input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
