// bootstrap overrides:
$icon-font-path: "../../bootstrap/fonts/bootstrap/";
$font-size-base: 13px;
$modal-md: 732px;

.leonardo-content{
  height:100%;
}

/* new clearfix */
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
* html .clearfix {
  zoom: 1;
} // IE6
*:first-child+html .clearfix {
  zoom: 1;
} // IE7

small {
  font-size: 11px;
}

a {
  color: $link-color;
  text-decoration: none;
}
a:hover,
a:focus {
  color: $link-hover-color;
  text-decoration: underline;
}

footer {
  display: inline-block;
  width: 100%;
}

ul {
  list-style: none;
  margin: 0;
}

// Disc-styled list. This list should be used to build bullet-items lists.
.list-bullet {
  list-style: disc;
}

/* Used to build compact node groups and tags tables */
.small-padding {
  padding-left: 0;
  padding-right: 5px;
  padding-bottom: 5px;
}

dt {
  font-weight: bold;
}

.topbar {
  background: $gray-lighter;
  // How to convert to SCSS?
  //#gradient > {
  //  +vertical($body-bg, $gray-lighter);
  //}
  border-bottom: 1px solid $gray-light;
  padding: 10px 0px 15px 0px;
}

.topbar .switcher_bar {
  display: inline-block;
  height: auto;
  width: 160px;
  max-width: 160px;
  background-position: 140px center;
  margin-bottom: 0;
  margin-right: 10px;
  padding: 0;
  background-image: url(../img/drop_arrow.png);
  background-color: $gray-lighter;
  background-repeat: no-repeat;
  border: 1px solid $gray-light;
  border-bottom-color: darken($gray-light, 10%);
  border-radius: 4px;
  // How to convert to SCSS?
  // @include box-shadow(inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  ul#tenant_list a {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.topbar .switcher_bar a {
  margin-left: 0;
  display: block;
}

.topbar .switcher_bar ul {
  width: 130px;
}

.topbar .switcher_bar div {
  padding: 2px 10px 1px;
  line-height: 20px;
  color: $gray;
  text-decoration: none;
  overflow: hidden;
  padding-right: 32px;
  text-overflow: ellipsis;
}

.hide_image {
  background-image: none !important;
}

#profile_editor_switcher {
  width:auto;
  max-width: 200px;
  vertical-align: top;
  white-space: nowrap;
  background-image: url(../img/profile_drop.png);
  background-repeat: no-repeat;
  background-position: right center;
}

#user_info {
  margin: auto 10px;
  padding-bottom: 15px;
  padding-right: 25px;
}

#user_info > a {
  color: $text-color;
  margin-left: 15px;
  line-height: 20px;
  font-size: 13px !important;
}

/* Hide select2 fields */
.django-select2 {
  display: none!important;
}

/* Fix select2 visibility in some themes */
.select2-results__option {
    color: #333;
    font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 16px;
}

/* Login Splash Page */

#splash .login {
  background: url(../img/logo-splash.png) no-repeat center 35px;
  position: absolute;
  top: 80px;
  left: 50%;
  margin: 0 0 0 -195px;
  padding-top: 170px;
  width: 390px;
  border: 1px solid $border-color;
  max-height: none;
  border-radius: 6px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  background-clip: padding-box;

  form {
    .error {
      width: 100%;
    }
    input {
      width: 100%;
    }
    select {
      width: 360px;
    }
  }
}

#splash p.help-block {
  display: none;
}

#create_container_form .modal-footer{
  margin-top: 190px;
}

.container-fluid {
  padding-left: 0;
}

.sidebar {
  border-width: 0 5px 5px 0;
  border-color: $border-color;
  border-style: solid;
  border-radius: 0 0 5px 0;
  float: left;
  min-width: 236px;
}

.sidebar h4 {
  margin-left: 14px;
  color: $headings-color;
}

.sidebar .nav-tabs {
  margin-top: -34px;
}

.sidebar .nav-tabs li.active a {
  background-color: $body-bg;
}

h1.brand {
  width: 100%;
  margin: 0;
}

h1.brand a {
  background: url(../img/logo.png) top left no-repeat;
  display: block;
  float: left;
  width: 216px;
  height: 35px;
  text-indent: -9999px;
  margin-left: 16px;
}


/* Tenant Dropdown */


a.current_item {
  width: 163px;
  float: left;
}

a.current_item:hover {
  text-decoration: none;
}

a.current_item:hover h3,
a.current_item:hover h4 {
  color: $link-hover-color;
  border-radius: 4px;
}

.sidebar .switcher_bar {
  width: 190px;
  height: 38px;
  padding: 5px 0;
  margin-left: 14px;
  margin-bottom: 15px;
}

.sidebar .switcher_bar a.dropdown-toggle {
  display: block;
  padding: 5px 0;
  background-image: url(../img/drop_arrow.png);
  border: 1px solid #c0d9e4;
  background-color: #e9f5fa;
  background-repeat: no-repeat;
  background-position: 167px 23px;
}

.sidebar .switcher_bar a.dropdown-toggle:hover {
  text-decoration: none;
  background-color: #cde8f4;
}

.sidebar .switcher_bar:focus {
  outline: none;
}

.sidebar .switcher_bar {
  h3 {
    color: #4790ae;
    font-size: 16px;
    margin: -6px 0 0 14px;
    padding: 0;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
  }
  h3:hover {
    white-space: normal;
    overflow: visible;
    text-overflow: none;
    padding-right: 1em;
    word-wrap: break-word;
  }
}

