body.tc-modal {
  height: 100vh;
}

.tc-canvas {
  margin: 0 auto;
  font-family: "Roboto" !important;
}

.tc-header {
  padding: 12px 0;
}

.tc-mainrow,
.tc-innerrow {
  gap: 25px;
  display: flex;
  align-items: flex-start;
}

.tc-mainrow {
  flex-direction: column;
}

.tc-innerrow {
  width: 100%;
}

.tc-left {
  flex: 1 1 90%;
}

.tc-right {
  gap: 22px;
  display: flex;
  flex: 1 1 39%;
  flex-direction: column;
}

.tc-slot {
  min-height: 700px;
  position: relative;
  margin-bottom: 10px;
  display: flex !important;
  border: 1px dashed #c3c4c7;
}

.tc-slot:has(.tc-slot-image),
.tc-note-slot:has(.tc-slot-image) {
  flex-direction: column;
}

.tc-select-slot {
  position: relative;
  display: flex !important;
  flex-basis: 100%;
  justify-content: center;
  align-items: center;
  background-color: #efefef !important;
  color: #2e3246 !important;
  border: none !important;
  font-weight: 700;
}

.tc-select-slot:hover {
  color: #fff !important;
  background-color: #6b54fc !important;
  box-shadow: 0 7px 10px 0 rgba(0, 0, 0, 0.3);
}

.tc-slot-preview img {
  display: block;
}

.tc-slot-preview img .tc-slot-preview:has(img) {
  width: 100% !important;
}

.tc-slot-preview.small img .tc-slot-preview.small:has(img) {
  padding: 2%;
  margin-top: 15px;
}

.tc-note-slot {
  border: 1px dashed #c3c4c7;
  min-height: 185px;
  position: relative;
  display: flex !important;
}

.tc-note-slot .tc-select-slot {
  font-size: 16px !important;
}

.tc-slot .tc-select-slot {
  padding: 11.88px 19.88px;
}

/* modal */
.tc-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 70px;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 9999;
}

.tc-modal .tc-modal-close {
  border: none !important;
  background: #000 !important;
  font-size: 36px;
  color: #fff !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
}

.tc-modal-inner {
  background: #fff;
  padding: 3.5rem 3.5rem 7rem;
  border-radius: 6px;
  max-height: 80vh;
  overflow: auto;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 1388px;
  margin: 0 auto;
  box-shadow: 0 7px 10px 0 rgba(0, 0, 0, 0.3);
  border: 2.15px solid #2e3246;
}

.tc-modal .tc-modal-close {
  border: none !important;
  background: #000 !important;
  font-size: 36px;
  color: #fff !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
}

.tc-modal-inner header {
  margin-bottom: 3.5rem;
}

.tc-thumb-grid {
  gap: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.tc-thumb-grid.large {
  gap: 60px;
  padding-left: 50px;
  padding-right: 50px;
  grid-template-columns: repeat(2, 1fr);
}

.tc-thumb-grid.small {
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.tc-thumb img {
  width: 100%;
  object-fit: contain;
  height: auto;
}

.selected-tc-button {
  position: absolute !important;
  right: 4px;
  top: 4px;
}

.tc-note-slot .selected-tc-button {
  padding: 9px !important;
  font-size: 14px !important;
}

.tc-slot-image {
  margin-top: 35px;
}

.tc-select-image {
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.5em;
  transition: 0.4s;
  color: #2e3246 !important;
}

button:focus,
.tc-select-slot:focus {
  outline: 3px solid #efefef;
}

.tc-required-missing {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.tc-glightbox-add-btn {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
}

.gslide-title {
  display: none !important;
}

.glightbox-clean .gslide-description {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide GLightbox navigation buttons */
.glightbox-container .gprev,
.glightbox-container .gnext {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

.gbtn.gprev,
.gbtn.gnext {
  display: none !important;
}

.glightbox-container#glightbox-body .gloader,
.glightbox-container#glightbox-body .goverlay {
  background-color: rgba(255, 255, 255, 0.85) !important;
}

.tc-glightbox-add-btn,
#tc-generate-pdf {
  font-size: 19.8px !important;
  font-weight: 500;
  padding: 11.88px 19.88px;
  border-radius: 0;
  font-family: "Roboto";
  background-color: #6b54fc;
  width: 300px;
  text-align: center;
  color: #fff;
}

.tc-glightbox-add-btn:hover,
#tc-generate-pdf:hover {
  background-color: #2e3246;
}

.tc-footer {
  display: flex !important;
}

#tc-generate-pdf {
  margin: 0 auto;
  text-align: center;
  margin-top: 25px;
  opacity: 0.6;
  cursor: not-allowed;
  transition:
    opacity 0.2s ease,
    cursor 0.2s ease;
}

#tc-generate-pdf.enabled {
  opacity: 1;
  cursor: pointer;
}

#tc-generate-pdf .brxe-icon {
  font-size: unset;
}

