/**
* Group Detail
* ============================================================================
*/

.group-detail {
  position: relative;
  margin: 0 0 20px;
  border-bottom: 1px solid @trim;
  clear: both;

  h3 {
    color: @gray-darkest;
    font-size: 22px;
    margin: 0 0 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.1;

    em {
      font-style: normal;
    }

  }

  .short-id {
    display: inline;
    font-weight: bold;
    font-size: 90%;
    border-right: 1px solid @trim;
    padding-right: 8px;
    margin-right: 8px;
    color: @gray;

    div {
      display: inline;
    }
  }

  .event-message, .event-meta {
    line-height: 1.2;
  }

  .error-level,
  .event-type {
    padding: 0;
    border-radius: 2px;
    margin-right: 8px;
    display: inline-block;
    position: relative;
    top: 3px;
    .square(13px);
    text-indent: -9999em;
    display: inline-block;
    border-radius: 15px;
  }

  .event-meta {
    font-size: 80%;
    margin-top: 6px;
  }

  .event-annotation {
    display: inline-block;
    margin: 0 0 5px 9px;
    font-size: 13px;
    line-height: 1;
    border-left: 1px solid lighten(@trim, 6);
    padding-left: 9px;
    height: 13px;

    a {
      color: lighten(@gray, 12);

      &:hover {
        color: @gray;
      }
    }
  }

  .count span {
    font-size: 24px;
    display: block;
    line-height: 1.2;
  }

  .is-assigned {
    clear: both;
    text-align: right;
    font-size: 14px;
    padding-top: 7px;
  }

  .assigned-to {
    text-align: right;
    position: relative;

    .btn-group {
      float: right;
    }

  }

  .meta {
    margin: 0 0 15px;
    color: #949ea4;
  }

  .group-actions {
    margin-top: 15px;

    .btn-group {
      margin-right: 5px;
    }

    .more .icon-arrow-down {
      margin-left: 5px;
    }

    .group-resolve .icon-checkmark {
      font-size: 13px;
    }

    .group-resolve.active {
      background: @green;
      color: #fff;
      border-color: @green-dark;
      text-shadow: 0 1px 0 rgba(0,0,0, .15);
    }

    .group-bookmark .icon-star-solid {
      position: relative;
      top: 1px;
      margin-left: -1px;
      margin-right: -1px;
    }

    .group-bookmark.active {
      background: @yellow-orange;
      color: #fff;
      border-color: darken(@yellow-orange, 15);
      text-shadow: 0 1px 0 rgba(0,0,0, .15);
    }

    .group-remove:hover {
      color: #fff;
      background: @red;
      border-color: @red-dark;
      text-shadow: 0 1px 0 rgba(0,0,0, .15);
    }

    .clearfix;

    .id-label {
      background: #fff;
      max-width: 200px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .resolve-dropdown {
    .group-resolve {
      padding-left: 6px !important;
      padding-right: 6px !important;
    }

    .dropdown-menu {
      width: 240px;
      top: 28px;
      left: -7px;

      li a {
        white-space: normal;
        padding: 3px 12px;
      }
    }
  }

  .severity {
    display: inline-block;
    position: relative;
    top: -7px;
    padding: 0 10px;
  }

  .nav-tabs {
    margin-top: 25px;
    margin-bottom: 0;
  }

  // loading indicator for the group needs extra fixing up.
  .assignee-selector {
    display: inline-block;

    .loading {
      margin: 0;

      .loading-indicator {
        left: auto!important;
        right: 0!important;
      }
    }
  }
}

.seen-by {
  margin-top: 15px;
  float: right;

  ul {
    .list-unstyled;

    li:first-child {
      background: @white-darker;
      color: darken(@gray, 10);
      border-radius: 2px;
      .square(28px);
      line-height: 26px;
      text-align: center;

      .icon-eye {
        opacity: .4;
        position: relative;
        top: 2px;
      }
    }

    li {
      float: left;
      margin-left: 5px;

      .avatar {
        display: inline-block;
        position: relative;
        .square(28px);
      }
    }
  }
}

.group-notifications, .group-privacy {
  float: left;
  margin: 22px 0 0 22px;
  font-size: 14px;

  a {
    color: @gray-dark;
    &:hover {
      color: @gray-darker;
    }
  }

  .icon {
    color: @gray-lighter;
    font-size: 16px;
    margin-right: 7px;
    position: relative;
    top: 1px;
  }

  &.on, &.on a:hover {
    .icon {
      color: @red;
      &:after {
        border-color: @red !important;
      }
    }
  }
}

.group-notifications {
  .icon {
    position: relative;
    &:before {
      content: "\e607";
    }
  }

  &.on, a:hover {
    .icon {
      color: @red;
    }
  }
}

.group-privacy {
  .icon {
    &:before {
      content: "\e007";
    }
  }

  &.on, a:hover {
    .icon {
      &:before {
        content: "\e008";
      }
    }
  }
}

// Group Overview

.group-overview {
  .bar-chart {
    figure a {
      height: 70px;
    }
  }
  .bar-chart-small {
    figure a {
      height: 40px;
    }
  }
}

.group-stats-column {
  float: right;
}

.group-stats {
  font-size: 14px;

  h6 {
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
    color: @gray-dark;

    > span {
      background: @white;
      padding-right: 7px;
    }

    &:before {
      display: block;
      position: absolute;
      content: "";
      border-top: 1px solid lighten(@trim, 3);
      left: 0;
      right: 0;
      top: 50%;
      z-index: -1;
    }

    &.first-seen, &.last-seen {
      &:before {
        right: 16px;
      }

      &:after {
        display: block;
        position: absolute;
        content: "";
        border-radius: 9px;
        .square(9px);
        right: 0;
        top: 3px;
      }

      &.first-seen:after {
        background-color: @pink;
      }

      &.last-seen:after {
        background-color: @green;
      }
    }
  }

  .bar-chart figure a {
    height: 50px;

    span {
      background: @purple-light;
      #gradient > .vertical(@purple-light, @purple);
    }

    &:hover span {
      background: @blue;
    }
  }

  dl {
    margin: 0 0 15px;

    dt {
      float: left;
      font-weight: normal;
      line-height: 1.8;
    }

    dd {
      text-align: right;
      line-height: 1.8;
    }
  }
}

/**
* Activity
* ============================================================================
*/

.activity-container {
  position: relative;
  margin-bottom: 0;

  .activity-notes {
    .nav {
      padding: 7px 20px 0;
      border-bottom: 1px solid lighten(@trim, 5);
      margin-bottom: 0;

      li {
        margin-right: 13px;

        &.markdown {
          margin-right: 3px;
        }
      }

      > li a {
        font-size: 15px;
        padding-bottom: 5px;
      }
    }
  }

  .activity-field {
    .transition(padding .2s ease-in-out);
    margin: -15px -20px 0;

    textarea, .note-preview {
      display: block;
      width: 100%;
      min-height: 140px;
      max-height: 1000px;
      max-width: 100%;
      margin: 0;
      border: 0;
      padding: 15px 20px 0;
      overflow: auto;

      .placeholder(@gray-lighter);

      &:focus {
        outline: 0;
      }
    }

    .note-preview {
      padding-bottom: 8px;
    }

    .activity-actions {
      height: 35px;
      line-height: 35px;
      padding-left: 15px;
      border-top: 1px solid @trim;
      .transition(opacity .2s ease-in-out);

      .btn {
        float: right;
        font-size: 13px;
        margin: -1px -1px -1px;
        border-radius: 0 0 3px;
      }
    }

    &.error {
      border: 1px solid @red;
      margin: -9px -16px;
      border-radius: 3px;

      &:before {
        display: block;
        content:"";
        width: 0;
        height: 0;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 7px solid @trim;
        position: absolute;
        left: -7px;
        top: 10px;
      }

      &:after {
        display: block;
        content:"";
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid #fff;
        position: absolute;
        left: -6px;
        top: 11px;
      }

      .activity-actions .btn {
        border-bottom-color: @red;
        border-right-color: @red;
      }
    }
  }

  > ul {
    .list-unstyled();
    margin-bottom: 0;

    > li {
      padding-bottom: 20px;
    }

    .activity-note {
      position: relative;

      &:hover {
        .editor-tools {
          display: inline !important;
        }
      }

      .avatar {
        position: absolute;
        left: 0;
        top: 0;
        .square(38px);
      }

      .activity-bubble {
        background: #fff;
        border: 1px solid @trim;
        margin-left: 50px;
        border-radius: 3px;
        font-size: 15px;
        line-height: 22px;
        padding: 15px 20px 0;
        position: relative;

        &:before {
          display: block;
          content:"";
          width: 0;
          height: 0;
          border-top: 7px solid transparent;
          border-bottom: 7px solid transparent;
          border-right: 7px solid @trim;
          position: absolute;
          left: -7px;
          top: 12px;
        }

        &:after {
          display: block;
          content:"";
          width: 0;
          height: 0;
          border-top: 6px solid transparent;
          border-bottom: 6px solid transparent;
          border-right: 6px solid #fff;
          position: absolute;
          left: -6px;
          top: 13px;
        }

        h1, h2, h3, h4, p, ul:not(.nav), ol, pre, hr {
          margin-bottom: 15px;
        }
        ul:not(.nav), ol {
          padding-left: 20px;
        }

        ul {
          list-style: disc;
        }

        p {
          a {
            word-wrap: break-word;
          }
        }

        .activity-author {
          font-weight: 600;
          margin-bottom: 5px;
          font-size: 13px;
          padding: 0 20px 8px;
          margin: -6px -20px 15px;
          border-bottom: 1px solid lighten(@trim, 5);

          small {
            font-weight: 300;
            margin-left: 10px;
          }

          .editor-tools {
            display: none;

            a {
              padding: 0 7px;
              border-left: 1px solid lighten(@trim, 5);
              color: @gray;
              font-weight: normal;
              &:hover { color: #666; }
              &:hover.danger { color: #d21c25; }
              &:first-child { margin-left: 7px; }
            }
          }
        }

        time {
          float: right;
          color: @gray-light;
          font-style: normal;
          font-size: 14px;
        }
      }
    }

    .activity-item {
      position: relative;
      font-size: 13px;
      color: @gray-dark;

      &:before {
        position: absolute;
        display: block;
        content: "";
        top: 11px;
        left: 0;
        right: 0;
        border-top: 1px solid @trim;
        z-index: -1;
        opacity: .6;
      }

      .avatar {
        width: 18px;
        height: 18px;
        margin-right: 4px;
        border-radius: 2px;
        position: relative;
        top: -2px;
        left: 0;
        z-index: 2;
        display: inline-block;

        &.sentry {
          color: @gray-darker;
          font-size: 16px;
          background: @white;
          top: -4px;
        }
      }

      time {
        color: @gray-light;
        margin-left: 5px;
        float: right;
        background: @white;
        padding-left: 8px;
      }

      .activity-author {
        font-weight: 600;
        color: @gray-darker;
      }

      .activity-item-content {
        display: inline;
        padding-right: 8px;
        background: @white;
      }
    }
  }

  .post-box {
    margin: -0 -0 5px;
  }
}

/**
* Event Toolbar
* ============================================================================
*/

.event-toolbar {
  margin: 0 0 15px;
  position: relative;
  z-index: 1;
  .clearfix;

  h4 {
    line-height: 1.3;
    margin: 0;
    font-size: 16px;
  }

  .icon-skip-forward, .icon-skip-back {
    position: relative;
    top: 1px;
  }

  time {
    color: @gray-dark;
  }

  .json-link {
    margin-left: 8px;
    padding-left: 8px;
    position: relative;

    &:before {
      display: block;
      position: absolute;
      content: "";
      left: 0;
      top: 2px;
      height: 14px;
      border-left: 1px solid @trim;
    }
  }
}

.sticky .event-toolbar {
  margin: 0 0 0 200px;
  padding-left: 20px;
  padding-right: 20px;
}

.sticky + div .event {
  margin-top: 82px;
}

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

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

.event-stats {
  padding-top: 84px;
  margin-top: -84px;
}

.event-stats {
  h6 {
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;

    > span {
      background: @white-dark;
      padding-right: 7px;
    }

    &:before {
      display: block;
      position: absolute;
      content: "";
      border-top: 1px solid lighten(@trim, 9);
      left: 0;
      right: 0;
      top: 50%;
      z-index: -1;
    }
  }
}

.sticky-sidebar {
  .event-stats {
    position: fixed;
    top: 84px;
    right: 20px;
  }
}

// User widget

.user-widget {
  position: relative;

  margin: 0 0 20px;

  .avatar {
    .square(48px);
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: 0 0 0 5px #fff;
  }

  .btn-group {
    margin-top: -15px;
  }

  .table {
    margin-bottom: 0;
  }
}

/**
* Traceback
* ============================================================================
*/

.traceback {
  list-style-type: none;
  padding-left: 0;
}

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

  span {
    font-weight: 600;
  }
}

.traceback > pre {
  color: @gray-dark;
  font-size: 12px;
  padding: 0;
  background: inherit;
  margin: -10px 0 20px;
}

.traceback ul {
  padding: 0;
}

.traceback > .traceback {
  padding-bottom: 5px;
}

.subtraceback {
  padding-left: 15px;
  padding-right: 15px;
  position: relative;

  > h3 {
    line-height: 26px;
  }

  > h3:before {
    display: block;
    content: "";
    width: 20px;
    height: 0;
    border-bottom: 1px solid #E9EBEC;
    position: absolute;
    left: -15px;
    top: 11px;
  }
}

.raw-toggle {
  input {
    margin-right: 6px;
    position: relative;
    top: -1px;
  }
}

/**
* Frame
* ============================================================================
*/

.exc-message {
  margin: 15px 0;
  word-wrap: break-word;
  white-space: pre-wrap;
  color: @gray-darker;
  padding: 0;
  background: none;
}

.frames-omitted,
.exc-omitted {
  color: @gray-dark;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid @red;
  border-right: 1px solid lighten(@red, 30%);
  background: lighten(@red, 35%);
  padding: 10px 20px;
  margin-bottom: 10px !important;
  margin-left: -21px;
  margin-right: -21px;
}

.frame {
  list-style-type: none;
  position: relative;
  margin-bottom: 0;

  &.frame-errors {}

  &.system-frame {}

  &.leads-to-app {}

  h3 {
    font-size: 22px;
  }

  p {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;

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

  .original-src {
    padding-left: 3px;
    font-size: 13px;
    position: relative;
    top: 1px;
  }

  .icon-open {
    font-size: 12px;
    margin-right: 3px;
    margin-left: 3px;
    position: relative;
    top: 1px;
  }

  .icon-question {
    font-size: 15px;
    position: relative;
    top: 1px;
  }

  .in-at {
    opacity: .8;
    margin: 0 2px;
  }

  .blame {
    color: lighten(@gray, 5);

    a {
      color: @gray;
    }

    .icon-mark-github {
      position: relative;
      top: 1px;
    }
  }

  .tooltip-inner {
    word-wrap: break-word;
    text-align: left;
    max-width: 300px;
  }

  .divider {
    border-left: 1px solid @trim;
    display: inline-block;
    width: 1px;
    height: 10px;
    margin: 0 6px;
    position: relative;
    top: 1px;
  }

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

  .context {
    margin-top: -5px;
    margin-bottom: 15px;

    table.key-value {
      margin-top: 20px;
    }
  }

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

  > div > table.key-value {
    margin-bottom: 5px;
    > tbody > tr > th {
      color: @gray-dark;
      text-align: right;
      padding-right: 12px !important;
    }
  }

  .btn-toggle {
    display: block;
    float: right;
    .square(18px);
    padding: 0;
    line-height: 18px;
    font-size: 9px;
    text-align: center;
  }

  .expand-button:hover {
    cursor: pointer;
  }

  &.expanded {

    > p {
      color: #000;
    }

    .expandable {
      height: auto;
    }
  }

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

    .toggle-expand .btn {
      margin-bottom: -13px;
    }
  }
}

.expandable {
  height: 0;
  overflow: hidden;
  position: relative;

  .icon-plus {
    position: absolute;
    left: 8px;
    top: 6px;
    opacity: .25;
    .transition(.1s opacity linear);
  }

  &.key-value {
    display: none;
  }

  .ws {
    display: none;
  }

  &:hover {
    .icon-plus {
      opacity: .5;
    }
  }
}

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

  .ws {
    display: inline;
  }
}

ol.context {
  margin: 0;
  list-style-position: inside;
  border-radius: 3px;
  padding-left: 0;

  .key-value {
    display: none;

    pre {
      overflow: auto;
    }
  }

  > li {
    cursor: pointer;
    padding-left: 15px;
    font-family: @font-family-code;
    color: #222;
    background-color: #f6f7f8;
    line-height: 24px;
    font-size: 12px;
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  > li.active {
    background-color: #f6f7f8;
    min-height: 24px;
    list-style-type: none;
    border-radius: 2px;

    pre {
      color: @gray-dark;
    }
  }

  > li:first-child {
      border-radius: 2px 2px 0 0;
  }

  > li:last-of-type {
      border-radius: 0 0 2px 2px;
  }

  li.closed {
    border-radius: 2px;
  }

  &.expanded {
    .key-value {
      display: table;
    }

    > li.active {
      background-color: @purple;
      color: #fff;
      list-style-type: inherit;
      border-radius: 0;
    }
  }
}

ol.context-line {
  > li {
    > span {
      float: right;
    }
  }
}

.expanded {
  ol.context {
    > li {
      min-height: 22px;
    }
    > li.active {
      background-color: @blue;
      color: #fff;
    }
  }
}

.stacktrace-table {

  .trace-col {
    display: inline-block;
    padding: 0 5px;
  }

  .package {
    width: 15%;
    font-size: 13px;
    font-weight: bold;
  }
  .address {
    width: 10%;
    font-family: @font-family-code;
    font-size: 11px;
    color: @gray-dark;
    letter-spacing: -0.25px;
  }
  .symbol {
    width: 75%;
    code {
      font-size: 12px;
      background: transparent;
      color: @blue-dark;
    }
    span.offset {
      font-size: 12px;
      font-weight: bold;
    }
    span.filename {
      &:before {
        content: "(";
      }
      &:after {
        content: ")";
      }
      font-size: 12px;
      color: @purple;
      padding-left: 10px;
    }
  }
}

.system-frame .stacktrace-table {
  background-color: #f6f7f8;
}

.leads-to-app .stacktrace-table {
  background: lighten(@blue-light, 28);
}

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

  &#full-message {
    background: none;
    padding: 0;
  }
}

&.expanded div.commands,
div.commands:hover {
  .opacity(100);
  a {
    color: @state-info-text;
  }
}

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;
    }
  }
}