.sidebar .switcher_bar h4 {
  color: #6fabc4;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: normal;
  padding: 0;
}


.sidebar .switcher_bar ul {
  border: 1px solid #c0d9e4;
  margin-left: -1px;
  width: 190px;
}

.sidebar .switcher_bar li a:hover{
  background: #92d6f1;
}

.table-bordered {
  border: none;
}

.table_header {
  min-height: 35px;
  padding: 5px 0;
}

.table_caption th {
  background-color: transparent;
  border: none;
}

.table_title h3,
.table_header h3 {
  font-weight: normal;
  font-size: 24px;
  margin: 0 0 5px 0;
  float: left;
}
.table th.header {
  cursor: pointer;
}
.table th.header:hover {
  text-decoration: underline;
}
.table tbody td.anchor a {
  display: block;
}
.table tr.table_caption th.header:hover {
  background-color: transparent;
  cursor: default;
}
.table th.headerSortUp:hover,
.table th.headerSortDown:hover {
}
.table th.headerSortUp,
.table th.headerSortDown {
  background-repeat: no-repeat;
  background-position: 98% center;
}
.table th.headerSortDown {
  background-image: url(../img/drop_arrow.png);
}
.table th.headerSortUp {
  background-image: url(../img/up_arrow.png);
}
.table tr.summation td:first-child,
.table tr.summation td:last-child {
  border-radius: 0;
  border-bottom: 0 none;
}
.table li {
  list-style-position: inside;
}

th {

}
td.anchor {
  padding: 0;
}


.main_nav {
  list-style: none;
  width: 222px;
  margin: 10px 0 20px 0;
}

.main_nav a {
  color: #999;
  width: 185px;
  padding: 10px;
  display: block;
  margin-left: 20px;
}

.main_nav a.active {
  border: 2px solid #d8d8d8;
  border-right: 0;
  border-bottom-color: #ccc;
}

table form {
  margin-bottom: 0;
  width: 1px;
}

.messages {
  position: fixed;
  z-index: 9999;
  top: 20px;
  right: 20px;
  width: 300px;
  .alert {
    @include box-shadow(0 3px 7px rgba(0, 0, 0, 0.3));
  }
  .alert.alert-danger {
    border-width: 1px;
    border-style: solid;
    border-color: darken($brand-danger, 5%);
  }
  .alert.alert-success {
    border-width: 1px;
    border-style: solid;
    border-color: darken($brand-success, 5%);
  }
}

.alert .alert-actions {
  margin-top: -23px;
  margin-right: -23px;
}

.modal > form,
.login > form,
.alert-actions > form {
  margin-bottom: 0;
}

.alert p {
  overflow: hidden;
  word-wrap: break-word;
}

.alert p:last-child {
  margin-bottom: 0;
}

#actions.single {
  width: 90px;
}

.table-striped tr td {
  transition: background 0.2s;
  -webkit-transition: background 0.2s;
  -moz-transition: background 0.2s;
  -o-transition: background 0.2s;
}

.inspect {
  float: left;
  display: block;
  margin-top: 5px;
  margin-right: 25px;
}

.table {
  margin-bottom: 25px;
  > thead,
  > tbody,
  > tfoot {
    > tr {
      > th,
      > td {
        vertical-align: middle;
      }
    }
  }
}

.table tr td {
  vertical-align: middle;
}

.table tr.empty td {
  text-align: center;
}

.table tfoot tr td {
  font-size: 11px;
  line-height: 14px;
}

.table_actions {
  float: right;
  min-width: 400px;
  @extend .form-inline;
}

.table_actions .table_search,
.table_actions .table_filter {
  display: inline-block;
}

.table_search {
  input[type="text"] {
    padding-right: 26px;
  }
  select {
    width: auto;
  }
}

.table_actions .table_actions_menu {
  display: inline-block;
  position: relative;
  margin-left: 5px;
  .dropdown-menu {
    left: auto;
    right: 0;
    a, button {
      margin-left: 0px;
      padding-left: 22px;
      .glyphicon {
        margin-left: -14px;
      }
    }
  }
}

