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

.group-detail {
  position: relative;
  margin: 0 0 20px;
  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;
      font-weight: 400;
      color: @70;
      font-size: 90%;
    }
  }

  .short-id {
    font-size: 20px !important;
    margin-top: 11px;
  }

  .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: 22px;
    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: 20px;
    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;
      }
    }
  }

  &:before {
    position: absolute;
    display: block;
    content: "";
    bottom: -1px;
    left: -40px;
    right: -40px;
    height: 1px;
    background: @trim;
  }
}

.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-stats-column {
  float: right;
}

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

  .env-stats {
    > h6 {
      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;
      }
    }

    .env-content {
      margin-bottom: 20px;

      h6 {
        font-size: 11px;
        text-transform: uppercase;
        color: #888;

        small {
          float: right;
          font-size: 11px;
          color: @gray-light;
        }

        &:before {
          display: none;
        }
      }

      dl:last-child {
        margin-bottom: 5px;
      }
    }
  }

  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: 8px;
        .square(8px);
        right: 0;
        top: 0;
      }

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

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

  .seen-info .tip {
    border-bottom: 1px dotted @trim;
  }

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

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

      &.inactive {
        background: @gray-lightest;
        #gradient > .vertical(@gray-lightest, @gray-lightest);
      }

      &.environment {
        background: @purple-lightest;
        #gradient > .vertical(@purple-lightest, @purple-lightest);
      }
    }

    &:hover span {
      background: @purple-dark;
      #gradient > .vertical(@purple, @purple-dark);

      &.inactive {
        background: @gray-lighter;
        #gradient > .vertical(@gray-lighter, @gray-lighter);
      }

      &.environment {
        background: @purple;
        #gradient > .vertical(@purple, @purple);
      }
    }
  }

  dl {
    margin: 0 0 15px;

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

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

  .btn-subscribe {
    padding: 4px 10px;

    .icon-signal {
      margin-right: 5px;
    }

    &.subscribed {
      .icon-signal {
        color: @blue;
      }
    }
  }

  .help-block {
    font-size: 100%;
    line-height: 1.3;
    margin-bottom: 15px;
  }
}

/**
* 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, blockquote {
          margin-bottom: 15px;
        }
        ul:not(.nav), ol {
          padding-left: 20px;
        }

        ul {
          list-style: disc;
        }

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

        blockquote {
          font-size: 15px;
          background: @white-darker;

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

        .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 Details
* ============================================================================
*/

.event-details-container {
  display: flex;
  margin: -20px -40px;

  .primary {
    flex: 1;
    // TODO(dcramer): whatever flex is doing here is causing this to extend to
    // whatever it pleases (e.g. 4k pixels on my 1280 screen)
    max-width: ~"calc(100% - 365px)";

    .issue-status {
      background: @white-dark;

      .icon {
        position: absolute;
        font-size: 16px;
        top: 18px;
      }

      .icon-checkmark {
        color: @green;
      }

      .icon-soundoff {
        color: @red;
      }

      .box {
        padding-top: 15px;
        position: relative;
        background: transparent;
        border-top: 1px solid @trim;
        border-bottom: 1px solid @trim;
        font-size: 14px;

        p {
          margin: 0;
          padding-bottom: 13px;
          padding-left: 26px;
        }
      }

      &+.entries .box:first-child{
        box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.03);
        border-top: 0;
      }
    }

    .box.alert-block {
      padding-top: 15px;
      padding-bottom: 15px;

      .icon-exclamation {
        font-size: 18px;
        color: desaturate(darken(@alert-info-border-color, 15), 20%);
        margin-right: 8px;
        position: relative;
        top: 2px;
      }

      &.alert-info, &.alert-info + .box, &.alert-info + .context-summary {
        border-top: 1px solid @alert-info-border-color;
      }
      &.alert-success, &.alert-success + .box, &.alert-success + .context-summary {
        border-top: 1px solid @alert-success-border-color;
      }
      &.alert-error, &.alert-error + .box, &.alert-error + .context-summary {
        border-top: 1px solid @alert-danger-border-color;
      }
    }

    .box, .user-report {
      border-radius: 0;
      box-shadow: none;
      padding: 20px 30px 0 40px;
      border: 0;
      border-top: 1px solid lighten(@trim, 4);
      margin: 0;

      .box-header {
        background: none;
        border-bottom: none;
        padding: 0;

        h3 {
          font-size: 14px;
          text-transform: uppercase;
          margin-bottom: 20px;
          color: @gray-light;

          small, .short-value, .full-value, .host {
            text-transform: none;
          }
        }
      }

      .box-content.with-padding {
        padding: 0;
      }
    }

    .user-report {
      padding-bottom: 0;
    }
  }

  .secondary {
    width: 365px;
    padding: 30px 40px 30px 30px;
    border-left: 1px solid @trim;
  }
}