// Request

.box-clippable {
  position: relative;
  margin-left: -20px;
  margin-right: -20px;
  padding: 16px 20px 1px;
  border-top: 1px solid #f1f2f3;
  .transition(all 5s ease-in-out);
  max-height: 50000px;

  &:first-of-type {
    margin-top: -20px;
    border: 0;
  }

  h5 {
    margin-bottom: 15px;
  }

  .clip-fade {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 0 0;
    #gradient > .vertical(rgba(255,255,255, .15), rgba(255,255,255, 1));
    text-align: center;
    border-bottom: 15px solid #fff;
  }

  &.clipped {
    .clip-fade {
      display: block;
    }

    max-height: 200px;
    overflow: hidden;
  }

}

.box.errors {
  border-color: #E7C0BC;
  background: #FDF6F5;
  color: rgba(0,0,0, .70);
  font-size: 15px;

  .box-content {
    padding: 10px 20px;

    a {
      font-weight: bold;
      color: rgba(0,0,0, .70);
      &:hover {
        color: rgba(0,0,0, .90);
      }
    }

    p {
      margin: 0;
      line-height: 1.5;

      .btn {
        margin-left: 5px;
      }
    }

    ul {
      border-top: 1px solid #EFE0E1;
      margin: 10px 0 0;
      padding: 10px 0 0 20px;

      li {
        margin-bottom: 5px;
      }
    }

    pre {
      background: #F9EDED;
      color: #381618;
      margin: 5px 0 0;
    }
  }
}


