@font-face {
  font-family: 'akiroboto';
  src: url('../../fonts/Roboto/Roboto-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'akiroboto', sans-serif !important;
}

.backgroundaki {
  background-image: url('../img/aki/backgroundAki.jpg'); /* Ruta de la imagen de fondo */
  background-size: cover; /* Ajusta la imagen para cubrir el contenedor sin perder proporción */
  background-position: center; /* Centra la imagen en el contenedor */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
}


input::selection, textarea::selection {
  background-color: blue; /* Color de fondo de selección */
  color: white; /* Color del texto seleccionado */
}

input::-moz-selection, textarea::-moz-selection { /* Para compatibilidad con Firefox */
  background-color: blue;
  color: white;
}

#myChart {
  max-width: 600px;
  margin: 0 auto;
}

/* ROLES */
.scroll-container-roles {
  width: 100%; /* Puedes ajustar el ancho según lo necesites */
  height: 200px; /* Fija la altura del contenedor */
  overflow-x: auto; /* Permite el desplazamiento horizontal */
  overflow-y: hidden; /* Oculta el desplazamiento vertical */
  white-space: nowrap; /* Impide que los elementos bajen a la siguiente línea */
  display: flex;
  align-items: center; /* Centra verticalmente los elementos */
  scroll-behavior: smooth; /* Añade un efecto de desplazamiento suave */
  background: transparent;
  box-shadow: none;
}

::selection {
  background: transparent;
  color: inherit; /* Mantiene el color del texto seleccionado */
}

/* Personalizar la barra de desplazamiento horizontal */
.scroll-container-roles::-webkit-scrollbar {
  height: 6px; /* Altura de la barra de desplazamiento */
}

.scroll-container-roles::-webkit-scrollbar-thumb {
  background-color: #888; /* Color del "pulgar" de la barra */
  background-color: transparent;
  border-radius: 10px; /* Bordes redondeados */
}

/* Opcional: cambiar el color al pasar el mouse */
.scroll-container-roles::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  cursor: pointer;
}

.tagGralCarruselResumenJuego {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
  width: 100%;
  height: 78px;
  padding: 4px;
  border:thin solid rgb(134, 134, 134);
  border:thin solid transparent;
  border-radius: 4px;
}

.tagGralCarruselResumenJuego::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

.tagGralCarruselResumenJuego > div {
  flex: 0 0 auto;
  margin-right: 10px;
  scroll-snap-align: start;
}

.background-staff-nodata {
  background-image: url('../img/NoDataInfo.png'); /* Reemplaza con la URL de tu imagen */
  background-size: contain; /* Ajusta el tamaño de la imagen manteniendo su proporcionalidad */
  background-position: center; /* Centra la imagen en el contenedor */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  height: 100%; /* Ajusta el alto del contenedor */
  width: 100%; /* Ajusta el ancho del contenedor */
}

.fixed-bottom-right {
  position: fixed;
  top: 135px;
  right: 20px;
  z-index: 9999; /* Para asegurarte de que esté por encima de todo */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra */
  border: none; /* Opcional: quita bordes */
  background-color: #007bff; /* Color de fondo (ajustable) */
  color: white; /* Color del texto */
  padding: 10px 15px; /* Espaciado interno */
  border-radius: 5px; /* Bordes redondeados */
  cursor: pointer;
  transition: box-shadow 0.3s ease; /* Efecto al pasar el ratón */
}

.fixed-bottom-right:hover {
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Sombra más intensa al pasar el ratón */
}

#catTextNotifDoc .container {
  max-width: 800px;
  margin: 20px auto;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
#catTextNotifDoc .header {
  text-align: center;
  margin-bottom: 20px;
}
#catTextNotifDoc .header h1 {
  margin: 0;
  font-size: 24px;
  color: #0066cc;
}
#catTextNotifDoc .header p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}
#catTextNotifDoc .content {
  margin-bottom: 20px;
}
#catTextNotifDoc .content p {
  margin: 10px 0;
}
#catTextNotifDoc .contact {
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}
#catTextNotifDoc .contact p {
  margin: 5px 0;
}
#catTextNotifDoc .footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 20px;
}


/* GOOGLE MAPS */
#mapDireccionInput {
  width: 300px;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 5px;
}

#mapbuscarButton {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 5px;
}


