#no-results {
  display: none !important;
}
#doc-details {
  position: relative;
  top: 0;
  left: 0;
  float: unset;
  width: 95%;
}

#source-actions {
  padding: 20px 0 35px !important;
  margin: 0 !important;
}

#doc-details #results-percentage .new-ui-score-main {
  display: flex !important;
  justify-content: space-around;
  font-size: 18px;
  padding: 10px 0 10px;
}
.new-ui-score-main div {
}
.new-ui-score-main div img {
  width: 20px;
  height: auto;
  margin: -3px 5px 0 0;
}
.new-ui-score-main div b {
  display: block;
  margin: 5px 0 0;
}
#doc-details {
  height: auto;
  min-height: auto;
}

#doc-results {
  height: 70vh;
  padding: 0;
  overflow-x: hidden;
  /* margin: -20px 0 0 0; */
}
#doc-results.disbaled-div {
  user-select: none;
  pointer-events: none;
}
[data-parent="#reportPageAccordion"] {
  max-height: 48vh !important;
  /* max-height: 25vh !important; */
  /* max-height: 40vh !important; */
  /* height: 40vh !important; */
}
.accordion {
  padding: 0 0 0 0;
}
.accordion > div {
  box-shadow: 0 0 8px #eaedf1;
  -webkit-box-shadow: 0 0 8px #eaedf1;
  -moz-box-shadow: 0 0 8px #eaedf1;
  -ms-box-shadow: 0 0 8px #eaedf1;
  margin: 0 0 20px 0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-left: 5px solid transparent;
  border-radius: 6px;
}
/* plag */
#acco-plag {
  border-left-color: var(--plag);
}
.source-title.open,
.source-percentage-total {
  background: var(--plag);
}
.snippet .source-url,
.source-title {
  color: var(--plag);
}
/* anno */
#acco-anno {
  border-left-color: var(--anno);
}
/* ai */
#acco-ai {
  border-left-color: var(--ai);
}
#acco-para {
  border-left-color: purple;
}
.accordion .acco-heading {
}
.accordion .acco-body {
  overflow-y: auto !important;
  overflow-x: hidden;
  background: #fff;
  padding: 10px 20px 20px;
}
.accordion .acco-body.in {
}

.accordion [data-toggle][data-target] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 10px;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
  background: white;
  padding: 10px 10px 10px 20px;
}
/* .accordion [data-toggle][data-target]:hover {
  background: whitesmoke;
} */
.accordion [data-toggle][data-target] i.fa {
  font-size: 22px;
  transition: all 0.3s;
}
.accordion [data-toggle][data-target].collapsed i.fa {
  transform: rotate(90deg);
}

/* ai */
.ai-each-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 12px 0;
  padding: 15px 18px;
  background: linear-gradient(to right, rgba(139, 195, 74, 0.08), rgba(139, 195, 74, 0.02));
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-each-card:hover {
  background: linear-gradient(to right, rgba(139, 195, 74, 0.12), rgba(139, 195, 74, 0.04));
}
.ai-each-card:last-child {
  margin-bottom: 0;
}
.ai-each-card.ai-selected,
.ai-text-selected {
  background: color-mix(in srgb, var(--ai) 40%, transparent) !important;
  border-left-color: var(--ai, #8bc34a) !important;
}
.ai-each-card.ai-selected {
  box-shadow: 0 2px 8px rgba(139, 195, 74, 0.2);
}
.ai-each-card.ai-selected .ai-each-score {
  color: #2d8a39;
}
.ai-each-score {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #3a9e47;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.ai-each-card b {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #4a5568;
}
#report-page-check-ai-score {
  font-size: 12px;
  cursor: pointer;
}
#ai-detect-textarea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: transparent !important;
  /* color: #111 !important; */
  z-index: -1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
#ai-detect-textarea span {
  padding: 4px 0;
  color: transparent !important;
}

#doc-details .source {
  margin-bottom: 8px !important;
}
.source-url.overview {
  margin: 4px 0 0 !important;
}
.source-percentage-total {
  margin: 0 !important;
}

