/* Popup de referencias*/
.reference_popup {
  border-radius: 5pt;
  font-size: 8.9pt;
  background-color: white;
  border-color: rgba(0, 0, 0, 0);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
  border-style: solid;
  border-width: 1px;
  position: absolute;
  padding: 10px;
  z-index: 1;
  line-height: 1.5;
  overflow: visible !important;
  max-width: calc(89% - 20px);
  font-style: normal !important;
}

.start_hidden {
  display: none;
}

.accordion-header-1 {
  box-sizing: border-box;
  width: 100%;
}

.accordion-header-1:hover {
  background-color: #e0e0e0;
  border-radius: 5px;
}

.accordion-body {
  position: relative;
  background: #f7f7f7;
  overflow: visible !important;
}

@media (max-width: 768px) {
  .emd-drugs-full-descriptions table,
  .accordion-body table {
    border: 0;
    overflow-x: auto;
    display: block;
  }
}

.accordion-button:not(.collapsed) {
  color: #000;
  background-color: rgba(0, 0, 0, 0);
}

.icon-menu:before {
  content: "\e911";
  color: #fff !important;
}

.emd-main-menu ul li span:before {
  font-size: 1.25rem;
  color: inherit;
}

#btn-lupe::before {
  content: "\e90f";
  color: #fff;
}

#btn-lupe.active::before,
#btn-lupe3.active::before {
  color: #4f4d4d;
}

#search-bar-index.active #btn-lupe3.active::before {
  color: #fff;
}

#search-bar-index.active {
  outline: 2px solid #4f4d4d;
  outline-offset: 4px;
  border-radius: 6px;
}

.emd-drugs-full-descriptions .accordion-header {
  border-bottom: hidden;
}

.accordion-flush > .accordion-item > .accordion-collapse {
  margin-top: 0rem;
}

.emd-drugs-full-descriptions p:last-child {
  margin: 0.4rem 0;
  font-size: 0.875rem;
}

.emd-drugs-full-descriptions .accordion-body li {
  font-family: "open_sansregular" !important;
  font-size: 0.875rem !important;
}

.emd-drugs-full-descriptions
  .emd-drugs-accordion__content
  .accordion-body
  sup
  a {
  color: #33f;
  text-decoration: none;
  -webkit-transition: all 0.3sease;
  transition: all 0.3sease;
  font-size: 11.5px;
}

.emd-drugs-accordion button {
  padding: 0.75rem !important;
}

.emd-drugs-title-2 {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.625rem;
}

.emd-drugs-title-2 .drug_posology_container {
  grid-column: 1 / -1;
  cursor: pointer;
}

.reference_number {
  display: inline-block;
  vertical-align: top;
  color: black;
  font-style: normal !important;
}

.reference_text {
  display: inline-block;
  max-width: calc(100% - 20px);
  line-height: 1.2rem;
  overflow-wrap: break-word;
  word-break: break-word;
  color: black;
}

.reference_popup .reference_text a {
  font-size: 11.5px !important;
  word-break: break-word;
  color: #33f !important;
  -webkit-transition: all 0.3sease;
  transition: all 0.3sease;
  text-decoration-color: #33f !important;
  font-style: normal !important;
}

.accordion-collapse.emd-drugs-accordion__content.collapse.show {
  margin-bottom: 0rem;
}

/* Search bar */
.list-group-item {
  cursor: pointer;
}

.list-group-item a {
  color: rgb(65, 65, 65);
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.list-group-item:hover,
.highlighted {
  background-color: #cccccc;
}

.emd-main-menucontent__nav {
  z-index: 9999 !important;
}

#search-results {
  position: absolute;
  z-index: 999;
  width: calc(100% - 10px);
  max-width: calc(100% - 69px);
  left: 11px;
  background-color: white;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  list-style: none;
  padding: 0;
}

#hidden-search-results {
  position: absolute !important;
  z-index: 999 !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  top: 100% !important;
  background-color: white !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  list-style: none !important;
  padding: 0 !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.main-search-bar {
  position: relative;
}

.main-search-forms {
  width: 100%;
}

/* captcha */
.captcha-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

  text-align: center;
}

/* Switch Notes*/

.custom-hide-notes .hide-notes-input:checked {
  background-color: green !important;
  border-color: green !important;
}

