@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style-type: none;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

html {
  overflow-x: hidden;
}

.cont_pendiente {
  position: relative;
}

.resumen {
  border: solid 1px green;
  margin: 5px 0px;
  padding: 5px 5px;
}

/* Contenedor principal */
.cont_view {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Asegura que el contenido extra no se desborde */
  max-height: 500px; /* Altura máxima del contenedor */
  width: 100%; /* Ajuste al ancho disponible */
  border-radius: 10px; /* Bordes redondeados */
  background-color: #f1f1f1; /* Fondo neutral para resaltar la imagen */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para darle profundidad */
}

/* Imagen */
.view_adjunto {
  max-width: 100%; /* Limitar el ancho al tamaño del contenedor */
  max-height: 100%; /* Limitar la altura al tamaño del contenedor */
  width: auto; /* Permitir escalado horizontal */
  height: auto; /* Permitir escalado vertical */
  object-fit: contain; /* Ajustar la imagen sin recortar */
  border-radius: 8px; /* Bordes redondeados */
  transition: transform 0.3s ease; /* Transición suave al interactuar */
}

/* Hover para mejorar la experiencia */
.view_adjunto:hover {
  transform: scale(1.03); /* Efecto de zoom suave al pasar el cursor */
}

.adjuntos_seleccionados {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  overflow-x: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.miniatura_adjunto {
  position: relative;
  width: 74px;
  min-width: 74px;
  height: 74px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
}

.miniatura_adjunto.is-active {
  border-color: #0ea5e9;
}

.miniatura_adjunto img,
.miniatura_adjunto video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.miniatura_adjunto .miniatura_tipo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.miniatura_eliminar {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.estado_error_envio {
  display: inline-block;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.btn_reintentar_envio {
  margin-left: 6px;
  border: 1px solid #0ea5e9;
  background: #fff;
  color: #0369a1;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}

.content_button {
  display: flex;
  width: 100%; /* Ajuste al ancho disponible */
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.content_button button {
  width: 50%;
  height: 50px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  transition: 100ms;
  margin-left: 20px;
  background-color: var(--main-color);
  box-shadow: 5px 5px 5px #999;
  color: #fff;
  border: 2px solid var(--main-color);
}

.content_button button:hover {
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.intermitente {
  -webkit-animation-name: blinker;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;

  -moz-animation-name: blinker;
  -moz-animation-duration: 1s;
  -moz-animation-timing-function: linear;
  -moz-animation-iteration-count: infinite;

  animation-name: blinker;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@-moz-keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#myBar {
  width: 0%;
  height: 30px;
  background-color: var(--main-color);
  text-align: center; /* To center it horizontally (if you want) */
  line-height: 30px; /* To center it vertically */
  color: white;
}

.sidebar {
  width: 70px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  background: var(--main-color);
  z-index: 100;
  transition: all 300ms;
  overflow-y: auto;
}

.sidebar-brand {
  height: 90px;
  padding: 1rem 0rem 1rem 2rem;
  color: #fff;
}

.sidebar-brand span {
  display: inline-block;
  padding-right: 1rem;
}

.sidebar-menu {
  margin-top: 1rem;
}
.sidebar-menu li {
  width: 100%;
  padding-left: 1rem;
}

.sidebar-menu a {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 0rem 1rem 1rem;
}

ul li.active a,
ul li a:hover,
ul li a:active,
nav a.active {
  background: #fff;
  /*padding-left: 1rem;*/
  color: var(--main-color);
  border-radius: 30px 0px 0px 30px;
}

.sidebar-menu a span:first-child {
  font-size: 1.5rem;
  padding-right: 1rem;
}

#menu_lateral #menu_respuestas_rapidas .la-bolt {
  display: inline-block;
  margin: 0;
  padding: 0;
  transform: rotate(45deg);
}

.boton_activo_tab {
  background: var(--main-color);
  color: #fff !important;
  border-color: var(--main-color) !important;
}

#nav-toggle:checked + .sidebar {
  width: 70px;
}

#nav-toggle:checked + .sidebar .sidebar-brand,
#nav-toggle:checked + .sidebar li {
  padding-left: 1rem;
  text-align: center;
}

#nav-toggle:checked + .sidebar li a {
  padding-left: 0rem;
}

#nav-toggle:checked + .sidebar .sidebar-brand h2 .nav-label,
#nav-toggle:checked + .sidebar li a .nav-label {
  display: none;
}

#nav-toggle:checked ~ .main-content {
  margin-left: 70px;
}

#nav-toggle:checked ~ .main-content header {
  width: calc(100% - 70px);
  left: 70px;
}

.main-content {
  transition: all 300ms;
  margin-left: var(--sidebar-offset, 70px);
}

/*
.contenedor_busqueda_lead{
	display: flex;
	z-index: 100;
}
*/

header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  position: fixed;
  left: 70px;
  width: calc(100% - 70px);
  top: 0;
  z-index: 900;
  transition: all 300ms;
}

header h2 {
  color: #222;
}

header label span {
  /*font-size: 1.7rem;*/
  padding-right: 1rem;
}

.search-wrapper {
  border-radius: 30px;
  height: 35px;
  display: flex;
  align-items: center;
  background-color: var(--fondo_gris);
}

.search-wrapper span {
  display: inline-block;
  padding: 0rem 1rem;
  font-size: 1.5rem;
}

.search-wrapper input {
  width: 100%;
  height: 100%;
  padding: 0.3rem;
  border: none;
  outline: none;
  background-color: transparent;
}

.user-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-wrapper .cont_foto {
  margin: auto;
  width: 40px;
  height: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.user-wrapper img {
  display: inline;
  margin: 0 auto;
  width: 40px;
  height: 40px;
  width: auto;
}

.user-wrapper small {
  display: inline-block;
  color: var(--text-grey);
}

body {
  background: #f1f5f9;
  overflow-x: hidden;
}

main {
  margin-top: 0px !important;
  background: #f1f5f9;
  overflow-x: hidden;
}

main.with-global-header {
  padding-top: var(--app-header-height, 72px);
}

/*
	CSS CHATS
*/

.cont_iconos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center; /* Centra los elementos verticalmente */
  gap: 10px; /* Espaciado entre los elementos */
}

.ico_menu {
  font-size: 25px;
  margin: 0px 10px;
  float: right;
}

#errores_import {
  font-size: 10px;
}

.estado_reloj {
  font-size: 15px;
  float: right;
  color: #fff;
  background-color: transparent;
}

.estad_visto_gris {
  font-size: 15px;
  float: right;
  color: #fff;
  background-color: transparent;
}

.estad_visto_verde {
  display: flex;
  font-size: 15px;
  float: right;
  color: #00f531;
  background-color: transparent;

  width: auto;
  float: right;
  justify-content: right;
  text-align: right;
}

.chat_data {
  color: var(--textMsgOutDate);
  font-size: 10px;
  margin-right: 10px;
}

.ico_menu:hover {
  color: var(--main-color);
  background-color: white;
  border-radius: 20px;
  cursor: pointer;
}

.sync {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.sync.spin {
  animation: spin 1s infinite linear;
  color: var(--main-color);
}

/* Animación de rotación */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.contenedor_chats {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 100%;
}

.contenedor_embudo {
  position: absolute;
  top: 50px;
  left: 65px;
  right: 0;
  bottom: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: rgba(15, 23, 42, 0.6) rgba(148, 163, 184, 0.28);
}

.contenedor_embudo::-webkit-scrollbar {
  width: 12px;
  height: 18px;
}

.contenedor_embudo::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.contenedor_embudo::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.62);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.contenedor_embudo::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.82);
}

.contenedor_embudo::-webkit-scrollbar-thumb:active {
  background: rgba(2, 6, 23, 0.9);
}

.contenedor_embudo::-webkit-scrollbar-corner {
  background: transparent;
}

.chat-list {
  overflow-y: scroll;
}

.contenedor_chats .chats {
  left: 70px;
  position: fixed;
  display: flex;
  height: 100%;
  flex-direction: column;
  width: 364px;
  min-width: 230px;
  z-index: 99;

  background-color: #fff;
}

/* Embudos module (routes /embudos/tipo/:tipo and /embudos/edit/:id) */
.embudos-page {
  position: absolute;
  top: var(--app-header-height, 72px);
  left: var(--sidebar-offset, 70px);
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  overflow: auto;
}

.embudos-page--list {
  justify-content: flex-start;
}

.embudos-page--edit {
  justify-content: flex-start;
}

.embudos-edit-panel {
  flex: 0 0 min(440px, 42vw);
  min-width: min(440px, 100%);
  width: min(440px, 100%);
  max-width: 100%;
}

