body {
  margin: 0;
  padding: 0;
  background-color: #EAEFF2;
  font-family: 'Raleway', sans-serif;
  /*font-family: 'Rubik', sans-serif;*/
}

/* Remove scroll on the body when modal is open */
body.modal--open {
  overflow: hidden;
}

p.text-center {
  margin: 1em;
}

/* input placeholder color */

::-webkit-input-placeholder {
  color: #aaa;
}
::-moz-placeholder {
  color: #aaa;
}
:-ms-input-placeholder {
  color: #aaa;
}
:-moz-placeholder {
  color: #aaa;
}
::placeholder {
  color: #aaa;
}

/* login box */

.login-container {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.login-container > form {
  width: 300px;
  min-height: 200px;
}

.login-container > form button:focus {
  outline: none;
}

.login-container > form .error-msg {
  color: #a94442;
}

/* container styles */

.wrap-tabs {
  margin: -34px -25px 0px;
}

/* brand logo */

.brand {
  display: flex;
  font-weight: 200;
  padding: 18px;
  align-items: center;

}

.brand > span {
  color: white;
  font-size: 28px;
  font-weight: 100;
}

.brand > em {
  font-size: 16px;
  font-style: normal;
  color: #3C9ADF;
  margin: 0 0 0 16px;
}

/* usermenu */

.user-menu {
  background: #3a424f;
  display: block;
  width: 250px;
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: -25px !important;
  /* overflow: hidden; */
}

.sidebar-minified .user-menu {
  margin-left: -11px !important;
  text-align: left;
}

.user-menu > section {
  height: 70px;
  line-height: 70px;
  padding: 0 18px;
  padding-top: 0 !important;
}

@media only screen and (max-width: 1024px) {
  .user-menu {
    width: auto;
  }
  .user-menu > section {
    height: 50px;
    line-height: 50px;
  }
}

.user-menu > section > .dropdown-link {
  display: inline-flex;
  align-items: center;
}

.user-menu .name {
  color: white;
  margin: 0 9px 0 18px;
  font-size: 15px;
}

.user-menu .dropdown ul > li > p {
  padding: 0;
  margin: 0;
}

.user-menu .dropdown ul > li > p > a {
  color: #555;
  font-weight: 400;
}

/* sidebar toggle */

.sidebar-toggle {
  position: absolute;
  bottom:0;
  left: 0;
  right: 0;
  background-color: #3A424F;
  border-top: 2px solid #444c5a;
  text-align: right;
  cursor: pointer;
  color: #777;
  transition: all 150ms ease;
}

.sidebar-toggle:hover {
  color: white;
}

.sidebar-toggle span {
  line-height: 42px;
  font-size: 120%;
  font-weight: 300;
  padding: 0 21px;

}

.sidebar-toggle span:after {
  content: '<';
}

.sidebar-minified .sidebar-toggle span:after {
  content: '>';
}

@media only screen and (max-width: 1024px) {
  .sidebar-toggle {
    display: none;
  }
}

/* search */

.search-panel > svg {
  margin: 0 0 0 22px;
  fill: #3C9ADF !important;
  width: 42px !important;
  height: 42px !important;
}

.search-panel > input {
  border: none;
  color: #434343;
  font-size: 18px;
  margin: 12px;
  font-weight: 300;
  padding: 8px 0;
}

.search-panel > button {
  margin: 0 22px;
}

.search-panel > input:focus {
  outline: none;
  border: none;
}

/* device filters */

.device-filters {
  display: flex;
  flex-direction: row;
  padding-bottom: 72px;
  margin-bottom: 30px;
  border-bottom: 1px solid #DFE3E5;
}

.device-filters > div {
  flex: 1 1 auto;
  color: #ccc;
  margin-right: 20px;
}

.device-filters > div:last-child {
  margin-right: 0 !important;
}

.device-filters > div.id {
  width: 215px;
  flex: none;
}

.device-filters > div.state,
.device-filters > div.customer,
.device-filters > div.address {
  /*width: 100%;*/
  width: 235px;
  min-width: 165px;
  flex: initial;
}

.device-filters > div.id > span {
  margin: 0 4px;
}

/* table actions */

.table-actions {
  display: flex;
  flex-wrap: wrap;
  line-height: 32px;
  margin-bottom: 9px;
}

.table-actions span {
  font-weight: 500;
  font-size: 15px;
}

.table-actions span.separator {
  color: #DFE3E5;
}

.table-actions span a {
  color: #3C9ADF;
  margin: 0 12px;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  .table-actions {
    visibility: hidden;
    height: 8px;
  }
}

/* table */

table  {
  font-family: "Rubik", sans-serif;
  border-radius: 3px;
  /* overflow: hidden; */
}

table.no-stripes > tbody > tr:nth-of-type(odd) {
  background-color: white;
}

table.no-stripes > tbody > tr.current {
  background-color: #f8f9fb;;
}

table > thead > tr > th.col-timestamp {
  width: 224px;
}

table > thead > tr > th.col-edit {
  width: 56px;
}

table > tbody > tr > td.emphasis {
  /*font-family: "Rubik";*/
  font-style: normal;
  font-weight: 500;
}

table > tbody > tr > td > div.normal-text {
  font-weight: 100;
}
table > tbody > tr > td.link {
  cursor: pointer;
}

table > tbody > tr > td .stamp {
  color: #909192;
  font-weight: 300;
}

table > tbody > tr > td .state-icon > svg {
  float: left;
  padding: 2px;
  margin: -2px 8px 0 0;
}

/* table summary row */

table > tbody > tr.summary {
  background-color: white;
  border-top: 2px solid #ddd;
}

table > tbody > tr.summary > td {
  /*font-weight: bold;*/
}

/* pagination */

.my-pagination {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #DFE3E5;
  padding: 16px 0;
}

.my-pagination > header span {
  font-weight: 500;
  font-size: 15px;
}

.my-pagination > header span.total {
  color: #3C9ADF;
  margin: 0 12px;
}

.my-pagination > ul {
  margin: 0 -10px 0;
}

.my-pagination > ul > li {
  display: inline-block;
  margin: 0 0 4px 0;
  min-width: 36px;
  box-sizing: border-box;
  text-align: center;
  border-right: 1px solid #DFE3E5;
}

.my-pagination > ul > li > a {
  color: #aaa;
  padding: 2px 12px;
  cursor: pointer;
}

.my-pagination > ul > li:last-child {
  border-right: none !important;
}

.my-pagination > ul > li.ellipsis > a {

}

.my-pagination > ul > li.active > a {
  font-weight: 600;
  color: #3C9ADF;
  text-decoration: underline;
}

@media only screen and (max-width: 1024px) {
  .my-pagination {
    flex-wrap: wrap-reverse;
    padding: 8px 0 16px 0;
  }
  .my-pagination > ul {
    margin: 0 0 20px 0;
    padding: 0;
  }
  .my-pagination > header {
    margin-left: 12px;
  }
}

/* card customs */

.device-boxes div.device-state {
  margin-top: 0.6em;
}

.device-boxes .state-icon > svg {
  float: left;
  padding: 2px;
  margin: -2px 8px 0 0;
}

h3.card-title {
  color: black;
  font-family: 'Rubik', sans-serif;
}

h3.card-title a {
  font-weight: normal;
  font-size: 90%;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: ease 0.4s color;
}

h3.card-title a:hover {
  color: #44a4e1;
}

.text-muted {
  color: #929191;
}

.text-muted-lighter {
  color: #c9c9c9;
}

/* form customs */

.form-value {
  display: block;
  margin: 2px 0 0 0;
  padding: 8px 10px;
  border: 1px solid #e5e8ed;
  border-radius: 3px;
  height: 36px;
}

.tr-link {
  margin: 12px;
  text-align: right;
}

.tr-link a {
  cursor: pointer;
}

/* dropdown for input list */

.dropdown-input-list {
  display: inline-block;
}

.dropdown-input-list .dropdown__trigger {
  cursor: pointer;
  text-decoration: none;
}

.dropdown-input-list .dropdown__content {
  display: none;
  position: absolute;
  z-index: 12;
  background-color: white;
  border-radius: 2px 2px;
  right: 28px;
  top: -6px;
  box-shadow: 0px 1px 4px #ccc;
  padding: 6px 0 6px;
}

.dropdown-input-list .dropdown__content > p {
  margin: 8px;
}

.dropdown-input-list.dropdown--active {

}

.dropdown-input-list.dropdown--active .dropdown__content{
  display: block;
  padding: 9px;
}