/* TABLA DE RECIBO PARA PDF */
.recibo-container {
  width: 80%;
  margin: auto;
  border: 2px solid #000;
  padding: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.header {
  text-align: center;
  margin-bottom: 20px;
}
.header img {
  width: 80px;
}
.titulo {
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
}
.info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.info div {
  width: 48%;
}


.tabla-recibo-cabeza {
  width: 100%;
  border-collapse: collapse;
}
.tabla-recibo-cabeza th, .tabla-recibo-cabeza td {
  border: 0px solid black;
  padding: 8px;
  text-align: left;
}
.tabla-recibo-cabeza th {
  background-color: #f2f2f2;
  text-align: left;
  padding: 0px;
}




.tabla-recibo {
  width: 100%;
  border-collapse: collapse;
}
.tabla-recibo th, .tabla-recibo td {
  border: 1px solid black;
  padding: 8px;
  text-align: center;
}
.tabla-recibo th {
  background-color: #f2f2f2;
}
.total {
  text-align: right;
  font-weight: bold;
  margin-top: 10px;
}
.boton-descargar {
  margin-top: 20px;
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.boton-descargar:hover {
  background-color: #0056b3;
}




.table-container {
  max-height: 450px;
  overflow-y: auto;
  border: 1px solid #ccc;
  position: relative;
}
table {
  width: 100%;
  border-collapse: collapse;
}
.table-container tfoot {
  color: rgb(0, 0, 0) !important;
  background-color: #f3f3f4 !important;
  font-weight: bold !important;
}

th, td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
}
.thead-sticky, .tfoot-sticky {
  position: sticky;
  background: white;
  z-index: 10;
  width: 100%;
}
.thead-sticky { top: 0; }
.tfoot-sticky { bottom: 0; }



.modalAPI {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.5);
}

.modalAPI-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 200px; /* Aquí está el cambio */
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-family: sans-serif;  
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.layout-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.layout-container {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.layout-menu {
  height: 100%;
  overflow-y: auto;
}

.layout-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#generalWorkArea {
  flex: 1;
  overflow-y: auto;
  padding: 0px;
  margin: 0;
  border:0px solid black;
  margin-right:10px;
}

.container-xxl {
  max-width: 20000px !important;
}



/* -------------------------------------------------------- */
/* ------ Tablero de tareas ------------------------------- */
/* -------------------------------------------------------- */
#asignaTareas {
  display: flex;
  flex-direction: column;
  border: thin solid rgb(255, 132, 1);
  border-color: transparent !important;
}

#asignaTareas > header {
  height: 50px;
  flex-shrink: 0;
  background-color: transparent;
  border-bottom:thin solid transparent;
  text-align: center;
  line-height: 50px;
}

#asignaTareas > footer {
  height: 50px;
  flex-shrink: 0;
  background-color: transparent;
  border-top:thin solid transparent;
  text-align: center;
  line-height: 50px;
}

#asignaTareas > .contenidotareas {
  background-color: transparent;
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  display: flex;
  position: relative;
}

.item {
  position: relative;
  flex: 0 0 300px;
  height: calc(100% - 50px);
  margin: 10px;
  margin-top: 30px;
  background-color: #ffffffdd;
  display: flex;
  flex-direction: column;
  font-size: 1em;
  box-sizing: border-box;
  opacity: 0.95;
  border-radius: 6px;
  border: thin solid #999;
  overflow: hidden;

  background-color: transparent;
}

.item-footer-space {
  flex-grow: 1;
  height: 10px;
}

.item-header {
  background-color: #1976d2;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  flex-shrink: 0;
}
.item-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
}

.btn-menu {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 10px;
  background-color: transparent;
  color:white;
}