/* 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; }

pre.val, span.val {
  span {
    display: inline;
  }
}

.val-string {
  color: darken(@purple, 10);
  border-radius: 3px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.val-string-multiline {
  background: white;
  display: block!important;
  margin: 0px 0px 0px 15px;
  overflow: auto;
}

.val-stripped {
  color: darken(@red, 10);
  background: transparent;
}

.val-repr {
  color: darken(@blue, 10);
}

.val-number {
  color: darken(@pink, 10);
}

.val-bool, .val-null {
  color: darken(@blue, 10);
  font-weight: bold;
}

.val-dict {
  display: block;

  .val-dict-items {
    display: block;
    padding: 0 0 0 15px;

    .val-dict-pair {
      display: block;

    }
  }

  .val-dict-key, .val-dict-key .val-string {
    color: darken(@red, 5);
    background: transparent;
    border-radius: none;
  }
}

.val-array {
  display: block;

  .val-array-items {
    display: block;
    padding: 0 0 0 15px;

    .val-array-item {
      display: block;
    }
  }
}

.val-toggle {
  > a.val-toggle-link:before {
    content: "+";
  }

  > .val-array-items, > .val-dict-items {
    display: none;
  }

  &.val-toggle-open {
    > a.val-toggle-link:before {
      content: "-";
    }

    > .val-array-items, > .val-dict-items {
      display: block;
    }
  }

  a.val-toggle-link {
    background: @link-color;
    border-radius: 2px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    line-height: 11px;
    text-align: center;
    height: 11px;
    width: 11px;
    display: inline-block;

    &:hover {
      background: @link-color-hover;
    }
  }

  &.val-toggle-open > a.val-toggle-link {
    background: @gray-light;
  }

  &.val-toggle-open > a.val-toggle-link:hover {
    background: @gray;
  }
}

/**
* Shared Group Detail
* ============================================================================
*/