.btn-secondary-c {
  color: #ffffff !important;
  border-color: #1d315f;
  /* border: 1px solid #e91a1e; */
  border-radius: 5px;
  background-color: #1d315f;
  padding: 0.25rem 1.25rem;
  font-size: 1rem !important;
  display: block;
  width: 200px;
  text-align: center;
  text-decoration: none !important;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-secondary-c:hover {
  border-color: #1c5f1c;
  background-color: #1c5f1c;
}

.accordion {
  --bs-accordion-border-width: 0;
}

.btn-secondary-d,
.btn-secondary-g {
  color: #ffffff !important;
  /* border: 1px solid #e91a1e; */
  border-radius: 20px;
  background-color: #4f4d4d;
  padding: 0.25rem 1.25rem;
  font-size: 0.85rem !important;
  display: block;
  width: 170px;
  text-align: center;
  text-decoration: none !important;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  margin-top: 25px;
}

.btn-secondary-d:hover {
  background-color: #ec0b0b;
}

.btn-secondary-d:hover,
.btn-secondary-g:hover {
  background-color: #ec0b0b;
}

.emd-drugs-accordion h2 {
  border-bottom: 0px !important;
  font-family: "open_sanssemibold" !important;
  /* padding-right: 0.5rem; */
}

.emd-drugs-accordion button {
  font-family: "open_sanssemibold" !important;
  font-size: 1.125rem;
  line-height: 1.75rem;
  padding: 0.75rem;
  border-radius: 4px 4px 0 0;
}

/* Index Title */
.emd-p-update p {
  color: #fff;
  font-family: "latobold";
  font-size: 1.2rem;
}

.emd-p-update ul li {
  list-style: none;
  color: #d0d0d0;
  font-family: "open_sansregular" !important;
  font-size: 0.85rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

  text-align: center;
}

.emd-p-update ul {
  text-align: -webkit-center;
  margin: 0 auto;
  font-family: "open_sansregular" !important;
  font-size: 0.85rem !important;
}

.py-2 {
  padding-top: 1.4rem !important;
  padding-bottom: 1.25rem !important;
}

.emd-p-update2 p {
  margin: 0 auto;
  font-family: "open_sansregular" !important;
  font-size: 0.85rem !important;
  color: #d0d0d0 !important;
}

.emd-p-update2 a,
.emd-p-update ul li a {
  color: #9aa0ce;
  font-family: inherit;
  text-decoration: underline;
}

b,
strong {
  font-weight: bolder;
}

li,
ul {
  line-height: 1.4rem !important;
  font-size: 14.5px !important;
  color: #000000 !important;
}

li {
  font-family: "open_sansregular", "latoregular", Arial, sans-serif;
}

h2 {
  font-size: 19px !important;
  font-family: "open_sanssemibold" !important;
}

h3 {
  font-family: "open_sanssemibold" !important;
  font-size: 18px !important;
}

h4 {
  font-family: "open_sansbold" !important;
  font-size: 16.5px !important;
}

h5 {
  /* font-size: 1.25rem; */
  font-family: "open_sanssemibold" !important;
  font-size: 15.5px !important;
}

h2,
h3,
h4,
h5 {
  color: #000000 !important;
}

h6 {
  /* font-size: 1.25rem; */
  font-family: "open_sanssemibold" !important;
  font-size: 15px !important;
}

.notepad {
  padding: 1.25rem;
  position: relative;
  border-radius: 6px;
}

p {
  margin: 0.4rem 0;
}

/* clase para latest updates */
.emd-drugs-terms {
  color: #212529;
  font-family: "open_sanslight";
  line-height: 1.4rem !important;
  font-size: 14.5px !important;
}

.emd-drugs-accordion .emd-drugs-accordion__content p {
  /* font-family: 'latoregular'; */
  font-family: "open_sansregular";
  line-height: 1.4rem !important;
  font-size: 14.5px !important;
  color: #000000 !important;
}

.emd-drugs-accordion .emd-drugs-accordion__content li {
  font-family: "open_sansregular";
  line-height: 1.4rem !important;
  font-size: 14.5px !important;
}

.font_open_sanslight {
  font: "open_sanslight" !important;
}

.emd-label,
.emd-label-open-access {
  font-family: "open_sansregular" !important;
  border-radius: 4px !important;
  white-space: nowrap;
  font-size: 10px !important;
  /* min-width: 60px !important; */
  text-align: center !important;
  padding: 4px 6px !important;
  line-height: 1.5 !important;
  margin: 0 0.5rem !important;
  display: inline-block !important;
}

.drug-title {
  display: flex;
  align-items: center;
}

.emd-label-open-access {
  background: #e0e0e0 !important;
  color: #9a9a9a !important;
}

.btn-secondary-e,
.btn-secondary-q {
  max-width: 300px;
  color: white;
  border: none;
  text-align: center;
  text-decoration: none !important;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-secondary-e {
  background: #1d315f;
}

.btn-secondary-e:hover {
  background-color: #344e8b;
}

.btn-secondary-e:active,
.btn-secondary-e:focus {
  background-color: #344e8b !important;
}

.btn-secondary-q {
  background: #4f4d4d;
}

.btn-secondary-q:hover {
  background-color: #212529;
}

.btn-secondary-q:active,
.btn-secondary-:focus {
  background-color: #212529 !important;
}

.btn-info {
  border: none !important;
  -webkit-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
}

/*  Search Bar*/
.main-search-forms input {
  padding: 0rem 1rem;
}

.main-search-forms input,
.main-search-forms button {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .emd-drugs-accordion h2,
  .accordion-item.emd-drugs-accordion h2,
  .accordion-item.emd-drugs-accordion .h2 {
    margin-right: 10px;
  }

  .accordion-arrow {
    margin-left: 10px !important;
  }
}

/* favoritos, star, estrella */
.icon-favourite-off:before {
  content: "\e906";
  transition: all 0.1s ease;
}

.icon-favourite-on:hover {
  transition: all 0.1s ease;
  text-shadow:
    0 0 10px #dda500,
    0 0 40px #dda500,
    0 0 60px #dda500;
}

.icon-favourite-off:active:before,
.icon-favourite-on:active:before,
.icon-favourite-off:hover:before {
  content: "\e907";
  color: #dda500;
  text-shadow:
    0 0 10px #dda500,
    0 0 40px #dda500,
    0 0 60px #dda500;
}

.icon-favourite-on.hovered {
  text-shadow:
    0 0 10px #dda500,
    0 0 40px #dda500,
    0 0 60px #dda500;
  filter: brightness(1.5);
}

.icon-favourite-off:active:before,
.icon-favourite-on:active:before {
  color: #fff;
}

.favorite-link:hover .icon-favourite-on {
  color: #dda500;
  text-shadow:
    0 0 10px #dda500,
    0 0 40px #dda500,
    0 0 60px #dda500;
}

/* this is our markdown */
.emd-drugs-terms1 p,
.drug_posology_container p {
  color: #000000 !important;
  font-family: "open_sansregular" !important;
  font-size: 14.5px !important;
  line-height: 1.4rem !important;
}

.emd-drugs-full-descriptions h3 button,
.emd-drugs-full-descriptions .h3 button {
  padding: 1.25rem 0.75rem;
}

.notepad {
  background: inherit;
}

/* Tables */
.emd-drugs-full-descriptions table tr td,
.accordion-body table tr td {
  font-size: 13.5px;
  font-family: "open_sansregular" !important;
  color: #000000;
  padding: 0.4rem;
  border: 0.1rem solid #acacac;
  text-align: left;
  vertical-align: top;
}

.breadcrumb-item.active {
  font-size: 13.008px !important;
}

/* switch */

.form-switch .form-check-input {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  width: 2em;
  margin-left: -2.5em;
  background-image: var(--bs-form-switch-bg);
  background-position: left center;
  border-radius: 2em;
  -webkit-transition: background-position 0.15sease-in-out;
  transition: background-position 0.15sease-in-out;
  border-color: #646363 !important;
  background-color: #606060 !important;
}

/* search bar */
#search-input {
  padding: 0.65rem 1rem;
}

.main-search-forms button span {
  font-size: 1.4rem;
  color: #fff;
}

.main-search-forms button {
  padding-top: 5px;
  padding-left: -5px;
}

/* notepad button */
.btn-secondary-f {
  margin-top: 20px !important;
  display: block;
  border-radius: 5px;
  border: 1px solid #1d315f;
  color: #1d315f;
  background: #fff;
  margin: 0 0 0 auto;
}

.btn-secondary-f:hover {
  background-color: #1d315f;
  color: #e3f7ff;
  transition: all 0.3s ease;
  border: 1px solid #1d315f;
}

.text-area-1 {
  outline: none;
  resize: none;
  padding: 5px;
  border: 1px transparent;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
  overflow-y: hidden;
}

.text-area-2 {
  display: none;
  width: 100%;
  resize: none;
  overflow: hidden;
  border: 1px transparent;
  outline: none;
  padding: 1;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

/* Notepad */
.notepad-style {
  background-color: #e3f7ff;
  border-radius: 10px;
  border: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  font-family: "open_sanssemibold";
  --bs-accordion-border-color: #e3f7ff;
}

.notepad-style-1 {
  background-color: #e3f7ff;
  border-radius: 10px;
  border: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.btn-notepad {
  margin-bottom: 10px;
  font-size: 14.5px;
  text-align: left;
}

.emd-drugs-full-descriptions .emd-notes::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-left: 0px solid rgba(0, 0, 0, 0);
  border-bottom: 0px solid #fff8e2;
  -webkit-transform: rotate(45deg);
  transform: rotate(0deg);
  background: none;
}

.emd-note__content {
  color: #414448;
}

.mb-41 {
  margin-bottom: 0rem !important;
}

.drugs_list {
  list-style-type: square;
  margin-top: 0pt !important;
  margin-left: 10px;
}

/* a content in sections */
.emd-drugs-accordion .emd-drugs-accordion__content a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #989898;
}

.emd-drugs-accordion .emd-drugs-accordion__content a:hover,
.emd-drugs-accordion .emd-drugs-accordion__content a:visited {
  color: #000;
}

/* a content in pop up references and references*/
.emd-drugs-full-descriptions
  .emd-drugs-accordion__content
  .accordion-body
  sup
  a,
#collapseReferences a {
  color: #33f;
  text-decoration: underline;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-size: 11.5px;
}