td.no-transition {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

td.success {
  background-color: #dff0d8 !important;
}
td.loading {
  background-color: #e6e6e6 !important;
}

@mixin btn-icon-inline_edit($x, $y, $top: 1px, $left: 5px,
    $icons: "../../bootstrap/img/glyphicons-halflings.png") {
  padding: 9px 12px 9px 12px;
  position: relative;
  border-radius: 0px;

  &:before {
    display: inline-block;
    content: "";
    width: 18px;
    height: 20px;
    margin-top: 0px;
    *margin-right: .3em;
    line-height: 14px;
    background-image: url($icons);
    background-position: $x $y;
    background-repeat: no-repeat;
    position: absolute;
    top: $top;
    left: $left;
  }
}

td.inline_edit_available div.table_cell_wrapper .table_cell_action button.ajax-inline-edit {
  @include btn-icon-inline_edit(0, -72px, 2px, 4px);
  position: relative;
  display: block;
  background: none;
  border: 0 none;
}

@mixin status-icon($x, $y, $top: 1px, $left: 5px,
    $icons: "../../bootstrap/img/glyphicons-halflings.png") {
  padding: 9px 12px 9px 12px;
  position: relative;
  border-radius: 0px;

  &:before {
    display: inline-block;
    content: "";
    width: 20px;
    height: 20px;
    margin-top: 0px;
    *margin-right: .3em;
    line-height: 14px;
    background-image: url($icons);
    background-position: $x $y;
    background-repeat: no-repeat;
    position: absolute;
    top: $top;
    left: $left;
  }
}

div.table_cell_wrapper {
   min-height: 18px;
   position: relative;

  .inline-edit-label {
    display: inline;
  }

  .inline-edit-form {
    float: left;
  }

  .inline-edit-actions, .table_cell_action {
    float: right;
    width: 20px;
    margin: 0;

    button.ajax-inline-edit {
      padding: 10px;
      position: relative;
      display: none;
      background: none;
      border: 0 none;
    }
  }

  .table_cell_action {
    width: auto;

    margin: auto 0px 0px 0px;
    display: none;
    position: absolute;
    top: -10px;
    right: 0px;
    z-index: 99;
  }

  .inline-edit-error {
    .error {
      @include status-icon(-144px, -120px, 0px, 0px);
      position: absolute;
      width: 18px;
      height: 20px;

      top: 20px;
      left: 2px;
      padding: 0;
    }
  }
  .inline-edit-status {
    .success {
      @include status-icon(-288px, 0px, 0px, 0px);
      padding: 0;
      position:absolute;
      top: 2px;
      right: 18px;

      width: 18px;
      height: 20px;
      z-index: 100;
    }
    .loading {
      @include status-icon(0px, 0px, 0px, 0px, '../img/spinner.gif');
      padding: 0;
      position:absolute;
      top: 0px;
      right: 24px;

      width: 18px;
      height: 20px;
      z-index: 100;
    }
  }
  .inline-edit-status.inline-edit-mod {
    .loading {
      top: 15px;
      right: 34px;
    }
  }
}

.table_header .table_actions {
  min-width: 0;
}

.table_header .table_actions a,
.table_header .table_actions > button,
.table_header .table_actions .table_search button {
  display: inline-block;
  float: none;
}

.table_header .table_actions .table_search select {
  margin-bottom: 0;
  line-height: 22px;
}

.table_header .table_filter {
  vertical-align: bottom;
  margin-right: 20px;
}

.table_header .table_filter i {
  vertical-align: middle;
}

.table_actions form {
  float: right;
  margin-left: 10px;
}

.hidden {
  display: none;
}

/*
 * Bootstrap styles table backgrounds using nth-child(2n+1), which is
 * oblivious to hidden elements. The styles below allow us to override
 * the bootstrap style when necessary by setting the odd/even classes.
 */
.table-striped.datatable tbody {
  td {
    background-clip: padding-box;
  }
  tr.odd td {
    background-color: $table-bg-odd;
  }
  tr.even td {
    background-color: inherit;
  }
  tr.odd:hover td,
  tr.even:hover td,
  tr:hover th {
    background-color: $table-bg-hover;
  }
}

.table-striped tbody tr.status_unknown:nth-child(odd) td {
  background-color: #ffffb5;
}

.table-striped tbody tr.status_unknown:nth-child(even) td {
  background-color: #ffffc6;
}

.nowrap-col {
  white-space: nowrap;
}

.overview {
  font-size: 24px;
}

/* Formset data tables. */

.datatable {
  th.narrow {
    width: 1em;
  }

  input {
    padding: 2px 5px;
    margin: 0;
  }

  th span.required:after {
    content: "*";
    font-weight: bold;
    line-height: 0;
    padding-left: 4px;
    color: $brand-primary;
  }

  .normal_column ul {
    padding-left: 0;
  }
}


/* Forms */
.datepicker input{
  @extend .form-control;
}

form label {
    text-align: left;
    color: $gray;
    font-weight: bold;
    display: inline-block;
}

form .form-group > div.dynamic-select {
  display: table;
  border-collapse: separate;
  > * {
    display: table-cell;
  }
  > a {
    width: 1%;
  }
}

.modal-header h3 {
  margin-top: 5px;
}

.modal.fullscreen .modal-dialog {
  width: 90%;
  margin: auto;
  left: 5%;
}

.modal.loading .modal-dialog {
  width: 170px;
  .modal-body {
    height: 170px;
  }
}

.modal.loading p {
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 150px;
}

.modal-body {
  overflow-y: visible;
  max-height: none;
}

.modal-body table {
  margin-bottom: 30px;
}

.modal-body ~ hr {
  margin-bottom: 0;
}

.static_page.login-modal {
  max-width: 400px !important;
  .login-link {
    float: right;
    line-height: 36px;
  }
}

.static_page {
  background-color: $body-bg;
  border: 1px solid $border-color;
  margin: 0px auto;
  margin-top: 10%;
  &.sm {
    max-width: $modal-sm;
  }
  &.md {
    max-width: $modal-md;
  }
  &.lg {
    max-width: $modal-lg;
  }
}

.static_page > form {
  margin-bottom: 0;
}

.left {
    float: left;
    width: 342px;
    margin-right: 15px;
}

.carousel-control.left {
    width: 33%;
}

.left form {
  margin: 0;
}

.right {
  float: left;
  width: 342px;
}

.carousel-control.right {
    width: 33%;
}

.clear {
  clear: both;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

// Fixes issue with bootstrap positioning of modal container
.modal {
  top: 0 !important;
}

.modal-header {
  min-height: 53px !important; // Fixed minimal inner height to 22px
  .close {
    float: right !important; // Keep close button right even on text-center
  }
}

.modal-footer input {
  width: auto;
}

.modal-body .modal-footer {
  width: 670px;
  margin-left: -25px;
  margin-right: -15px;
}

.modal-footer a.close {
  margin-top: 0;
  margin-right: 5px;
  font-size: $font-size-base;
  line-height: $line-height-base;
  color: #666;
  font-weight: normal;
  filter: alpha(opacity=100);
  -khtml-opacity: 1;
  -moz-opacity: 1;
  opacity: 1;
}

.modal-footer a.close:hover {
  color: #333;
  text-decoration: underline;
}

.modal-body .help-block {
  text-align: left;
  float: left;
  width: 100%;
  margin-bottom: 10px;
}

#create_keypair_modal .clearfix {
  margin-bottom: 115px;
}

#actions {
  width: 90px;
}
#actions .btn {
  margin-bottom: 5px;
}
#actions a.btn {
  width: 70px;
}