.tc-button-wrapper {
  display: block;
  margin-top: 10px;
  min-height: 40px;
}

.tc-footer-text {
  font-size: 0.9em;
}

.tc-modal-inner header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-thumb {
  display: flex;
  flex-direction: column;
  width: 100% !important;
}

.tc-image-thumb {
  flex-grow: 1;
  transition: 0.4s;
  padding: 5% !important;
  width: 100% !important;
  background: none !important;
}

.tc-image-thumb:hover {
  box-shadow: 0 6px 36px 3px rgba(0, 0, 0, 0.25);
}

.tc-thumb .tc-add-image {
  white-space: nowrap;
  margin: 10px 0 !important;
  background-color: #c3c4c7 !important;
  margin: 10px 0 !important;
  white-space: nowrap;
}
.tc-thumb-title {
  margin: 8px 0;
}

.tc-thumb-title,
.tc-thumb .tc-add-image {
  color: #000 !important;
}

#tc-generate-pdf:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background-color: #ccc !important;
  border-color: #ccc !important;
  color: #666 !important;
}

#tc-generate-pdf:disabled:hover {
  background-color: #ccc !important;
  border-color: #ccc !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Lightbox styling for small images */
.ginner-container.tc-desc-bottom {
  display: flex;
  flex-direction: column;
}

.gslide-media.gslide-image.tc-small-image {
  background: #fff;
  padding: 50px;
}

.gslide-description.tc-small-image-description-bottom {
  max-width: 673px !important;
  margin: 0 auto;
}

.tc-template-header {
  width: 100%;
}

h2.tc-utility-of-ad-biomarkers,
hr.tc-utility-of-ad-biomarkers {
  background-color: #fd9f63;
}

h2.tc-interpretation-of-ad-biomarkers,
hr.tc-interpretation-of-ad-biomarkers {
  background-color: #7863fd;
}

h2.tc-using-ad-biomarkers-for-treatment-selection,
hr.tc-using-ad-biomarkers-for-treatment-selection {
  /* placeholder color */
  background-color: #32c9da;
}

h2.tc-additional-notes,
hr.tc-additional-notes {
  background-color: #2e3246;
}

h2.tc-utility-of-ad-biomarkers,
h2.tc-interpretation-of-ad-biomarkers,
h2.tc-using-ad-biomarkers-for-treatment-selection {
  color: #fff !important;
  padding: 0 10px 6px !important;
  width: fit-content;
}

h2.tc-additional-notes {
  color: #7be7f2 !important;
  padding: 0 10px 6px !important;
  width: fit-content;
}

hr.tc-utility-of-ad-biomarkers,
hr.tc-interpretation-of-ad-biomarkers,
hr.tc-using-ad-biomarkers-for-treatment-selection,
hr.tc-additional-notes {
  width: 100%;
  margin-bottom: 0 !important;
  height: 4px;
  margin-top: 0 !important;
}

#tc-categories {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
  margin-top: 5px;
}

#tc-categories div {
  display: flex;
  align-items: center;
  gap: 8px;
}

#tc-categories label {
  color: #000 !important;
}

.tc-modal-category {
  display: flex;
  flex-direction: column;
}

.tc-category-container {
  display: flex;
  justify-content: space-between;
}

.tc-modal-category {
  margin-bottom: 35px;
}
#tc-categories div label {
  margin-bottom: unset !important;
}
.hide-title {
  display: none !important;
}

.tc-reference {
  margin-top: 90px;
}
.required {
  color: red;
  font-weight: bold;
}
.tc-required-block {
  flex-direction: column;
  display: flex !important;
  align-items: start;
}
.tc-required-image {
  font-size: 1.3rem !important;
}
.tc-slot .tc-required-image {
  line-height: 1em !important;
}
.tc-slot .tc-required-block {
  align-items: center !important;
}
.description-bottom {
  margin-top: 5px !important;
}
@media screen and (max-width: 780px) {
  .tc-innerrow {
    flex-direction: column;
  }

  .tc-innerrow aside {
    width: 100%;
  }

  .tc-footer {
    margin-top: 20px;
  }

  .tc-thumb-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .tc-modal-inner header {
    margin-top: 20px;
  }

  .tc-modal-inner header #tc-modal-title {
    margin-bottom: 0 !important;
  }
  .gslide-image img {
    max-width: 90vw !important;
  }
  .gslide-media.gslide-image.tc-small-image {
    padding: 0 !important;
  }
  .tc-modal-inner {
    padding: 1.5rem !important;
  }
  h2.tc-utility-of-ad-biomarkers,
  h2.tc-interpretation-of-ad-biomarkers,
  h2.tc-using-ad-biomarkers-for-treatment-selection,
  h2.tc-additional-notes {
    width: 100% !important;
  }
}
@media screen and (max-width: 540px) {
  #tc-categories {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0 !important;
    gap: 3px !important;
  }
  .tc-modal-category {
    margin-bottom: 20px;
  }
}