/*
* Context callout
* ============================================================================
*/

.context-summary {
  display: flex;
  padding: 25px 30px 25px 40px;
  border-top: 1px solid lighten(@trim, 4);

  .context-item {
    flex: 1;
    padding-top: 4px;
    padding-left: 64px;
    position: relative;
    min-height: 48px;
    max-width: 33.3%;
    padding-right: 15px;

    .context-item-icon {
      position: absolute;
      left: 0;
      top: 0;
      .square(48px);
      background-repeat: no-repeat;
      background-position: center;
      background-image: url(../images/icons/context/unknown.svg);
      background-size: 48px 48px;
    }

    &:first-child {
      border: 0;
    }

    h3, p {
      margin: 0 0 8px;
    }

    h3 {
      .truncate;
      font-size: 16px;
      line-height: 1;
    }

    p {
      font-size: 13px;
      line-height: 1.4;

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

    &.ipad .context-item-icon {
      background-image: url(../images/icons/context/ipad.svg);
    }

    &.ipod, &.iphone {
      .context-item-icon {
        background-image: url(../images/icons/context/iphone.svg);
      }
    }

    &.android-phone {
      .context-item-icon {
        background-image: url(../images/icons/context/android-phone.svg);
      }
    }

    &.android-tablet {
      .context-item-icon {
        background-image: url(../images/icons/context/android-tablet.svg);
      }
    }

    &.ios, &.macos, &.tvos, &.mac-os-x, &.mac {
      .context-item-icon {
        background-image: url(../images/icons/context/ios.svg);
        top: -2px;
      }
    }

    &.android .context-item-icon {
      background-image: url(../images/icons/context/android.svg);
      top: -1px;
    }

    &.windows .context-item-icon {
      background-image: url(../images/icons/context/windows.png);
    }

    &.linux .context-item-icon {
      background-image: url(../images/icons/context/linux.png);
    }

    &.ubuntu .context-item-icon {
      background-image: url(../images/icons/context/ubuntu.png);
    }

    &.firefox .context-item-icon {
      background-image: url(../images/icons/context/firefox.png);
    }

    &.chrome, &.chrome-mobile, &.chrome-mobile-ios {
      .context-item-icon {
        background-image: url(../images/icons/context/chrome.png);
      }
    }

    &.chromium .context-item-icon {
      background-image: url(../images/icons/context/chromium.png);
    }

    &.edge .context-item-icon {
      background-image: url(../images/icons/context/edge.png);
    }

    &.internet-explorer .context-item-icon {
      background-image: url(../images/icons/context/internet-explorer.png);
    }

    &.opera .context-item-icon {
      background-image: url(../images/icons/context/opera.png);
    }

    &.playstation .context-item-icon {
      background-image: url(../images/icons/context/playstation.png);
    }
  }
}

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

.event-toolbar {
  position: relative;
  margin-bottom: -5px;
  z-index: 1;
  .clearfix;
  padding: 20px 30px 20px 40px;

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

    .event-id {
      font-weight: normal;
    }
  }

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

  time {
    color: @60;
  }

  .icon-alert {
    margin-left: 5px;
    color: @yellow-orange;
    font-size: 14px;
  }

  .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;
    }
  }
  .tooltip {
    .tooltip-inner {
      max-width: 250px;
    }
  }
}

.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 {
  position: relative;
  margin-bottom: 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;
  border: 1px solid @trim-dark;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0, .04);
  margin-bottom: 20px;
}

// TODO(dcramer): we probably shouldnt overload these
pre.traceback {
  margin: 0 0 20px;
}

div.traceback > ul {
  padding: 0;
  margin-bottom: 0;

  li {
    &:first-child {
      border-top: none;

      .title {
        border-top: none;
        border-top-right-radius: 3px;
        border-top-left-radius: 3px;
      }
    }

    &:last-child .title {
      border-bottom-right-radius: 3px;
      border-bottom-left-radius: 3px;
    }
  }
}

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

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

.exc-message {
  margin: 15px 0 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;
}

.exception {
  border-bottom: 1px solid @trim;
  margin: 0 0 20px;

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

  .traceback {
    margin-top: 15px;
  }
}