.shared-group {
  .container {
    max-width: 900px;
  }
  header .icon-sentry-logo {
    &:before {
      content: "\e61a";
    }
  }
}

/**
* Breadcrumbs / Timeline
* ============================================================================
*/

.breadcrumb-box {
  .box-content {
    padding: 0 !important;
  }
}

ul.crumbs {
  .list-unstyled;
  margin: 0 -1px -1px;

  li {
    margin: 0;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid lighten(@trim, 4);
    padding: 6px 20px 3px 60px;
    position: relative;

    &:before {
      display: block;
      content: "";
      width: 2px;
      top: 0;
      bottom: 0;
      left: 30px;
      background: #E7EAEF;
      position: absolute;
    }

    &:last-child {
      border-bottom: 0;
      border-radius: 0 0 2px 2px;
    }

    h5 {
      font-size: 15px;
      margin-bottom: 3px;
      line-height: 24px;
      text-transform: capitalize;
    }

    p {
      margin: 0;
      padding: 0;
    }

    .message-text {
      font-size: 15px;
      padding-top: 2px;
    }

    .icon-container {
      display: block;
      .square(26px);
      background: #fff;
      border: 1px solid @gray;
      box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
      border-radius: 32px;
      position: absolute;
      top: 5px;
      left: 18px;
      z-index: 1;

      .icon {
        font-size: 14px;
        position: absolute;
        left: 5px;
        top: 4px;
        font-family: 'sentry-simple';
        speak: none;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;

        /* Better Font Rendering =========== */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }
    }

    time, span.dt {
      font-size: 12px;
      color: @gray-dark;
      position: absolute;
      right: 20px
    }

    em {
      font-style: normal;
    }

    span.crumb-category {
      font-size: 95%;
      font-weight: bold;
      text-transform: none;
      .truncate;
      padding-right: 10px;
      color: @gray-darker;
    }

    span.timing {
      font-size: 90%;
      padding-left: 6px;
      font-weight: normal;
      color: @gray;
    }

    span.crumb-level {
      background: @gray;
      border-radius: 2px;
      font-size: 11px;
      font-weight: bold;
      color: white;
      padding: 2px 4px;
    }

    * + span.crumb-level {
      margin-left: 6px;
    }

    .table.key-value {
      margin-bottom: 0;
      background: none;

      thead td:first-child {
        font-weight: bold;
      }

      td {
        padding: 2px 0 !important;
        font-weight: normal;
      }

      td.value {
        padding: 2px 60px 2px 0 !important;
      }

      .key {
        width: 110px;
        max-width: 110px;
        color: @gray-dark;
        line-height: 1.6 !important;
      }

      pre {
        display: inline-block;
        padding: 0;
        margin-top: 1px;
        background: none;
      }
    }

    div.summary {
      max-height: 42px;
      overflow: hidden;

      &.can-expand {
        cursor: pointer;
        position: relative;

        &:after {
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          content: " ";
          display: block;
          width: 100%;
          height: 15px;
          #gradient > .vertical(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
          z-index: 1;
        }

        &:hover {
          &:before {
            position: absolute;
            bottom: 4px;
            right: 0;
            font-family: 'sentry-simple';
            content: "\e617";
            background: @white-dark;
            border: 1px solid darken(@trim, 5);
            border-radius: 3px;
            box-shadow: 0 1px 3px rgba(0,0,0, .1);
            z-index: 2;
            padding: 0 5px;
            margin-left: -14px;
          }
        }
      }

      &.expanded {
        max-height: none;
        &:after, &:before {
          display: none;
        }
      }

      pre {
        display: inline-block;
      }
    }

    &.crumbs-collapsed {
      background: @white-dark;
      margin: 0 1px;
      box-shadow: inset 0 -1px 2px rgba(0,0,0, .03);
      min-height: 36px;

      &:before {
        left: 29px;
      }

      .icon-container {
        left: 17px;
      }

      .icon {
        color: @gray;
        top: 6px;
        left: 5.5px;
      }

      a {
        color: @gray-dark;
        display: block;
        font-size: 15px;
        padding: 6px 0 5px;
        margin: -5px 0;

        &:hover {
          color: @gray-darkest;
        }
      }
    }

    .query {
      display: inline;

      .keyword {
        font-weight: 600;
      }

      span {
        display: inline;
      }
      span.param {
        color: @gray-darker;
        font-weight: bold;
        padding: 2px 5px;
        margin: -2px -3px;
        background: @gray-lightest;
        border-radius: 2px;
      }
    }

    &.crumb-default {
      padding-top: 7px;
      clear: both;

      .icon {
        color: @gray-dark;
        top: 5px;
        left: 6px;

        &:before {
          content: "\e909";
        }
      }

      span.logger {
        padding-left: 8px;
        color: @gray;
      }
    }

    &.crumb-navigation {
      .icon-container {
        border-color: @blue-dark;

        .icon {
          top: 5px;
          left: 5.5px;
          color: @blue;
          &:before {content: "\e90b";}
        }
      }
    }

    &.crumb-http {
      .icon-container {
        border-color: @green-dark;

        .icon {
          top: 5px;
          left: 5.5px;
          color: @green;
          &:before {
            content: "\e908";
          }
        }
      }
    }

    &.crumb-user {
      .icon-container {
        border-color: @purple-dark;
      }

      .icon {
        color: @purple;
        left: 5.5px;
      }

      .icon:before {
        content: "\e608";
      }
    }

    &.crumb-warning {
      .crumb-level {
        background: @yellow-orange;
      }

      .icon-container {
        border-color: @yellow-orange-dark;

        .icon {
          top: 4px;
          left: 5.5px;
          color: @yellow-orange;
          &:before {
            content: "\e906";
          }
        }
      }
    }

    &.crumb-debug {
      .crumb-level {
        background: @blue;
      }
    }

    &.crumb-error, &.crumb-critical {
      background: #fffcfb;
      border: 1px solid #E7C0BC;
      margin: -1px 0;

      .crumb-level {
        background: @red;
      }

      .icon {
        color: @red;
        top: 4px;
        left: 5.5px;
        &:before {
          content: "\e906";
        }
      }

      h5 {
        color: #000 !important;
      }

      td, pre, time, .dt {
        color: #504140 !important;
      }

      .icon-container {
        border-color: @red-dark;
      }

      &:before {
        background: #F1D8D5;
      }

      &:last-child {
        &:before {
           bottom: auto;
           height: 20px;
        }
      }
    }
  }
}


/**
* Responsive medium screen
* ============================================================================
*/

@media(max-width:991px) {
  .group-stats-column {
    float: none;
  }
}

/**
* Responsive small screen
* ============================================================================
*/

@media(max-width:767px) {
  .group-detail {

    h3 {
      white-space: normal;
      font-size: 20px;
      line-height: 1.1;
    }

    .meta {
      font-size: 13px;
    }

    .assignee-selector {
      .dropdown-menu {
        left: 0 !important;
        right: auto !important;

        &:before, &:after {
          display: none;
        }
      }
    }

    .assigned-to, .is-assigned {
      text-align: left;
    }

    .count {
      font-size: 18px;
      text-align: left;
    }

    .stats {
      margin: 15px 0;

      .row {
        border: 1px solid #E9EBEC;
        border-radius: 4px;
        margin: 0;
        padding: 10px 5px;
      }
    }

    .is-assigned {
      padding-top: 0;
    }
  }

  .event-toolbar {
    display: none;
  }

  .context {
    overflow: auto;

    li {
      width: 800px;
    }
  }

  .group-notifications, .group-privacy {
    display: none;
  }
}
