/*
 *
 * Diff to HTML (diff2html.css)
 * Author: rtfpessoa
 *
 */

#css-pro-modal-changes .d2h-wrapper,
.d2h-wrapper {
  text-align: left;
  margin-top: 40px !important;
}

.d2h-wrapper table {
  margin: 0;
}

#css-pro-modal-changes .d2h-wrapper td,
.d2h-wrapper td {
  border: 0px !important;
  padding: 0px !important;
  background: none;
  color: #fff;
  text-align: left !important;
  line-height: normal !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

.d2h-wrapper tr {
  background: rgba(255, 255, 255, .03) !important;
  border: 0px !important;
  color: #fff;
}

#css-pro-modal-changes tbody.d2h-diff-tbody {
  background: none;
  border: none;
}

#css-pro-modal-changes .d2h-file-header,
.d2h-file-header {
  padding: 10px !important;
  background: rgba(0, 0, 0, .2);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#css-pro-modal-changes .d2h-file-stats,
.d2h-file-stats {
  display: flex;
  margin-left: auto;
  font-size: 14px;
}

#css-pro-modal-changes .d2h-lines-added,
.d2h-lines-added {
  text-align: right;
  border: 1px solid #b4e2b4;
  border-radius: 5px 0 0 5px;
  color: #399839;
  padding: 2px !important;
  vertical-align: middle;
}

#css-pro-modal-changes .d2h-lines-deleted,
.d2h-lines-deleted {
  text-align: left;
  border: 1px solid #e9aeae;
  border-radius: 0 5px 5px 0;
  color: #c33;
  padding: 2px !important;
  vertical-align: middle;
  margin-left: 1px;
}

.d2h-file-name-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 16px;
  color: #4adc71;
  font-weight: bold;
}}

.d2h-file-name-wrapper,
.d2h-file-name-wrapper span.d2h-file-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

#css-pro-modal-changes .d2h-file-name,
.d2h-file-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-x: hidden;
  margin-left: 7px !important;
  max-width: 45%;
  direction: rtl;
}

#css-pro-modal-changes .d2h-file-wrapper,
.d2h-file-wrapper {
  border-radius: 10px;
  margin-bottom: 1em !important;
}

#css-pro-modal-changes .d2h-diff-table,
.d2h-diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Menlo", "Consolas", monospace !important;
  font-size: 13px;
  margin-bottom: initial;
  line-height: initial;
  border: 0;
}

.d2h-files-diff {
  display: block;
  width: 100%;
  height: 100%;
}

.d2h-file-diff {
  overflow-y: hidden;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#css-pro-modal-changes .d2h-file-side-diff,
.d2h-file-side-diff {
  display: inline-block;
  overflow-x: scroll;
  overflow-y: hidden;
  width: 50%;
  margin-right: -4px !important;
  margin-bottom: -8px !important;
  padding-bottom: 25px !important;
  background: rgba(241, 241, 241, .05);
}

.d2h-file-side-diff:first-child {
  border-bottom-left-radius: 6px;
}

.d2h-file-side-diff:last-child {
  border-bottom-right-radius: 6px;
}

#css-pro-modal-changes .d2h-code-line,
.d2h-code-line {
  display: inline-block;
  white-space: nowrap;
  line-height: normal !important;
  /* Compensate for the absolute positioning of the line numbers */
  padding: 0 8em !important;
}

#css-pro-modal-changes .d2h-code-side-line,
.d2h-code-side-line {
  display: inline-block;
  white-space: nowrap;
  /* Compensate for the absolute positioning of the line numbers */
  padding: 0 4.5em !important;
}

#css-pro-modal-changes .d2h-code-line del,
#css-pro-modal-changes .d2h-code-side-line del,
.d2h-code-line del,
.d2h-code-side-line del {
  display: inline-block;
  margin-top: -1px !important;
  text-decoration: none;
  background-color: rgba(249, 147, 153, 0.7);
  border-radius: 0.2em;
}

#css-pro-modal-changes .d2h-code-line ins,
#css-pro-modal-changes .d2h-code-side-line ins,
.d2h-code-line ins,
.d2h-code-side-line ins {
  display: inline-block;
  margin-top: -1px !important;
  text-decoration: none;
  background-color: rgba(151, 242, 149, .5);
  border-radius: 0.2em;
  text-align: left;
}

.d2h-code-line-prefix {
  display: inline;
  background: none;
  padding: 0;
  word-wrap: normal;
  white-space: pre;
}

.d2h-code-line-ctn {
  display: inline;
  background: none;
  padding: 0;
  word-wrap: normal;
  white-space: pre;
}

#css-pro-modal-changes .line-num1,
.line-num1 {
  box-sizing: border-box;
  float: left;
  width: 3.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5em 0 0.5em !important;
}

#css-pro-modal-changes .line-num2,
.line-num2 {
  box-sizing: border-box;
  float: right;
  width: 3.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5em 0 0.5em !important;
}

.d2h-code-line-ctn,
#css-pro-modal-changes .line-num1,
#css-pro-modal-changes .line-num2 {
  font-size: 13px;
}