#doc-results .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#results-title .dropdown-menu {
  min-width: 300px !important;
  max-width: 300px !important;
  width: 300px !important;
}

/* New Results Title UI */
#results-title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px !important;
  background: none;
  gap: 15px;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  border-radius: 0px;
}

#match-navigator {
  display: flex;
  align-items: center;
  gap: 4px;
}




#match-info-center {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
}

#report-page-counter {
  display: inline;
  color: #374151;
}

#report-page-info {
  color: #6b7280;
  margin-left: 4px;
}


/* Animation for next match button */
#nav-next-match:not(.no-effects) {
  animation: nav-pulse 1.5s 5;
  animation-delay: 1s;
}

@keyframes nav-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(51, 93, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(51, 93, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(51, 93, 235, 0);
  }
}

#doc-results {
  padding-top: 0 !important;
}
#source-actions {
  padding: 10px 0 10px !important;
}
.source-action {
  margin-left: 0;
  margin-right: 10px;
}
.re-check-button {
}
.re-check-button button:hover {
  color: #fff;
  filter: brightness(90%);
}
.top-cur-p {
  cursor: pointer;
}
.top-score-div b {
  cursor: pointer;
}
#current-match-selection {
  pointer-events: none;
}
#current-match-selection,
#num-sources-count {
  display: none !important;
}
#report-page-counter,
#report-page-info {
  font-size: 15px;
  color: #434343;
  font-weight: 300;
  padding: 3px;
  margin: 0 8px;
  display: inline-block;
}
.ai-each-score {
  /* display: none !important; */
}
/*
.ai-each-card {
  border: 1px solid #00000012;
} */
#search-multi {
  z-index: 1;
}
#search-multi .inlineblock {
  padding: 0 10px;
}

/* Edit mode action bar: Load Report / Save Report / Rerun Report */
#search-multi-2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

#search-multi-2 .btn-load-report-version,
#save-report-version,
#rerun-report-button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-width: 1px;
  border-style: solid;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  cursor: pointer;
}

/* Outline button: Load Report (cyan/teal) */
#search-multi-2 .btn-load-report-version {
  background: #ffffff;
  border-color: #5bc0de;
  color: #5bc0de;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

#search-multi-2 .btn-load-report-version:hover {
  background: #5bc0de;
  border-color: #5bc0de;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(91, 192, 222, 0.35);
  transform: translateY(-1px);
}

/* Primary filled button: Save Report (gradient blue) */
#save-report-version {
  background: linear-gradient(180deg, #4a5bd4 0%, #3644c7 100%);
  border-color: #3644c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(54, 68, 199, 0.3);
}

#save-report-version:hover {
  background: linear-gradient(180deg, #3644c7 0%, #2834b3 100%);
  border-color: #2834b3;
  box-shadow: 0 4px 12px rgba(40, 52, 179, 0.45);
  transform: translateY(-1px);
}

/* Outline button: Rerun Report */
#rerun-report-button {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

#rerun-report-button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.c-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #ccc;
  color: #006080;
}

.c-tooltip .c-tooltiptext {
  visibility: hidden;
  position: absolute;
  background-color: #2b354e;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s;
  font-size: 14px;
  display: block;
  width: 230px;
  line-height: 19px;
  padding: 10px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.c-tooltip:hover .c-tooltiptext,
.c-tooltip.is-hovered .c-tooltiptext {
  visibility: visible;
  opacity: 1;
}

.c-tooltip-right {
  top: -12px;
  left: 134%;
}

.c-tooltip-right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #2b354e transparent transparent;
}

.report-deep-edit #source-generate-citations {
  background: var(--citation) !important;
  color: #fff !important;
}
.report-deep-edit .add-annotation {
  background: var(--anno) !important;
  color: #fff !important;
}
.report-deep-edit .source-action-add-paraphrase {
  background: var(--paraphrase) !important;
  color: #fff !important;
}
.acco-body {
  position: relative;
}
.acco-body-plag,
.acco-body-ai {
  /* position: relative; */
  /* padding-top: 80px !important; */
}
.accor-top-btn {
  /* position: absolute; */
  /* top: 10px; */
  /* background: #fff; */
  display: flex;
  justify-content: space-between;
  margin: 10px 5px;
}