.traceback {
  &.no-exception .frame:first-child {
    border-top: 0;
  }

  .frame {
    list-style-type: none;
    position: relative;
    margin: 0;
    border-top: 1px solid @trim;

    &.frame-errors {}

    &.system-frame { }

    h3 {
      font-size: 22px;
    }

    &.is-expandable .title {
      cursor: pointer;
      &:hover {
        background: lighten(@blue-light, 34);
      }
    }

    &.system-frame.is-expandable .title:hover {
      background: darken(@white-dark, 5);
    }

    .title {
      padding: 8px 20px;
      font-size: 13px;
      margin: 0;
      // line-height: 1.4;
      line-height: 16px;
      background: lighten(@blue-light, 33);

      code {
        font-family: inherit;
        font-weight: bold;
      }

      .informal {
        font-style: italic;
      }

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

    &.system-frame .title {
      background: @white-dark;
    }

    &.missing-frame .title {
      background: lighten(@red-light, 30);
    }

    .title.as-table {
      display: flex;
      align-items: baseline;
      width: 100%;

      > span {
        display: block;
        padding: 0 5px;
      }

      .package {
        width: 15%;
        font-size: 13px;
        font-weight: bold;
        .truncate;
        flex-grow: 0;
        flex-shrink: 0;
      }

      .address {
        font-family: @font-family-code;
        font-size: 11px;
        color: @gray-dark;
        letter-spacing: -0.25px;
        width: 85px;
        flex-grow: 0;
        flex-shrink: 0;
      }

      .symbol {
        word-break: break-word;
        flex: 1;

        code {
          background: transparent;
          color: @blue-dark;
          padding-right: 5px;
        }

        span.offset {
          font-weight: bold;
          padding-right: 10px;
        }

        span.filename {
          color: @purple;

          &:before {
            content: "(";
          }
          &:after {
            content: ")";
          }
        }
      }
    }

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

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

    .in-at {
      opacity: .6;
      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: inherit;
      font-size: inherit;
      color: inherit;
    }

    .empty-context {
      padding: 20px;
      color: @gray;

      p {
        display: inline-block;
        margin-bottom: 0;
      }

      .icon {
        opacity: .45;
        margin-right: 10px;
        font-size: 0.85em;
      }
    }

    .context {
      display: none;
      background: #fff;
      margin: 0;
      padding: 8px 0;

      > li {
        padding: 0 20px;
        background: inherit;
      }

      table.key-value {
        border-top: 1px solid @trim;
        padding: 0;
        margin: 0 0 -8px;

        td {
          border-bottom: 1px solid @trim !important;

          &.key {
            width: 125px;
            max-width: 125px;
          }

          &.value pre {
            background: inherit;
          }
        }

        tr:last-child {
          td {
            border-bottom: 0 !important;
          }
        }
      }

      &.expanded {
        display: block;
      }
    }

    .box-clippable {
      margin-left: 0;
      margin-right: 0;
      &:first-of-type {
        margin-top: 0;
      }
    }

    .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(16px);
      padding: 0;
      margin-left: 10px;
      line-height: 16px;
      font-size: 9px;
      text-align: center;
    }

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

    &.expanded {
      .expandable {
        height: auto;
      }
    }

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

      .toggle-expand .btn {
        margin-bottom: -13px;
      }
    }
  }
  .repeated-frames{
    border-radius: 50px;
    padding: 1px 3px;
    margin-left: 1em;
    border-width: thin;
    border-style: solid;
    border-color: @yellow-orange-dark;
    color: @yellow-orange-dark;
    background-color: @white-dark;
    span {
      vertical-align: middle;
    }
  }

  &.in-app-traceback .frame.leads-to-app {
    .leads-to-app-hint {
      display: none;
    }

    &.collapsed {
      .title {
        opacity: 0.7;
        font-size: 12px;
        padding: 4px 20px 4px 20px;
        background: lighten(@blue-light, 30);
        &.is-expandable:hover {
          opacity: 1.0;
        }
        .package {
          width: auto;
        }
      }
      .in-at-line, .lineno, .btn-toggle, .address {
        display: none;
      }
      .leads-to-app-hint { display: inline; }
    }
  }

  &.full-traceback {
    .leads-to-app-hint {
      display: none!important;
    }
  }

  .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 {
      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;
      min-height: 24px;
    }

    > li.active {
      background-color: #f6f7f8;
      list-style-type: none;
      border-radius: 2px;

      &:first-child:last-child {
        background-color: inherit;
        color: inherit;
        border-radius: 0;
      }

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

.exception-mechanism {
  margin: 15px 0;
}

#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

.request {
  .path {
    font-weight: normal;
    float: left;

    strong {
      margin-right: 4px;
    }
  }
}

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

  &.revealed {
    /* For "Show More" animation */
    max-height: 50000px;
  }

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

  h5 {
    margin-bottom: 15px;
  }

  .clip-fade {
    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 {
    max-height: 200px;
    overflow: hidden;
  }
}

.box.errors {
  border-top: 1px solid @alert-danger-border-color !important;
  background: @alert-danger-bg-color;
  margin-top: -1px !important;
  padding-top: 15px !important;
  font-size: 14px;
  position: relative;
  .clearfix;

  .icon-alert {
    position: absolute;
    top: 17px;
    font-size: 16px;
    color: @red;
  }

  .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 0 13px;
      line-height: 1.5;
      padding-left: 26px;

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

    ul {
      border-top: 1px solid lighten(@alert-danger-border-color, 4);
      margin: 10px 0 0;
      padding: 10px 0 10px 20px;

      li {
        margin-bottom: 5px;
        word-break: break-word;
      }
    }

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

  &+ .box, &+ .context-summary {
    border-top: 1px solid lighten(@alert-danger-border-color, 4);
  }
}


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

/**
* Exceptions and Threads
* ============================================================================
*/
.box .thread {
  .exception {
    margin-top: 10px;
  }
  .traceback.no-exception {
    margin-top: 0;
  }
}

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

.shared-group {
  padding: 40px 0;
  background: none;

  .app > .container {
    max-width: 960px;

    > .box {
      > .box-header {
        padding: 15px 30px 10px;

        a {
          font-size: 20px;

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

        .back-to, .pull-right a {
          font-size: 16px;
        }

        .back-to {
          border-left: 1px solid @trim;
          padding: 2px 10px;
          display: inline-block;
          margin-left: 7px;
          position: relative;
          top: -3px;
        }
      }
    }
  }

  .box-content {

  }

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

  .group-detail {
    padding: 0 30px;
    border-bottom: 1px solid darken(@trim, 5);
    box-shadow: 0 2px 0 rgba(0,0,0, .03);

    &:before {
      display: none;
    }

    .details {
      max-width: 960px;
      margin: 0 auto;
      padding: 20px 0 0;
    }
  }

  .event-details-container {
    display: block;
    margin: 0;

    .primary {
      max-width: 100%;

      .box {
        padding: 0 30px;
        &:first-child {
          border-top: 0;
        }
      }

      .box-header, .box-content {
        max-width: 960px;
        margin: 0 auto;
      }

      .box-header {
        margin-top: 15px;
      }

      .exception {
        padding: 20px 0;
        margin: 0;

        &:first-child {
          padding-top: 0;
        }
      }

      .traceback.no-exception {
        margin-bottom: 25px;
        margin-top: -5px;
      }
    }
  }

  footer {
    margin-top: 0;

    .container {
      padding-left: 30px;
      padding-right: 30px;
    }
  }
}

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

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

  h3 {
    display: inline;
    float: left;
  }

  .breadcrumb-filter {
    float: right;
    position: relative;

    input {
      width:  100%;
      height: 28px;
      display: inline;
      padding: 8px 26px;
    }

    .icon-search {
      position: absolute;
      color: #9ba5b5;
      font-size: 14px;
      top: 7px;
      left: 8px;
    }

    .search-clear-form {
      position: absolute;
      color: #c7cdd5;
      top: 6px;
      right: 6px;
    }
  }
}

ul.crumbs {
  .list-unstyled;
  border: 1px solid @trim-dark;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0, .04);

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

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

    &:first-child {
      border-top-right-radius: 2px;
      border-top-left-radius: 2px;
    }

    &:last-child {
      border-bottom: 0;
      border-bottom-right-radius: 2px;
      border-bottom-left-radius: 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-light;
      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;
      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 -1px;

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

    &.crumb-empty {
      text-align: center;
      padding: 14px 0;

      &:before {
        display: none;
      }

      .icon {
        opacity: .4;
        margin-right: 4px;
        vertical-align: text-bottom;
      }
    }

    &.crumb-last {
      border-radius: 0 0 3px 3px;

      &: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.2;
    }

    .event-message, .event-meta {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      margin-bottom: 15px;
    }

    .meta {
      font-size: 13px;
    }

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

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

    .short-id-box {
      text-align: left;
    }

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

    .seen-by {
      display: none;
    }
  }

  // Event detail columns

  .event-details-container {
    flex-direction: column;
    margin: 0;

    .primary {
      order: 2;
      max-width: 100%;

      .box {
        padding: 15px 0;

        .box-header {
          h3 {
            margin: 0 0 10px;

            small {
              margin-left: 0 !important;
              display: block;
            }
          }

          .permalink {
            display: none;
          }
        }
      }

      .user-report {
        padding: 15px 0;
      }

      .exception {
        margin: 0;
        padding: 15px 0;
      }

      .traceback {
        &.no-exception {
          margin: 0;
        }

        .btn-toggle {
          width: 17px;
        }
      }
    }

    .secondary {
      order: 1;
      width: auto;
      padding: 0;
      border: 0;
      margin-bottom: 20px;
    }
  }

  // Context callout

  .context-summary {
    flex-direction: column;
    margin-top: 0;
    padding: 0;

    .context-item {
      border: 0;
      border-top: 1px solid @trim;
      max-width: 100%;
      padding-top: 14px;
      padding-bottom: 14px;
      min-height: 67px;

      .context-item-icon {
        top: 9px;
      }
    }
  }

  .event-toolbar {
    display: none;
  }

  .context {
    overflow: auto;

    li {
      width: 800px;
    }
  }

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