.embudos-sidebar,
.embudo-config-panel {
  background: #fff;
  border: 1px solid #dce6f3;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.embudos-sidebar {
  flex: 0 0 min(380px, 100%);
  width: min(380px, 100%);
  min-height: 220px;
  max-height: calc(100dvh - var(--app-header-height, 72px) - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.embudos-sidebar__header {
  background: var(--main-color);
  color: #fff;
  padding: 14px 16px;
}

.embudos-sidebar__title {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.embudos-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
}

.embudos-sidebar__item,
.embudo-config-item,
.embudo-cuentas-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e4ebf5;
  background: #fff;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.embudos-sidebar__item:hover,
.embudo-config-item:hover,
.embudo-cuentas-item:hover {
  background: #f8fbff;
  border-color: #cfe0f2;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.embudos-sidebar__item--add {
  border-style: dashed;
}

.embudos-action-link {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d5e3f3;
  background: #f8fbff;
  color: var(--main-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.embudos-action-link:hover {
  background: #eaf4ff;
  border-color: #bad4ef;
}

.embudos-action-link:active,
.embudos-action-link:visited {
  color: var(--main-color);
}

.embudos-icon {
  font-size: 24px;
  line-height: 1;
}

.embudos-sidebar__content-link,
.embudo-config-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  color: #1f2937;
  text-decoration: none !important;
}

.embudos-sidebar__content-link:visited,
.embudos-sidebar__content-link:active,
.embudo-config-item__body:visited,
.embudo-config-item__body:active {
  color: #1f2937;
}

.embudos-sidebar__name-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.embudos-sidebar__name {
  flex: 1 1 auto;
  min-width: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.embudos-sidebar__count {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.embudo-config-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.embudo-config-item__name {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.embudo-cuentas-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embudo-cuentas-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.embudo-cuentas-item__name {
  width: 100%;
  min-width: 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.embudo-resumen {
  background: #ffffff;
  border-radius: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid #e3ebf5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.embudo-resumen__item {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  column-gap: 10px;
}

.embudo-resumen__label {
  color: #8a97ab;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.embudo-resumen__value {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.estado {
  font-size: 14px;
  margin-left: 5px;
  vertical-align: middle;
}

.estado.reloj {
  color: gray;
}

.estado.enviado {
  color: gray;
}

.estado.entregado {
  color: gray;
}

.estado.visto {
  color: green;
}

.estado.reproducido {
  color: blue;
}

.estado.desconocido {
  color: red;
}

.conversaciones {
  position: absolute;
  left: 0;
  top: 66px;
  right: 0;
  bottom: 73px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 99;
}

.chat-dropzone-hint {
  position: absolute;
  inset: 16px;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 2px dashed rgba(12, 74, 110, 0.18);
  background: radial-gradient(
      circle at top,
      rgba(14, 165, 233, 0.12),
      transparent 52%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(240, 249, 255, 0.96)
    );
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.chat-dropzone-hint__icon {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075985;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.18),
    inset 0 0 0 1px rgba(14, 165, 233, 0.14);
}

.chat-dropzone-hint__title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chat-dropzone-hint__text {
  color: #334155;
  font-size: 13px;
  font-weight: 500;
}

.conversaciones.chat-dropzone-active {
  background: linear-gradient(
    180deg,
    rgba(240, 249, 255, 0.82),
    rgba(224, 242, 254, 0.58)
  );
}

.conversaciones.chat-dropzone-active .chat-dropzone-hint {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 22px 42px rgba(14, 165, 233, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.conversaciones.chat-dropzone-active .contenedor_conversaciones {
  filter: blur(1.8px);
  transform: scale(0.995);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.conversaciones .seleccionar_hilo {
  display: flex;
  width: 100%;
  justify-content: center;
}

.convesaciones_head {
  height: 70px !important;
  z-index: 152;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background-color: var(--main-color);
  display: flex;
  padding: 8px;
  color: white;
  align-items: center;
}

.convesaciones_head .nombre_estado {
  width: 100%;
  margin: 0px 10px;
  cursor: pointer;
}

.convesaciones_head .head_anotacion {
  margin: 0px 10px;
  cursor: pointer;
  width: 100%;
}

.convesaciones_head .head_anotacion select {
  font-size: 12px;
  float: right;
  box-shadow: 1px 1px 5px rgb(0 0 0 / 50%);
  border-radius: 50px;
  padding: 5px 10px;
  background-color: var(--main-color);
  color: white;
  margin-top: 12px;
}

.head_anotacion:hover {
  cursor: pointer;
}

.convesaciones_head .ultimated_anot {
  font-size: 12px;
  float: right;
  box-shadow: 1px 1px 5px rgb(0 0 0 / 50%);
  border-radius: 50px;
  padding: 5px 10px;
}

.convesaciones_footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible !important;
  background-color: var(--main-color);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 20px 15px;
  z-index: 148;
}

.respuestas_rapidas {
  max-height: 220px;
  overflow-y: auto;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 74px;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  z-index: 1000;
}

.quick-reply-button.selected {
  background-color: #4caf50; /* Color de fondo cuando está seleccionado */
  color: white; /* Color del texto cuando está seleccionado */
  border: 2px solid #3e8e41; /* Borde cuando está seleccionado */
}

.quick-reply-button {
  display: block;
  min-height: 40px;
  max-height: 52px;
  overflow: hidden;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
  transition: all 0.16s ease-in-out;
}

.quick-reply-button:hover,
.quick-reply-button.active {
  background-color: #0ea5e9;
  color: #fff;
  border-color: #0284c7;
}

.convesaciones_footer input {
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
}

.convesaciones_footer .btn_enviar,
.convesaciones_footer .btn_adjunto {
  flex: 0 0 auto;
  width: auto;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: white;
  font-size: 25px;
  line-height: 1;
}

.convesaciones_footer .btn_enviar {
  padding: 0 10px;
}

.convesaciones_footer .btn_adjunto {
  padding: 0 10px 0 0;
}

.convesaciones_footer .btn_enviar:hover,
.convesaciones_footer .btn_adjunto:hover {
  color: #333;
  cursor: pointer;
}

.convesaciones_footer .text_mensaje {
  flex: 1 1 auto;
  background-color: white;
  height: 40px;
  min-height: 40px;
  max-height: 150px;
  min-width: 0;
  resize: none;
  overflow-y: hidden;
}

.convesaciones_footer .chat-emisor-select {
  flex: 0 0 136px;
  width: 136px;
  min-width: 136px;
  max-width: 136px;
  height: 25px;
  align-self: center;
  box-sizing: border-box;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--main-color);
  color: white;
  font-size: 12px;
  line-height: 25px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 8px;
}

.convesaciones_footer .chat-emisor-select:focus {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

.convesaciones_footer .btn_enviar.is-disabled,
.convesaciones_footer .btn_adjunto.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.convesaciones_footer textarea:disabled,
.convesaciones_footer input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hide {
  display: none;
}
.file_upload {
  cursor: pointer;
}

.conversaciones .contenedor_conversaciones {
  padding: 16px clamp(12px, 5vw, 52px) 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  transition: opacity 0.2s ease;
}

.chat-loader-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.chat-loader-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 20px;
  padding: 8px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.chat-loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d8d8d8;
  border-top-color: var(--main-color);
  border-radius: 50%;
  animation: chatSpin 0.8s linear infinite;
}

.chat-loader-text {
  font-size: 13px;
  color: #333;
}

@keyframes chatSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.conversaciones .chat-message-row {
  width: 100%;
}

.conversaciones .modulo_in,
.conversaciones .modulo_out {
  width: 100%;
  display: flex;
  padding: 2px 0;
}

.conversaciones .modulo_in {
  justify-content: flex-start;
}

.conversaciones .modulo_out {
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
}

.conversaciones .msg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: fit-content;
  min-width: 120px;
  max-width: min(76%, 700px);
  padding: 10px 12px 9px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid transparent;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.conversaciones .msg-in {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  border-color: #dbe5ef;
  border-bottom-left-radius: 6px;
}

.conversaciones .msg-out {
  background: var(--main-color);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--main-color) 92%, white 8%) 0%,
    color-mix(in srgb, var(--main-color) 80%, #0f172a 20%) 100%
  );
  color: var(--textMsgOut, #f8fafc);
  border-color: var(--main-color);
  border-color: color-mix(in srgb, var(--main-color) 75%, #0f172a 25%);
  border-bottom-right-radius: 6px;
}

.conversaciones .msg .msg-content,
.conversaciones .msg .message {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.conversaciones .msg a {
  color: #0369a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.conversaciones .msg-out a {
  color: #e0f2fe;
}

.conversaciones .cont-responder {
  border-radius: 12px;
  border-left: 3px solid #0ea5e9;
  background: #eaf2fb;
  padding: 8px 10px;
  margin-bottom: 2px;
}

.conversaciones .msg-out .cont-responder {
  border-left-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.conversaciones .msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.conversaciones .msg-meta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.conversaciones .msg-meta-in .msg-meta-badge {
  background: #e8f1fb;
  color: #17436d;
  border-color: #c3d8ee;
}

.conversaciones .msg-meta-out .msg-meta-badge {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.2);
}

.conversaciones .msg-meta-badge-owner {
  font-weight: 700;
}

.conversaciones .msg-meta-badge-operator,
.conversaciones .msg-meta-badge-destination {
  opacity: 0.95;
}

.conversaciones .msg-route-alert {
  margin-bottom: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 228, 170, 0.45),
    rgba(255, 243, 214, 0.65)
  );
  border: 1px solid rgba(181, 124, 0, 0.4);
  color: #6a4300;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.conversaciones .msg-out .msg-route-alert {
  background: linear-gradient(
    180deg,
    rgba(255, 238, 193, 0.22),
    rgba(255, 250, 228, 0.14)
  );
  border-color: rgba(255, 239, 192, 0.35);
  color: #fff4d1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.conversaciones .msg-route-alert__title {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.conversaciones .msg-route-alert__body {
  display: block;
}

.conversaciones .msg-route-alert strong {
  font-weight: 800;
}

.conversaciones .title-responder {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.2;
}

.conversaciones .msg-responder {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.35;
}

.conversaciones .img_media,
.conversaciones .img_media_res {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.08);
}

.conversaciones .msg-out .img_media,
.conversaciones .msg-out .img_media_res {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.conversaciones .img_media img,
.conversaciones .img_media_res img {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 420px;
  object-fit: cover;
}

.conversaciones .img_media video,
.conversaciones .img_media_res video {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 420px;
  object-fit: contain;
  background: #020617;
}

.conversaciones audio,
.conversaciones .img_media audio {
  display: block;
  width: min(100%, 360px);
  max-width: 100%;
  height: 38px;
  border-radius: 999px;
}

.conversaciones .pdf-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.conversaciones .pdf-container embed {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 440px;
  background: #fff;
}

.conversaciones .pdf-container p {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #475569;
  border-top: 1px solid #dbe4ee;
  background: #f1f5f9;
}

.conversaciones .pdf-container p a {
  color: #0369a1;
  font-weight: 700;
}

.conversaciones .msg-out .pdf-container {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.conversaciones .msg-out .pdf-container p {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-top-color: rgba(255, 255, 255, 0.22);
}

.conversaciones .msg-out .pdf-container p a {
  color: #dbeafe;
}

.boton {
  width: 100%;
  cursor: pointer;
  padding: 10px 0px 10px 0px;
  border-radius: 20px;
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  transition: 100ms;
}

.conversaciones .msg-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.conversaciones .msg-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1;
}

.conversaciones .msg-status-in {
  gap: 0;
  color: #64748b;
}

.conversaciones .msg-out .msg-status {
  color: rgba(255, 255, 255, 0.9);
  justify-content: flex-end;
}

.conversaciones .msg-status .chat_data {
  color: currentColor;
  margin: 0;
  font-size: 11px;
  line-height: 1;
}

.conversaciones .msg-status .estado_reloj,
.conversaciones .msg-status .estad_visto_gris,
.conversaciones .msg-status .estad_visto_verde {
  font-size: 14px;
  float: none;
  color: currentColor;
}

.conversaciones .msg-status .estad_visto_verde {
  color: #22c55e;
}

.conversaciones .msg-status .estado_error_envio {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 1.2;
}

.conversaciones .msg-status .btn_reintentar_envio {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 1.2;
}

.active-queue-badge {
  position: fixed;
  left: calc(var(--sidebar-offset, 70px) + 18px);
  bottom: 50px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(320px, calc(100vw - var(--sidebar-offset, 70px) - 32px));
  padding: 12px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.97);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.active-queue-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.active-queue-badge__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.active-queue-badge__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-queue-badge__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.active-queue-badge__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.active-queue-badge__lead {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-queue-badge__count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.active-queue-badge__status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.active-queue-badge__status--waiting {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.active-queue-badge__status--uploading {
  background: rgba(14, 165, 233, 0.18);
  color: #bae6fd;
}

.active-queue-badge__status--sending {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.active-queue-badge__status--error {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.active-queue-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.conversaciones .msg-responsable {
  margin-top: 4px;
  color: #64748b;
  display: block;
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
  padding-right: 6px;
}

.conversaciones .chat-date-separator {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
}

.conversaciones .chat-date-separator-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4d9df, transparent);
  min-width: 10px;
}

.conversaciones .chat-date-separator-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  border: 1px solid #d4dde8;
  padding: 4px 11px;
  white-space: nowrap;
}

.conversaciones .msg-origen {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .active-queue-badge {
    left: calc(var(--sidebar-offset, 70px) + 12px);
    bottom: 104px;
    width: min(300px, calc(100vw - var(--sidebar-offset, 70px) - 24px));
  }

  .chat-dropzone-hint {
    inset: 10px;
    border-radius: 18px;
    padding: 16px;
  }

  .chat-dropzone-hint__icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .chat-dropzone-hint__title {
    font-size: 16px;
  }

  .chat-dropzone-hint__text {
    font-size: 12px;
    text-align: center;
  }

  .conversaciones .contenedor_conversaciones {
    padding: 12px 12px 24px;
  }

  .conversaciones .msg {
    max-width: 88%;
    min-width: 0;
  }

  .conversaciones .img_media img,
  .conversaciones .img_media_res img,
  .conversaciones .img_media video,
  .conversaciones .img_media_res video {
    max-height: 320px;
  }
}

.cont_anotaciones {
  position: fixed;
  top: calc(var(--app-header-height, 72px) + 40px);
  right: 10px;
  z-index: 220;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform: translateX(110%);
  opacity: 0;
  width: min(332px, calc(100vw - 16px));
  max-width: 332px;
  max-height: min(30dvh, 200px);
  pointer-events: none;
}

.cont_anotaciones.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.cont_anotaciones.chat-loading-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(110%);
}

.const_new_anotacion {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.const_new_anotacion input {
  float: none;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #d0dbe8;
  background: #f8fbff;
  color: #0f172a;
  font-size: 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.const_new_anotacion input:focus {
  border-color: #7fb3e8;
  box-shadow: 0 0 0 3px rgba(56, 136, 216, 0.15);
  background: #fff;
}

.const_new_anotacion input[readonly] {
  background: #f1f5f9;
  color: #64748b;
}

.contenedor_anotaciones {
  width: 100%;
  height: 100%;
}

.cont_anotaciones .anotaciones_card {
  width: 100%;
  max-height: inherit;
  border: 1px solid #d9e4f0;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  background: #fff;
  overflow: hidden;
}

.cont_anotaciones .anotaciones_card .card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.cont_anotaciones .anotaciones_header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.cont_anotaciones .anotaciones_header h4 {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
}

.cont_anotaciones .anotaciones_header span {
  font-size: 10px;
  color: #64748b;
}

.cont_anotaciones .tabla_anotaciones {
  width: 100%;
  flex: 1 1 auto;
  max-height: min(30dvh, 185px);
  overflow: auto;
  margin-top: 6px;
  padding-right: 2px;
}

.cont_anotaciones .tabla_anotaciones::-webkit-scrollbar {
  width: 9px;
}

.cont_anotaciones .tabla_anotaciones::-webkit-scrollbar-track {
  background: #edf2f7;
  border-radius: 999px;
}

.cont_anotaciones .tabla_anotaciones::-webkit-scrollbar-thumb {
  background: #c0cfdf;
  border-radius: 999px;
}

.cont_anotaciones .tabla_anotaciones::-webkit-scrollbar-thumb:hover {
  background: #9eb3c8;
}

.cont_anotaciones .anotaciones-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cont_anotaciones .anotacion-item {
  border: 1px solid #dde7f2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 10px;
  padding: 6px 8px;
}

.cont_anotaciones .anotacion-item:hover {
  border-color: #c6d8eb;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.cont_anotaciones .anotacion-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.cont_anotaciones .anotacion-user {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.cont_anotaciones .anotacion-time {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
}

.cont_anotaciones .anotacion-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.cont_anotaciones .anotaciones-empty {
  border: 1px dashed #d3dce7;
  border-radius: 10px;
  background: #f8fbff;
  color: #64748b;
  font-size: 11px;
  padding: 10px 8px;
  text-align: center;
}

.info_chat {
  transition: all 300ms;
  background-color: white;
  position: fixed;
  right: 0px;
  left: 100%;
  top: 67px;
  bottom: 0;
  height: auto;
  z-index: 99;
  overflow-y: auto;
}

.item_chat {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e7edf5;
  background: #fff;
  overflow: hidden;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.item_embudo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e6edf5;
  background: #fff;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}


.add_dis {
  width: 100%;
  display: flex;
  padding: 5px;
  margin: 5px 0px;
  border-radius: 1px;
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
  align-items: center;
  color: darkgray;
  width: 100%;
  text-align: center;
  justify-content: center;
  font-weight: 100;
  opacity: 0;
  transition: all 200ms;
}

.add_dis span {
  font-size: 25px;
  margin-left: 10px;
}

.add_dis:hover {
  cursor: pointer;
  opacity: 1;
}

.item_chat:hover {
  background-color: #f7fbff;
  border-color: #cfe3f8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.09);
}

.item_embudo:hover {
  background-color: #f8fbff;
  border-color: #d6e5f6;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.item_chat a {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none !important;
}

.item_embudo a {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none !important;
}

.item_chat a:active,
.item_chat a:visited {
  color: #222;
}

.item_embudo a:active,
.item_embudo a:visited {
  color: #222;
}

.chat_img {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat_img img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dde7f3;
  background: #fff;
}

.chats .item_chat a {
  width: 100%;
}

.chats .item_embudo a {
  width: 100%;
}

.config_embud {
  width: auto !important;
}

.icono {
  margin: 0px;
  font-size: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  align-items: center;
  color: var(--main-color);
  padding: 5px 0px;
}

.botones_accion {
  width: 100%;
  display: flex;
  justify-content: center; /* Centra los elementos horizontalmente */
  flex-wrap: wrap;
}

.boton_accion {
  flex-direction: column;
  display: flex;
  align-items: center; /* Centra verticalmente el contenido */
  justify-content: center; /* Centra horizontalmente el contenido */
  width: 100px; /* Ancho deseado para cada botón */
  height: 100px;
  margin: 10px;
  border-radius: 20px; /* Se cambia de 30px a 50% para hacer un círculo */
  background: var(--main-color);
  transition: transform 0.3s ease; /* Agrega una transición suave en la propiedad transform */
}

.corto {
  width: 50px !important;
  background-color: transparent !important;
}

.icon_nombre {
  font-size: 12px;
  color: white;
}

.icono_canal {
  color: var(--main-color);
  font-size: 30px;
  padding: 10px;
}

.boton_accion:hover {
  cursor: pointer;
  transform: translateY(
    -5px
  ); /* Desplaza el botón hacia arriba cuando se hace hover */
}

.boton_accion i {
  font-size: 50px; /* Tamaño del icono */
  color: white; /* Color del icono */
}

.item_chat .info_contact {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item_embudo .info_contact {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.item_chat .info_contact .contact_head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.item_embudo .info_contact .contact_head {
  display: flex;
  align-items: center;
  min-width: 0;
}

.item_chat .info_contact .contact_name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-weight: 700;
}

.item_embudo .info_contact .contact_name,
.item_embudo .info_contact .emb_nom {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #1f2937;
  font-weight: 700;
}

.item_chat .info_contact .contact_name h5 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.item_chat .info_contact .emb_nom,
.item_chat .info_contact .em_nombre,
.item_chat .info_contact .em_cant {
  width: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.item_embudo .info_contact .em_nombre {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item_embudo .info_contact .em_cant {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.item_chat .info_contact .contact_name input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
}

.contact_date {
  flex: 0 0 auto;
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  margin-top: 1px;
}

.mensajes_pendientes {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  color: #94a3b8;
  font-size: 0;
  line-height: 0;
}

.mensajes_pendientes .tarjeta_msg {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.tarjeta_anot {
  width: fit-content;
  margin-right: 10px;
  border-radius: 10px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  padding: 3px 5px;
  margin-bottom: 10px;
  font-size: 10px;
  align-content: center;
  margin-top: 10px;
}

.anotaciones {
  display: block;
  width: 100% !important;
  text-align: left;
  font-weight: 100;
  color: #999;
}

.item_chat .anotaciones {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.item_chat .anotaciones .tarjeta_anot {
  display: inline-block;
  margin: 0;
  padding: 2px 6px;
  font-size: 10px;
}

.item_chat .info_contact .contact_msg {
  color: #5d6779;
  font-size: 12px;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.item_chat .info_contact .contact_msg p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/*Indice notificacion de seguimientos*/
.notificacion-cont {
  float: right;
  margin-right: 8px;
}

.notificacion-cont #notificacion {
  background: radial-gradient(5px -9px, circle, white 8%, red 26px);
  background-color: red;
  border-radius: 12px; /* one half of ( (border * 2) + height + padding ) */
  box-shadow: 1px 1px 1px black;
  color: white;
  font: bold 10px/13px Helvetica, Verdana, Tahoma;
  height: 16px;
  min-width: 14px;
  padding: 4px 3px 3px 3px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2rem;
  margin-top: 1rem;
}

.card-single {
  display: flex;
  justify-content: space-between;
  background: #fff;
  padding: 2rem;
  border-radius: 2px;
}

.card-single div:last-child span {
  font-size: 3rem;
  color: var(--main-color);
}

.card-single div:first-child span {
  color: var(--text-grey);
}

.card-single:last-child {
  background: var(--main-color);
}

.card-single:last-child h1,
.card-single:last-child div:first-child span,
.card-single:last-child div:last-child span {
  color: #fff;
}

/*TABLAS*/

.recent-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: 65% auto;
}

.card {
  background: #fff;
  border-radius: 5px;
}

.card-header,
.card-body {
  padding: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.card-header button {
  background: var(--main-color);
  border-radius: 10px;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--main-color);
}

/*	HOVER DESCRIPCION */

.middle {
  transition: 0.5s ease;
  position: absolute;
  top: -100%;
  left: 50%;
  width: 300px;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  visibility: collapse;
  display: none;
  z-index: 1000;
}

.cont_pendiente {
  transition: 0.5s ease;
  position: absolute;
  top: -28%;
  left: 90%;
  width: 20px;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  visibility: visible;
  display: block;
  z-index: 100;
}

.cont_pendiente label {
  color: black;
  font-size: 8px;
  margin: 0px;
}

.triangulo {
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  height: 10px;
  width: 20px;
  background: red;
}

.descipcion {
  background: rgba(76, 76, 76, 1);
  background: -moz-linear-gradient(
    45deg,
    rgba(76, 76, 76, 1) 0%,
    rgba(89, 89, 89, 1) 12%,
    rgba(102, 102, 102, 1) 25%,
    rgba(71, 71, 71, 1) 39%,
    rgba(44, 44, 44, 1) 47%,
    rgba(52, 63, 79, 1) 61%,
    rgba(17, 17, 17, 1) 65%,
    rgba(43, 43, 43, 1) 76%,
    rgba(18, 50, 66, 1) 91%,
    rgba(19, 19, 19, 1) 100%
  );
  background: -webkit-gradient(
    left bottom,
    right top,
    color-stop(0%, rgba(76, 76, 76, 1)),
    color-stop(12%, rgba(89, 89, 89, 1)),
    color-stop(25%, rgba(102, 102, 102, 1)),
    color-stop(39%, rgba(71, 71, 71, 1)),
    color-stop(47%, rgba(44, 44, 44, 1)),
    color-stop(61%, rgba(52, 63, 79, 1)),
    color-stop(65%, rgba(17, 17, 17, 1)),
    color-stop(76%, rgba(43, 43, 43, 1)),
    color-stop(91%, rgba(18, 50, 66, 1)),
    color-stop(100%, rgba(19, 19, 19, 1))
  );
  background: -webkit-linear-gradient(
    45deg,
    rgba(76, 76, 76, 1) 0%,
    rgba(89, 89, 89, 1) 12%,
    rgba(102, 102, 102, 1) 25%,
    rgba(71, 71, 71, 1) 39%,
    rgba(44, 44, 44, 1) 47%,
    rgba(52, 63, 79, 1) 61%,
    rgba(17, 17, 17, 1) 65%,
    rgba(43, 43, 43, 1) 76%,
    rgba(18, 50, 66, 1) 91%,
    rgba(19, 19, 19, 1) 100%
  );
  background: -o-linear-gradient(
    45deg,
    rgba(76, 76, 76, 1) 0%,
    rgba(89, 89, 89, 1) 12%,
    rgba(102, 102, 102, 1) 25%,
    rgba(71, 71, 71, 1) 39%,
    rgba(44, 44, 44, 1) 47%,
    rgba(52, 63, 79, 1) 61%,
    rgba(17, 17, 17, 1) 65%,
    rgba(43, 43, 43, 1) 76%,
    rgba(18, 50, 66, 1) 91%,
    rgba(19, 19, 19, 1) 100%
  );
  background: -ms-linear-gradient(
    45deg,
    rgba(76, 76, 76, 1) 0%,
    rgba(89, 89, 89, 1) 12%,
    rgba(102, 102, 102, 1) 25%,
    rgba(71, 71, 71, 1) 39%,
    rgba(44, 44, 44, 1) 47%,
    rgba(52, 63, 79, 1) 61%,
    rgba(17, 17, 17, 1) 65%,
    rgba(43, 43, 43, 1) 76%,
    rgba(18, 50, 66, 1) 91%,
    rgba(19, 19, 19, 1) 100%
  );
  background: linear-gradient(
    45deg,
    rgba(76, 76, 76, 1) 0%,
    rgba(89, 89, 89, 1) 12%,
    rgba(102, 102, 102, 1) 25%,
    rgba(71, 71, 71, 1) 39%,
    rgba(44, 44, 44, 1) 47%,
    rgba(52, 63, 79, 1) 61%,
    rgba(17, 17, 17, 1) 65%,
    rgba(43, 43, 43, 1) 76%,
    rgba(18, 50, 66, 1) 91%,
    rgba(19, 19, 19, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313', GradientType=1 );

  color: #ebebeb;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 0.5em;
}

.titulo_style {
  color: white;
}

.imagenyeah1:hover .middle {
  visibility: visible;
  display: block;
}

.imagenyeah1 {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

thead tr {
  border-top: 1px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

thead td {
  font-weight: 700;
}

td {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #222;
}

tbody .por_vencer {
  color: #e2840d;
  font-weight: 700;
}

tbody .vencido {
  color: #f30030;
  font-weight: 700;
}

tbody .vigente {
  color: #00c117;
  font-weight: 700;
}

td a {
  background: var(--main-color);
  color: #fff;
  padding: 5px;
  border-radius: 5px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.customer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
}

.info {
  display: flex;
  align-items: center;
}

.info img {
  border-radius: 50%;
  margin-right: 1rem;
}

.info h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #222;
}

.info small {
  font-weight: 600;
  color: var(--text-grey);
}

.contact span {
  font-size: 1.2rem;
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--main-color);
}

/*Tarjeta Seguimientos*/
.cont_seguimientos {
  background-color: #fff;
  padding: 5px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  margin-bottom: 5px;
}

.cont_seguimientos .row_head {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #ffb2dd;
}

.cont_seguimientos .row_head span.fecha_seguimiento {
  /*background-color: var(--main-color);*/
  color: #fff;
  padding: 5px 5px 5px 5px;
  border-top-left-radius: 5px;
}

.cont_seguimientos .row_head span:nth-child(2) {
  width: 70%;
  border-right: 1px solid #ffb2dd;
  border-left: 1px solid #ffb2dd;
  padding: 5px 0px 5px 10px;
  color: var(--main-color);
}

.cont_seguimientos .row_head a {
  width: 10%;
  font-size: 20px;
  color: var(--main-color);
  cursor: pointer;
  text-align: center;
}

.cont_seguimientos .row_head a:hover {
  background-color: var(--main-color);
  color: #fff;
  border-radius: 0px 5px 0px 0px;
}

.cont_seguimientos .nombre span {
  padding-left: 5px;
  font-weight: 600;
}

/*Ventana Flotante*/

.modal {
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: all 0.5s;
  opacity: 0;
  pointer-events: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-contenido {
  background: #f1f5f9;
  width: 400px;
  margin: 10% auto;
  position: relative;
  border-radius: 5px;
  color: #222;
}

.modal-contenido.amplio {
  width: 850px;
  margin: 10px auto;
}

.modal-contenido .content_eliminar {
  padding: 20px;
  display: -block;
}

.modal-contenido .content_eliminar button {
  float: right;
  margin-left: 10px;
  padding: 3px 5px 3px 5px;
  border-radius: 5px;
  background-color: default;
  cursor: pointer;
  border: 2px solid #333;
}

.eliminar_btn {
  background-color: var(--rojo);
  color: #fff;
  border: 2px solid var(--rojo);
  padding: 2px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.modal .modal-contenido .cerrar {
  display: inline-block;
  float: right;
  padding: 5px 10px 5px 10px;
  border-radius: 10px;
  color: #333;
  cursor: pointer;
  margin: 5px;
  font-weight: 700;
}

.en_uso {
  background-color: rgba(255, 0, 0, 0.2); /* Fondo rojo claro */
  border-left: 5px solid red; /* Indicador de chat en uso */
}

.cerrar_sesion {
  display: inline-block;
  float: right;
  padding: 5px 10px 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  margin: 5px;
  font-weight: 700;
}

.modal .modal-contenido form {
  padding: 0px 10px 20px 10px;
}

.modal .modal-contenido label {
  font-size: 16px;
}

.modal .modal-contenido input {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  border-style: none;
  padding: 8px;
}

.modal .modal-contenido input[type="password"],
.modal .modal-contenido input[type="text"],
.modal .modal-contenido input[type="number"],
.modal .modal-contenido input[type="date"],
.modal .modal-contenido input[type="time"],
.modal .modal-contenido input[type="email"],
.modal .modal-contenido input[type="tel"],
.modal .modal-contenido input[type="color"] {
  background: #ccc;
}

.modal .modal-contenido input[type="submit"] {
  background: var(--main-color);
  cursor: pointer;
  color: #fff;
}

.modal .modal-contenido input[type="file"] {
  cursor: pointer;
  margin: 0px 0px 5px 0px;
}

.modal-contenido.amplio input[type="number"],
.modal-contenido.amplio select {
  width: 60px;
  height: 20px;
  margin: 0px;
  padding: 0px 5px;
}

.modal-contenido.amplio input[type="date"] {
  margin-bottom: 5px !important;
}

.modal-contenido.amplio .cont_perdida {
  width: 100%;
  display: flex;
  margin: 5px 0px 5px 0px;
}

.modal-contenido.amplio .cont_perdida .cont_derecho label,
.modal-contenido.amplio .cont_perdida .cont_izquierdo label {
  display: inline-block;
  width: auto;
}

.modal-contenido.amplio .cont_perdida .cont_derecho {
  width: 50%;
  float: right;
}

.modal-contenido.amplio .cont_perdida .cont_izquierdo {
  width: 50%;
  float: left;
}

.modal-contenido.amplio .cont_perdida input[type="radio"] {
  width: 20px;
  cursor: pointer;
}

.modal-contenido .cont_tipo_contrato {
  padding: 10px;
}

.modal-contenido .tipo_contrato {
  width: 100%;
  color: #fff;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  margin-top: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 300ms;
}

.modal-contenido .tipo_contrato:hover {
  box-shadow: 5px 5px 5px #999;
  /*transform: scale(1.1);*/
}

.modal-contenido h3 {
  color: #222;
  font-weight: 900;
}

.modal-contenido p {
  color: #222;
}

/************************************************
 *                 ARRASTRAR Y SOLTAR
 ************************************************/

.example-parent {
  color: black;
  display: flex;
  font-family: sans-serif;
  font-weight: bold;
  width: max-content;
  min-width: 100%;
  flex-wrap: nowrap;
}

.example-draggable {
  background-color: #4aae9b;
  font-weight: normal;
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  max-width: 400px; /* Limita el ancho máximo */
}
.content_embudo {
  flex: 0 0 clamp(280px, 28vw, 380px);
  padding: 10px;
  display: flex;
  flex-direction: column; /* Encabezado arriba, dropzone abajo */
  min-height: 100%;
  min-width: clamp(280px, 28vw, 380px); /* Ancho mínimo */
  max-width: clamp(280px, 28vw, 380px); /* Ancho máximo */
  position: relative; /* Necesario para que sticky funcione */
  border: 0.5px solid #ccc;
}

.embudo_oculto {
  opacity: 0;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* icono */
.delete_embudo {
  position: absolute;
  left: 50%;
  bottom: -35px; /* 👈 SALE FUERA DEL BLOQUE */
  transform: translateX(-50%);

  width: 28px;
  height: 28px;
  border-radius: 50%;

  background: #ff3b3b;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* aparece SOLO al hover del content */
.content_embudo:hover .delete_embudo {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.delete_embudo:hover {
  background: #d60000;
}

/* Mantener el encabezado fijo verticalmente */
.content_embudo h4 {
  background-color: #fff; /* Fondo blanco para visibilidad */
  text-align: center; /* Centra el texto */
  padding: 10px 0; /* Espaciado interno */
  margin: 0; /* Sin margen */
  border-bottom: 2px solid #dfa612; /* Línea decorativa */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Sombra opcional */
  z-index: 1; /* Asegura que quede encima de otros elementos */
  position: sticky; /* Fija la posición */
  top: 0; /* El offset del header ya lo maneja .contenedor_embudo */
}

/* Área de dropzone */
.dropzone {
  flex-grow: 1; /* Rellena el espacio restante */
  min-height: 100%; /* Asegura altura mínima */
  width: 100%; /* Ocupa todo el ancho de la columna */
}

.content_embudo input {
  background-color: transparent;
  border-style: none;
  text-align: center;
  display: block;
  font-size: 1.17em;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  border-bottom: 2px solid #dfa612;
  text-transform: uppercase;
}

.add_embudo {
  position: relative;
}

.seleccionado {
  transform: scale(1.02) rotate(-1deg);
}

.fantasma {
  border: 2px dotted var(--main-color);
}

.drag {
  opacity: 0.5;
}

.embudo {
  margin: 10px;
}

.embudo h3 {
  text-align: center;
  border-bottom: 2px solid #dfa612;
}

.embudo .item_chat {
  margin: 6px 0;
  width: 100%;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.categoria_embudo {
  background-color: var(--main-color);
  color: white;
  padding: 20px 20px;
}

.embudo .item_chat:hover {
  cursor: move;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.btn_guardar {
  background-color: var(--main-color);
  border-style: none;
  padding: 0px 10px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.btn_guardar:hover {
  opacity: 0.9;
}

.btn_eliminar {
  background-color: red;
  border-style: none;
  padding: 0px 10px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  float: right;
}

.btn_eliminar:hover {
  opacity: 0.9;
}

/* Elegir serie nueva- Cambio por Garantía*/

.modal-contenido #id_audifono,
.modal-contenido #id_audifono2,
.modal-contenido #id_receptor,
.modal-contenido #id_receptor2 {
  border: 2px solid rgba(0, 0, 0, 0);
  margin: 5px 0px 5px 0px;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer !important;
}

.modal-contenido #id_audifono *,
.modal-contenido #id_audifono2 *,
.modal-contenido #id_receptor *,
.modal-contenido #id_receptor2 * {
  cursor: pointer !important;
}

.modal-contenido #id_audifono:hover,
.modal-contenido #id_audifono2:hover,
.modal-contenido #id_receptor:hover,
.modal-contenido #id_receptor2:hover {
  box-shadow: 5px 5px 5px #999;
}

.modal-contenido #value_serie_audifono,
.modal-contenido #value_serie_receptor,
.modal-contenido #value_serie_audifono2,
.modal-contenido #value_serie_receptor2 {
  background-color: #ccc;
  padding-left: 10px;
  font-weight: 700;
}

.container {
  display: flex;
  flex-wrap: wrap;
  margin-left: 70px;
}

.crm-settings-layout {
  width: calc(100vw - var(--sidebar-offset, 70px));
  max-width: calc(100vw - var(--sidebar-offset, 70px));
  margin-left: var(--sidebar-offset, 70px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-settings-layout > .card,
.crm-settings-layout .crm-permisos-card {
  width: 100% !important;
  margin: 0;
}

.crm-settings-layout .card .card-title {
  padding: 14px;
}

.crm-settings-layout .lista_rap {
  gap: 12px;
}

.crm-settings-layout .cont_respuesta {
  flex: 1 1 320px;
  width: min(420px, 100%);
  max-width: none;
}

.card {
  width: 300px;
  height: fit-content;
  margin: 10px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.5);
}

.add_control {
  display: flex;
  margin: 10px;
}

.add_control textarea {
  width: auto;
  border-radius: 5px;
  background: #ccc;
  border-style: none;
  padding: 5px;
}

.content_boton_nuevo {
  padding: 5px 10px;
  margin: 10px;
}

.boton_nuevo {
  width: 100%;
  max-height: 35px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  transition: 100ms;
}

.lista_rap {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
  border-radius: 10px;
}

.cont_respuesta {
  border-radius: 10px;
  max-width: 400px;
  padding: 5px;
  margin: 5px 0px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cont_respuesta:hover {
  box-shadow: 5px 5px 5px #999;
}

.cont_respuesta textarea {
  border-style: none;
  height: 150px;
  width: 100%;
  border-radius: 10px;
  background-color: rgb(230, 246, 255);
}

/* Título */
.card-title h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

/* Contenedor de alta */
.add_control {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Textarea */
.add_control textarea {
  flex: 1;
  min-height: 90px;
  resize: vertical;

  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;

  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  background: #f8fafc;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add_control input[type="url"],
.input_respuesta_imagen {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  color: #334155;
  background: #f8fafc;
}

.add_control input[type="url"]:focus,
.input_respuesta_imagen:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.add_control textarea::placeholder {
  color: #94a3b8;
}

/* Focus textarea */
.add_control textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Botón */
.add_control button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;

  font-size: 14px;
  font-weight: 600;

  background: var(--main-color);
  color: #ffffff;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* Hover botón */
.add_control button:hover {
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Active click */
.add_control button:active {
  transform: scale(0.96);
}

/* Disabled (si luego lo usás) */
.add_control button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Contenedor de checkboxes */
.embudos_checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Label base */
.label_embudo_select {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 500;

  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;

  cursor: pointer;
  user-select: none;

  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.1s ease;
}

/* Hover */
.label_embudo_select:hover {
  background: #eef2f7;
  border-color: #cbd5e1;
}

/* Checkbox */
.label_embudo_select input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb; /* azul moderno */
  cursor: pointer;
}

/* Estado seleccionado */
.label_embudo_select:has(input[type="checkbox"]:checked) {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #075985;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

/* Checked hover */
.label_embudo_select:has(input[type="checkbox"]:checked):hover {
  background: #bae6fd;
}

/* Click feedback */
.label_embudo_select:active {
  transform: scale(0.97);
}

.cont_respuesta button {
  margin: 10px;
  border-style: none;
}

.add_control button:hover {
  background-color: var(--main-color);
  box-shadow: 5px 5px 5px #999;
  color: #fff;
}

.card .card-title {
  width: 100%;
  padding: 10px;
}

.card .card-body {
  padding: 10px;
  border-bottom: #ccc solid 1px;
}
.card .card-footer {
  padding: 10px;
  font-size: 10px;
}

/* Permisos CRM */
.crm-permisos {
  width: 100%;
}

.crm-permisos-card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border-radius: 10px;
}

.crm-permisos .card-title p {
  color: #64748b;
  font-size: 13px;
  margin: 4px 0 0;
}

.crm-permisos-body {
  padding: 0 16px 16px 16px;
}

.crm-permisos-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.crm-permisos-btn {
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--main-color);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.crm-permisos-btn-outline {
  background: #fff;
  color: var(--main-color);
  border: 1px solid #cbd5e1;
}

.crm-permisos-form-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.crm-permisos-form-inline label {
  color: #334155;
  font-size: 13px;
}

.crm-permisos-search {
  width: min(420px, 100%);
}

.crm-permisos-search__input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #0f172a;
}

.crm-permisos-search__input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.crm-permisos-search__empty {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.crm-permisos select {
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #0f172a;
}

.crm-permisos-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.crm-permisos-table thead th {
  background: #f8fafc;
  color: #334155;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.crm-permisos-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.crm-permisos-group-row {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

@media only screen and (max-width: 768px) {
  .crm-permisos-body {
    padding: 0 12px 12px 12px;
  }

  .crm-permisos-table {
    display: block;
    overflow-x: auto;
  }

  .crm-permisos-table th,
  .crm-permisos-table td {
    white-space: nowrap;
  }

  .crm-permisos-btn {
    width: 100%;
  }
}

/*CUMPLEAÑOS*/

#cumple_container {
  width: auto;
  margin: 0px 10px;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.5);
  border-radius: 10px 10px 0px 0px;
  position: fixed;
  bottom: 0;
  right: 15px;
  z-index: 9;
  color: white;
  font-family: "", cursive;
  padding: 5px 20px;
}

#cumple_lottie {
  width: auto;
  margin: 0px 10px;
  position: fixed;
  bottom: 0;
  right: 15px;
  z-index: 9;
  color: white;
  padding: 5px 20px;
}

#cumple_titulo {
  width: auto;
  margin: 0px 10px;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.5);
  border-radius: 10px 10px 0px 0px;
  background: var(--main-color);
  position: fixed;
  bottom: 0;
  right: 15px;
  z-index: 9;
  color: white;
  font-family: "", cursive;
  padding: 5px 20px;
}

/*CALENDARIO*/

.modal-contenido.medio {
  width: 600px;
}

.modal .modal-header {
  background: var(--main-color);
  padding: 15px 10px;
  color: #fff;
  display: flex;
  border-radius: 5px 5px 0px 0px;
  font-size: 20px;
}

.modal .modal-header button {
  position: absolute;
  right: 0;
  padding: 5px;
  margin: 13px;
  top: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 900;
  color: #ccc;
}

.typing_start_operador {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  background-color: var(--main-color);
  display: none; /* Oculto por defecto */
  padding: 20px 10px;
  z-index: 148;
  color: #fff;
  transition: opacity 0.3s ease-in-out;
}

.emoji-drawer {
  position: absolute;
  bottom: 80px; /* Eleva el drawer por encima del input */
  left: 10px; /* Ajusta la posición horizontal */

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;

  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

  transition: opacity 0.2s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.las {
  cursor: pointer;
}

.emoji-drawer.visible {
  opacity: 1;
  pointer-events: auto;
}

.emoji {
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s;
}

.emoji:hover {
  transform: scale(1.2);
}

.modal .modal-header button:hover {
  color: #fff;
}

.modal .modal-body {
  background: white;
  padding: 10px;
}

.modal .modal-contenido input[type="color"] {
  width: 100%;
  padding: 0;
  border-radius: 0px 0px 5px 5px;
}

.modal .modal-footer {
  background: white;
  border-radius: 0px 0px 5px 5px;
  display: flex;
  margin: 10px;
}

.modal .modal-footer button {
  width: 80px;
  padding: 10px;
  cursor: pointer;
  margin: 10px 5px;
}

.boot-queue-message {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d9e7f7;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  text-align: left;
}

.boot-queue-message p {
  margin: 0;
}

.boot-queue-message__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.boot-queue-message__progress {
  margin-top: 8px !important;
  font-size: 14px;
  font-weight: 700;
  color: #0b5fa9;
}

.boot-queue-message__embudo {
  margin-top: 8px !important;
  font-size: 13px;
  line-height: 1.45;
  color: #1e293b;
}

.boot-queue-message__help {
  margin-top: 10px !important;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.boot-queue-list {
  margin: 10px 0 0 0;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  scroll-behavior: smooth;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.boot-queue-list__item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
}

.boot-queue-list__item:last-child {
  border-bottom: 0;
}

.boot-queue-list__icon {
  font-weight: 700;
  text-align: center;
}

.boot-queue-list__name {
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.boot-queue-list__status {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.boot-queue-list__item.is-ready .boot-queue-list__icon,
.boot-queue-list__item.is-ready .boot-queue-list__status {
  color: #15803d;
}

.boot-queue-list__item.is-current .boot-queue-list__icon,
.boot-queue-list__item.is-current .boot-queue-list__status {
  color: #0b5fa9;
}

.boot-queue-list__item.is-pending .boot-queue-list__icon,
.boot-queue-list__item.is-pending .boot-queue-list__status {
  color: #64748b;
}

.boot-queue-list__item.is-failed .boot-queue-list__icon,
.boot-queue-list__item.is-failed .boot-queue-list__status {
  color: #b91c1c;
}

.whatsapp-reconnect-action {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.whatsapp-reconnect-action__helper {
  max-width: 420px;
  line-height: 1.45;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.whatsapp-reconnect-action__button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.whatsapp-reconnect-action__button:hover {
  filter: brightness(0.94);
}

/*Buscador de personas*/
#result,
#result2,
#result3,
#result6,
#result_doc,
#result_edit {
  position: absolute;
  width: 100%;
  max-width: 870px;
  cursor: pointer;
  overflow-y: auto;
  max-height: 400px;
  box-sizing: border-box;
  z-index: 1001;
  background-color: #fff;
  border-radius: 3px;
  /*box-shadow: 1px 1px 5px 3px rgba(0,0,0,0.2);*/
}

#result li,
#result2 li,
#result3 li,
#result6 li,
#result_edit li,
#result_doc li {
  border-bottom: 1px solid #ccc;
  padding: 10px;
}

#busqueda_lead {
  top: 70px;
  position: absolute;
  width: 50%;
  overflow: hidden;
  max-width: 600px;
  cursor: pointer;
  background-color: #fff;
  z-index: 1001;
  border-radius: 3px;
  box-sizing: border-box;
  /*box-shadow: 1px 1px 5px 3px rgba(0,0,0,0.2);*/
}

#busqueda_lead li {
  border-bottom: 1px solid #ccc;
  width: 100%;
  height: 50px;
  padding: 10px;
  overflow: hidden;
}

.link-class:hover {
  background-color: #f1f1f1;
}

.btn.btn-success {
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  float: right;
}

.btn.btn-danger {
  border: 2px solid var(--main-color);
  color: var(--rojo);
  border-radius: 5px;
  float: right;
}

.btn.btn-default {
  border: 2px solid 111;
  color: #111;
  border-radius: 5px;
  float: right;
}
.btn.btn-success:hover,
.btn.btn-danger:hover,
.btn.btn-default:hover {
  opacity: 0.9;
}

.form-row {
  width: 100%;
  display: flex;
}

.form-row .col-mod-6 {
  width: 50%;
  margin: 5px 5px;
}

.form-row .col-mod-12 {
  width: 100%;
  margin: 5px 5px;
}

/*BLOQUEO DE MAYUSCULAS*/

#nombre,
#nacionalidad,
#ciudad,
#direccion,
#profesion,
#nombre_facturado,
#cotiz_nombre,
#molde_nombre,
#medida_nombre,
#micro_nombre,
#nombre_doctor,
#txttitle {
  text-transform: uppercase;
}

.formulario .datos_personales .cont_checkbox {
  width: auto;
  background-color: var(--main-color);
  padding: 10px;
  border-radius: 10px;
  float: left;
  margin-right: 10px;
  color: #fff;
  display: flex;
}

.formulario .datos_personales .cont_tipo_contrato {
  width: auto;
  background-color: var(--main-color);
  padding: 10px;
  border-radius: 10px;
  float: left;
  margin-right: 10px;
  color: #fff;
  display: flex;
}

.formulario .datos_personales .cont_tipo_contrato span {
  width: auto;
}

.formulario .datos_personales .cont_tipo_contrato input {
  border: 0px;
  width: 20px;
  height: 1.5em;
  margin: 2px 10px 0px 5px !important;
  float: left;
}

.formulario .datos_personales .cont_checkbox input {
  float: left;
  width: 20px !important;
  margin: 8px 0px 0px 10px !important;
}

.formulario .datos_personales .cont_checkbox label {
  float: left;
  margin-bottom: 0px;
  font-size: 16px;
}

.formulario .datos_personales .cont_factura:hover {
  background-color: #ff0f6a;
}

.formulario .datos_personales .cont_equipos:hover {
  background-color: #ff0f6a;
}

#input_referencia {
  display: none;
}

.formulario {
  margin: auto auto auto auto;
  width: 100%;
  border-radius: 10px;
}

.Eliminar {
  float: right;
  background-color: red;
  color: #fff;
  padding: 5px 10px 5px 10px;
  font-size: 15px;
  border-radius: 5px;
  cursor: pointer;
  border-style: none;
}

.Seguimiento {
  float: right;
  background-color: #03c455;
  font-size: 15px;
  color: #fff;
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  border-style: none;
  margin-right: 30px;
}

.Encuesta {
  float: right;
  background-color: var(--color-blue);
  font-size: 15px;
  color: #fff;
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  border-style: none;
  margin-right: 30px;
}

.formulario .datos_personales {
  width: 100%;
}

.formulario .datos_personales form {
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.formulario .datos_personales form h2 {
  display: block;
  width: 100%;
}

/*Resultados de Exámen*/

.formulario .datos_personales form .resultados_examen {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
}

.formulario .datos_personales form .Hipoacusia {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.formulario .datos_personales form .linea {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 2px;
  background-color: #666;
}

.formulario .datos_personales form .t_perdida_auditiva {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 15px;
}

.formulario .datos_personales form .bloque_1 .b1_s2 {
  float: left;
  width: 50%;
}

.formulario .datos_personales form .bloque_1 .b1_s2_larga {
  float: left;
  width: 100%;
}

.formulario .datos_personales form .bloque_1 .b1_s3 {
  float: right;
  width: 50%;
}

.formulario .datos_personales form .bloque_3 .izq {
  background-color: #3d4dff;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px 10px 20px;
}

.formulario .datos_personales form .bloque_2 .derecho {
  padding: 5px;
  background-color: var(--rojo);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px 10px 20px;
}

.formulario .datos_personales form .bloque_1 input[type="radio"] {
  width: 20px;
  display: inline-flex;
}
.formulario .datos_personales form .bloque_2 input[type="radio"] {
  width: 20px;
  display: inline-flex;
}

.formulario .datos_personales form .bloque_3 input[type="radio"] {
  width: 20px;
  display: inline-flex;
}

/* INTERRUPTOR SMS*/

.estado {
  color: var(--naranja);
  font-weight: 600;
  transition: 0.5s;
}

.cont_check_bonito {
  display: flex;
}

.contenedor_checkbox {
  margin-left: 20px;
  display: inline-flex;
  width: 40px;
  height: 20px;
  transform: translate(-50%, -9%);
}

.checkbox {
  width: 40px;
  -webkit-appearance: none;
  outline: none;
  border-radius: 50px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
  cursor: pointer;
}

.checkbox[type="checkbox"]:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  top: 0;
  left: 0;
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
  background-color: var(--naranja);
}

.checkbox:checked[type="checkbox"]:before {
  left: 20px;
  background-color: var(--verde);
}

/* FIN INTERRUPTOR SMS*/

.foto_redonda {
  margin: auto;
  width: 200px;
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto_redonda img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* PERFIL */

.perfil-page {
  width: calc(100vw - var(--sidebar-offset, 70px));
  max-width: calc(100vw - var(--sidebar-offset, 70px));
  margin-left: var(--sidebar-offset, 70px);
  padding: 12px;
}

.perfil-card {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perfil-logout-form {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.perfil-logout-button {
  float: none;
  border: 0;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.perfil-logout-button:hover {
  background: #dc2626;
}

.perfil-form {
  margin: 0;
  max-width: none;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
  color: #0f172a;
}

.perfil-avatar {
  margin: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid #d6e1ef;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.perfil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perfil-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.perfil-fields label {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.perfil-form input {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d5e0ef;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px 12px;
}

.perfil-form input:focus {
  outline: 0;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.formulario .datos_personales .bloque_1 {
  width: 33%;
  float: left;
  padding: 10px;
  border-radius: 10px;
}

.formulario .datos_personales .bloque_2 {
  width: 32%;
  padding: 10px;
  float: left;
  background-color: #fff;
  border-radius: 10px;
}

.formulario .datos_personales .bloque_3 {
  width: 35%;
  padding: 10px;
  float: right;
  border-radius: 10px;
}

/*SEGUIMIENTOS WHATSAPP Y LLAMADA*/

.formulario .datos_personales .bloque_3 a {
  text-decoration: none;
  color: #fff;
}

.formulario .datos_personales .bloque_3 .whatsapp {
  background-color: #01e675;
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
  float: left;
}

.formulario .datos_personales .bloque_3 .llamar {
  background-color: #333;
  padding: 5px 15px 5px 15px;
  border-radius: 5px;
  float: right;
}

/* FICHA AUDIOLOGICA*/
.formulario .datos_personales .cont_ficha {
  display: inline-block;
  width: 100%;
  padding: 10px;
}

.formulario .datos_personales .cont_ficha .cont_datos_ficha .cont_motivo {
  display: flex;
}

.formulario
  .datos_personales
  .cont_ficha
  .cont_datos_ficha
  .cont_motivo
  .titulo_label {
  width: 700px;
}

.formulario .datos_personales .cont_ficha .tabla1 {
  width: 10%;
  float: left;
  padding: 10px;
  border-radius: 10px;
}

.formulario .datos_personales .cont_ficha .tabla2 {
  width: 45%;
  padding: 10px;
  float: left;
  background-color: #fff;
  border-radius: 10px;
}

.formulario .datos_personales .cont_ficha .tabla3 {
  width: 45%;
  padding: 10px;
  float: right;
  background-color: #fff;
  border-radius: 10px;
}

.formulario .datos_personales .cont_ficha .tabla_ref {
  width: 33%;
  float: left;
  padding: 10px;
  border-radius: 10px;
}

.formulario .datos_personales .cont_ficha .tabla_cotizacion_ancha {
  width: 27%;
  float: left;
  padding: 10px;
  border-radius: 10px;
}

.formulario .datos_personales .cont_ficha .tabla_cotizacion_corta {
  width: 15%;
  float: left;
  padding: 10px;
  border-radius: 10px;
}

.formulario .datos_personales .cont_ficha .tabla1 label,
.tabla2 label,
.tabla3 label {
  font-size: 14px;
  font-weight: 600;
}

.formulario .datos_personales .cont_ficha .celdas {
  font-size: 14px;
  border-radius: 3px;
}

.formulario .datos_personales .cont_ficha .cont_datos_ficha label {
  width: 350px;
  margin: 0px;
  font-size: 14px;
}

.formulario .datos_personales .cont_ficha .cont_datos_ficha input {
  height: 20px;
  width: 100%;
}

textarea {
  height: 60px;
  width: 100%;
  background: #ccc;
  border-radius: 5px;
  border-style: none;
  padding: 10px;
  outline: none;
}

input {
  outline: none;
}

.formulario .datos_personales .cont_ficha textarea:focus {
  border-bottom: 4px solid var(--main-color);
}

.formulario
  .datos_personales
  .cont_ficha
  .cont_datos_ficha
  input[type="checkbox"] {
  width: 40px;
  margin: 5px;
}

.checkbox_usuario {
  width: 100% !important;
}

.formulario .datos_personales .cont_ficha .cont_datos_ficha span {
  width: 40px;
  margin: 3px;
  font-size: 14px;
}

.formulario .datos_personales #cont_factura_dos {
  display: none;
}

.formulario .datos_personales #cont_factura_dos #factura_dos {
  background: #ffd9e7;
}

.formulario .datos_personales #select_receptor,
#label_receptor1,
#select_receptor2,
#label_receptor2,
#serie_cargador,
#serie_cargador2,
#serie_r_dos,
#serie_r {
  display: none;
}

.formulario .datos_personales #equipos_dos #serie_a_dos {
  background: #ffd9e7;
}

.formulario .datos_personales #equipos_dos #serie_r_dos {
  background: #ffd9e7;
}

.formulario .datos_personales input,
select {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 3px;
  border-style: none;
  font-weight: bold;
  color: #222;
  background: #ccc;
}

.formulario .datos_personales input[type="submit"] {
  cursor: pointer;
  padding: 20px 0px 20px 0px;
  border-radius: 20px;
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  transition: 100ms;
}

.formulario .datos_personales input[type="submit"]:hover {
  background-color: var(--main-color);
  box-shadow: 5px 5px 5px #999;
  color: #fff;
}

.formulario .datos_personales .cancelar_firma {
  cursor: pointer;
  padding: 20px 0px 20px 0px;
  border-radius: 20px;
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  transition: 100ms;
}

.formulario .datos_personales .cancelar_firma:hover {
  background-color: #666;
  box-shadow: 5px 5px 5px #999;
  border: 2px solid #666;
  color: #fff;
}

#newSignature {
  border: 5px solid var(--main-color);
}

/* SLIDER */

.slidecontainer {
  width: 80%; /* Width of the outside container */
  float: left;
}

#db_derecho_valor,
#db_izq_valor {
  margin-left: 5px;
}

#rango,
#rango1 {
  float: left;
  width: 70%;
}

.slider {
  -webkit-appearance: none;
  width: 80%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #3897f5;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #3897f5;
  cursor: pointer;
}

/* Controles */

.cont_control {
  width: 100%;
}

.cont_control .control_head {
  width: 100%;
  font-size: 14px;
  color: #222;
}

.cont_control .control_obgligarotio {
  width: 100%;
  display: flex;
  text-align: center;
  margin-top: 10px;
  padding-bottom: 5px;
  /*overflow-y: auto;*/
}

.cont_control .control_obgligarotio .tarjeta_control {
  background: #ccc;
  flex-wrap: wrap;
  width: 100%;
  min-width: 100px;
  float: left;
  color: #222;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 1px 2px 5px 1px rgba(0, 0, 0, 0.2);
  margin: 0px 5px 0px 5px;
  cursor: pointer;
  transition: 300ms;
}

.cont_control .control_obgligarotio .tarjeta_control.verde {
  background: var(--verde);
  color: #fff;
}

.cont_control .control_obgligarotio .tarjeta_control {
  transform: scale(1);
}

.cont_control .control_obgligarotio .tarjeta_control.rojo {
  background: var(--rojo);
  color: #fff;
}

.cont_control .control_obgligarotio .tarjeta_control span {
  font-size: 12px;
}

.cont_control .control_body {
  display: flex;
  background-color: #fff;
  border-radius: 5px;
  margin-top: 20px;
}

.cont_control .control_body input,
.cont_control .control_body textarea {
  width: 100%;

  border-style: none;
  background-color: #ccc;
  padding: 0px 0px 0px 10px;
  border-radius: 5px;
}

.cont_control .control_body .au_derecho {
  width: 50%;
  float: left;
  box-shadow: 1px 2px 5px 2px rgba(0, 0, 0, 0.2);
  padding: 20px 10px;
  margin-right: 5px;
  border-radius: 3px;
}

.cont_control .control_body .au_izq {
  width: 50%;
  float: right;
  box-shadow: 1px 2px 5px 2px rgba(0, 0, 0, 0.2);
  padding: 20px 10px;
  margin-left: 5px;
  border-radius: 3px;
}

.cont_control .control_body .au_izq label {
  width: 50%;
}

.cont_control .control_body .tabla_izq {
  background-color: red;
  border-radius: 5px;
}

.cont_control .control_body .tabla_derech {
  background-color: var(--color-blue);
  border-radius: 5px;
}

.cont_control .control_body a {
  background-color: #555 !important;
  margin: 0px !important;
  padding: 0px !important;
  object-fit: contain;
}

.cont_control .control_body img {
  width: 150px;
  border-radius: 50px;
  border: #222 2px solid;
  object-fit: contain;
  display: flex;
}

.cont_control .control_body .au_derecho tbody tr {
  background-color: #ffe8e6;
  transition: all 300ms;
  margin-bottom: 5px;
}

.cont_control .control_body .au_izq tbody tr {
  background-color: #e8f2ff;
  margin-bottom: 5px;
  transition: all 300ms;
}

tbody tr {
  transition: all 200ms;
}

tbody tr:hover {
  /*box-shadow: 1px 2px 2px 2px #999;*/
  box-shadow: 1px 1px 5px 3px rgba(0, 0, 0, 0.2);
}

.cont_control .control_body .au_derecho tbody tr:hover {
  box-shadow: 5px 0px 0px red;
}

.cont_control .control_body .au_izq tbody tr:hover {
  box-shadow: 5px 0px 0px var(--color-blue);
}

.cont_control .control_body .tabla_derech td,
.cont_control .control_body .tabla_izq td {
  color: #fff;
}

/*Orden de trabajo*/
.control_body .body_orden {
}

.head_orden_der {
  background: red;
  border-radius: 3px 3px 0px 0px;
  color: #fff;
}

.head_orden_der h3 {
  color: #fff;
}

.head_orden_izq {
  background: var(--color-blue);
  border-radius: 3px 3px 0px 0px;
  color: #fff;
}

.head_orden_izq h3 {
  color: #fff;
}

.body_orden input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

/*uso exclusivo*/

.exclusivo {
  display: flex;
}

.exclusivo input {
  margin: 0px 0px 10px 10px;
  padding: 5px;
  border-radius: 3px;
  border-style: none;
  cursor: pointer;
}

.info_embudo {
  background: #ffffff;
  border-radius: 14px;
  margin: 15px;
  padding: 16px 20px;
  max-width: 100%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 6px solid #e91e63;
}

/* Cada fila */
.info_embudo_item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 12px;
}

/* Etiquetas */
.info_embudo_item .label {
  font-size: 13px;
  color: #9a9a9a;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Valores */
.info_embudo_item .value {
  font-size: 16px;
  font-weight: 800;
  color: #222;
  min-width: 0; /* CLAVE para evitar overflow */
}

/* 🔥 MAGIA ANTI-DESBORDE */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 📱 Mobile */
@media (max-width: 480px) {
  .info_embudo_item {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .info_embudo_item .label {
    font-size: 12px;
  }

  .info_embudo_item .value {
    font-size: 15px;
  }
}

#submit {
  width: 100%;
  cursor: pointer;
  padding: 10px 0px 10px 0px;
  border-radius: 20px;
  background-color: #fff !important;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  transition: 100ms;
  margin: 10px 0px;
}

#submit:hover {
  background-color: var(--main-color) !important;
  box-shadow: 5px 5px 5px #999;
  color: #fff;
}

.progress-bar {
  height: 2px;
  width: 100%;
  background-color: #ddd;
  position: absolute;
  bottom: 0;
  left: 0;
  display: none;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.load-more-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.load-more-btn:hover {
  background-color: #0069d9;
}

.loading {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #007bff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*Filtros busqueda de personas*/
.filtros {
  display: flex;
}

.filtros .filtro_estado {
  width: 200px;
  height: 40px;
  float: left;
  margin-bottom: 0px;
  background: var(--main-color);
  color: #fff;
}
.filtros .filtro_fecha {
  padding: 1px 20px;
  float: right;
}

.filtros .filtro_fecha input[type="date"] {
  padding: 5px 20px;
  border-radius: 5px;
  background: var(--main-color);
  color: #fff;
  border: none;
}

.filtros .filtro_fecha input[type="submit"] {
  padding: 5px 20px;
  background: var(--main-color);
  color: #fff;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

@media only screen and (max-width: 844px) {
  .formulario .datos_personales .bloque_1 {
    width: 100%;
    float: left;
    padding: 10px;
    background-color: #fff;
    border-radius: 0px;
    margin-left: 0px;
    margin-right: 0px;
  }

  .formulario .datos_personales .bloque_2 {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border-radius: 0px;
    margin-left: 0px;
    margin-right: 0px;
  }

  .formulario .datos_personales .bloque_3 {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border-radius: 0px;
    margin-left: 0px;
    margin-right: 0px;
  }
}

/*Fin  Ventana Flotante*/
@media only screen and (max-width: 1200px) {
  .sidebar {
    width: 70px;
  }

  .sidebar .sidebar-brand,
  .sidebar li {
    padding-left: 1rem;
    text-align: center;
  }

  .sidebar li a {
    padding-left: 0rem;
  }

  .sidebar .sidebar-brand h2 .nav-label,
  .sidebar li a .nav-label {
    display: none;
  }

  .main-content {
    margin-left: var(--sidebar-offset, 70px);
  }

  .main-content header {
    width: calc(100% - var(--sidebar-offset, 70px));
    left: var(--sidebar-offset, 70px);
  }

  #menu_lateral li a,
  #menu_lateral li a:visited,
  #menu_lateral li a span,
  #menu_lateral li a span:first-child {
    color: #fff !important;
  }

  #menu_lateral li a span:not(.nav-label) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  #menu_lateral li a:hover,
  #menu_lateral li a:active,
  #menu_lateral li.active a,
  #menu_lateral a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
  }
}

@media only screen and (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .recent-grid {
    grid-template-columns: 60% 40%;
  }
}

@media only screen and (max-width: 768px) {
  .active-queue-badge {
    left: 10px;
    bottom: 96px;
    width: calc(100vw - 20px);
    max-width: 320px;
  }

  .modal-contenido.medio {
    width: 100%;
  }

  .modal-title {
    font-size: 14px !important;
    max-width: 300px;
    max-height: 20px;
    overflow: hidden;
  }

  .modal-contenido.medio label {
    font-size: 14px;
  }

  .modal-contenido.medio .enviar_what {
    font-size: 9px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-grid {
    grid-template-columns: 100%;
  }

  .sidebar {
    left: -100% !important;
  }

  header h2 {
    display: flex;
    align-items: center;
  }

  header h2 label {
    display: inline-block;
    background: var(--main-color);
    padding-right: 0rem;
    margin-right: 1rem;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center !important;
  }

  header h2 span {
    text-align: center;
    padding-right: 0rem;
  }

  header h2 {
    font-size: 1.1rem;
  }

  .main-content {
    width: 100%;
    margin-left: 0rem;
  }

  header {
    width: 100% !important;
    left: 0 !important;
  }

  #nav-toggle:checked + .sidebar {
    left: 0 !important;
    z-index: 100;
    width: 70px;
  }

  #nav-toggle:checked + .sidebar .sidebar-brand,
  #nav-toggle:checked + .sidebar li {
    padding-left: 2rem;
    text-align: left;
  }

  #nav-toggle:checked + .sidebar li a {
    padding-left: 1rem;
  }

  #nav-toggle:checked + .sidebar .sidebar-brand h2 .nav-label,
  #nav-toggle:checked + .sidebar li a .nav-label {
    display: inline;
  }

  #nav-toggle:checked ~ .main-content {
    margin-left: 0rem !important;
  }
}

@media only screen and (max-width: 560px) {
  .cards {
    grid-template-columns: 100%;
  }

  .table-responsive td#movil {
    display: none;
  }
}

/* === CRM responsive refactor === */
:root {
  --app-header-height: 72px;
  --sidebar-offset: 70px;
}

header {
  min-height: var(--app-header-height);
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow: visible;
  box-sizing: border-box;
  left: var(--sidebar-offset);
  right: 0;
  width: auto !important;
  max-width: calc(100vw - var(--sidebar-offset));
}

header > * {
  min-width: 0;
}

.header-main {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 10px;
  overflow: hidden;
}

.header-title {
  font-size: 1rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-operador {
  white-space: nowrap;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

#boton_menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--main-color);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.search-wrapper {
  position: relative;
  flex: 1 1 420px;
  min-width: 220px;
  max-width: 520px;
  overflow: visible;
}

.search-wrapper input {
  min-width: 0;
}

.cont_iconos {
  min-width: 0;
  overflow: hidden;
}

#busqueda_lead {
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-width: none;
  max-height: min(320px, calc(100dvh - var(--app-header-height, 72px) - 20px));
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.contenedor_embudo {
  top: var(--app-header-height);
  left: var(--sidebar-offset);
  max-width: calc(100vw - var(--sidebar-offset));
}

.sidebar-menu li {
  padding-left: 0.6rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 12px;
  overflow: hidden;
}

.sidebar-menu a .nav-label {
  display: none !important;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(7, 12, 24, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.crm-auto-saved {
  background: #dcfce7 !important;
  transition: background-color 0.2s ease;
}

.info_chat {
  top: var(--app-header-height);
  left: auto;
  width: min(860px, calc(100% - var(--sidebar-offset) - 96px));
  height: calc(100dvh - var(--app-header-height));
  transform: translateX(100%);
  transition: transform 0.22s ease;
  pointer-events: none;
  overflow: hidden;
}

.info_chat.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

#chat_lead {
  z-index: 150;
}

#info_chat {
  z-index: 170;
}

/* ===== INFO CHAT — Panel lateral datos del lead ===== */

#info_chat {
  z-index: 170;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#info_chat > br { display: none; }

/* La cabecera es absoluta: el scroll empieza debajo de ella */
#info_chat #datos_lead_modal {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 84px 14px 24px; /* 70px header + 14px gap */
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #c7d2fe #f8fafc;
}

#info_chat #datos_lead_modal::-webkit-scrollbar        { width: 6px; }
#info_chat #datos_lead_modal::-webkit-scrollbar-track  { background: #f8fafc; }
#info_chat #datos_lead_modal::-webkit-scrollbar-thumb  { background: #c7d2fe; border-radius: 999px; }

/* ── Header del lead ── */
#info_chat .lead-primary-info {
  padding: 12px 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
}

#info_chat .lead-primary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#info_chat .lead-primary-info h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

#info_chat .lead-id-badge {
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  background: #eef2ff;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  white-space: nowrap;
}

/* ── Cards de sección ── */
#info_chat .lead-data-card {
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #fff;
}

#info_chat .lead-data-card__header {
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--main-color);
  border-radius: 11px 11px 0 0;
}

#info_chat .lead-data-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Grid de 2 columnas ── */
#info_chat .info-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* ── info_item standalone ── */
#info_chat .info_item {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* info_item dentro de card — sin caja propia */
#info_chat .info_item.info_item--flat {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

/* ── Labels ── */
#info_chat .info_item h5 {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
}

/* ── Campos — reset de estilos globales + estilos propios ── */
#info_chat .info_item input,
#info_chat .info_item select,
#info_chat .info_item textarea {
  /* reset globals */
  height: auto;
  margin: 0;
  /* estilos propios */
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

#info_chat .info_item textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

#info_chat .info_item select:focus,
#info_chat .info_item input:focus,
#info_chat .info_item textarea:focus {
  outline: none;
  border-color: var(--main-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.11);
}

/* ── Botón guardar + feedback ── */
#info_chat .lead-save-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

#info_chat .lead-save-btn {
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

#info_chat .lead-save-btn:hover:not(:disabled) { opacity: 0.87; }
#info_chat .lead-save-btn:disabled             { opacity: 0.5; cursor: not-allowed; }

#info_chat .lead-save-feedback              { font-size: 13px; font-weight: 500; }
#info_chat .lead-save-feedback--success     { color: #16a34a; }
#info_chat .lead-save-feedback--error       { color: #dc2626; }

/* ── Recordatorio ── */
#info_chat .lead-reminder-item { gap: 8px; }

#info_chat .lead-reminder-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#info_chat .lead-reminder-btn {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 7px 8px;
  border-radius: 8px;
}

#info_chat .lead-reminder-cancel-btn {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

#info_chat .lead-reminder-cancel-btn:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

#info_chat .lead-reminder-cancel-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#info_chat #lead_reminder_status {
  font-size: 11px;
  color: #94a3b8;
}

#info_chat .eliminar_btn {
  margin: 0;
  align-self: flex-start;
}

#view_adjunto_chat {
  z-index: 180;
}

.convesaciones_head .nombre_estado span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#chat_lead .contenedor_chats {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#chat_lead .convesaciones_head {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  flex: 0 0 auto;
}

#chat_lead .conversaciones {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  flex: 1 1 auto;
  min-height: 0;
}