.acco-body-plag .accor-top-btn {
  margin-left: 15px;
  margin-right: 15px;
}
.para-suggest {
  margin-top: 20px;
}
.p-s-each-card {
  background: whitesmoke;
  padding: 7px 10px 9px;
  margin: 0 0 10px;
  position: relative;
}

.p-s-icon-main {
  /* position: absolute; */
  /* top: auto; */
  /* left: auto; */
  /* right: 5px; */
  /* bottom: 5px; */
  display: flex;
  justify-content: end;
  /* margin: -7px 0 0; */
}

.p-s-icon-main i {
  cursor: pointer;
  font-size: 20px;
}
.p-s-text[readonly] {
  background: none;
  box-shadow: none !important;
  border: 0;
  padding: 0;
}

.p-s-icon-main i {
  margin-left: 15px;
}
textarea.p-s-text {
  margin-bottom: 10px;
}

body .hover-anno-button,
qt-gc-div + iframe + .annotation-popup,
qt-gc-div + .annotation-popup,
.report-deep-edit .add-annotation.hover-anno-button {
  background: transparent !important;
}
#save-report-version,
.btn-load-report-version {
  margin-right: 10px;
}
.report-deep-edit #source-actions .source-action {
  background: #fff !important;
  color: #586b76 !important;
}
#source-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* Modern outline buttons for Remarks / Cite Source */
#source-actions .source-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid #e1e1e1;
  background: #ffffff;
  color: #111827;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease, color 0.15s ease;
  width: 100%;
}

#source-actions .source-action i {
  font-size: 18px;
}

#source-actions .source-action.grey {
  background: #ffffff;
}

#source-actions .source-action.grey:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}
#source-actions #btn-paraphrase-source:hover {
  background: var(--paraphrase) !important;
  color: #fff !important;
}
#source-actions .add-annotation:hover {
  background: var(--anno) !important;
  color: #fff !important;
}
#source-actions .open-citation-modal:hover,
#source-actions #source-generate-citations:hover {
  background: var(--citation) !important;
  color: #fff !important;
}
.accor-top-btn {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.accor-top-btn > button {
  width: 30%;
}
.acco-body.acco-body-para.acco-p-0 {
  padding: 0 !important;
}
#report-edit-btn-main {
  left: -70px;
}
#modal-rerun-report .re-check-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 0;
}
#modal-rerun-report .re-check-btn button {
  display: block !important;
  font-size: 16px;
  padding: 7px 10px 7px;
  min-width: 200px;
  text-align: center;
}

body:not(.report-deep-edit) #acco-para {
  display: none !important;
}

.para-suggest .small-loading-dots {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
}
.p-s-main:has(.small-loading-dots) {
  display: flex;
}
button.grey[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

.accor-top-btn .open-citation-modal {
  display: none !important;
}
.accor-top-btn button br {
  display: none !important;
}
.accor-top-btn > button {
  width: 48%;
  padding: 9px 0 9px;
  font-size: 14px;
  font-weight: 400;
}

/* Horizontal Tabs Styling */
.report-tabs-header {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  margin-bottom: 0;
}

.report-tab {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.report-tab:hover {
  color: #374151;
  background: #f9fafb;
}

.report-tab.active {
  color: #111827;
  border-bottom-color: #3644c7;
  background: #fff;
}

/* Tab-specific active colors */
.report-tab-plag.active {
  border-bottom-color: var(--plag);
  color: var(--plag);
}

.report-tab-anno.active {
  border-bottom-color: var(--anno);
  color: var(--anno);
}

.report-tab-ai.active {
  border-bottom-color: var(--ai);
  color: var(--ai);
}

.report-tabs-content {
  background: #fff;
}

.report-tabs-content .acco-body {
  max-height: 55vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 15px 20px;
}