.item-footer {
  background-color: #f0f0f0;
  padding: 10px;
  text-align: center;
  font-size: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-agregar, .btn-templetes {
  background-color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 10px;
  font-weight: bold;
}

.btn-agregar {
  background-color: #28a745;
  color: white;
}

.btn-templetes {
  background-color: transparent;
  color: white;
  margin-right: 10px;
}

.template-item {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}

.tarjeta-titulo {
  font-weight: bold;
  text-align: left;
  flex: 1;
}

.tarjeta-descripcion {
  margin: 6px 0;
  font-size: 0.85em;
  color: #555;
}

.tarjeta-progreso {
  margin-top: auto;
  font-size: 0.8em;
}

.progreso-barra-contenedor {
  background: #eee;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.progreso-barra {
  background-color: #4caf50;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.check-tarjeta {
  display: none;
  margin-left: auto;
}

.barra-interna {
  height: 100%;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

.tarjeta-cuerpo p {
  font-size: 12px;
  line-height: 1.2;
  height: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.tarjeta-header:hover .tarjeta-checkbox,
.tarjeta-checkbox:checked {
  opacity: 1;
}

.tarjeta {
  position: relative;
  background-color: white;
  border-radius: 8px;
  padding: 10px 10px 10px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tarjeta-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.tarjeta:hover .tarjeta-checkbox,
.tarjeta-checkbox:checked {
  opacity: 1;
}

.tarjeta-header {
  font-weight: bold;
  font-size: 14px;
  padding-left: 24px;
  text-align: left;
}

.tarjeta-cuerpo {
  font-size: 12px;
  margin-top: 4px;
  padding-left: 24px;
  height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tarjeta-footer {
  margin-top: auto;
  text-align: right;
}

.progreso-texto {
  font-size: 12px;
  margin-bottom: 4px;
  display: block;
}

.barra-progreso {
  background-color: #eee;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  width: 90%;
  margin: 0 auto;
}

.barra-completado {
  background-color: #4caf50;
  height: 100%;
  transition: width 0.3s;
}

.tarjeta .tarjeta-header,
.tarjeta .tarjeta-cuerpo,
.tarjeta .tarjeta-footer {
  cursor: pointer;
}

.fila-nueva {
  background-color: #d4edda !important; /* Verde tenue */
}

/* TOOLTIP EN VARIAS LINEAS */
.tooltip-hover {
  position: relative;
  display: inline-block;
}

.tooltip-hover .tooltip-text {
  visibility: hidden;
  background-color: #d1d1d1;
  color: #000;
  text-align: left;
  padding: 8px 10px;
  width: 220px;
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 10px;
  margin-top: 5px;
  white-space: normal;
  font-size: 13px;
  box-shadow: 0 0 12px black;
  border-radius: 6px;
  border:thin solid black;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tooltip-hover:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* ************************************* */
/* TABLA QUE SOLO HACE SCROLL EN EL BODY */
/* ************************************* */
/* Contenedor de la tabla para controlar el alto y el scroll */
.table-container-modal {
  width: 100%;
  max-width: 600px;
  border: 1px solid #ccc;
  overflow: hidden; /* Evita scroll en todo el contenedor */
}

/* Tabla general */
.fixed-header-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Ayuda a alinear columnas entre thead y tbody */
}

/* Encabezado fijo */
.fixed-header-table thead {
  background-color: #f4f4f4;
  position: sticky;
  top: 0;
  z-index: 2; /* Para que quede encima del tbody */
}

/* Celdas del encabezado */
.fixed-header-table th {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  background: #fff;
}

/* Celdas del cuerpo */
.fixed-header-table td {
  border: 1px solid #ccc;
  padding: 8px;
}

/* Scroll solo en el tbody */
.table-container tbody {
  display: block;
  max-height: 150px; /* Ajusta el alto según tus necesidades */
  overflow-y: auto;
  width: 100%;
}

/* Para mantener las columnas alineadas */
.table-container thead,
.table-container tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#cntDetVivienda {
  height: calc(100vh - 210px);
  overflow-y: auto;          /* Solo el contenedor hace scroll vertical */
  overflow-x: hidden;        /* Evita scroll horizontal */
  display: flex;
  flex-direction: column;    /* Alinea los hijos verticalmente */
  align-items: flex-start;   /* Alinea los divs al inicio (arriba) */
}

#cntDetVivienda > div {
  width: 100%;               /* Ocupa todo el ancho */
  height: auto;              /* Su altura depende del contenido */
  display: none;             /* Ocultos por defecto, mostrarás uno con JS */
}

/* DE PRUEBA PARA LA LINEA DE TIEMPO */
    .timeline {
      position: relative;
      width: 90%;
      max-width: 480px;
      margin: 2rem auto;
      padding-left: 50px;
    }

    /* Línea vertical */
    .timeline::before {
      content: "";
      position: absolute;
      left: 35px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: rgba(255,255,255,0.1);
    }

    /* Cada ítem de la línea de tiempo */
    .timeline-item {
      display: flex;
      align-items: flex-start;
      position: relative;
      margin-bottom: 1.5rem;
    }

    /* Hora */
    .timeline-item .time {
      position: absolute;
      left: -50px;
      width: 45px;
      text-align: right;
      font-size: 0.9rem;
      color: #bbb;
    }

    /* Icono circular */
    .timeline-item .icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 0.9rem;
      z-index: 2;
      margin-right: 15px;
      flex-shrink: 0;
    }

    /* Contenido de la tarjeta */
    .timeline-item .card {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      padding: 0.8rem 1rem;
      flex: 1;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .timeline-card h4 {
      margin: 0;
      font-size: 1rem;
      color: #000000;
    }

    .timeline-card small {
      color: #aaa;
      font-size: 0.8rem;
    }

    /* Tag de información */
    .timeline-item .tags {
      display: flex;
      gap: 0.4rem;
      margin-top: 0.4rem;
      flex-wrap: wrap;
    }

    .timeline-item .tag {
      border-radius: 6px;
      padding: 2px 6px;
      font-size: 0.75rem;
      font-weight: 500;
      color: #fff;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .timeline-item .tag.P { background: #3b82f6; } /* Proteína */
    .timeline-item .tag.C { background: #22c55e; } /* Carbohidrato */
    .timeline-item .tag.F { background: #f59e0b; } /* Grasa */

    @media (max-width: 500px) {
      .timeline {
        padding-left: 40px;
      }
      .timeline-item .time {
        left: -45px;
        font-size: 0.8rem;
      }
    }

/* BOTÓN DE AYUDA GLOBAL */
#helpBtn {
  position: fixed !important;
  z-index: 9999 !important;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
}
@media (max-width: 768px) {
  .authentication-wrapper {
    transform: none !important;
  }
}
#helpBtn {
  bottom: calc(20px + env(safe-area-inset-bottom));
}

.hidden {
  display: none !important;
}