#actions input.btn {
  text-align: left;
}

#images #actions {
  width: 100px;
}

/*New List Patches*/
.details-modal .modal-body {
  padding-bottom: 20px;
}

.form-inline {
  display: inline;
  input, button, a.btn {
    margin-left: 5px;
  }
}

td.select {
  width: 10px;
}

/* Actions dropdown */

td.actions_column {
  white-space: nowrap;
  padding: 10px;
  position: relative;
  width: 200px;
  background-clip: padding-box;
}

td.actions_column .btn-group {
  display: inline-block;
}

td.actions_column .row_actions a,
td.actions_column .row_actions input,
td.actions_column .row_actions button,
div.table_actions_menu .dropdown-menu a,
div.table_actions_menu .dropdown-menu input,
div.table_actions_menu .dropdown-menu button {
  background: none;
  float: none;
  display: block;
  padding: 5px 10px;
  color: $text-color;
  text-align: left;
  border-radius: 0;
  border: 0 none;
  @include box-shadow(none);
}

td.actions_column .row_actions .hide {
  display: none;
}

td.actions_column .btn-action-required {
  font-weight: bold;
}

.tab-content {
  overflow: visible;
}

/* Makes size consistent across browsers when mixing "btn-group" and "small" */
.btn.hide, .btn-group .hide {
  display: none;
}
.btn-group .dropdown-toggle:focus {
  outline: none;
}
.dropdown-menu button {
  line-height: 18px; /* Matches rule for ".dropdown-menu a" in bootstrap */
  width: 100%;
}
.btn-group .dropdown-menu .btn {
  border-radius: 0;
}
.dropdown-menu .btn.btn-danger,
.dropdown-menu .btn.btn-danger:hover,
.dropdown-menu .btn.btn-success,
.dropdown-menu .btn.btn-success:hover,
.dropdown-menu .btn.btn-info,
.dropdown-menu .btn.btn-info:hover {
  text-shadow: none; /* remove default bootstrap shadowing from button text. */
}
.dropdown-menu li:hover {
  background: none;
}

td.actions_column .dropdown-menu a:hover,
td.actions_column .dropdown-menu button:hover,
div.table_actions_menu .dropdown-menu a:hover,
div.table_actions_menu .dropdown-menu button:hover {
  background-color: $gray-lighter;
}
.dropdown-menu .btn.btn-danger {
  color: $brand-danger;
}
.dropdown-menu .btn.btn-danger:hover {
  background-color: $gray-lighter;
}


/* Overrides for single-action rows (no dropdown) */

tr td.actions_column ul.row_actions.single,
tr:hover td.actions_column ul.row_actions.single,
td.actions_column ul.row_actions.single,
td.actions_column ul.row_actions.single:hover {
  border: none;
}

td.actions_column ul.row_actions.single li.action {
  display: block;
}

td.actions_column ul.row_actions.single li.action:hover {
  background-color: transparent;
}

td.actions_column ul.row_actions.single a,
td.actions_column ul.row_actions.single input,
td.actions_column ul.row_actions.single button {
  color: $brand-info;
}

td.actions_column ul.row_actions.single a:hover,
td.actions_column ul.row_actions.single input:hover,
td.actions_column ul.row_actions.single button:hover {
  color: $text-color;
}

th.multi_select_column, td.multi_select_column {
  width: 41px;
}

th.multi_select_column, td.multi_select_column {
  text-align: center;
}

.table-fixed {
  table-layout: fixed;
}

.table input[type="checkbox"] {
  display: inline;
}

div.input input[type="checkbox"] {
  float: left;
  width: 25px;
}

.table_title a {
  font-size: 11px;
  float: right;
  margin-left: 10px;
  margin-top: 10px;
}

tr.terminated {
  color: #999999;
}

#instance_tabs {
  float: left;
  width: 100%;
  border-bottom: 1px solid #e1e1e1;
}

#instance_tabs li a {
  background: #f2f2f2;
  display: block;
  font-size: 14px;
  float: left;
  padding: 5px 10px;
  margin-right: 10px;
  border: 1px solid #e1e1e1;
  border-bottom: none;
}

#instance_tabs li.active a {
  background: #fff;
  padding-bottom: 8px;
  margin-bottom: -5px;
}

#main_content .nav-tabs {
  margin-bottom: 0;
}

#main_content .tab-content {
  border: 1px solid #ddd;
  border-top: 0 none;
  padding: 25px 15px 15px 15px;
}

#main_content .workflow .modal-body {
  padding-left: 0;
  padding-right: 0;
}

#main_content .workflow .modal-body .tab-content {
  border-left: 0 none;
  border-right: 0 none;
  border-bottom: 0 none;
}

