
/* ----------------------------Prisma-------------------------------- */

@media (max-width: 767px) {
  .hide-sm {
     display: none;
  }
}

@media print {
  .no-imprimir {
    display: none;
  }
}
body {
  background-color: #eaebec;
  font-family: sans-serif;
  font-size: 14px;
}
.material-icons{
    display: inline-flex;
    vertical-align: top;
}
.table {
	table-layout:auto;
  font: -webkit-control;
}
.table>:not(:last-child)>:last-child>* {
  border-bottom-color: currentColor !important;
  border-bottom-width: 1px !important;
  text-decoration: none !important;
}
.table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prisma-footer{
    text-align: center;
}
.modal-alert .modal-dialog {
  width: 380px;
}
.menu-module {
    max-width: 100%;
    padding-top: 50px;
    padding-bottom: 10px;
    vertical-align: middle;
}
.search-widget {
    max-width: 25%;
    float: right;
}
*carousel-caption {
    position: absolute;
    bottom: 28px;
    left: 30px;
    max-width: 340px;
    color: #24b9d7;
    opacity: initial;
}
.carousel-indicators {
  margin-bottom: 0;
}

.container .box {
    border-top: 0px solid #ddd;
    padding-top: 10px;
    margin-top: 20px;
}
.left-column .card {
    box-shadow: 2px 2px 8px 0 rgb(0 0 0 / 20%);
    background: #fff;
    padding: 1.563rem 1.25rem;
    margin-bottom: 1.563rem;
}
.caption-description {
    color: white;
}
.gradient-custom-3 {
    /* fallback for old browsers */
    background: #84fab0;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, rgba(132, 250, 176, 0.5), rgba(143, 211, 244, 0.5));

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, rgba(132, 250, 176, 0.5), rgba(143, 211, 244, 0.5))
  }
  .gradient-custom-4 {
    /* fallback for old browsers */
    background: #84fab0;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, rgba(132, 250, 176, 1), rgba(143, 211, 244, 1));

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, rgba(132, 250, 176, 1), rgba(143, 211, 244, 1))
  }

.error-template {padding: 40px 15px;text-align: center;}
.error-actions {margin-top:15px;margin-bottom:15px;}
.error-actions .btn { margin-right:10px; }

select {
  font-family: 'Lato', 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
  font-weight: 900;
}

/*  SideBar */

#layoutSidenav {
  display: flex;
}
#layoutSidenav #layoutSidenav_nav {
  flex-basis: 290px;
  flex-shrink: 0;
  transition: transform 0.15s ease-in-out;
  z-index: 1038;
  transform: translateX(-290px);
}
#layoutSidenav #layoutSidenav_content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex-grow: 1;
  min-height: calc(100vh - 56px);
  margin-left: -290px;
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
  transform: translateX(0);
}
.sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1037;
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

@media (min-width: 992px) {
  #layoutSidenav #layoutSidenav_nav {
    transform: translateX(0);
  }
  #layoutSidenav #layoutSidenav_content {
    margin-left: 0;
    transition: margin 0.15s ease-in-out;
  }

  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
    transform: translateX(-290px);
  }
  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content {
    margin-left: -290px;
  }
  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
    display: none;
  }
}
.sb-nav-fixed .sb-topnav {
  z-index: 1039;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
  width: 290px;
  height: 100vh;
  z-index: 1038;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav {
  padding-top: 56px;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav .sb-sidenav-menu {
  overflow-y: auto;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
  padding-left: 290px;
  top: 56px;
}

.b-example-divider {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.bi {
  vertical-align: -.125em;
  pointer-events: none;
  fill: currentColor;
}

.dropdown-toggle { outline: 0; }

.nav-flush .nav-link {
  border-radius: 0;
}

input[type="file"] {
  display: none;
}
.custom-file-upload {
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #d2f4ea;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: inline-flex;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  text-decoration: none;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}

.scrollarea {
  overflow-y: auto;
}

.fw-semibold { font-weight: 600; }
.lh-tight { line-height: 1.25; }

/* public/css/app.css */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}

/* ============================================= */
/* Estilos del Asistente Virtual de Chat         */
/* ============================================= */

/* Contenedor principal de los mensajes en el modal */
#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Espacio entre burbujas */
}

/* Estilo base para todas las burbujas de chat */
.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    max-width: 80%;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Estilo para las burbujas del Asistente (agent) */
.chat-bubble.agent {
    background-color: #f1f3f5; /* Un gris claro */
    color: #212529; /* Texto oscuro */
    align-self: flex-start; /* Alineación a la izquierda */
    border-bottom-left-radius: 0.25rem; /* Esquina "puntiaguda" para dar forma de bocadillo */
}

/* Estilo para las burbujas del Usuario (user) */
.chat-bubble.user {
    background-color: #0d6efd; /* Azul primario de Bootstrap */
    color: #ffffff; /* Texto blanco */
    align-self: flex-end;   /* Alineación a la derecha */
    border-bottom-right-radius: 0.25rem; /* Esquina "puntiaguda" en el otro lado */
}

/* Estilos específicos para las burbujas de Tareas */
.chat-bubble.task-bubble {
    background-color: #ffffff;
    border: 1px solid #dee2e6; /* Borde sutil */
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 100%;
}

.task-description {
    font-weight: 500;
}

.task-meta {
    font-size: 0.8rem;
}

/* Estilos para burbujas de error */
.chat-bubble.error-bubble {
    background-color: #f8d7da; /* Rojo claro de Bootstrap para alertas */
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Alineación vertical de los iconos de Material Icons */
.material-icons {
    vertical-align: middle;
}

/* Estilos para TomSelect - ancho completo del dropdown */
.ts-wrapper .ts-dropdown,
.ts-wrapper.single .ts-dropdown,
.ts-wrapper.multi .ts-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.ts-wrapper .ts-dropdown .dropdown-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Tooltip con fondo verde claro y texto negro - Bootstrap 5 */
.tooltip-inner {
    background-color: #e8f5e9 !important;
    color: #000000 !important;
    border: 1px solid #a5d6a7 !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    max-width: 300px !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.tooltip-arrow::before,
.bs-tooltip-auto .tooltip-arrow::before {
    border-top-color: #e8f5e9 !important;
}