.d2h-code-linenumber {
  box-sizing: border-box;
  width: 7.5em;
  /* Keep the numbers fixed on line contents scroll */
  position: absolute;
  display: inline-block;
  background-color: rgba(255, 255, 255, .1);
  color: #fff;
  text-align: right;
  cursor: pointer;
}

.d2h-code-linenumber:after {
  content: '\200b';
}

.d2h-code-side-linenumber {
  /* Keep the numbers fixed on line contents scroll */
  position: absolute;
  display: inline-block;
  box-sizing: border-box;
  width: 4em;
  color: #fff;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d2h-code-side-linenumber:after {
  content: '\200b';
}

/*
 * Changes Highlight
 */

.d2h-del {
  background-color: rgba(220, 64, 71, 0.29);
  border-color: #e9aeae;
}

.d2h-ins {
  background-color: rgba(167, 255, 167, 0.1);
  border-color: #b4e2b4;
}

.d2h-info {
  background-color: rgba(255, 255, 255, .1);
  color: #fff;
  border: none;
  display: none;
}

.d2h-file-diff .d2h-del.d2h-change {
  background-color: rgba(255, 218, 105, 0.1);
}

.d2h-file-diff .d2h-ins.d2h-change {
  background-color: rgba(167, 255, 167, 0.1);
}

/*
 * File Summary List
 */

#css-pro-modal-changes .d2h-file-list-wrapper,
.d2h-file-list-wrapper {
  margin-bottom: 10px !important;
}

.d2h-file-list-wrapper a {
  text-decoration: none;
  color: #3572b0;
}

.d2h-file-list-wrapper a:visited {
  color: #3572b0;
}

.d2h-file-list-header {
  text-align: left;
}

.d2h-file-list-title {
  font-weight: bold;
}

.d2h-file-list-line {
  display: flex;
  text-align: left;
}

.d2h-file-list {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}

#css-pro-modal-changes .d2h-file-list > li,
.d2h-file-list > li {
  border-bottom: #ddd solid 1px;
  padding: 5px 10px !important;
  margin: 0;
}

.d2h-file-list > li:last-child {
  border-bottom: none;
}

.d2h-file-switch {
  display: none;
  font-size: 10px;
  cursor: pointer;
}

#css-pro-modal-changes .d2h-icon,
.d2h-icon {
  vertical-align: middle;
  margin-right: 10px !important;
  fill: currentColor;
  display: none !important;
}

.d2h-deleted {
  color: #c33;
}

.d2h-added {
  color: #399839;
}

.d2h-changed {
  color: #d0b44c;
}

.d2h-moved {
  color: #3572b0;
}

#css-pro-modal-changes .d2h-tag,
.d2h-tag {
  display: none;
}

.d2h-deleted-tag {
  border: #c33 1px solid;
}

.d2h-added-tag {
  border: #399839 1px solid;
}

.d2h-changed-tag {
  border: #d0b44c 1px solid;
}

.d2h-moved-tag {
  border: #3572b0 1px solid;
}

/*
 * Selection util.
 */

.selecting-left .d2h-code-line,
.selecting-left .d2h-code-line *,
.selecting-right td.d2h-code-linenumber,
.selecting-right td.d2h-code-linenumber *,
.selecting-left .d2h-code-side-line,
.selecting-left .d2h-code-side-line *,
.selecting-right td.d2h-code-side-linenumber,
.selecting-right td.d2h-code-side-linenumber *,
.d2h-code-linenumber,
.d2h-code-line-prefix,
.d2h-code-side-linenumber {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.selecting-left .d2h-code-line::-moz-selection,
.selecting-left .d2h-code-line *::-moz-selection,
.selecting-right td.d2h-code-linenumber::-moz-selection,
.selecting-left .d2h-code-side-line::-moz-selection,
.selecting-left .d2h-code-side-line *::-moz-selection,
.selecting-right td.d2h-code-side-linenumber::-moz-selection,
.selecting-right td.d2h-code-side-linenumber *::-moz-selection {
  background: transparent;
}

.selecting-left .d2h-code-line::selection,
.selecting-left .d2h-code-line *::selection,
.selecting-right td.d2h-code-linenumber::selection,
.selecting-left .d2h-code-side-line::selection,
.selecting-left .d2h-code-side-line *::selection,
.selecting-right td.d2h-code-side-linenumber::selection,
.selecting-right td.d2h-code-side-linenumber *::selection {
  background: transparent;
}