#content_body {
  padding-left: 255px;
  padding-right: 25px;
}

.tab_wrapper {
  padding-top: 50px;
}

/* Fix tooltip z-index to show above modals. Bootstrap bug 582*/
.tooltip {
  z-index: 12000;
}

.volume_boot_disclosure {
  font-weight: bold;
  color: #555;
  cursor: pointer;
  background-image: url(../img/right_droparrow.png);
  background-repeat: no-repeat;
  background-position: 130px center;
}

.volume_boot_disclosure.on {
  width: 334px;
  margin-bottom: 10px;
  border-bottom: solid 1px $border-color;
  background-image: url(../img/drop_arrow.png);
}

.nav-tabs a {
  cursor: pointer;
}

.nav-tabs li.error a {
  color: $brand-danger;
}

.nav-tabs li.error a:after {
  content: "*";
}

.nav-tabs li.required a:after,
form .form-group.required > label:after,
form .form-field.required > label:after {
  content: "*";
  font-weight: bold;
  line-height: 0;
  padding-left: 4px;
  color: $brand-primary;
}

/* Region selector in header */

#region_selector {
  position: absolute;
  z-index: 9999;
  right: 0;
  top: 24px;
}

#region_selector a {
  margin-left: 0;
}

#region_selector ul{
  float: left;
  margin-left: 5px;
  padding-right: 21px;
  width: 125px;
}
#region_selector ul:hover a {
  display: block;
}

#region_selector li a {
  padding: 3px 3px 3px 5px;
  display: none;
  background: #e1e1e1;
  margin-top: -10px;
}

#region_selector li:first-child p{
  background: #ededed url(../img/drop_arrow.png) no-repeat 106px 9px !important;
  display: block;
  border: 1px solid #e1e1e1;
  padding: 5px;
}

iframe {
  border: none;
}

.item_detail ul li label {
  color: $text-color;
  font-weight: bold;
  display: block;
  margin-top: 5px;
}

.progress_bar {
  height: 100%;
  width: 100%;
  border: 1px solid $gray-light;
  background-color: $gray-light;
}

.progress_bar_fill,
.progress_bar_selected {
  height: 100%;
  float: left;
}

.progress_bar_fill {
  background-color: $gray;
}

.progress_bar_selected {
  background-color: $brand-primary;
  width: 0;
}

.progress_bar_over {
  background-color: $brand-danger;
}

.d3_quota_bar {
  width: 20%;
  margin-bottom: 8px;
  margin-top: 10px;
  float: left;
  text-align: center;
}

.quota-dynamic {
  overflow: hidden;
  margin-bottom: 8px;
}

.quota_title {
  color: $gray-light;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.quota_title strong {
  color: $text-color;
}

.quota_title strong span {
  font-weight: normal;
}

.quota_title p {
  float: right;
  margin-bottom: 0;
}

.quota_bar {
  margin: -8px 0 8px;
}

div .flavor_table {
  border: 1px solid $table-border-color;
  width: 100%;
  margin-bottom: 14px;
}

.flavor_table .flavor_name {
  white-space: nowrap;
  font-weight: bold;
  text-align: left;
  padding: 7px 12px 7px 7px;
  width: 160px;
}

#main_content .row {
  margin: 10px 0 20px;
}

.version_label {
  position: relative;
  text-align: right;
}

.header_rule {
  margin: 0 0 10px;
}

.item_detail .detail_section {
  margin-bottom: 25px;
  float: left;
  margin-right: 50px;
}

.has-error .help-block, .dynamic-error {
  padding: 10px;
}
.dynamic-error {
  background: $body-bg;
  border: 1px solid $border-color;
  color: $brand-danger;
  margin-bottom: 0.5em;
}

label.log-length {
  line-height: 28px;
  margin-right: 10px;
}