.emd-drugs-full-descriptions
  .emd-drugs-accordion__content
  .accordion-body
  sup
  a:hover,
#collapseReferences a:hover {
  text-decoration: none;
}

.table_a_reference {
  color: #33f !important;
  text-decoration: none;
  -webkit-transition: all 0.3sease;
  transition: all 0.3sease;
  text-decoration-thickness: 1px !important;
  font-size: 11.5px !important;
  text-decoration-color: #33f !important;
}

.admin_table span,
.admin_table td,
.admin_table th {
  font-family: "open_sansregular", "latoregular", Arial, sans-serif;
  color: #000000 !important;
  line-height: 1.5rem !important;
  font-size: 11px !important;
}

.admin_table td a {
  font-family: "open_sansregular", "latoregular", Arial, sans-serif;
  line-height: 1.5rem !important;
  font-size: 11px !important;
}

.admin_table td {
  max-width: 200px;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.admin_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  white-space: wrap;
}

/* Create scrollable container for small screens */
@media (max-width: 991px) {
  .admin_table {
    display: block;
    overflow-x: auto;
  }

  .admin_table td,
  .admin_table th {
    padding: 6px;
    font-size: 0.9rem;
  }
}

.admin_table td,
.admin_table th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.admin_table th {
  background-color: #fff;
}

.admin_table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.admin_table td:active {
  color: lightblue !important;
  /* Apply active state color to all td */
}

.admin_table td.no-active:active {
  color: inherit !important;
  /* Prevent the color change on this td */
}

#admin_references_copy_button:active {
  background-color: lightblue;
}

.blink_on_click {
  cursor: pointer;
}

.blink_on_click:active {
  color: lightblue !important;
  /* Apply active state color to all td */
}

.blink_on_click.no-active:active {
  color: inherit !important;
  /* Prevent the color change on this td */
}

#disclaimer a {
  color: #aaaaaa;
  text-decoration: none;
}

#disclaimer a:hover {
  color: #ffffff;
}

.btn-idioma {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-idioma:hover {
  transform: scale(1.1);
}

.icono-bandera {
  font-size: 1.3em;
  border-radius: 0.25rem;
  overflow: hidden;
  display: inline-block;
}

@media screen and (max-width: 359px) {
  .hide-xxs {
    display: none !important;
  }
}

.max-width-800 {
  max-width: 800px;
}

/* 1. Target all POST forms that are NOT active, and completely lock them down */
main.has-active-form form[method="post"]:not(.form-active) {
  opacity: 0.5;
  pointer-events: none; /* Disables clicks, selection, and inputs completely */
}
