@import url("../vendor/bootstrap/less/bootstrap.less");
@import url("fonts.less");
@import url("datepicker.less");
@import url("github.less");
@import url("select2.less");
@import url("pygments.less");
@import url("simple-slider.less");

@baseFontSize: 13px;
@grayDark: #404f60;
@gray: #465262;
@navbarInverseLinkBackgroundActive: #333;

@linkColor: #4593DE;

@linkColorHover: darken(#1783c8, 10%);

@iconSpritePath:          "../vendor/bootstrap/img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../vendor/bootstrap/img/glyphicons-halflings-white.png";


/* =============================  Global  ============================== */

body {
  margin: 0;
  font-size: @baseFontSize;
  line-height: @baseLineHeight;
  color: @gray;
  -webkit-font-smoothing: antialiased;
  font-family: "Helvetica Neue", helvetica, sans-serif;
  background: #e4e8ed;
}

.container {
  min-width: 786px;
  width: auto;
}

// LINKS
// -----

a {
  color: @linkColor;
  text-decoration: none;
}
a:hover {
  color: @linkColorHover;
  text-decoration: none;
}

p {
  font-size: 14px;
  line-height: 22px;
}


h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

h2 {
  font-weight: normal;
  font-size: 24px;
  line-height: 36px;
}
h3 {
  line-height: 27px;
  font-size: 18px;
}

// POPOVERS

.popover {
  width: auto;
  min-width: 236px;
  max-width: 600px;
}
.popover * {
  font-size: 11px;
  line-height: 14px;
  margin-top: 0;
  margin-bottom: 0;
}
.popover-title {
  font-size: 10px;
  background: #56AFE8;
  color: #fff;
}
.popover-title,
.popover-content {
  padding: 4px 10px;
}

/* =============================  Layout  ============================== */

.outer-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  .transition(margin-top .1s ease);
}

#header {
  height: 56px;
}

