/**
 * Estilos comuns do portal: fundos em degradê, barra de navegação, rodapé,
 * select customizado, tooltip, notificação de sucesso e cards de resgate.
 *
 * Responsabilidades:
 * - Definir os planos de fundo e a moldura das telas autenticadas.
 * - Estilizar componentes compartilhados por várias telas (nav, footer,
 *   tooltip, select customizado, notificação de sucesso).
 *
 * CSS puro, editado à mão: o portal não tem Sass nem build do Tailwind. Depois
 * de editar, rode build-css.sh e comite o public/css/app.css gerado.
 *
 * @package Portal\Recursos\CSS
 * @llmdoc A posição deste arquivo na cascata está declarada em build-css.sh —
 *         ele vem depois do reset e dos utilitários e antes dos demais estilos
 *         de tela. Não reordenar: a aparência do portal depende da sequência.
 */
.bg-degrade {
  background: #F7FAFC;
}

.bg-degrade-img {
  background: url("../svg/bg-top.svg") left top no-repeat, url("../svg/bg-bottom.svg") right bottom no-repeat, linear-gradient(189.53deg, #92FFA9 18%, #56D8D0 120%);
}

nav {
  height: 48px;
  min-height: 80px;
}

@media (min-width: 1024px) {
  nav {
    height: 80px;
    min-height: 80px;
  }

  footer {
    height: 80px;
    min-height: 80px;
    box-shadow: 0px -5px 23px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
}

.mobile-full-screen {
  height: 100vh;
  /* Fallback for browsers that do not support Custom Properties */
  height: calc(var(--vh, 1vh) * 100);
}

@media all and (-ms-high-contrast: none), (prefers-contrast: high) {
  .ie-fixing {
    height: 100vh;
  }
}

.custom-select select {
  -webkit-appearance: none;
}

.custom-select select:active {
  border-bottom: 2px solid #02CE6A;
}

.custom-select.opened img {
  transform: rotate(180deg);
  transition: all 100ms ease-in-out;
}

.border-1 {
  border-width: 1px;
}

.tooltip {
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #515151;
  border-radius: 3px;
  padding: 22px;
  position: absolute;
  width: 212px;
  top: -70px;
  transition: all 300ms ease-in-out;
  font-family: Montserrat;
  font-style: normal;
  font-weight: normal;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  letter-spacing: 0.2px;
  color: #FFFFFF;
  box-shadow: 0px 2px 19px rgba(0, 0, 0, 0.14);
}

.tooltip.active {
  visibility: visible;
  transition: all 300ms ease-in-out;
}

.tooltip:before {
  content: "";
  position: absolute;
  margin-top: -6px;
  margin-left: 5px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #515151;
  box-shadow: 0 7px 64px rgba(0, 0, 0, 0.07);
  transform: rotate(-180deg);
  bottom: -10px;
}

.success-notification-overlay {
  background: #232323;
  opacity: 0.4;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.success-notification {
  background: #E0FFF0;
  /* green-300 */
  border: 1px solid #69FB9B;
  box-sizing: border-box;
  border-radius: 4px;
  position: fixed;
  top: 47px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 18px;
  /* identical to box height, or 112% */
  letter-spacing: 0.2px;
  /* green-700 */
  color: #02723C;
  padding: 16px;
  z-index: 99999;
}

@media (min-width: 1024px) {
  .success-notification {
    width: 566px;
    right: 41px;
  }
}

@media (max-width: 1024px) {
  .success-notification {
    width: 100%;
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Fundo white, borda border-gray-100 e Button-shadow. */
.resgate-card {
  background: #FFFFFF;
  border: 1px solid #DCDCDC;
  box-sizing: border-box;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.14);
  border-radius: 6px;
}

@media (min-width: 1024px) {
  .resgate-card {
    padding: 40px;
  }
}

@media (max-width: 1023px) {
  .resgate-card {
    padding: 15px;
  }
}

/* Borda border-gray-100 e Button-shadow. */
.detail-card {
  background: #FFFFFF;
  border: 1.5px solid #DCDCDC;
  box-sizing: border-box;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.14);
  border-radius: 6px;
}

.detail-card.active {
  border: 2px solid #FF28F1;
}
