input.collapse-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

input.collapse-checkbox:checked ~ .collapsible-content {
  max-height: 0;
}

input.collapse-checkbox:checked ~ div .tab-label::before {
  transform: rotate(0deg);
}

input.collapse-checkbox:checked ~ div.ui.top.attached.header {
  border-radius: var(--roundness);
  transition: all .35s;
}

#diff-module .ui.top.attached.header > .header-block {
  display: flex;
  align-items: center;
}

#diff-module .ui.top.attached.header .header-title {
  padding: 8px 0;
  display: inline-block;
}

#diff-module .ui.attached.table.segment.commits-table {
  margin-left: 0;
  margin-right: 0;
  width: inherit;
}

.collapsible-content {
  overflow: hidden;
}

.diff-file-box .tab-label {
  display: flex;
  cursor: pointer;
}

.diff-file-box .tab-label::before {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  margin-right: 1rem;
  transition: all .35s;
  transform-origin: 50% 65%;
  transform: rotate(90deg);
}

.collapsible-content {
  max-height: none;
  transition: all .35s;
}

#diff-module .ui.top.attached.header {
  margin: 0;
}

#diff-module .diff-box {
  margin-top: 1em;
}

#diff-module .diff-box .ui.attached.segment {
  margin: 0;
  border-top: 0;
  width: inherit;
  max-width: inherit;
  overflow: hidden;
}

#diff-module .diff-box .file-title .fa-book-open::before {
  position: relative;
  top: 2px;
  left: -3px;
}

#diff-module .diff-box .file-title .file-name {
  margin-left: 1em;
}

#diff-module .diff-box .file-name {
  color: #888;
}

#diff-module.diff .diff-file-box {
  margin-top: 1em;
}

#diff-module .diff-file-box .buttons > .button {
  border: 1px solid #d2d1d1;
}

#diff-module .diff-file-box .branches-span {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

#diff-module .diff-file-box .branches-span .cd-image-label {
  position: unset !important;
}

#diff-module .diff-file-box > .header {
  padding: .2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#diff-module .diff-file-box > .header .button {
  padding: 8px 10px;
  font-weight: 400;
}

#diff-module .diff-file-box > .header > .file-title {
  display: flex;
}

#diff-module .diff-file-box > .header > .file-title > .icon {
  align-self: center;
}

#diff-module .diff-file-box > .header > .file-title > .file-name {
  margin-left: .5rem;
}

#diff-module .diff-file-box iframe {
  border-width: 0;
}

#diff-module .diff-file-box .ui.images {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: unset;
}

#diff-module .diff-file-box .ui.images div.cd-image-label {
  bottom: 41px;
  right: 0px;
  font-size: 1rem;
  position: relative;
  top: unset;
}

.ui.button.change-compare-type {
  min-width: 162px;
  line-height: initial;
}

.diff-message {
  padding: 5px;
  font-size: 14px;
}

@media only screen and (max-width: 650px) {
  #show-diff-stats-button {
    display: none;
  }

  #diff-changes-summary {
    display: none;
  }

  #diff-actions-bar {
    justify-content: flex-end !important;
  }

  .diff-counter.count.ui.left {
    display: none;
  }
}