#chat_lead .convesaciones_footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  align-items: center;
  overflow-x: hidden !important;
}

#chat_lead .convesaciones_footer .text_mensaje {
  flex: 1 1 auto;
  min-width: 0;
}

#chat_lead .respuestas_rapidas {
  left: 12px;
  right: 12px;
  bottom: 74px;
  width: auto;
}

#chat_lead .emoji-drawer {
  left: 10px;
  right: 10px;
  width: auto;
  max-width: calc(100% - 20px);
}

#chat_date_floating,
.chat-date-floating {
  position: fixed;
  top: calc(var(--app-header-height, 72px) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  z-index: 130;
  width: fit-content;
  margin: 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1f5;
  color: #555;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

#chat_date_floating.is-visible,
.chat-date-floating.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media only screen and (max-width: 1200px) {
  .sidebar {
    width: 70px;
  }

  .main-content {
    margin-left: var(--sidebar-offset, 70px);
  }

  .main-content header {
    width: calc(100% - var(--sidebar-offset, 70px));
    left: var(--sidebar-offset, 70px);
  }

  .embudos-page {
    gap: 12px;
    padding: 12px;
  }

  .embudos-sidebar {
    flex-basis: min(350px, 100%);
    width: min(350px, 100%);
  }

  .embudos-edit-panel {
    flex-basis: min(420px, 46vw);
    width: min(420px, 100%);
    min-width: min(420px, 100%);
  }
}

@media only screen and (max-width: 1024px) {
  header {
    padding: 10px 12px;
    left: var(--sidebar-offset);
    max-width: calc(100vw - var(--sidebar-offset));
  }

  .cont_iconos,
  .header-operador {
    display: none;
  }

  #boton_menu {
    display: inline-flex;
  }

  .header-main {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .search-wrapper {
    flex: 1 1 260px;
    min-width: 120px;
    max-width: none;
  }

  .convesaciones_head {
    padding: 8px 10px;
  }

  .convesaciones_head .head_anotacion:last-child {
    display: none;
  }

  #chat_lead,
  #info_chat,
  #view_adjunto_chat {
    width: min(860px, calc(100% - var(--sidebar-offset) - 64px));
    max-width: 100%;
  }

  #chat_lead .convesaciones_footer {
    padding: 8px 10px 12px 10px;
  }

  #chat_lead .convesaciones_footer .btn_enviar,
  #chat_lead .convesaciones_footer .btn_adjunto {
    font-size: 24px;
    padding: 0 6px;
  }

  .embudos-page {
    gap: 10px;
    padding: 10px;
  }

  .embudos-sidebar {
    flex-basis: min(320px, 100%);
    width: min(320px, 100%);
  }

  .embudos-edit-panel {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .embudo-resumen__item {
    grid-template-columns: 96px 1fr;
  }

  .perfil-form {
    grid-template-columns: 150px 1fr;
  }

  .perfil-avatar {
    width: 150px;
    height: 150px;
  }
}