.progress-success.bar {
  background-color: #5eb95e;
  background-image: -moz-linear-gradient(top, #62c462, #57a957);
  background-image: -ms-linear-gradient(top, #62c462, #57a957);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));
  background-image: -webkit-linear-gradient(top, #62c462, #57a957);
  background-image: -o-linear-gradient(top, #62c462, #57a957);
  background-image: linear-gradient(top, #62c462, #57a957);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);
}

.progress_bar_fill.progress-warning.bar {
  background-color: #898989;
  background-image: -moz-linear-gradient(top, #999999, #333333);
  background-image: -ms-linear-gradient(top, #999999, #333333);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#999999), to(#333333));
  background-image: -webkit-linear-gradient(top, #999999, #333333);
  background-image: -o-linear-gradient(top, #999999, #333333);
  background-image: linear-gradient(top, #999999, #333333);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#999999', endColorstr='#333333', GradientType=0);
}

.progress_bar_over.bar {
  background-color: #dd514c;
  background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));
  background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: linear-gradient(top, #ee5f5b, #c43c35);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);
}

.split_five div.form-group input[type="text"],
.split_five div.form-group select {
  width: 120px;
}

.warning {
  background-color: $body-bg;
  border-bottom: 1px solid $brand-danger;
  padding: 5px 10px;
  .warning-text {
    text-align: center;
    h3, a {
      display: inline-block;
    }
    h3 {
      vertical-align: bottom;
    }
  }
}
#admin_warning_detail {
  ul {
    list-style: circle;
    padding-left: 20px;
    margin-bottom: 10px;
  }
}

.no_split {
  margin-top: -60px;
}

/* Capabilities widget UI */
.capabilities {
  min-height: 200px;

  .panel .list-group {
    height: 400px;
    overflow: auto;
  }

  /* Header */

  .panel-heading .form-control {
    width: 150px;
    margin-left: 20px;
  }

  /* Item lists */

  .dark-stripe {
    background-color: $table-bg-odd;
  }
  .light-stripe {
    background-color: white;
  }

  .list-group-item.level-0>* {
    padding-left: 0px;
  }

  .list-group-item.level-1>* {
    padding-left: 15px;
  }

  .list-group-item.level-2>* {
    padding-left: 30px;
  }

  .list-group-item .leaf {
    padding-left: 10px;
  }

  .list-group-item span.input-group-addon {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 50%;
    max-width: 140px;
    text-align: right;
  }

  .list-group-item .label-info {
    display: inline-block;
    position: absolute;
    z-index: 10;
    top: 1px;
    left: 25px;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .list-group-item .label-danger {
    display: inline-block;
    position: absolute;
    z-index: 10;
    bottom: 1px;
    left: 25px;
  }
}

/* Membership widget UI */
.membership {
  min-height: 200px;

    /* Buttons */
  .btn-group {
    margin-left:0px;
    padding: 3px 10px;
    margin-bottom: 0px;
    border: 1px solid $gray-light;
    border-bottom: none;
  }
  .btn-group .active {
    float: right;
  }
  a.btn-primary:hover {
    background-color: $link-hover-color;
  }

  /* Header */
  .help_text {
    margin-left: 5px;
    margin-bottom: 15px;
    width: 650px;
  }
  .members_title {
    color: $gray;
    font-weight: bold;
    float: left;
    line-height: 30px;
    width: 160px;
  }
  input[type="text"]:disabled + span.glyphicon-search {
    color: $gray-light;
  }
  .fake_table_header {
    background-color: $body-bg;
    padding: 10px;
    border: 1px solid $table-border-color;
    border-bottom: none;
    overflow: hidden;
  }

    /* 'Fake table' body */
  .fake_table {
    > ul {
      padding: 0;
      &.no_results {
        border: 1px solid $table-border-color;
        padding: 10px;
      }
    }
    ul.btn-group:hover {
        background-color: $border-color;
    }
  }

  /* Member lists */
  .member {
    text-align: left;
    line-height: 32px;
  }

  .members ul.btn-group,
  .available_members ul.btn-group {
    display: block;
    &.nav-pills > li > a {
      padding: 6px 11px;
    }
  }
  .dark_stripe {
    background-color: $table-bg-odd;
  }
  .light_stripe {
    background-color: white;
  }
  .last_stripe {
    border-bottom: 1px solid $table-border-color;
  }
  .has-feedback {
    display: inline-block;
    float: right;
    margin-bottom: 0;
  }
  /* List filtering */
  .filter {
    width: 130px;
  }
  .form-control-feedback {
    top:0;
  }
  /* Role dropdown menus */
  .role_dropdown li {
    cursor: pointer;
    background: none;
    float: none;
    display: block;
    padding: 5px 10px;
    color: #000;
    text-align: left;
    border-radius: 0;
    border: 0 none;
    @include box-shadow(none);
    z-index: 99999;
    i {
      @extend .glyphicon;
      &:before { content: "\e013"; }
      opacity: 0;
      display: inline-block;
      width: 14px;
      font-size: 12px;
      line-height: 14px;
      vertical-align: text-top;
    }
    &:hover {
      background-color: #cdcdcd;
    }
    &.selected i {
      opacity: 1;
    }
  }
  .dropdown-menu.role_dropdown {
    right: 0;
    left: auto;
  }
  .nav .role_options {
    float: right;
    padding-right: 5px;
  }
}

/* Inline member creation */
.add_member_btn {
  display: inline;
}
#add_member {
  clear: both;
}
.add_member {
  float: right;
  margin-top: 10px;
  margin-right: 15px;
}

/* Fixes overflow on dropdowns in modal */
.dropdown_fix {
  overflow: visible;
}

/* Replaces CPU hungry spin.js with animated gif */
.loading_gif {
  margin-right: 0.5em;
  float: left;
}

/* Styling for inline object creation buttons */
.btn-inline {
  margin-bottom: 9px;
}
.modal-body fieldset .form-field select[data-add-item-url] {
  width: 275px;
  margin-right: 2px;
}

/* Styling for draged network object */
#networkListSortContainer {
  display: none;
}
.networklist {
  padding: 6px;
  background: #eee;
  border: 1px solid $border-color;
  min-height: 2em;
  width: auto !important;
  @include box-sizing(border-box);
  li {
    width: 226px;
    list-style-type: none;
    margin: 6px auto;
    padding: 3px;
    background: $body-bg;
    border: 1px solid #aaa;
    line-height: 18px;
    border-radius: 3px;
    cursor: move;
    padding-left: 23px;
    background: $body-bg url(../img/drag.png) no-repeat 11px 50%;
    em {
      font-size: 0.5em;
      line-height: 1em;
      color:#999;
      font-style: normal;
      margin-left: 0.8em;
    }
    i {
      margin-right: 5px;
      vertical-align: middle;
    }
    a.btn {
      @include box-sizing(border-box);
      font-size: 11px;
      line-height: 12px;
      padding: 2px 5px 3px;
      margin-right: 1px;
      width: 18px;
      text-align: center;
      right:5px;
      vertical-align: middle;
      float: right;
      &:before {
        content: "+";
      }
    }
  }
  li.ui-sortable-helper {
    background-color: #def;
  }
  li.ui-state-highlight {
    border: 1px dotted $gray-light;
    background: #efefef;
    height: 0.5em;
  }
  li:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
#selected_network {
  margin-bottom: 1.5em;
  counter-reset:v1 0;
  background: #edf9ff;
  border:1px solid #c0d9e4;
  li {
    position: relative;
    a.btn:before {
      content: "-";
    }
  }
  li:before {
    content:"NIC:"counter(v1);
    counter-increment:v1;
    display: inline-block;
    margin-right: 5px;
    background: $gray;
    color: $body-bg;
    font-size: 90%;
    padding: 0px 4px;
    vertical-align: middle;
    border-radius: 2px;
    position: absolute;
    left: -2em;
  }
  &.dragging {
    li:before {
      content:"NIC:";
      background-color:rgba(102,102,102,0.5);
      padding-right: 10px;
    }
    li.ui-state-highlight:before {
      content:"";
      background:transparent;
    }
  }

}

/**** Network Topology CSS ****/
#topologyCanvasContainer {
  @include box-sizing(border-box);
  width: 100%;
  height: auto;
  padding: 25px;
  padding-left: 50px;
  background: #efefef;
  min-height: 400px;
  div.nodata {
    font-size: 150%;
    text-align: center;
    padding-top: 150px;
    display: none;
  }
  &.noinfo {
    div.nodata {
      display: block;
    }
    #topology_canvas {
      display: none;
    }
  }
}

.topologyNavi {
  overflow: hidden;
  i {
    margin-right: 3px;
  }
  margin: 10px 0 20px;
  .toggleView {
    float: left;
  }
  .launchButtons {
    float: right;
    text-align: right;
    a.btn {
      margin-left: 10px;
    }
  }
}

.topologyBalloon {
  display: none;
  background: $body-bg;
  position: absolute;
  left:100px;
  top:20px;
  z-index: 600;
  border-radius: 5px;
  color:#333;
  min-width: 200px;
  &.on {
    display: block;
  }
  line-height: 1.2;
  .vnc_window {
    margin-left: 10px;
  }
  .closeTopologyBalloon {
    font-size: 16px;
    line-height: 1;
    display: block;
    position: absolute;
    font-weight: bold;
    right: 6px;
    top: 0px;
    cursor: pointer;
    padding: 3px;
    color:#aaa;
    &:hover {
      color:#777;
      text-decoration: none;
    }
  }
  .contentBody {
    padding: 8px 8px 0;
  }
  span.active, span.down {
    &:before {
      content: "";
      width: 9px;
      height: 9px;
      display: inline-block;
      background: $brand-success;
      margin-right: 3px;
      border-radius: 10px;
      vertical-align: middle;
    }
  }
  span.down {
    &:before {
      background: $brand-danger;
    }
  }
  .footer {
    background: #efefef;
    border-top: 1px solid $border-color;
    padding: 8px;
    border-radius: 0px 0px 7px 7px;
    .footerInner {
      display: table;
      width: 100%;
    }
    .cell {
      display: table-cell;
      padding-right: 10px;
    }
    .link {
      font-size: 12px;
    }
    .delete {
      padding-right: 0;
      text-align: right;
    }
  }
  table.detailInfoTable {
    margin-bottom: 5px;
    caption {
      text-align: left;
      font-size: 12px;
      font-weight: bold;
      margin-bottom: 0px;
    }
    th,td {
      text-align: left;
      vertical-align: middle;
      padding-bottom: 3px;
      background: transparent;
    }
    th {
      color: $gray-light;
      padding-right: 8px;
      width: 80px;
      span {
        vertical-align: middle;
        width:80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
      }
      &.device {
        text-align: right;
      }
    }
    td {
      padding-right: 5px;
      white-space: nowrap;
    }
    td.delete {
      padding-right: 0;
      text-align: right;
    }
    .btn {
      line-height: 1.4;
    }
  }
  font-size: 11px;
  @include box-shadow(0px 1px 6px #777);
  &:before {
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid $border-color;
    display: block;
    position: absolute;
    top: 30px;
    left: -9px;
    width: 0;
    height: 0;
    content: "";
  }
  &:after {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid $body-bg;
    display: block;
    position: absolute;
    top: 31px;
    left: -8px;
    width: 0;
    height: 0;
    content: "";
  }
  &.leftPosition {
    &:before {
      border-right: none;
      border-left: 9px solid $border-color;
      right: -9px;
      top: 30px;
      left:auto;
    }
    &:after {
      border-right: none;
      border-left: 8px solid $body-bg;
      right: -8px;
      top: 31px;
      left:auto;
    }
  }
}

.quota-heading {
  font-weight: normal;
  font-size: 24px;
  margin-bottom: 10px;
}

/**** Resource Topology CSS ****/
.link {
  stroke: #999;
  stroke-width: 1.5px;
}
.node {
  cursor:pointer;
}
.node text {
  font: 12px sans-serif;
}

#resource_container {
  position:relative;
}
#stack_box {
  position: absolute;
  width: 300px;
  top: 10px;
  left: 10px;
}
#stack_box h3 {
  font-size: 11pt;
  line-height: 20px;
}
#stack_box p {
  margin: 0;
  font-size: 9pt;
  line-height: 14px;
}
#stack_box a {
  margin: 0;
  font-size: 9pt;
  line-height: 14px;
}
#stack_box img {
  float:left;
}
#stack_box #stack_info {
  float:left;
  white-space:normal;
  width:200px;
}

