body,
html {
  height: 100%;
}
.primary-nav {
  background: #ededed;
  position: fixed;
  width: 160px;
  top: 0;
  bottom: 0;
  left: 0;
  border-top: 4em solid #ededed;
}
.primary-nav-bottom {
  background: #ededed;
  position: fixed;
  width: 160px;
  height: auto;
  bottom: 1em;
  left: 0;
}
.secondary-nav {
  background: #f7f7f7;
  position: fixed;
  width: 160px;
  top: 0;
  bottom: 0;
  left: 160px;
  border-top: 2em solid #f7f7f7;
}
.secondary-nav-bottom {
  background: #f7f7f7;
  position: fixed;
  width: 160px;
  height: auto;
  bottom: 1em;
  left: 160px;
}
.nav-pills li a {
  border-radius: 0px;
}
.main-content {
  margin-left: 340px;
  max-width: 560px;
}
.only-one-sidebar {
  margin-left: 180px;
}
.service-title {
  padding-left: 1em;
}
.row {
  padding: 1em 0 1em 1em;
}
.pane-external-app,
.pane-external-service,
.pane-native-component,
.pane-urlicon,
.pane-fileicon {
  display: none;
}
.search-terms .btn,
.search-categories .btn {
  margin: 0 .5em .5em 0;
}
.custom-item {
  background: #eee;
  position: relative;
  width: 100%;
  margin: 1em 0;
  list-style: none;
  line-height: 60px;
  text-transform: uppercase;
  font-weight: bold;
}
.custom-item .glyphicon-sort {
  position: absolute;
  left: 1em;
  top: 22px;
}
.custom-item .btn-group {
  position: absolute;
  top: -8px;
  left: 470px;
  width: 100px;
}
.edit-details {
  display: block;
  width: 431px;
  margin-left: 58px;
  padding-left: 21px;
}
.custom-item:hover {
  cursor: pointer;
}
.sortable {
  padding: 0;
}
.sortable-placeholder {
  border: 7px dashed #eee;
  height: 60px;
  list-style: none;
}
.large-icon {
  font-size: 2em;
  color: #999;
  top: 8px;
  margin-right: 20px;
}
.custom-item:hover > .large-icon {
  color: #428bca;
}
.icon-grid img {
  margin: 3px;
  padding: 5px;
  cursor: pointer;
}
.icon-grid .icon img.active {
  outline: 2px solid #428bca;
}
.icon-grid img:hover {
  outline: 2px solid #ddd;
}
.icon-grid img:active {
  outline: 2px solid #428bca;
}
.label-default {
  background: #ccc;
}
.active-users {
  margin: 1em;
  width: 190px;
  text-align: center;
  color: white;
  border-radius: 6px;
  padding: .75em;
  float: left;
}
.active-users h1 {
  margin-top: -10px;
}
.active-users-ios {
  background-color: #428bca;
}
.active-users-android {
  background-color: #5cb85c;
}
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px;
  border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}
.dropdown-submenu:hover > a:after {
  border-left-color: #fff;
}
.dropdown-submenu.pull-left {
  float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}
.note-editor .note-link-dialog .checkbox {
  display: none!important;
}
/* APP */
#app {
  height: 100%;
  width: 100%;
}
#app #loader {
  top: 50%;
  left: 50%;
  position: absolute;
  display: block;
}
.has-children > a,
.has-children {
  cursor: not-allowed;
}
a.btn {
  margin: .5em;
}
.gray {
  opacity: 0.8;
}
/* ERROR MESSAGES */
.alert {
  margin: 1em 0;
}
.alert.fade {
  position: fixed;
  top: 1em;
  right: 1em;
  height: 0px;
  line-height: 0px;
}
.alert.fade .close {
  display: none;
  position: relative;
  top: -1px;
  right: -5px;
  line-height: 0px;
}
/* DEVICE TABLE */
#devices td {
  height: 34px;
  line-height: 34px;
  position: relative;
}
#devices td .remove-content {
  float: right;
}
/* SERVICE TABLE */
#services tr {
  cursor: pointer;
}
#services tr td {
  position: relative;
}
#services tr .remove-content {
  opacity: 0;
}
#services tr:hover .remove-content {
  opacity: 1;
}
/* MODULES */
.custom-item.editing {
  outline: 2px solid #bbb;
}
.module-image {
  max-width: 100%;
}
.module-type,
.module-title {
  display: inline-block;
}
.module-title {
  position: relative;
  top: 8px;
}
.module-type {
  text-transform: none;
  font-weight: normal;
  position: absolute;
  top: -8px;
  font-size: 12px;
  color: #727272;
}
.save-button {
  position: fixed;
  bottom: 1em;
  right: 1em;
}
/* ICONS */
.icon-grid .icon {
  max-width: 80px;
  display: inline-block;
}
.icon-grid .icon .remove {
  display: none;
}
.icon-grid img {
  width: 100%;
}
.icon-grid .user-icon {
  position: relative;
}
.icon-grid .user-icon:hover .remove {
  width: 15px;
  height: 15px;
  background: black;
  display: block;
  position: absolute;
  top: 2px;
  right: -4px;
  cursor: pointer;
  opacity: 0.5;
  text-align: center;
  line-height: 15px;
  color: white;
  font-size: 10px;
}
/* WYSIWYG */
.note-editable {
  min-height: 300px;
}
.note-link-dialog.modal .modal-title {
  color: transparent;
}
.note-link-dialog.modal .modal-title:before {
  content: "Lägg till länk";
  color: #333;
}
.note-link-dialog.modal label:first-child {
  display: none;
}
.note-link-dialog.modal .form-group:first-child:before {
  content: "Text som ska visas";
  font-weight: bold;
}
.note-link-dialog.modal .form-group:nth-child(2):before {
  content: "Var ska denna länk leda?*";
  font-weight: bold;
}
.note-link-dialog.modal .note-modal-form .modal-body:after {
  content: "* Länk, använd dessa prefix för olika användningsområden: \Ahttp:// (länk till webbsida, öppnar webbläsaren, exempel http://www.example.org)\Amailto: (e-postadress, öppnar epostprogrammet, exempel mailto:place@example.org)\Atel: (telefonnummer, endast siffror, öppnar telefonfunktionen, exempel tel:0701234567)\Asms: (telefonnummer, endast siffor, öppnar sms-funktionen, exempel sms:0701234567)";
  white-space: pre;
}
/* SIDEBAR */
#sidebar li:nth-child(2) {
  margin-top: 20px;
}
/* SUBMENUS */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px 6px;
  border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #cccccc;
  margin-top: 5px;
  margin-right: -10px;
}
.dropdown-submenu:hover > a:after {
  border-left-color: #ffffff;
}
.dropdown-submenu.pull-left {
  float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}
