.grid .row:hover {
  background-color: #f7f7f7;
}

.discussions .grid .column .description {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--table-header-font-color);
}

.grid .column.right.aligned {
  padding-right: unset;
}

.grid .column > .octicon,
.grid .column > .fas {
  font-size: 2rem;
}

.grid .one.column img {
  height: 33px;
  margin: unset;
}

.grid .one.column img:not(.diff) {
  filter: invert(53%) sepia(26%) saturate(0%) hue-rotate(176deg) brightness(83%) contrast(92%);
}

.grid .column img+.content {
  padding: 0;
}

.more-info {
  display: flex !important;
  align-items: center;
  justify-content: space-evenly;
}

.more-info > * {
  flex: 1 1 0px;
}

.more-info > .posters {
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-info > .posters > .avatar {
  position: relative;
  width: 20px;
  -webkit-transition: .2s ease;
  transition: .2s ease;
}

.more-info > .posters > .avatar > img {
  width: 30px;
  border: 2px solid white;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.2);
  border-radius: 50%;
}

.more-info > .posters:hover > .avatar {
  width: 30px;
}

.more-info > .posters > .badge {
  display: inline-block;
  min-width: 1em; /* em unit */
  padding: .15em; /* em unit */
  border-radius: 50%;
  text-align: center;
  background: #575555;
  color: #fefefe;
  z-index: 1;
  width: 30px;
  height: 30px;
}

.more-info > .posters > .avatar:nth-child( 1 ) { z-index: 4 ; }
.more-info > .posters > .avatar:nth-child( 2 ) { z-index: 3 ; }
.more-info > .posters > .avatar:nth-child( 3 ) { z-index: 2 ; }

.discussions-comments.comments {
  min-width: 100%;
}

.discussions-comments.comments .comment .content .header {
  font-weight: normal;
  padding: auto 15px;
  position: relative;
  color: #767676;
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discussions-comments.comments .comment .content .header > .text.grey {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discussions-comments.comments .comment .content .header > div.text > a:first-of-type {
  font-weight: 600;
}

.discussions-comments.comments .comment .content .header > .action-options {
  cursor: pointer;
}

.discussions-comments.comments .comment .content .header .popup {
  max-width: unset;
  width: 150px !important;
  cursor: default;
}

.discussions-comments.comments .comment .content .header .popup .item {
  color: #0d71bb !important;
}

.discussions-comments.comments .comment {
  display: flex;
  width: 100%;
}

.discussions-comments.comments div:target > .content,
.target {
  box-shadow: rgba(136, 165, 191, 0.48) 6px 2px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
}

.discussions-comments.comments .comment > .vote {
  display: flex;
  flex-direction: column;
  min-width: 50px;
  align-items: center;
}

.discussions-comments.comments .comment > .vote > .icon {
  font-size: 2rem;
  margin: unset;
  color: #928f8f;
}

.discussions-comments.comments > .comment > .vote > .avatar,
.replies.comments > .comment > .vote > .avatar,
.cell-comment > .avatar {
  width: 3em !important;
}

.discussions-comments.comments > .comment > .vote > .avatar > img,
.replies.comments > .comment > .vote > .avatar > img,
.cell-comment > .avatar > img {
  border-radius: 20px !important;
}


.discussions-comments.comments .comment > .vote > .icon.up:hover {
  color: var(--light-bg);
  cursor: pointer;
}

.discussions-comments.comments .comment > .vote > .icon.down:hover {
  color: #f35e5e;
  cursor: pointer;
}

.discussions-comments.comments .comment > .content {
  flex-grow: 2;
  max-width: 95%;
}

.discussions-comments.comments .comment > .content > .comment-info p {
  display: inline;
}

.discussions-comments.comments .comment > .content > .segment {
  display: flex;
  flex-direction: column;
}

.discussions-comments.comments .comment > .content > .segment > .canvases {
  width: 10%;
}

.discussions-comments.comments .comment > .content > .segment > .canvases > .display-bounding-box,
#bounding-box-to-comment-about,
.bounding-box-to-reply,
.bounding-box-to-edit{
  max-width: 100%;
  max-height: 200px;
  box-shadow: 0 0 50px #ccc;
}

.discussions-comments.comments .comment > .content > .segment > .canvases > .display-bounding-box:hover,
.bounding-box-to-edit:hover {
  cursor: pointer;
}

.discussions-comments.comments .reply-form {
  padding: 0 20px;
}

.discussions-comments .form {
  margin: 10px 0 0 0;
}

.discussions-comments .form > .fields {
  display: flex;
}

.discussions-comments .form > .fields > .field {
  flex-grow: 2;
}

.new-comment .comment-area {
  display: flex !important;
}

.discussions-comments .CodeMirror,
.discussions-comments .CodeMirror-scroll {
  min-height: 150px;
}

.discussions-comments > .comment > .content > .reply-content > .replies.comments,
.replies.comments > .comment > .content > .reply-content > .replies.comments {
  max-width: 100%;
  padding-left: 0;
  padding-bottom: 0;
  margin-left: 0;
  margin-bottom: 0;
}

.new-comment .fields,
.reply-form .fields,
.edit-form .fields {
  align-items: center;
}

.discussions-comments p:empty {
  display: none;
}

.discussions-comments p:not(:empty) {
  margin-bottom: 0px !important;
}

.lines-num > .commented {
  background-color: #b2e3fa;
  color: #1761ce;
}

#clone-comment .content > .actions {
  opacity: 1;
}

#clone-comment #discard-comment {
  max-height: 36px;
}

@media (max-width: 767px) {
  .discussions .more-info > .posters {
    display: none;
  }

  .discussions .file-name {
    word-break: break-word;
  }

  .discussions .icon {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  .discussions .grid .column > .octicon,
  .discussions .grid .column > .fas {
    font-size: 1.5rem;
  }

  .discussions-comments .button {
    font-size: 0.95rem;
  }

  .discussions-comments .reply-content[data-level-gt="1"] .button {
    font-size: 0.75rem;
  }

  .discussions-comments.comments {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-end;
  }

  .discussions-comments.comments > .comment > .vote > .avatar,
  .replies.comments > .comment > .vote > .avatar {
    width: 2em !important;
  }

  .discussions-comments.comments > .comment > .content > .comment-info > .text > .comment-text,
  .replies.comments > .comment > .content > .comment-info > .text > .comment-text {
    display: none;
  }

  .discussions-comments .reply-form,
  .reply-content > .reply-form {
    padding: unset !important;
  }
}