#info_box {
  position: absolute;
  width: 300px;
  top: 100px;
  left: 10px;
}
#info_box h3 {
  font-size: 9pt;
  line-height: 20px;
}
#info_box p {
  margin: 0;
  font-size: 9pt;
  line-height: 14px;
}
#info_box a {
  margin: 0;
  font-size: 9pt;
  line-height: 14px;
}
#info_box .error {
  color: darken($brand-danger, 20%);
}

/* Styling for draged firewall rule object */
#ruleListSortContainer {
  display: none;
}
.rulelist {
  padding: 6px;
  background: #eee;
  border: 1px solid $border-color;
  min-height: 2em;
  width: auto !important;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  li {
    width: 226px;
    list-style-type: none;
    margin: 6px auto;
    padding: 3px;
    background: $body-bg;
    border: 1px solid $border-color;
    line-height: 18px;
    border-radius: 3px;
    cursor: move;
    padding-left: 23px;
    background: $body-bg url(../img/drag.png) no-repeat 11px 50%;
    em {
      font-size: 0.5em;
      line-height: 1em;
      color:#999;
      font-style: normal;
      margin-left: 0.8em;
    }
    i {
      margin-right: 5px;
      vertical-align: middle;
    }
    a.btn {
      @include box-sizing(border-box);
      font-size: 11px;
      line-height: 12px;
      padding: 2px 5px 3px;
      margin-right: 1px;
      width: 18px;
      text-align: center;
      //position: absolute;
      right:5px;
      vertical-align: middle;
      float: right;
      &:before {
        content: "+";
      }
    }
  }
  li.ui-sortable-helper {
    background-color: #def;
  }
  li.ui-state-highlight {
    border: 1px dotted $border-color;
    background: #efefef;
    height: 0.5em;
  }
  li:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
#selected_rule {
  margin-bottom: 1.5em;
  counter-reset:v1 0;
  background: #edf9ff;
  border:1px solid $border-color;
  li {
    position: relative;
    a.btn {
      &:before {
        content: "-";
      }
    }
  }
  li:before {
    content:"rule:"counter(v1);
    counter-increment:v1;
    display: inline-block;
    margin-right: 5px;
    background: $gray;
    color:$body-bg;
    font-size: 90%;
    padding: 0px 4px;
    vertical-align: middle;
    border-radius: 2px;
    position: absolute;
    left: -2em;
  }
  &.dragging {
    li:before {
      content:"rule:";
      background-color:rgba(102,102,102,0.5);
      padding-right: 10px;
    }
    li.ui-state-highlight:before {
      content:"";
      background:transparent;
    }
  }

}