@media only screen and (max-width: 768px) {
  :root {
    --sidebar-offset: 0px;
  }

  .sidebar {
    left: 0 !important;
    width: 70px;
    transform: translateX(-100%);
    z-index: 150;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    margin-left: 0;
  }

  .main-content header {
    left: 0;
    width: 100%;
  }

  header {
    left: 0 !important;
    width: 100% !important;
    max-width: 100vw;
  }

  .info_chat,
  #info_chat,
  #chat_lead,
  #view_adjunto_chat {
    width: 100%;
    left: 0;
    height: calc(100dvh - var(--app-header-height));
  }

  #info_chat #datos_lead_modal {
    padding: 80px 10px 16px;
    gap: 8px;
  }

  #info_chat .info_item {
    padding: 10px 11px;
    border-radius: 9px;
  }

  #info_chat .info-grid-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cont_anotaciones {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    max-height: min(48dvh, 300px);
    top: calc(var(--app-header-height, 72px) + 78px);
    z-index: 140;
  }

  .cont_anotaciones .tabla_anotaciones {
    max-height: min(24dvh, 145px);
  }

  .conversaciones .contenedor_conversaciones {
    padding-left: 4%;
    padding-right: 4%;
  }

  .contenedor_embudo {
    left: 0;
    right: 0;
    max-width: 100vw;
  }

  .crm-settings-layout {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 10px;
  }

  .crm-settings-layout .cont_respuesta {
    width: 100%;
    flex-basis: 100%;
  }

  .embudos-page {
    left: 0;
    right: 0;
    top: var(--app-header-height);
    bottom: 0;
    display: block;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .embudos-sidebar {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-bottom: 10px;
  }

  .embudos-edit-panel,
  .embudo-config-panel {
    width: 100%;
    max-width: 100%;
  }

  .embudos-sidebar__header {
    padding: 12px;
  }

  .embudos-sidebar__title {
    font-size: 13px;
  }

  .embudos-sidebar__list {
    padding: 8px;
  }

  .embudo-config-panel {
    padding: 10px;
  }

  .embudo-resumen__item {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .perfil-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 10px;
  }

  .perfil-card {
    padding: 12px;
  }

  .perfil-logout-form {
    justify-content: stretch;
  }

  .perfil-logout-button {
    width: 100%;
  }

  .perfil-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .perfil-avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto;
  }

  .content_embudo {
    flex: 0 0 min(88vw, 340px);
    min-width: min(88vw, 340px);
    max-width: min(88vw, 340px);
  }

  #chat_lead .convesaciones_footer {
    padding: 6px 8px 10px 8px;
    gap: 6px;
  }

  #chat_lead .convesaciones_footer .chat-emisor-select {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    order: -1;
  }

  #chat_lead .convesaciones_footer .btn_enviar,
  #chat_lead .convesaciones_footer .btn_adjunto {
    font-size: 22px;
    padding: 0 4px;
  }

  .respuestas_rapidas,
  .contenedor_chats .respuestas_rapidas,
  #chat_lead .respuestas_rapidas {
    left: 12px;
    right: 12px;
    bottom: 86px;
    max-height: 180px;
    border-radius: 12px;
  }

  .quick-reply-button {
    font-size: 14px;
    min-height: 42px;
  }

  .item_chat {
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .item_embudo {
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .chat_img,
  .chat_img img {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .item_chat .info_contact .contact_name h5 {
    font-size: 12px;
  }

  .item_embudo .info_contact .contact_name,
  .item_embudo .info_contact .emb_nom {
    font-size: 12px;
  }

  .contact_date {
    font-size: 10px;
  }
}