.navbar {
  position: relative;
  margin-bottom: 0;
  .navbar-inner {
    color: #bfc6cf;
    text-shadow: none;
    padding-left: 0;
    .clearfix();
    .border-radius(0);
    background: #465262;
    border: 0;
    .box-shadow(none);
    height: 56px;

    .container {
      padding: 8px 10px 0 30px;
    }
  }

  #logo {
    font-size: 22px;
    color: #eef5fc;
    font-weight: bold;
    float: left;
    display: block;
    text-indent: -1000em;
    width: 25px;
    height: 25px;
    margin: 7px 0 0 2px;
    letter-spacing: -1px;
    text-decoration: none;
    background: url('../images/logomark.png') center center no-repeat;
    background-size: 25px 25px;
    &:hover {
      color: lighten(#eef5fc, 10);
    }
  }

  h1,
  #team-banner > a {
    display: block;
    position: relative;
    letter-spacing: -1px;
    font-weight: 600;
    font-size: 18px;
    color: #eef5fc;
    max-width: 430px;
    height: 56px;
    line-height: 56px;
    padding: 0 25px 0 10px;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    .caret {
      position: absolute;
      right: 10px;
      top: 27px;
      border-top-color: #b3b9c1 !important;
      border-bottom-color: #b3b9c1 !important;
    }
  }

  h1,
  #team-banner {
    display: block;
    text-decoration: none;
    position: absolute;
    left: 65px;
    top: 0px;
    width: auto;
    z-index: 20000;
    max-width: 550px;
  }
  #team-banner {
    > a small {
      font-weight: normal;
      margin-left: 5px;
      color: darken(#dde5ec, 5);
      font-size: 100%;
    }

    .divider {
      padding: 0 2px;
      opacity: .75;
    }

    &.open > a.dropdown-toggle {
      background: darken(#465262, 10%);
    }

    .dropdown-menu {
      max-height: 400px;
      min-width: 500px;
      overflow: auto;
      top: 56px;
      position: absolute;
      min-height: 50px;
      padding: 10px 10px 0;
      margin: 0;
      background: darken(#465262, 10%);
      .box-shadow(none);
      .border-radius(0);
      border-top: none;
      color: #fff;
      .border-radius(0 0 6px 6px);

      select {
        border: 0;
        width: 100%;
      }

      h6 {
        color: darken(#e4e8ed, 30%);
        letter-spacing: 0.1px;
        font-size: 12px;
        line-height: 26px;
        font-weight: 600;
        text-transform: uppercase;
        a {
          color: inherit;
          .transition(none);
        }
      }
      .project-list {
        margin: 0;
        li {
          margin: 0;
          display: inline-block;
          font-size: 15px;
          a {
            color: darken(#e4e8ed, 6);
            width: 160px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 3px 3px 3px 0;
            display: inline-block;
            font-weight: 400;

            &:hover {
              color: #fff !important;
              background: transparent;
            }
          }
          &.active a {
            color: #fff;
            background: inherit;
          }
        }
      }

      input[type=text] {
        width: 380px;
        padding-right: 40px;
      }
      .btn {
        margin: 0;
        .border-radius(0 4px 4px 0);
        width: 40px;
        right: 10px;
        top: 10px;
        position: absolute;
      }

    }
  }

  #team-nav {
    position: absolute;
    top: 0;
    left: 124px;
    ul {
      .clearfix();
      margin: 0;
      li {
        list-style-type: none;
        float: left;
        a {
          text-decoration: none;
          display: block;
          font-size: 16px;
          font-weight: bold;
          color: #8f97a3;
          height: 60px;
          width: 120px;
          text-align: center;
          line-height: 60px;
          .box-shadow(inset -1px 0 0 rgba(0,0,0, .15));

          &:hover {
            color: lighten(#8f97a3, 16);
          }
        }

        &.active {
          a {
            color: darken(#8f97a3, 10);
            height: 61px;
            background: #dee3e9;
            .box-shadow(none);
          }
        }

        &:first-child {
          .box-shadow(~"inset 1px 0 0 rgba(0,0,0, .15)");
        }
      }
    }
  }

  .nav {
    margin: 7px 0 0 10px;

    > li {
      margin: 0 0 0 35px;
      > a {
        color: #bfc6cf;
        text-shadow: none;
        display: block;
        padding: 3px 0;
        font-size: 14px;
        font-weight: bold;
      }

      > .dropdown-toggle {
        background: inherit !important;
        .caret {
          border-top-color: #b3b9c1 !important;
          border-bottom-color: #b3b9c1 !important;
        }
      }
      > .dropdown-menu {
        a {
          .transition(none);
        }
      }
      &.active > a,
      &.active:hover > a,
      &:hover > a,
      &:focus > a {
        background: none !important;
        color: #fff;

        .border-radius(3px);
        .box-shadow(none);
      }

      &.active > a,
      &.active:hover > a,
      &.active:focus > a {
        padding: 2px 7px;
        border: 1px solid @navbarInverseSearchBorder;
        color: @navbarInverseLinkColorActive;
        #gradient > .vertical(rgba(0,0,0, .1), rgba(0,0,0, .3));
        @shadow: inset 0 1px 0px rgba(255,255,255,.15), 0 1px 2px rgba(0,0,0,.1);
        .box-shadow(@shadow);
      }
    }
  }
}

.org-dropdown {
  .dropdown-menu {

    .new {
      display: inline;
      padding: 0;
      .icon-plus {
        background: none;
      }
    }

    h6 {
      margin: 0 8px 4px 12px;
    }

    .divider {
      margin: 4px 0;
    }

    li{
      position: relative;

      a {
        padding-right: 34px;
        padding-left: 12px;
      }

      .org-settings {
        position: absolute;
        right: 9px;
        top: 4px;
        padding: 0;

        span {
          background: none;
        }
      }
    }
  }
}

#search input[type=text] {
  width: 212px;
  .border-radius(4px);
  .background-clip(padding-box);
  -moz-background-clip: padding;
  background-color: #fff;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 22px;
  padding: 3px 14px;
  color: #757f87;
  text-decoration: none;
  border: 1px solid darken(#E3E7EC, 3);
  box-shadow: inset 0 1px 2px rgba(0,0,0, .05);
  position: relative;
  top: -2px;
  .placeholder(darken(#f1f2f3, 12));
}

.toolbar {
  .clearfix();
  background: #f1f2f3;
  padding: 0 30px;
  height: 50px;

  div.pull-right {
    margin: 12px 0 0;
  }

  .nav-tabs {
    border: none;

    li.active a {
      border: none;
      padding-top: 9px !important;
      padding-bottom: 9px !important;
    }
  }

  h3 {
    margin-top: 4px;
    font-size: 21px;
    font-weight: 400;
    line-height: 40px;

    small {
      color: #B5BAC2;
      font-size: 0.9em;
    }
  }

  .navbar-search {
    margin: 13px 0 0 10px;

    .search-query {
      height: 18px;
      color: darken(#858f97, 10);
      width: 194px;
      .border-radius(5px);
      padding: 5px 10px;
      border: none;
      font-weight: 500;
      line-height: 18px;
      font-size: 13px;
      background: #fff;
      // border: 2px solid #b8bec6;
      @shadow: 0 2px 0 rgba(185, 200, 215, 0.26);
      .box-shadow(@shadow);

      &:focus {
        text-shadow: none;
      }

      .placeholder(lighten(#b0b9c1, 5));
    }
  }

  .dashboard-btn {
    float: left;
    margin-top: 14px;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 3px solid rgba(202, 208, 216, 0.41);

    > a {
      display: block;
      color: #878f99;
      background: #fff;
      text-align: center;
      width: 28px;
      height: 28px;
      position: relative;
      .border-radius(3px);
      .box-shadow(0 2px 0 rgba(185, 200, 215, .26));

      i {
        background-image: none;
        position: relative;
        font-size: 16px;
        top: 4px;
        left: -1px;
      }
    }
  }

  .nav {
    margin: 0 0 0 -14px;
    font-size: 15px;
    height: 46px;
    padding-top: 5px;

    > li {
      > a {
        font-size: 15px;
        font-weight: 500;
        color: #85909a;
        height: 27px;
        line-height: 27px;
        padding-left: 15px;
        padding-right: 15px;
      }
      &.active {
        a {
          padding-top: 7px;
          padding-bottom: 9px;
          color: darken(#85909a, 10);
          .border-radius(6px 6px 0 0);
        }
      }
    }
  }
}

.select2-drop {
  border: 1px solid #C3C8CE;
}

.select2-container .select2-choice {
  border: 1px solid #C3C8CE;
  .box-shadow(0 1px 2px rgba(0,0,0, .05));
  border-radius: 4px;
}

.sidebar {
  .select2-container .select2-choice {
    border: 1px solid darken(#E3E7EC, 1);
    .box-shadow(none);
  }
}

#content {
  background: #fff;

  &.with-sidebar {
    background: #fff url(../images/dashboard/sidebar-bg.png) top right repeat-y;
    min-width: 1086px;

    .sidebar {
      margin-right: -300px;
      display: block;
    }
    .content {
      padding-right: 300px;
    }
    section.body {
      min-width: 0;
    }
  }
  &.with-left-sidebar {
    min-width: 1086px;
    .content {
      padding-left: 250px;
    }
    .main {
      float: right;
    }
    .sidebar {
      width: 190px;
      display: block;
      margin-right: 0;
      margin-top: 5px;
      margin-left: -250px;
      .nav a {
        padding: 5px 15px;
        margin: 0;
        .border-radius(4px);

        &:hover {
          background: #F0F2F5;
          color: #747B88;
        }
      }

      .nav .active a:hover {
        background: #56AFE8;
        color: #fff;
      }
    }
    section.body {
      min-width: 0;
    }

  }

  .content {
    .clearfix();
    position: relative;
  }
  .main {
    min-width: 786px;
    width: 100%;
    position: relative;
    float: left;
  }
  section.body {
    padding: 25px 30px 10px;
    min-width: 786px;

    a {
      word-break: break-all;
    }
  }
  .btn-toolbar {
    .clearfix();
    margin: 0;
    list-style: none;
    padding: 15px 20px 15px 30px;
    border-bottom: 2px solid #f2f4f7;

    .btn-group {
      .btn {
        float: none;
      }
      .dropdown-toggle small {
        color: #888;
      }
      .dropdown-menu li small {
        color: #aaa;
        display: inline-block;
      }
    }

    &:last-child {
      border: 0;
    }
  }
  section.body .btn-toolbar {
    padding: 15px 0;
  }
  section.body .event-toolbar {
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 0;
    text-align: center;

    .next span,
    .prev span {
      display: inline-block;
      top: 5px;
    }

    h4 {
      line-height: 20px;
      font-weight: normal;
      color: #aaa;
    }
  }

  .sidebar {
    position: relative;
    width: 240px;
    float: left;
    padding: 18px 30px;
    display: none;
    overflow: hidden;

    h6 {
      display: block;
      font-size: 12px;
      text-transform: uppercase;
      font-weight: bold;
      line-height: 1.2;
      color: #a1a8ae;
      padding: 3px 15px;
      margin: 0 -15px 2px;
      font-weight: bold;
      line-height: @baseLineHeight;
    }

    dl {
      margin-top: 0px;
      margin-bottom: 8px;
    }

    .nav.nav-tabs.nav-stacked,
    .nav.counted-list {
      margin-bottom: 8px;
      list-style: none;

      &.counted-list {
        margin: 0 -45px 17px;
        li {
          position: relative;
          padding: 0 30px;
          a {
            padding: 0 50px 0 0;
            margin: 0;
            word-break: break-all;
          }
          .progressbar {
            padding: 5px 0;
            > div {
            }
          }
        }
      }
      li {
        position: relative;
        margin-left: 0;
        padding-left: 0;
      }
    }

    .nav.nav-tabs.nav-stacked {
      background: lighten(#e3e7ec, 3);
      border: 1px solid darken(#E3E7EC, 1);
      border-radius: 5px;

      li {
        position: relative;
        margin: 0 0 1px;

        &:last-child {
          margin-bottom: 0;
        }

        .action {
          background: none;
          position: absolute;
          right: 12px;
          top: 10px;
          padding: 2px;
          font-size: 16px;
          .opacity(70);
        }
        a {
          font-weight: bold;
          background-color: #fff;
          color: #909aa3;
          border: none;
          padding: 10px 14px;
          &:hover {
            color: #7d858d;
          }
        }
        &.active a {
          position: relative;
          color: @linkColor;
          .box-shadow(none);
        }
      }
    }
    .nav-list {
      margin: 0 -29px 8px -30px;
      li a {
        padding: 5px 30px;
      }
      li.nav-header {
        padding-left: 30px;
        padding-right: 30px;
      }
      li.nav-header a {
        padding: 0;
        font-size: 11px;
      }
      li.active a {
        background-color: #56AFE8;
      }
    }

    .filter {
      margin-bottom: 17px;

      select {
        width: 240px;
      }

      .select2-container {
        display: block;
      }
    }
  }
}

footer {
  .box-sizing(border-box);
  .clearfix();
  background: #f1f2f3;
  padding: 40px 30px;
  color: #939aa4;
  font-weight: bold;

  .container {

    .clearfix();
    > div {
      float: left;
      margin: 0 30px 0 0;
    }
    .contribute {
      float: right;
      margin: 0;
    }
  }
  a {
    color: darken(#939aa4, 10);
    font-weight: bold;
    &:hover {
      color: #333;
    }
  }

  .btn {
    color: #f1f2f3;
    padding-top: 4px;
    padding-bottom: 4px;
    background: #A8AEB6;
    position: relative;
    top: -2px;
    margin: 0 0 0 10px;

    &:hover {
      color: #fff;
      background: darken(#A8AEB6, 6);
      border-color: darken(#A8AEB6, 12);
    }
    &:active, &:focus {
      background: darken(#A8AEB6, 12);
      top: -1px;
    }
  }
}

/* =============================  Modules  ============================== */

.btn {
  span {
    text-indent: -1000em;
  }
  &.prev, &.next {
    padding: 11px;
  }
  &.prev span {
    position: relative;
    left: -4px;
    .caret;
    display: block;

    border-top: 5px solid transparent;
    border-right: 8px solid #737f8f;
    border-left: 8px solid transparent;
    border-bottom: 5px solid transparent;
  }
  &.next span {
    position: relative;
    right: -4px;
    .caret;
    display: block;

    border-top: 5px solid transparent;
    border-right: 8px solid transparent;
    border-left: 8px solid #737f8f;
    border-bottom: 5px solid transparent;
  }
}

.chart {
  position: relative;
  max-height: 200px;

  > .title {
    font-size: 2em;
    text-transform: uppercase;
    position: absolute;
    left: 1px;
    top: 1px;
    color: #dfe3e9;
    .opacity(70);
    background: #fff;
    padding: 5px 8px;
    line-height: 100%;
  }
}

legend + .control-group {
  margin-top: 0
}

ul.tag-list {
  list-style: none;
  margin-left: 0;
  margin-bottom: 15px;

  li {
    margin-bottom: 5px;
    position: relative;

    .progressbar {
      padding: 5px 0;
    }

    &:nth-child(even) {
      background: #f9f9f9;
    }

    span {
      position: absolute;
      right: 10px;
    }
  }
}

a.icon-share {
  margin-top: 1px;
  .opacity(30);
  zoom: 0.8;
  &:hover {
    .opacity(100);
  }
}
.progressbar {
  position: relative;
  min-height: 1.5em;
  line-height: 1.5em;

  > a,
  > div {
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    max-width: 100%;
    position: absolute;
  }

  > div {
    .border-radius(4px);
  }

  > a {
    left: 5px;
    position: relative;
    z-index: 1;
    padding-right: 60px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    span {
      position: absolute;
      right: 10px;
    }
  }

  > div {
    background-color: lighten(@linkColor, 40%);
    text-indent: -100000em;
    z-index: 0;
  }
}

.sparkline {
  position: relative;

  > a {
    position: relative;
    float: left;
    height: 100%;
    display: block;

    &:hover {
      > span {
        background: @linkColor;
        border-color: @linkColor;
      }
    }

    > span {
      display: block;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 1px;
      background: #dfe3e9;
      .border-radius(3px 3px 0 0);
      border: 1px solid #dfe3e9;
      min-width: 1px;
      height: 0;
      overflow: hidden;
      text-indent: -9999px;

    }
  }
}

.group-list, .events {
  margin: 0;
  padding: 0;
  list-style: none;

  &.events-detail {
    li {
      border-bottom: none;
      padding-bottom: 0;
    }
  }
  &.similar-events {
    > li {
      padding-left: 20px;
      min-height: 0;
      .meta {
        position: absolute;
        top: 10px;
        bottom: 0;
        right: 20px;
      }
      .row_link:hover {
        background: rgba(238, 238, 238, 0.10);
      }
    }
  }

  > li {
    position: relative;
    padding: 10px 30px 10px 110px;
    position: relative;
    border-bottom: 2px solid #f2f4f7;
    min-height: 60px; /* count height */

    a {
      .transition(none);
    }

    &:first-child {
      border-top-width: 1px;
    }

    &:hover {
      .actions a {
        color: darken(#e7e9ed, 6);
      }
    }

    &.empty {
      border: 0;
      padding-left: 30px;
      &:hover {
        .reset-filter();
        background-image: none;
        background-color: inherit;
      }
    }

    &.with-sparkline {
      .message {
        padding-right: 129px;
      }
      .meta {
        right: 155px;
      }
    }

    &.seen {
      h3 {
        font-weight: normal;

        a {
          color: #898f98;
        }
      }
    }

    h3 {
      margin: 0;
      font-size: 16px;
      line-height: 20px;
      font-weight: bold;
      width: 85%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      a {
        color: #465262;
        &:hover {
          color: #000;
        }
      }
      span {
        margin-left: 10px;
        font-weight: 300;
        padding: 0 5px;
        font-size: 13px;
      }
    }
    .count {
      color: #fff;
      position: absolute;
      left: 23px;
      .square(60px);
      .border-radius(60px);
      line-height: 60px;
      background: #cfd3da;
      text-align: center;
      font-size: 17px;
      font-weight: bold;
      letter-spacing: -1px;
      overflow: hidden;

      span {
        position: absolute;
        left: 0;
        right: 0;
        height: 100%;
        text-align: center;
        line-height: inherit;
        display: block;
      }
    }
    .message {
      color: #898f98;
      margin-bottom: 0;
      font-size: 14px;
      padding-right: 24px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      .tag {
        .pull-right;
      }
    }

    .meta {
      color: #b6bcc2;
      font-size: 12px;
      a {
        color: inherit;
        &:hover {
          text-decoration: underline;
          color: #000;
        }
      }
    }

    .tag,
    .annotation {
      margin-left: 10px;
    }
    .tag-users,
    .annotation {
      margin-right: 10px;
      margin-left: 0;
      position: relative;
      background: #f9f9f9;
      padding: 0 5px;
      line-height: 20px;
      height: 20px;
      min-width: 20px;
      text-align: right;
      float: left;
      display: block;
      color: #666;
      overflow: hidden;

      span {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 5px;
        height: 100%;
        text-align: center;
        line-height: inherit;
        display: block;
      }

      i {
        padding-right: 25px;
        font-style: normal;
        color: #aaa;
      }
    }
    .tag-project {
      display: none;
    }
    .sparkline {
      position: absolute;
      right: 50px;
      top: 18px;
      display: inline-block;
      width: 100px;
      height: 52px;

      > span {
        position: relative;
        float: left;
        width: 3px;
      }
    }
    .actions {
      position: absolute;
      right: 20px;
      top: 17px;
      list-style-type: none;
      margin: 0;
      padding: 0;
      li {
        margin-bottom: 13px;
        font-size: 14px;
        line-height: 18px;
        text-align: center;
        display: block;
        width: 20px;
        height: 20px;
        > a {
          font-size: 19px;
          color: #e7e9ed;
          &:hover {
            color: darken(#e7e9ed, 6);
            text-decoration: none;
          }
          i {
            background-image: none;
          }
        }
        .checked, .checked:hover {
          color: #f6de2f;
        }

        .bookmarked {
          color: @orange;
        }

        .disabled {
          color: @gray;
        }
      }
    }

    .row_link {
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      position: absolute;
    }

    &.level-debug .count {}
    &.level-info .count { background: #2788ce; }
    &.level-warning .count { background: #f18500; }
    &.level-error .count { background: #f43f20; }
    &.level-fatal .count { background: #d20f2a; }

    &.resolved {
      h3 {
        text-decoration: line-through;
      }
      .count {
        background: #cfd3da;
      }
      .icon-checkmark {
        color: #27ce8a;
      }
    }
  }
  &.small {
    > li {
      min-height: 30px;
      padding: 14px 14px 14px 50px;

      &.empty {
        padding-left: 0px;
      }

      &:last-child {
        border-bottom: none;
      }

      h3 {
        margin: 0;
        font-size: 14px;
        line-height: 18px;
      }

      .message {
        line-height: 18px;
        font-size: 12px;
        .tag {
          display: none;
        }
      }
      .meta {
        line-height: 18px;
        font-size: 12px;
      }

      .count {
        left: 0;
        font-size: 12px;
        width: 36px;
        height: 36px;
        line-height: 38px;
        .border-radius(36px);
      }

      .actions {
        display: none;
      }

      .sparkline {
        right: 10px;
        height: 30px;
        top: 20px;
      }

      .tag, .meta {

      }

      .tag-project {
        display: inline-block;
      }

    }
  }
}

.inactive .group-list > li:hover {
  .reset-filter();
  background-image: none;
  background-color: inherit;
  border-color: #f2f4f7;
}

label { font-weight: bold; }

pre, code {
  span {
    display: inline-block;
  }
}

pre {
  border: 0;
}

code {
  border: 0;
  background-color: inherit;
  color: lighten(@black, 40%);
}

.nav-tabs {
  > li.pull-right {
    float: right;
  }
}

.clippy {
  display: inline-block;
  vertical-align: middle;
  padding: 5px 8px 3px 26px;
  line-height: 20px;
  position: relative;
  width: auto;
  overflow: hidden;
  object {
    .border-radius(3px);
    position: absolute;
    left: 8px;
    top: 7px;
    width: 12px;
    height: 12px;
  }
  &:hover {
   border-color: #bbb;
  }
}

pre.clippy {
  display: block;
}

td .clippy {
  border: 0;
}

// Code styles

&.expanded div.commands,
div.commands:hover {
  .opacity(100);
  a {
    color: @infoText;
  }
}

div.commands {
  position: absolute;
  right: 10px;
  top: 6px;
  font-size: 0.9em;
  .opacity(30);

  a {
    color: #666;
    text-decoration: none;
    span {
      font-size: 9px;
      margin-right: 5px;
    }
  }
}

ul.traceback {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 0;
}

.traceback > h3 {
  margin-top: 0;
  font-weight: normal;

  span {
    font-weight: bold;
  }
}
.traceback > p {
  color: #474747;
  font-size: 0.9em;
  white-space: pre-wrap;
  background: #F8F8F8;
  padding: 10px;
  border-radius: 4px;
}
.traceback > .traceback {
  margin-top: 10px;
}
.subtraceback {
  padding-left: 20px;
  border-left: 2px solid #dee3e9;
  position: relative;

  > h3 {
    line-height: 50px
  }

  > h3:before {
    display: block;
    content: "";
    width: 15px;
    height: 0;
    border-bottom: 2px solid #dee3e9;
    position: absolute;
    left: 0;
    top: 25px;
  }
}

.frames-omitted,
.exc-omitted {
  color: #887676;
  font-size: 14px;
  font-weight: 500;
  border-left: 2px solid #E24444;
  background: #FFF0F0;
  padding: 20px;
  margin-bottom: 0;
}

.frame {
  overflow: hidden;
  position: relative;
  padding: 5px;
  border: 1px solid #fff;
  margin: -6px -6px 0 -6px;

  &.system-frame {
    color: #999;
  }

  p {
    font-size: 12px;
    margin-bottom: 0;

    a.annotation {
      &.trigger-popover {
        cursor: pointer;
      }
      color: inherit;
      padding: 0 1px;
      border-bottom: 1px dotted #666;
      &:hover { text-decoration: none; }
    }
  }

  code {
    padding: 0;
    font-size: inherit;
    color: inherit;
  }

  .context {
    margin-bottom: 5px;
  }
  .tag-app {
    color: #aaa;
    font-size: 0.9em;
    margin-left: 10px;
  }

  > div > table.vars {
    margin-bottom: 5px;
    > tbody > tr > th {
      color: @gray;
      text-align: right;
    }
  }

  &.expanded {
    color: #000;

    > p {
      color: #000;
    }

    // .context li {
    //   color: darken(@infoText, 20%);
    //   background: lighten(@infoBackground, 5%);
    //   pre {
    //     color: inherit;
    //   }
    //   &.active {
    //     background: @infoBackground;
    //     color: #000;
    //   }
    // }

    .expandable {
      height: auto;
    }
  }
}

.expandable {
  height: 0;
  overflow: hidden;

  &.vars {
    display: none;
  }

}

.expanded {
  .expandable {
    overflow: none;
    height: auto;
  }

  table.vars {
    &.expandable {
      display: table;
    }
  }
}


ol.context {
  cursor: pointer;
  margin: 0;
  list-style-position: inside;
  .border-radius(3px);

  > li {
    padding-left: 20px;
    font-family: monospace;
    color: rgba(0,0,0,.75);
    background-color: #f8f8f8;
    line-height: 22px;
    font-size: 12px;
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  > li.active {
    background-color: #dee3e9;
    pre {
      color: @black;
    }
  }

  > li:first-child {
      .border-radius(4px 4px 0 0);
  }

  > li:last-child {
      .border-radius(4px 4px 0 0);
  }

  li.closed {
    .border-radius(4px);
  }

  &:hover {
    li {
      background-color: #f3f3f3;
      &.active {
        background-color: #e0e0e0;
      }
    }
  }
}
ol.context-line {
  > li {
    > span {
      float: right;
    }
  }
}

// Generic module stuff

.module {
  margin-bottom: 20px;
}
.module-content table pre {
  margin-bottom: 0;
}

.module-user .avatar {
  .square(64px);

  img {
    height: 100%;
    width: 100%;
  }
}

.mini-tag-list {
  margin-left: 0;
  margin-bottom: 10px;
  > li {
    display: inline-block;
    background: #f9f9f9;
    .border-radius(8px);
    padding-top: 2px;
    padding-bottom: 2px;
    margin-bottom: 10px;
    strong {
      padding-left: 8px;
    }
    em {
      color: #aaa;
      margin: 0 3px;
    }
    span {
      padding-right: 8px;
    }
  }
}

// Sparkline grid

.innerColumn(@columnSpan: 1) {
  width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 10;
}

#chart { margin-bottom: 10px; overflow: hidden; }

div.pastebin textarea { padding: 10px; background: #f9f9f9; border-color: #ddd; }

.error { background: #ffc; padding: 5px; }
.specific { color:#cc3300; font-weight:bold; }

/* message details */
.server-list, .url-list, .logger-list, .level-list { list-style: none; margin-left: 0; margin-bottom: 0; }
.server-list li, .url-list li { padding-bottom: 10px; }
.url-list li a { line-height: 18px; }

dl.flat {
    margin-bottom: 1em;
}
dl.flat dt {
    float: left;
    clear: left;
    width: 90px;
    padding-bottom: 5px;
}
dl.flat dd {
    padding-bottom: 5px;
}

#full-message {
    line-height: 1.5em;
}

table.inline tr {
    display: inline-block;
}

#popup {
    background: #fff;
    padding: 10px;
    margin: 10px;
}

small {
  font-size: 0.9em;
}

.form-actions {
  border-top: 1px solid #eff1f4;
  background: none;
  padding: 30px 0 0;
  p {
    padding: 6px 10px;
    line-height: 15px;
  }
  .note {
    color: @grayLight;
    line-height: 30px;
  }
}

.inputs-list label {
  padding-left: 18px;
}
.inputs-list label input[type="radio"],
.inputs-list label input[type="checkbox"] {
  float: left;
  margin-left: -18px;
}
.help-block {
  font-size: 12px;
  font-weight: normal;
  color: #808690;
}


// Move the options list down to align with labels
.controls > .inputs-list label:first-child,
.controls > .inputs-list label:first-child {
  padding-top: 5px; // has to be padding because margin collaspes
}
.select2-container {
  margin-bottom: 9px;
}

legend {
  margin-bottom: 18px;
  border-bottom-width: 2px;
}


.modal-header small {
  font-size: 0.65em;
}

section.body .page-header:first-child {
  margin-top: 0;
}
.page-header {
  padding-bottom: 0;
  border-bottom: 0;
  margin: 20px 0;

  .pull-right {
    margin-top: 10px;
  }
  h2 {
    font-weight: normal;
  }
}

.modal {
  width: 760px;
  margin-left: -480px;
}

.image {
  border: 1px solid #ddd;
  background: #ccc;
  padding: 10px;
  margin-bottom: 10px;
  display: inline-block;
  .border-radius(3px);
}
.image img {
  .border-radius(3px);
  display: block;
}

.datepicker-box {
  position: absolute;
  top:50px;
  left:400px;
  padding: 15px 15px 0px;
  z-index:900;
  background-color: @white;
  .border-radius(4px);
  .box-shadow(0 0 0 2px rgba(70,82,98,.43));
  .background-clip(padding-box);
  form {
    margin-bottom: 15px;
  }
  .help-block {
    margin-bottom: 5px;
  }
  .radio-inputs {
    position: relative;
    display: inline-block;
    height: 26px;
    .radio {
      line-height: 26px;
      margin-right: 10px;
      margin-bottom: 0;
      display: inline-block;
      font-weight: normal;
      input {
        margin-left: -19px;
        margin-top: 7px;
        vertical-align: middle;
      }
    }
  }
  .time {
    width: 60px;
  }
  .date {
    width: 70px;
  }
}

#daterange {
  display: none;
}

img.avatar {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  border-radius: 3px;
  max-width: none;
}
img.avatar32 {
  width: 32px;
  height: 32px;
}


.nav-pills > li.active > a {
  background-color: lighten(@linkColor, 10%);
}
.nav-small {
  &.nav-pills > li > a {
    padding: 5px 8px;
    font-size: 12px;
  }
}

.page-header h3.pull-left {
  margin-right: 10px;
}

#messages .alert {
  .border-radius(0);
}

.alert {
  .border-radius(4px);
  text-shadow: none;
  background: #ffc01a;
  color: #fff;
  border: 0;
  a {
    font-weight: bold;
    color: inherit;
  }
}
.alert-block {
  padding-bottom: 5px;
  > p {
    margin-bottom: 9px;
  }
  > ul {
    margin-bottom: 9px;
  }
}
.alert-error {
  background: #ff2e46;
}
.alert-info {
  background: #2e9fff;
}
.alert-success {
  background: #4bad00;
}

.active-alerts {
  margin: 15px 25px 0;
  padding: 0 5px;
  li.alert {
    margin-bottom: 5px;
  }
}

#event_nav.fixed {
  // overflow: hidden;

  .event_nav_wrap {
    z-index: 1000000;
    min-width: 1086px;
    max-width: 1300px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;

    > ul {
      overflow: hidden;
      .box-sizing(border-box);
      width: auto;
      display: block;
      margin: 0 300px 0 0;
      background: #fff;

      li.dropdown {
        position: relative;
      }

      li.top {
        .pull-right;
        display: block;
      }
    }
  }
}

#event_nav {
  position: relative;
  margin-bottom: 15px;

  .event_nav_wrap {
    position: relative;

    > ul {
      padding: 10px 12px;
      margin: 0 -30px 0;
      border-top: 1px solid #dee3e9;
      @shadow: 0 1px 0 rgba(0,0,0, .08), 0 1px 3px rgba(0,0,0, .05);
      .box-shadow(@shadow);

      > li {
        margin: 0 4px 0 0;

        &.top {
          display: none;
        }
        > a {
          padding: 8px 18px;
          line-height: 16px;
          color: #89919b;
          margin: 0;
          font-weight: 600;

          .border-radius(30px);
          .transition(none);
          &:hover,
          &:focus {
            .transition(none);
            color: #465262;
            background-color: #dee3e9;
          }
        }
        &.active > a {
          .transition(none);
          color: @white;
          background-color: #56AFE8;
        }

        > ul.dropdown-menu {
          > li.active > a,
          > li:hover > a,
          > li:focus > a {
            color: @white;
          }
        }

      }
    }
  }
}

.plugin-meta {
  .description {
    p { font-size: 13px; }
  }
}

@media print {
    body {
        color: @black;
    }
    header {
        display: none;
    }
    .sidebar, .toolbar {
      display: none;
    }
    .content {
      padding: 0 !important;
    }
    #CModal, footer { display: none; }
}


/* ////////////////////////////////// Flat overrides ////////////////////////////////// */

.dashboard {
  .page-header {
    margin: 0;
    border-bottom: 2px solid #eceff2;
    .nav {
      margin: 0 0 14px;
      a {
        font-size: 11px;
        color: lighten(#909aa3, 5);
        font-weight: bold;
        min-width: 50px;
        text-align: center;
      }
      .active a {
        color: #fff;
        background: #56AFE8;
      }
    }
  }

  .empty-message {
    padding: 0;
    width: auto;
    margin: 0;

    &:after {
      display:;
    }

    h2 {
      font-size: 16px;
      color: #c2c9d1;
      letter-spacing: 0;
    }
    p {
      display: none;
    }
  }
}

// TODO(dcramer): this modal isnt responsive
.welcome-message-modal {
  border-radius: 3;
  border: 0;
  box-shadow: none;
  top: 50%;
  width: 780px;
  margin-top: -117px;
  margin-left: -390px;
  box-shadow: 0 0 0 2px rgba(0,0,0, .1);
}

.modal-backdrop {
  background: rgba(0,0,0, .2);
}

.welcome-message {
  padding: 20px 30px;

  .container {
    padding: 20px 30px;
    min-width: 1px;
    width: 100%;
    box-sizing: border-box;
  }

  h2 {
    font-size: 20px;
    letter-spacing: 0;
    padding: 0 0 10px;
    font-weight: 500;
    padding: 15px 30px;
    margin: -20px -30px 20px;
    background: #fafafa;
    border-bottom: 2px solid darken(#f1f2f3, 0);
    border-radius: 7px 7px 0 0;
  }

  p {
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
    margin: 0 0 18px;
    letter-spacing: -0.05em;

    &.links {
      font-size: 16px;
      a {
        margin: 0 12px 0 0;
      }
    }
  }

  pre {
    display: block;
    margin: 0 0 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .actions {
    position: relative;
    top: -4px;
  }
}

.empty-message {
  width: 490px;
  margin: 130px auto;
  position: relative;

  &:after {
    font-family: 'sentry';
    content: "\2713";
    position: absolute;
    display: block;
    .square(54px);
    background: #27ce8a;
    .border-radius(10px);
    color: #fff;
    top: -9px;
    left: -82px;
    font-size: 30px;
    text-align: center;
    line-height: 52px;
  }

  h2 {
    font-size: 36px;
    letter-spacing: -2px;
    margin: 0 0 18px;
  }

  p {
    font-size: 20px;
    line-height: 1.4;
    color: #c2c9d1;
    font-weight: bold;
    margin: 0 0 18px;
    letter-spacing: -0.05em;

    &.links {
      font-size: 16px;
      a {
        margin: 0 12px 0 0;
      }
    }
  }
}

.btn {
  background: #F1F2F3;
  .border-radius(4px);
  .box-shadow(none);
  border: none;
  color: #666d73;
  font-weight: bold;
  text-shadow: none;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  padding: 7px 12px;

  i {
    background-image: none;
    color: lighten(#a4adb7, 5);
    margin: 0 3px 0 0;
    position: relative;
    font-size: 15px;
    top: 1px;
    left: -1px;
  }

  &.disabled, &[disabled] {
    background: #F1F2F3;
    .opacity(50);
  }

  .caret {
    border-top-color: #a4adb7;
    border-bottom-color: #a4adb7;
  }

  &:hover {
    color: #666d73;
    background: darken(#f1f2f3, 2);
  }

  &:active {
    position: relative;
    top: 1px;
    .box-shadow(none);
  }

  &.btn-primary {
    background: #56AFE8;
    color: #fff;
    border-color: #589ac3;
    &:hover {
      background: darken(#56AFE8, 3);
      border-color: darken(#589ac3, 5);
    }

    &.disabled, &[disabled] {
      background: #56AFE8;
    }

    .caret {
      border-top-color: #fff;
    }
  }

  &.btn-danger {
    background: #da4f49;
    color: #fff;
    border-color: #bd362f;
    &:hover {
      background: darken(#da4f49, 3);
      border-color: darken(#bd362f, 5);
    }
  }
}

// Small
.btn-small {
  padding: 3px 11px;
  font-size: 12px;
  .border-radius(@borderRadiusSmall);
}
.btn-small [class^="icon-"],
.btn-small [class*=" icon-"] {
  margin-top: 0;
}

section.body {
  textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    height: auto;
    line-height: auto;
    border: 1px solid #c3c8ce;
    padding: 6px 12px;
    font-size: 15px;
    .box-shadow(inset 0 1px 1px rgba(0,0,0, .05));
    .border-radius(4px);
    .placeholder(darken(#f1f2f3, 10));
  }
}
table.table td input,
table.table td .select2-container {
  margin-bottom: 0;
}

.navbar-inverse .nav .active > a, .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus {
  background: #56AFE8;
}

.nav-list > li > a, .nav-list > li > a:hover, .nav-list > li.active > a, .nav-list > li.active > a:hover {
  font-weight: bold;
  font-size: 14px;
  text-shadow: none;
}

.btn-group.open .dropdown-toggle {
  background-color: darken(#ecf0f4, 4) !important;
  .box-shadow(none);
}

.dropdown-menu {
  top: 33px;
  border: none;
  .border-radius(4px);
  .box-shadow(0 0 0 2px rgba(70,82,98,.43));
  .background-clip(padding-box);

  li a {
    .transition(none);
    font-weight: bold;
    color: #878e94;

    &:hover {
      background: #fff;
      color: darken(#878e94, 12);
    }
  }

  li.active a, li.active a:hover {
    background: #56AFE8;
    color: #fff;
  }

  .divider {
    margin: 9px 1px 4px;
  }
}

.icon-arrow-down:before {
  font-size: 10px;
  position: relative;
  top: -2px;
  left: 4px;
}

.select2-container .select2-choice div b {
  background: none;

  &:before {
    font-size: 9px;
    position: relative;
    top: -5px;
    left: 2px;
    font-family: 'sentry';
    font-style: normal;
    speak: none;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    content: "\e003";
  }
}


table.table {
  th {
    vertical-align: top;
  }
  td {
    vertical-align: middle;
  }
}

table.table, table.vars {
  &.closed {
    display: none;
  }

  th, td {
    border: none;
    padding: 5px 8px;
  }

  td .btn, th .btn {
    white-space: nowrap
  }

  td.values, td.code {
    overflow: hidden;

    > pre {
      background-color: inherit;
      color: rgba(0,0,0,.75);
      padding: 1px 3px;
      border: 0;
      margin-bottom: 0;
    }
  }

}

table.vars {
  td, th {
    padding: 10px;
    border: 0;
    vertical-align: top;
  }
  td table {
    border-top: 0;
    margin-top: -5px;
    margin-bottom: -5px;
  }
  thead th,
  thead td {
    background-color: #fff !important;
  }
  tbody > tr:nth-child(odd) > td,
  tbody > tr:nth-child(odd) > th {
    background-color: #F4F6F9;
  }
  tbody > tr:nth-child(even) > td,
  tbody > tr:nth-child(even) > th {
    background-color: #fff;
  }
  table.vars {
    td, th {
      padding: 5px 10px;
    }

  }
}

.table-striped {
  tbody tr:nth-child(odd) td,
  tbody tr:nth-child(odd) th {
    background-color: #F4F6F9;
  }
  tbody tr:nth-child(even) td,
  tbody tr:nth-child(even) th {
    background-color: #fff;
  }
}

.table tbody tr {
  &.success > td {
    background-color: @successBackground;
  }
  &.error > td {
    background-color: @errorBackground;
  }
  &.warning > td {
    background-color: @warningBackground;
  }
  &.info > td {
    background-color: @infoBackground;
  }
}

// Hover states for .table-hover
.table-hover tbody tr {
  &.success:hover > td {
    background-color: darken(@successBackground, 5%);
  }
  &.error:hover > td {
    background-color: darken(@errorBackground, 5%);
  }
  &.warning:hover > td {
    background-color: darken(@warningBackground, 5%);
  }
  &.info:hover > td {
    background-color: darken(@infoBackground, 5%);
  }
}

.nav-tabs {
  border-bottom: 2px solid #dee3e9;
  > li {
    margin-bottom: -2px;
  }
}

.nav-tabs > .active > a,
.nav-tabs > .active > a:hover {
  border: 2px solid #dee3e9;
  border-bottom-color: transparent;
}

.nav-tabs > li > a {
  color: #A1A8AE;
  font-weight: bold;
  padding-left: 14px;
  padding-right: 14px;

  &:hover {
    background-color: transparent;
    border-color: transparent;
  }
}

.activity {
  position: relative;

  > ul {
    list-style: none;
    margin: 0 0 20px;

    > li {
      margin-bottom: 5px;
      line-height: 30px;
      position: relative;
      padding-left: 24px;

      .avatar {
        position: absolute;
        left: 0;
        top: 7px;
        width: 16px;
        height: 16px;
        display: block;
        background-size: 16px 16px;
        background-repeat: no-repeat;
        background-position: center center;
        .border-radius(16px);

        img {
          width: 16px;
          height: 16px;
          display: block;
          .border-radius(16px);
        }

        &.sentry {
          .border-radius(0);
          background-image: url('../images/favicon.ico');
        }

        p {
          font-size: 12px;
        }
      }

      .sep, .time {
        font-size: 12px;
        color: #aaa;
      }
    }
  }

  .add-note-btn {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: -0.1px;
    position: absolute;
    right: 0;
    top: 0;
    padding: 2px 5px;
    background: #eff3f7;
    color: #666d73;
    border: 1px solid #eff3f7;
    .border-radius(4px);

    .icon-comment {
      .opacity(50);
    }
    &:hover.selected,
    &.selected {
      z-index: 1001;
      border-color: darken(#eff3f7, 10%);
      .border-radius(4px 4px 0 0);
      border-bottom-color: #eff3f7;
    }

  }

  form.add-note-form {
    z-index: 1000;
    position: absolute;
    right: 0;
    top: 25px;
    background: #eff3f7;
    padding: 10px;
    border: 1px solid darken(#eff3f7, 10%);

    > textarea {
      font-size: 13px;
      max-width: 600px;
      background: #fff;
      border: 1px solid darken(#eff3f7, 10%);
      font-weight: 300;
      height: 80px;
      margin: 0;
      right: 0;
      left: 0;
      margin-bottom: 10px;
      .box-shadow(none);
      .placeholder(#ddd);
    }

    .form-actions {
      text-align: right;
      padding: 0;
      margin: 0;
    }
  }
}

.seen-by {
  position: relative;
  margin-left: 0;
  > li {
    list-style: none;
    display: inline-block;
    height: 32px;
    width: 32px;
    line-height: 32px;
    text-align: center;
    .border-radius(32px);
    border: 1px solid #ddd;
    font-size: 15px;
    color: #aaa;

    img {
      height: 100%;
      width: 100%;
      height: 32px;
      width: 32px;
      .border-radius(32px);
    }
  }
}

.share-form {
  position: relative;
  max-width: 400px;

  * {
    font-size: 12px;
    line-height: 20px;
  }

  code {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  label.checkbox {
    padding: 0 5px 0 29px;
  }
}

.team-list {
  list-style: none;
  margin-left: 0;

  > li {
    display: block;
    margin: 0 0 20px 0;
    padding: 0 20px 2px;
    border: 1px solid darken(#E3E7EC, 1);
    position: relative;
    .border-radius(5px);

    .loading {
      display: none;
    }

    h3 {
      position: relative;
      margin-bottom: 0;
      line-height: 22px;
      height: 22px;
      font-size: 18px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #465262;
      font-weight: bold;
      border-bottom: 1px solid darken(#E3E7EC, 1);;
      padding: 10px 20px;
      margin: 0px -20px 10px;
      background: rgba(250, 250, 250, 0.55);
      border-radius: 4px 4px 0 0;

      > a:hover {
        color: darken(@gray, 20);
      }

      .actions {
        font-size: 14px;

        a {
          color: #949BA5;

          &:hover {
            color: darken(#949BA5, 15);
          }
        }

        .icon-cog {
          background: none;
          margin-top: 2px;
          margin-right: 5px;
        }
      }

      a {
        color: inherit;
      }
    }

    p {
      margin: 0 0 10px;
    }

    > ul {
      position: relative;
      overflow: hidden;
      margin-left: 0;
      margin-bottom: 0;
      list-style: circle;

      > li {
        display: inline-block;
        width: 142px;
        margin-right: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 26px;

        a {
          font-size: 17px;
        }
      }
    }

  }
}

.toggle-expand {
  padding: 0 !important;
  a {
    display: block;
    text-align: center;
    padding: 3px 5px;
    font-size: 0.9em;
    background: #dee3e9;
  }
}

/* For wider screens */

@media all and (min-width: 1301px) {
  body {
    background: #c8cbd0;
  }

  .outer-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
    .box-shadow(0 0 0 2px rgba(0,0,0, .03));
    .border-radius(9px);
  }

  .navbar .navbar-inner {
    .border-radius(7px 7px 0 0);
  }

  footer {
    .border-radius(0 0 7px 7px);
  }
}

.windowed {
  background: #c8cbd0;

  .outer-wrapper {
    width: 900px;
    max-width: 900px;
    margin-top: 30px;
    margin-bottom: 30px;
    .box-shadow(0 0 0 2px rgba(0,0,0, .03));
    .border-radius(9px);
  }

  .navbar .navbar-inner {
    .border-radius(7px 7px 0 0);
  }

  footer {
    .border-radius(0 0 7px 7px);
    padding: 30px 30px;
  }

  .container {
    min-width: auto;
  }

  #content {
    width: auto;
    min-width: auto;

    &.with-left-sidebar {
      width: 900px;
      min-width: 900px;
      background: #fff url(../images/dashboard/sidebar-bg.png) -50px top repeat-y;

      .content {
        padding-left: 250px;
      }
      .main {
        min-width: 0;
        float: right;
      }
      .sidebar {
        width: 190px;
        display: block;
        margin-right: 0;
        margin-top: 0;
        margin-left: -250px;
      }
      section.body {
        min-width: 0;
      }

    }
  }
}

.windowed-small {
  background: #c8cbd0;

  .outer-wrapper {
    width: auto;
    max-width: 400px;
  }
  footer, header {
    text-align: center;
    padding: 0;
    min-width: 0;
    width: auto;
  }
  footer {
    padding: 10px 25px;
    height: 60px;
  }
  header {
    height: 40px;

    h2 {
      letter-spacing: -1px;
      font-weight: bold;
      font-size: 22px;
      position: absolute;
      left: 70px;
      margin-top: 2px;
      color: #fff;
    }
  }
  #content {
    .main, section.body {
      min-width: 0;
    }
  }
  .container {
    width: auto;
    min-width: 0;
  }
}

.rule-list {
  list-style: none;
  li {
    line-height: 30px;
    input[type=number] {
      border-width: 0 0 1px;
      width: 50px;
      .border-radius(0);
      .box-shadow(none);
    }
  }
}

#flotTip {
  background-color: @tooltipBackground;
  .border-radius(@baseBorderRadius);
  max-width: 200px;
  padding: 8px;
  color: @tooltipColor;
}


pre {
  word-break: normal;
}

.create-flow {
  width: 575px;
  margin: 0 auto;
  padding: 45px 0 50px;

  .help-block {
    font-size: 14px;
    color: @gray;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .control-group {
    margin-bottom: 20px;
  }

  input[type="text"] {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    margin: 0;
  }

  .actions {
    text-align: right;
    border-top: 2px solid darken(#f1f2f3, 0);
    padding-top: 20px;
  }

  .steps {
    .clearfix();
    list-style-type: none;
    padding: 0;
    margin: 0 0 30px;

    li {
      width: 33.33%;
      float: left;
      text-align: center;
      font-size: 22px;
      color: #D4D6D9;

      &.active {
        color: @gray;
      }

      &:first-child {
        text-align: left;
      }

      &:last-child {
        text-align: right;
      }
    }
  }
}

.docs {
  #content {
    background: #fff url(../images/dashboard/sidebar-bg.png) top left repeat-y;
    background-size: 211px 100%;
  }

  .clippy {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .select-project {
    color: #fff;
    font-size: 15px;
    border: 1px solid #1C85DD;
    background: #2e9fff;
    border-right: 0;
    padding: 10px 30px;
    border-radius: 0;
    border-left: 0;
    margin-left: -31px;
    margin-right: -31px;
    margin-bottom: 20px;

    .caret {
      border-top-color: #fff !important;
      border-bottom-color: #fff !important;
    }

    .dropdown-toggle {
      color: #fff;
    }

    &.open {
      .dropdown-toggle {
        text-decoration: none;
        position: relative;
        z-index: 2;

        &:after {
          display: block;
          content: "";
          position: absolute;
          top: -4px;
          left: -6px;
          right: -6px;
          bottom: -4px;
          background: #f1f2f3;
          z-index: -1;
          border-radius: 5px;
        }
      }
    }

    .dropdown-menu {
      color: #000;
      left: auto;
      right: -6px;
      width: 500px;
      overflow: hidden;
      padding: 0;
      max-height: 400px;
      overflow: auto;

      h6 {
        font-size: 14px;
        margin-bottom: 10px;
      }

      ul {
        margin: 0;
      }

      .org {
        h5 {
          border-top: 1px solid #f1f2f3;
          background: #fafafa;
          margin: 0;
          padding: 5px 15px;
        }
      }

      .team {
        padding: 10px 15px 0;
        border-top: 1px solid #f1f2f3;
      }

      .projects {
        .clearfix();
        box-sizing: border-box;

        li {
          float: left;
          margin: 0 0 8px;
          box-sizing: border-box;
          width: 33.33%;
          padding-right: 14px;
          position: relative;

          &.active {
            a {
              background: transparent;
              position: relative;
              z-index: 2;
              color: @gray;
            }

            &:after {
              display: block;
              content: "";
              position: absolute;
              top: -2px;
              left: -6px;
              bottom: -2px;
              right: 10px;
              background: #f1f2f3;
              z-index: 1;
              border-radius: 3px;
            }
          }

          a {
            display: block;
            font-weight: normal;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
      }
    }
  }

  .crumbs {
    .clearfix();
    color: #A4ABB5;
    list-style-type: none;
    margin-left: 0;

    a {
      color: #A4ABB5;
    }

    li {
      float: left;

      &.divider {
        margin: 0 12px;
        opacity: .5;
      }

      &:last-child {
        color: darken(#A4ABB5, 20);
      }
    }
  }

  .nav-tabs {
    font-size: 14px !important;
    li {
      margin-bottom: -3px !important;
    }
  }

  .docs-sidebar {
    display: block !important;
    padding: 30px 30px 15px;
    border-right: 1px solid #e9ecf0;
    margin-right: -1px;
    font-size: 14px;

    h4 {
      font-size: 14px;
      margin: 0 0 15px;
    }

    ul {
      margin: 0 0 15px;
      list-style-type: none;

      li a {
        line-height: 22px;
        margin-left: -30px;
        margin-right: -30px;
        padding: 0 30px;
      }
    }
  }
  .docs-main {
    width: 76.7%;
    padding: 30px 30px 10px;
    border-left: 1px solid #e9ecf0;
    margin-left: 0;

    h1, h2, h3, h4, h5, h6, p, ul, ol, pre {
      margin-bottom: 20px;
    }

    p, ul, ol {
      font-size: 16px;
      line-height: 1.5;
      li {
        margin: 0 0 5px;
      }
    }


    h2 {
      font-weight: 500;
    }

    .alert {
      padding: 10px 40px;
      border-radius: 0;
      margin-left: -41px;
      margin-right: -40px;
      text-shadow: 0 -1px 0 rgba(0,0,0, .1);
    }

    .alert-info {
      border: 1px solid #1C85DD;
      border-right: 0;
    }

    .api-resource {
      border-top: 1px solid lighten(#e9ecf0, 3);
      padding: 40px 40px 25px;
      margin-bottom: -1px;
      margin-left: -40px;
      margin-right: -40px;

      & + .api-resource {
        border-radius: 0;
      }

      h4 {
        font-size: 22px;
        font-weight: 400;
        letter-spacing: -0.025em;
        margin-bottom: 24px;
        color: #282E35;
      }

      h5 {
        font-size: 16px;
        color: #A7ADB6;
      }
    }
  }
}

.client-platform-list {
  list-style: none;
  margin-left: 0;
  margin-bottom: 30px;
  .clearfix();

  li {
    display: block;
    float: left;
    margin-right: 26px !important;
    margin-bottom: 30px !important;
    &:nth-child(5n) {
      margin-right: 0 !important;
    }
  }

  .big-platformicon {
    font-size: 54px;
  }

  span {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 100px;
    line-height: 100px;
    color: #fff;

    &.platformicon-generic {
      background: #929c9e;
    }

    &.platformicon-python {
      background: #2671aa;
    }
    &.platformicon-php {
      background: #6067a8;
    }
    &.platformicon-ruby,
    &.platformicon-rails {
      background: #d71f26;
    }
    &.platformicon-rails-3 {
      background: lighten(#d71f26, 10);
    }
    &.platformicon-java {
      background: darken(#d71f26, 3);
    }
    &.platformicon-js {
      color: #1b191c;
      background: #f7dc3c;
    }
    &.platformicon-node-js { // Fixed in upcoming version
      background: #8ac655;
      color: #2d292f;
    }
    &.platformicon-go {
      color: #222;
      border: 2px solid #222;
    }
    &.platformicon-django {
      background: #025129;
    }
    &.platformicon-ios {
      background: #383a3a;
    }
  }

  a {
    font-size: 16px;
    text-align: center;
    display: block;
    font-weight: 500;
    color: @gray;
  }
}