/**** Sort Indicator ****/
.tablesorter thead tr th
{
  &.tablesorter-header {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: 99% center;
    background-position: right 5px center;
  }

  &.tablesorter-headerAsc {
    background-image: url(../img/up_arrow.png);
  }

  &.tablesorter-headerDesc {
    background-image: url(../img/drop_arrow.png);
  }
}

/**** Popover ****/
a.link-popover { cursor: default; }
  
a:hover.link-popover { text-decoration: none; }

.has-feedback .form-control-feedback {
  top: 0;
}

/**** Centering (both dimensions) *****/
.text-center {
  // :not(.btn-group) a:not(.carousel-control) { width: 100%; } // Avoid btn-group members and carousel control; commented out, breaks bunch of stuff anyway
  .img-responsive {
    margin: 0 auto;
  }
}
.valignContainer {
  white-space: nowrap;
 
  *{float:none!important}
  &:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em; /* Adjusts for spacing */
  }

  .centered {
    display: inline-block;
    vertical-align: middle;
    white-space: normal;
    max-width:100%;
  }
}

/**** Simple overlay ****/
.overlayContainer{
    position:relative;
    .overlay{
        position:absolute;
        top:0;
        left:0;
        width:100%;
    }
}


img.svgFill{
    width:100%;
    height:auto;
}

// Search widget fullscreen

.leonardo-searchform {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -webkit-transform: translate(0px, -100%) scale(0, 0);
    -moz-transform: translate(0px, -100%) scale(0, 0);
    -o-transform: translate(0px, -100%) scale(0, 0);
    -ms-transform: translate(0px, -100%) scale(0, 0);
    transform: translate(0px, -100%) scale(0, 0);
    opacity: 0;
    &.open {
        -webkit-transform: translate(0px, 0px) scale(1, 1);
        -moz-transform: translate(0px, 0px) scale(1, 1);
	-o-transform: translate(0px, 0px) scale(1, 1);
	-ms-transform: translate(0px, 0px) scale(1, 1);
	transform: translate(0px, 0px) scale(1, 1); 
        opacity: 1;
    }
    input[type="search"] {
        /*position: absolute;*/
        top: 50%;
        width: 100%;
        color: rgb(255, 255, 255);
        background: rgba(0, 0, 0, 0);
        font-size: 60px;
        font-weight: 300;
        text-align: center;
        border: 0px;
        margin: 0px auto;
        margin-top: 12%;
        padding-left: 30px;
        padding-right: 30px;
        outline: none;
    }
    .btn {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: 61px;
        margin-left: -45px;
    }
   .close {
        position: fixed;
        top: 15px;
        right: 15px;
        color: #fff;
        background-color: #428bca;
        border-color: #357ebd;
        opacity: 1;
        padding: 10px 17px;
        font-size: 27px;
    }
}

