#dashboard {
  margin: 0 -6px;
}

#standalone #dashboard {
  margin: -10px -6px 0;
}


#dashboard {
  .col {
    min-height: 100px;
    // Customize Bootstrap gutter between columns
    padding-right: 6px;
    padding-left: 6px;

    >.sortable {
      padding: 5px 0 8px 0;
    }
  }
}

.hover {
  border: 2px dashed #E3E3E3;
}

.widgetHover {
  border: 1px solid #aba494;
}

.widget .entityContainer {
  width: 100%;
}

.widget .sparkline {
  margin-left: 5px;
}

// Overriding some dataTable css for better dashboard display
.widget .dataTableWrapper {
  width: 100% !important;
  table * {
    // Because of Bootstrap
    box-sizing: content-box;
  }
}

.ui-confirm {
  display: none;
  width: 630px;
  background: @theme-color-background-base;
  color: @theme-color-text-light;
  cursor: default;
  font-size: 12px !important;
  border-radius: 4px;
  padding: 20px 10px;
  border-radius: 4px;
  min-height: 0 !important;
}

.ui-confirm p {
  margin-top:10px;

}
.ui-confirm h2 {
  text-align: center;
  font-weight: bold;
  padding: 0;
}

.ui-dialog .ui-dialog-buttonpane {
  text-align: center;
  border: none;
}

.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  float: none;
}

.ui-dialog-buttonset input[type=button], .ui-dialog-buttonset button {
  color: #fff !important;
  border: 0 !important;
  font-size: 12px !important;
  padding: 5px 20px !important;
  border-radius: 3px;
  cursor: pointer;
  display: inline-block;
  margin: 0 8px 3px 8px !important;
}

.ui-dialog .ui-button-text {
  padding: 0 !important;
}

.ui-widget-overlay {
  opacity: 0.6;
  background: none #000;
  position: fixed;
  z-index: 1000;
}

.ui-dialog {
  z-index: 1001;
}

.menu {
  display: none;
}

.widgetLoading, .widgetLoadingError, .dimensionLoadingError {
  padding: 10px;
  font-size: 10pt;
}

.widgetLoadingError {
  .alert.alert-danger {
    border: 0;
  }
}

.widgetLoadingError, .dimensionLoadingError {
  color: @theme-color-brand;
  text-align: left;
  a {
    color: @theme-color-brand;
    text-decoration: underline;
  }
}

#closeMenuIcon {
  float: right;
  margin: 3px;
  cursor: pointer;
}

.menuClear {
  clear: both;
  height: 30px;
}

.dashboardSettings {
  position: absolute;
  z-index: 120;
  background: #f7f7f7;
  border: 1px solid #e4e5e4;
  border-radius: 4px;
  color: @theme-color-text-light;
  cursor: pointer;
  overflow: hidden;
}

.dashboardSettings:hover {
  background: #f1f0eb;
  border-color: #a9a399;
}

.dashboardSettings.expanded {
  z-index: 1020; /* More than .jqplot-seriespicker-popover (1010) */
  min-width: 800px;
}

.dashboardSettings > span {
  background: url(plugins/Morpheus/images/sort_subtable_desc.png) right center no-repeat;
  padding-right: 20px;
  display: block;
}

.dashboardSettings ul.submenu {
  padding-top: 5px;
  display: none;
  float: left;
}

.dashboardSettings.expanded ul.submenu {
  display: block;
  list-style: square outside none;
}

.dashboardSettings > ul.submenu > li {
  padding: 5px 0;
  clear: both;
}

.dashboardSettings > ul.submenu > li:hover {
  color:@theme-color-link;
}

#changeDashboardLayout h2 {
  margin-bottom: 20px;
}

#columnPreview {
  clear: both;
  width: 400px;
  margin: auto;
}

#columnPreview > div {
  margin: 5px;
  float: left;
  opacity: 0.4;
  cursor: pointer;
  filter: Alpha(opacity=40);
}

#columnPreview > div:hover, #columnPreview > div.choosen {
  opacity: 1;
  filter: Alpha(opacity=100);
}

#columnPreview div div {
  height: 120px;
  float: left;
}

#columnPreview div div span {
  background-color: #ddd;
  width: 100%;
  height: 100%;
  display: block;
  border: 2px dotted #555;
  margin: 0 1px;
}

#columnPreview div.choosen div span, #columnPreview div:hover div span {
  border-style: solid;
}

