
/* Paleta de cores para gráficos comparativos */
:root {
  --chart-color-1: #017f72;
  --chart-color-2: #ffc000;
  --chart-color-3: #192c2b;
  --chart-color-4: #017e74;
  --chart-color-5: #a03fea;
  --chart-color-6: #72afac;
  --chart-color-7: #ac75d5;
  --chart-color-8: #5e6c6c;
  --chart-color-9: #ffd966;
}

/* Evita shift de layout quando scrollbar desaparece/aparece */
html {
  scrollbar-gutter: stable;
}

/* Lista de Projeto */
@media (min-width: 768px) {
  /*#pnl-project */
  .row-cols-md-4 > * {
    flex: 0 0 auto !important;
    width: 10% !important;
  }
}

@media (min-width: 1024px) {
  /*#pnl-project */
  .row-cols-md-4 > * {
    flex: 0 0 auto !important;
    width: 15% !important;
  }

  .card-body {
    padding: 14px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 768px) {
  .save-btn{
      width: 100%
  }
}


  /* Style the video: 100% width and height to cover the entire window */
  #myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
  }

  .btn-color-rexsoft {
    background-color: #da2a2a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2em;
  }


  .avatar-profile-projects {
    position: relative;
    width: 4.375rem;
    height: 4.375rem;
    cursor: pointer;
  }

  /*
.accordion-button:not(.collapsed) {
  color: var(--bs-accordion-active-color);
  background-color: #f3f3f3 !important;
  box-shadow: inset 0 calc(-1* var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

.accordion-button {
  background-color: #d5dfd7 !important;
}*/

  .tr-destacada th:first-child,
  .tr-destacada td:first-child {
    position: static !important;
    left: auto !important;
    background-color: #dbdee0 !important;
    z-index: auto !important;
  }


/*Video PRemissas*/
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Proporção 16:9 (9 ÷ 16 = 0.5625) */
  height: 0;
  overflow: hidden; /* Evita que o conteúdo transborde */
}

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

@media (max-width: 1422px) {
  .video-wrapper {
    max-width: 100%;
    height: 100%;
  }
}

@media (max-height: 800px) {
  .video-wrapper {
    height: 90vh;
    max-width: calc(90vh * 16 / 9); /* Mantém proporção 16:9 */
  }
}


.btn-upgrade {
  color: #017e74 !important;
  background-color: #b9e368 !important;
  border-color: #b9e368 !important;
  box-shadow: 0 0rem 0rem 0 #b9e368 !important;
}

/*Tooltip Map*/
.custom-tooltip {
  position: absolute;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 320px;
  overflow: hidden;
  z-index: 999;
  font-size: 14px;
}

  .custom-tooltip img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .custom-tooltip .content {
    padding: 10px 12px;
  }

  .custom-tooltip .title-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14pt;
    cursor: pointer;
  }

  .custom-tooltip .star-rating {
    color: #222;
    font-size: 0.9rem;
  }

    .custom-tooltip .star-rating .star {
      color: #FFB400;
      margin-right: 3px;
    }

  .custom-tooltip .subtitle {
    color: #555;
    margin-bottom: 2px;
  }

  .custom-tooltip .price-info {
    color: #222;
    font-weight: 500;
  }

    .custom-tooltip .price-info span {
      color: #888;
      font-weight: normal;
    }

.tooltip-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.2s;
}

.custom-carousel-btn {
  width: 28px;
  height: 28px;
  top: 50%;
  transform: translateY(-50%);
  background-color: white !important;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  opacity: 1.0;
  z-index: 2;
  right: 10px;
}

  .custom-carousel-btn .carousel-control-prev-icon,
  .custom-carousel-btn .carousel-control-next-icon {
    background-size: 60% 60%;
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
  }

.carousel-indicators {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  justify-content: center;
}

  .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.5;
    transition: opacity 0.3s;
  }

  .carousel-indicators .active {
    opacity: 1;
  }

.marker-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
}

.marker-pagination-btn {
  width: 28px;
  height: 28px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  cursor: pointer;
}

.marker-counter {
  font-size: 12px;
  color: #555;
  margin: 0 10px;
}

.carousel-control-prev {
  left: 10px !important;
}


.grp-toggle-btn {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #017e74;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.grp-toggle-btn i {
  font-size: 1.05rem;
  transition: transform .18s;
  display: block;
  transform: rotate(0deg);
}

.grp-toggle-btn[aria-expanded="true"] i {
  transform: rotate(90deg);
}
