/*
 * SGAIB / APEX: acceso flotante a transcripciones.
 * Region de acceso: SGAIB_TRANSCRIPCIONES_ACCESO
 * Boton: SGAIB_TRANSCRIPCIONES_BTN
 * El dialogo conserva su ID SGAIB_TRANSCRIPCIONES.
 * Reemplazar el contenido anterior de este archivo; no acumular parches.
 */

#SGAIB_TRANSCRIPCIONES_ACCESO {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 500;
  width: auto;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  /* Recorta tambien fondos y decoraciones de los contenedores internos. */
  overflow: hidden !important;
  isolation: isolate;
  /* La sombra pertenece a la capsula exterior, no a un hijo recortado. */
  box-shadow: 0 6px 20px rgba(11, 77, 120, 0.23) !important;
}

#SGAIB_TRANSCRIPCIONES_ACCESO > .t-Region-header,
#SGAIB_TRANSCRIPCIONES_ACCESO > .t-Region-bodyWrap > .t-Region-body,
#SGAIB_TRANSCRIPCIONES_ACCESO > .t-Region-bodyWrap > .t-Region-buttons--top,
#SGAIB_TRANSCRIPCIONES_ACCESO .t-Region-buttons-left {
  display: none !important;
}

#SGAIB_TRANSCRIPCIONES_ACCESO .t-Region-bodyWrap,
#SGAIB_TRANSCRIPCIONES_ACCESO .t-Region-buttons,
#SGAIB_TRANSCRIPCIONES_ACCESO .t-Region-buttons-right {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

#SGAIB_TRANSCRIPCIONES_ACCESO .t-Region-buttons--bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#SGAIB_TRANSCRIPCIONES_BTN {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  margin: 0 !important;
  padding: 12px 22px;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0b4d78 !important;
  background-clip: padding-box;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
  cursor: pointer;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: background-color 150ms ease;
}

/* Retira solo las capas decorativas de estos dos elementos. */
#SGAIB_TRANSCRIPCIONES_ACCESO::before,
#SGAIB_TRANSCRIPCIONES_ACCESO::after,
#SGAIB_TRANSCRIPCIONES_BTN::before,
#SGAIB_TRANSCRIPCIONES_BTN::after {
  content: none !important;
  display: none !important;
}

#SGAIB_TRANSCRIPCIONES_BTN:hover {
  background: #073756 !important;
}

#SGAIB_TRANSCRIPCIONES_BTN:active {
  background: #062e48 !important;
}

/* El foco queda dentro del boton para que el contenedor no lo recorte. */
#SGAIB_TRANSCRIPCIONES_BTN:focus {
  outline: none !important;
  box-shadow: inset 0 0 0 3px #a7dcff !important;
}

/* En navegadores compatibles, el clic no necesita el anillo del teclado. */
#SGAIB_TRANSCRIPCIONES_BTN:focus:not(:focus-visible) {
  box-shadow: none !important;
}

@media (max-width: 480px) {
  #SGAIB_TRANSCRIPCIONES_ACCESO {
    right: 16px;
    bottom: 76px;
    max-width: calc(100vw - 32px);
  }

  #SGAIB_TRANSCRIPCIONES_BTN {
    padding: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #SGAIB_TRANSCRIPCIONES_BTN {
    transition: none;
  }
}

@media print {
  #SGAIB_TRANSCRIPCIONES_ACCESO {
    display: none !important;
  }
}