#columnPreview .width-100 {
  width: 120px;
}
#columnPreview .width-75 {
  width: 90px;
}
#columnPreview .width-67 {
  width: 80.4px;
}
#columnPreview .width-50 {
  width: 60px;
}
#columnPreview .width-40 {
  width: 48px;
}
#columnPreview .width-33 {
  width: 40px;
}
#columnPreview .width-30 {
  width: 36px;
}
#columnPreview .width-25 {
  width: 30px;
}

/**
 * Layout for widget previews
 */

.widgetpreview-base {
  clear: both;
  min-height: 600px;
  -height: 600px;
}

.addWidget, .manageDashboard {
  cursor: default;
}

ul.widgetpreview-widgetlist,
ul.widgetpreview-categorylist {
  color: @theme-color-text-light;
  list-style: none;
  font-size: 11px;
  line-height: 20px;
  float: left;
  margin-right: 20px;
}

ul.widgetpreview-categorylist {
  cursor: default;
}

ul.widgetpreview-categorylist li,
ul.widgetpreview-widgetlist li {
  line-height: 20px;
  padding: 0 25px 0 5px;
  border-radius: 2px;
}

.widgetpreview-base li.widgetpreview-choosen {
  background: #e4e2d7 url(plugins/Morpheus/images/arr_r.png) no-repeat right 6px;
  color: #255792;
  font-weight: bold;
}

.widgetpreview-categorylist li.widgetpreview-choosen {
  color: #000;
}

.widgetpreview-base li.widgetpreview-unavailable {
  color: #D3D3D3;
  cursor: default;
}

ul.widgetpreview-widgetlist {
  cursor: pointer;
  position: relative;
  top: 0;
}

div.widgetpreview-preview {
  float: left;
  width: 500px;
}

.dashboardSettings {
  min-height: 0;
  height: auto;
  margin-right: 10px;
}

.dashboardSettings .submenu {
  font-weight: bold;
  color: #255792;
}

.dashboardSettings .submenu ul {
  float: none;
  font-weight: normal;
  padding-top: 10px;
  margin-left: 10px;
  color: @theme-color-text-light;
  list-style: none;
  font-size: 11px;
  line-height: 20px;
  margin-right: 20px;
}

.dashboardSettings .submenu ul li {
  line-height: 20px;
  padding: 0 25px 0 5px;
  color: @theme-color-text-light;
}

.dashboardSettings .submenu ul li:hover {
  color: @theme-color-link;
}

.dashboardSettings .submenu li[disabled],
.dashboardSettings .submenu li[disabled]:hover {
  color: #d3d3d3;
}

.dashboardSettings .widgetpreview-widgetlist {
  width: 228px;
  font-weight: normal;
}

.dashboardSettings .widgetTop {
  cursor: pointer;
}

.dashboardSettings .widgetpreview-widgetlist,
.dashboardSettings .widgetpreview-preview {
  display: none;
}

.dashboardSettings.expanded .widgetpreview-widgetlist,
.dashboardSettings.expanded .widgetpreview-preview {
  display: block;
}

.widgetPlaceholder {
  border: 1px dashed #bbb6ad;
}

#newDashboardName, #createDashboardName {
  width: 200px;
}

#newDashboardNameInput, #createDashboardNameInput {
  margin: 20px 0 0 100px;
  text-align: left;
}

#createDashboardNameInput input {
  margin-bottom: 10px;
}

.popoverSubMessage {
  text-align: center;
  padding: 10px 0 5px 0;
}

#copyDashboardToUserConfirm .inputs {
  width: 375px;
  margin: 10px auto 0;
}

#copyDashboardToUserConfirm .inputs select,
#copyDashboardToUserConfirm .inputs input {
  width: 150px;
  float: left;
}

#copyDashboardToUserConfirm .inputs label {
  width: 200px;
  float: left;
}

#dashboardWidgetsArea {
  margin-top: -5px;
}

@media all and (max-width: 749px) {
  #dashboardWidgetsArea {
    padding-right: 7px;
  }

  .col.width-75,
  .col.width-67,
  .col.width-50,
  .col.width-40,
  .col.width-33,
  .col.width-30,
  .col.width-25 {
    width: 100%;
    .widget {
      margin-right: 0;
    }
  }

}

.ui-dialog .widget {
  .button#close,.button#maximise {
    display:none;
  }
}

.ui-button, .ui-dialog-titlebar-close {
  .btn;
  color: @theme-color-brand-contrast !important;
  background-color: @theme-color-brand !important;
  &:hover {
    background: none;
    background-color: transparent;
  }
}
