:root{
  --bg: #ffffff;
  --panel: #f7fbff;
  --accent: #2b6cb0; /* azul institucional */
  --muted: #6b7280;
  --shadow: rgba(30,30,30,0.08);
  --radius: 12px;
  --glass: linear-gradient(180deg, rgba(255,255,255,.8), rgba(245,249,255,.95));
}

html, body{
  height: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
}

/*-------- PÁGINA DE CARGA -------*/
.load-screen{
  display: flex;
  background-color: #000;
  align-items: center;
  justify-content: center;
  height: 100%;
  width:100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  opacity: 1;
}
.lds-dual-ring {
  display: block;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*-------- / PÁGINA DE CARGA -------*/
body.dia{
  background-color: #F8F7FC;
  color: #79838F;
}
body.noche{
  background-color: #292E3A;
  color: #F2F2F2;
}
body.dia td, body.dia th{
  color: #79838F;
}
body.noche td, body.noche th{
  color: #F2F2F2;
}
.list-group{
  background-color: #fff;
}
.envolvente{
  width:100%;
  min-height:100%;
}
.contenedor_principal{
  min-height: 100%;
}
.contenido_principal{
  min-height: 100%;
}
.burbuja-sm {
  width: 20px;
  height: 20px;
  background: aliceblue;
}

/* SE COLOCA UN SCROLL CUANDO LA RESOLUCIÓN DE PANTALLA ES PEQUEÑA*/
.menu_principal{
  height: 28em;
  line-height: 1em;
  overflow-y: auto;
  width: 100%;
}
.menu_principal li a:hover{
  background-color: #F8F7FC;
  color: black!important;
}

/* Acciones para mostrar proyectos activos e inactivos */
.acciones_proyectos{
  width: 10%;
  margin-bottom: 15px;
}
.acciones_proyectos li {
  display: block;
  width: 100%;
  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
  clear: both;
  font-weight: 400;
  color: #ebedee;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}
.acciones_proyectos li:hover{
  background-color: #292E3A !important;
  color: white!important;
}
.pestana_activa{
  background-color: #ebedee !important;
  color: black!important;
}

/* Distribucion del contenido (lista o cuadricula) */
.distribucion{
  width: 90%;
  display: inline-block;
  text-align: right;
}
.distribucion #listado,
.distribucion #cuadricula{
  display: inline-block;
  border: 1px solid;
  width: 5%;
  padding: 5px;
  margin: auto;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
}
.distribucion .activado,
.distribucion .desactivado:hover{
  background-color: #ebedee;
  color: black;
}
#lista_proyectos{
  width: 100%;
  overflow-y: auto;
}
.listado #proyectos {
  width: 100%;
  display: inline-block;
}
.cuadricula #proyectos {
  width: 24%;
  display: inline-block;
}

/* ESTILOS DIA */
.envolvente_dia .sidebar{
  background-color: #F2F2F2;
  color: #79838F;
}
.envolvente_dia .sidebar a{
  color: #79838F;
}
.envolvente_dia .contenido_principal{
  background-color: #F8F7FC;
  color: #79838F;
  min-height: 100%;
}
.envolvente_dia .sidebar .logo_contenedor{
  background-color: #F2F2F2;
  color: #79838F;
}
.envolvente_dia .contenido_principal .logo_contenedor{
  background-color: #F8F7FC;
  color: #79838F;
}
.envolvente_dia section {
  background: #e9e9ed;
 border-color: #cacad7;
}
.envolvente_dia .acciones_proyectos li {
  color: #000;
}
/* ESTILOS NOCHE */
.envolvente_noche .sidebar{
  background-color: #18233D;
}
.envolvente_noche .contenido_principal{
  background-color: #292E3A;
  min-height: 100%;
}
.envolvente_noche .contenido_principal a,
.noche .fondo a{
  text-decoration: none;
}
.envolvente_noche .form-control {
  color: #959ba2;
  background-color: #3f444f;
  border: none;
}
.envolvente_noche .modal-content {
	background: #292E3A;
}
.envolvente_noche section {
	background: #303642;
	border-color: #41464a;
}
.envolvente_noche .note-editable, 
.envolvente_noche .note-editor.note-frame .note-editing-area .note-editable {
  background: #3f444f;
  color: #ebedee;
}
.envolvente_noche .note-toolbar {
  background: #555b68;
  border-color: #292e3a;
}
.envolvente_noche button.note-btn {
  background-color: #555b68;
  border-color: #292e3a;
  color: #9197a4;
}
.envolvente_noche .note-dropdown-menu {
  background: #292e3a;
  border-color: #3f444f;
}
.card.proyecto {
  background: transparent;
}
.noche .dropdown-menu.show {
  background: #434a5a;
}
.envolvente_noche .dropdown-item:focus, 
.envolvente_noche .dropdown-item:hover,
.noche .comentarios .dropdown-item:hover {
  background: #292e3a;
}
.noche .dropdown .btn, .noche .acciones_proyectos .btn{
  color:#ebedee;
  border-color: #F39124;
  background-color: transparent;
}
.noche .dropdown .btn:hover{
  color:#fff;
  background-color: #F39124;
}
.noche .col-8 .proyecto,
.noche .fondo,
.noche .incidencias,
.noche .comentarios{
  background-color: transparent!important;
}

.noche .proyecto .h5{
  color: #0d6efd;
}
.noche #GraficaEstado, 
.noche #GraficaTipos, 
.noche #GraficaValidaciones{
  background-color: gainsboro;
}
.envolvente_noche .sidebar,
.envolvente_noche .sidebar a,
.envolvente_noche,
.envolvente_noche .contenido_principal,
.envolvente_noche .contenido_principal a,
.noche .breadcrumb-item.active,
.noche .col-8 .proyecto,
.noche .list-group .form-check-label,
.noche .fondo .h5,
.noche .text-start .btn-outline-danger:hover,
.noche .incidencias,
.noche .btn-block {
  color: #ebedee!important;
}
.noche .alert-info a,
.noche .comentario .bg-light,
.noche .text-start .btn-outline-danger{
  color: #18233D!important;
}
.noche .incidencias{
  border: none;
}
.noche .comentarios a{
  background-color: red;
}
.noche .comentarios .dropdown-item,
.noche .comentarios a:hover{
  background-color: transparent;
  color: white!important;
}
.noche .dropdown-menu{
  background-color: #000!important;
}

.noche .alert-info a{
  color: #18233D!important;
}

/* Toggle noche/dia */
#modo-toggle-btn.toggle-btn {
	position: absolute;
	width: 64px;
	height: 35px;
	margin: 0 auto;
	border-radius: 40px;
	bottom: 20px;
	left: 55px;
}

#modo-toggle-btn input[type="checkbox"] {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  margin: 0px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

/* First toggle btn */

#modo-toggle-btn span {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  overflow: hidden;
  opacity: 1;
  background: rgb(150,254,255);
  background: -moz-linear-gradient(90deg, rgba(150,254,255,1) 0%, rgba(0,212,255,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(150,254,255,1) 0%, rgba(0,212,255,1) 100%);
  background: linear-gradient(90deg, rgba(150,254,255,1) 0%, rgba(0,212,255,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#96feff",endColorstr="#00d4ff",GradientType=1); 
  border-radius: 40px;
  transition: 0.2s ease background-color, 0.2s ease opacity;
  border: solid 2px #5e626c;
}

#modo-toggle-btn span:before,
#modo-toggle-btn span:after {
  content: "";
  position: absolute;
  top: 3px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  transition: 0.5s ease transform, 0.125s ease background-color;
}

#modo-toggle-btn span:before {
  background-color: #92fdff;
  transform: translate(-23px, 0px);
  z-index: 1;
}

#modo-toggle-btn span:after {
  background-color: #ffde66;
  transform: translate(4px, 0px);
  z-index: 0;
}

#modo-toggle-btn input[type="checkbox"]:checked + span {
  background: rgb(23,11,75);
  background: -moz-linear-gradient(90deg, rgba(23,11,75,1) 0%, rgba(32,56,117,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(23,11,75,1) 0%, rgba(32,56,117,1) 100%);
  background: linear-gradient(90deg, rgba(23,11,75,1) 0%, rgba(32,56,117,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#170b4b",endColorstr="#203875",GradientType=1); 
}

#modo-toggle-btn input[type="checkbox"]:active + span {
  opacity: 0.5;
}

#modo-toggle-btn input[type="checkbox"]:checked + span:before {
  background-color: #161d55;
  transform: translate(25px, -7px);
}

#modo-toggle-btn input[type="checkbox"]:checked + span:after {
  background-color: #f2edda;
  transform: translate(32px, 0px);
}

#modo-toggle-btn label {
  position: relative;
  right: 42px;
  top: 8px;
}


.sidebar{
  position:absolute;
  color: #fff;
  height: 100%;
  z-index: 100;
  width:80%;
  right: -100%;
  transition: right 300ms ease;
}

.sidebar_mostrar{
  right: 0;
}
.contenedor_principal{
  width:100%;
}
.contenido_principal{
    padding:0 20px;
    padding-top: 30px;
    padding-bottom: 50px;
}
@media (min-width: 576px) {
  .sidebar{
    position:absolute;
    color: #fff;
    height: 100%;
    z-index: 100;
    width:100%;
    left: -100%;
  }

  .contenedor_principal .logo_contenedor{
    display: block;
  }
}

@media (min-width: 768px) {
  .sidebar{
    position:fixed;
    height: 100%;
    width: 20%;
    left: 0;
  }
  .contenedor_principal{
    width: 80%;
    margin-left:20%;
  }
  .contenedor_principal .logo_contenedor{
    display: none;
  }

}

@media (min-width: 992px) {
  .sidebar{
    position:fixed;
    height: 100%;
    width: 15%;
    left: 0;
  }
  .contenedor_principal{
    width: 85%;
    margin-left:15%;
  }

  .contenedor_principal .logo_contenedor{
    display: none;
  }

}

@media (min-width: 1200px) {
  .sidebar{
    position:fixed;
    height: 100%;
    width: 10%;
    left: 0;
  }
  .contenedor_principal{
    width: 90%;
    margin-left:10%;
  }

  .contenedor_principal .logo_contenedor{
    display: none;
  }

}

/* Estilos tabs */
#n-dimension-tab {
	margin-left: 8px;
	background: transparent;
}

.nav-item button:focus {
	outline: none;
	border: none;
}

.envolvente_noche .nav-tabs {
	border-bottom: 1px solid #3f444f;
}

.envolvente_noche .nav-tabs .nav-link {
  background: #3f444f;
  color: #7b8289;
}

.envolvente_noche #n-dimension-tab {
	color: #7d858c;
	border-color: #3f444f;
	border-bottom: none;
}

.envolvente_noche .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
	background: #696f7b;
  color: #d1dbe6;
	border: none;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
	border: none;
}

.envolvente_noche .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
	background: #505560;
}

.seccion {
	padding: 16px;
	border-radius: 8px;
	overflow: hidden;
}
.dia .seccion{
  background-color: #FFFFFF;
  color: #79838F;
	border: solid 1px #e4ebec;
}
.dia .seccion a{
  color: #79838F;
}
.noche .seccion{
  background-color: #18233D;
  color: #F2F2F2;
	border: solid 1px hsl(188, 8%, 35%);
}
.noche .seccion a{
  color: #F2F2F2;
}

/* Estilos de actividades */
.envolvente_noche .list-group-item{
  background-color: transparent;
  color: #c6cfd2;
}

.envolvente_noche .list-group-item a{
  color: #F8F9FA;
}

.btn-circulo-flotante{
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding:25px 30px;
  border-radius: 50px;
}

/* Lista de Tareas */
.lista_tareas{
  vertical-align: middle; /* Centra verticalmente */
  padding: 10px; /* Espaciado interno opcional */
}
.lista_tareas a {
  text-decoration: none;
}

.lista_tareas.dia li{
  background-color: #fff;
  overflow: hidden;
  border-bottom: 1px solid #e5eeee;
}

.lista_tareas.noche li{
  background-color: #18233D;
  border-bottom: 1px solid #3a4257;
  overflow: hidden;
}

.lista_tareas.dia li.fecha_tareas{
  background: transparent;
  padding: 0 16px 0 0;
  font-size: 1em;
  margin: 24px 0 0 0;
}

.lista_tareas.noche li.fecha_tareas{
  background: transparent;
  padding: 0 16px 0 0;
  font-size: 1em;
  margin: 24px 0 0 0;
}

.lista_tareas.noche li a{
  color: #fff;
}

.lista_tareas.dia .fondo-icono{
  background-color: #eee;
}

.lista_tareas.noche .fondo-icono{
  background-color: #000;
}

.lista_tareas .row:hover {
  background: #f5f5f7;
  transition: all 200ms;
}

.envolvente_noche .lista_tareas .row:hover {
  background: #222d47;
  transition: all 200ms;
}

.head-lista-tareas {
  text-transform:uppercase;
}

.head-lista-tareas .status {
  width: 144px;
}

.head-lista-tareas .usuario-activo, .usuario-asignado {
  width: 140px;
}

.badge-tarea {
  min-width: 87px;
  text-align: center;
  padding: 4px;
}
.noche .badge-tarea{
  color: white!important;
}
.proceso-actual {
  width: 170px;
  overflow: hidden;
  word-break: keep-all;
  text-wrap: nowrap;
  text-overflow: ellipsis;
}
.nombre-tarea-corta{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}
.nombre-tarea {
  width: 100%;
  overflow: hidden;
  word-break: keep-all;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}
.tarea-atrasada, .tarea-info, .tarea-atiempo {
  width: 150px;
}
.usuario-burbuja {
	background: #e6ebee;
  margin: 4px;
	padding: 4px;
	border-radius: 20px;
	border: solid 1px #cbd1d7;
}
.usuario-burbuja img {
	width: 25px;
	height: 25px;
	background: aliceblue;
}
.usuario-asignado {
  border: none;
  text-wrap: nowrap;
  width: 170px;
  word-wrap: unset;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usuario-asignado img {
	width: 20px;
	height: 20px;
}
.envolvente_noche .usuario-burbuja {
	background: #28344f;
	border: solid 1px #3d496c;
}
.envolvente_noche .usuario-burbuja:hover {
	background: #182135;
	border-color: #4f689f;
}
.usuario-burbuja span {
	line-height: 2em;
}
.envolvente_dia .comentario {
	background: #e4e9ee;
}
.envolvente_noche .comentario {
	background: #18233d;
}
.envolvente_noche .comentario a,
.noche .card-header{
	color: #4da6ff !important;
}
.envolvente_noche .comentario .btn-outline-success{
  border-color: #4da6ff;
  color: white!important;
}
.envolvente_noche .comentario .btn-outline-success:hover{
  background-color: #4da6ff!important;
  color: white;
}
.foto-perfil-comentario a {
  width: 50px;
  height: 50px;
  background: rgb(24 35 61);
  border-radius: 50%;
}

/* Linea de tiempo */
.lt-proceso-completo {
  color: #959799;
  background: #f0f1f2;
}

.lt-proceso::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 3px solid #fff;
	position: absolute;
	background: #0dcaf0;
	left: -25px;
	top: 8px;
	display: block;
}

.lt-proceso::before {
	content: "";
	width: 2px;
	height: 101%;
	position: absolute;
	background: #ccc;
	left: -19px;
	top: 0px;
	display: block;
}

.lt-proceso::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 3px solid #fff;
	position: absolute;
	background: #ccc;
	left: -25px;
	top: 8px;
	display: block;
}

.lt-proceso.lt-proceso-completo::after {
	background: #10e99d;
}

.lt-proceso.lt-proceso-completo::before {
	background: #10e99d;
}

.lt-proceso.lt-proceso-actual::after {
	background: #10b3e9;
}

.lt-proceso.lt-proceso-actual::before {
	background: #ccc;
}

.envolvente_noche .card.linea-tiempo {
  background: #18233d;
}

.envolvente_noche .lt-proceso-actual {
  color: #18233d;
}

/* Lista de Proyectos */
.proyecto {
	border-radius: 8px;
	overflow: hidden;
  text-decoration: none;
}
.proyecto.dia{
  background-color: #FFFFFF;
  color: #79838F;
	border: solid 1px #e4ebec;
}
.proyecto.dia a{
  color: #79838F;
}
.proyecto.noche{
  background-color: gainsboro;
  color: black;
	border: solid 1px #444445;
}
.proyecto.noche a, .proyecto.dia .excel{
  color: #F2F2F2;
  text-decoration: none;
}
.envolvente_noche .progress {
  background: #3f444f;
}

/* /Lista de Proyectos */

/* Detalles de Proyectos */


/* Validaciones */
.modal-content.dia {
  background-color: #FFF;
}

.modal-content.noche {
  background-color: #18233D;
}

.overflow-tabla {
	overflow-x: scroll;
}

table {
  border-collapse: collapse;
  border: none;
}

tbody {
  border: solid 1px;
}

.envolvente_noche tbody {
  border-color: #3f444f;
}

tr {
  border-top: 1px solid;
}

.envolvente_noche tr{
  border-top-color: #3f444f;
}

tr:first-child {
  border-top: none;
  border: transparent;
}
td {
  border: none !important;
}

.tabla-parametros td:first-child {
	min-width: 20px;
  font-size: 1.5em;
  line-height: -.5em;
}

.tabla-parametros .form-check {
  height: 1.5em;
}

.tabla-parametros tr:hover {
	background: #8080801f;
}

.tabla-parametros .numid {
	opacity: .7;
  padding: 0 8px;
}

.envolvente_dia table {
  color: #d4dce3;
}

.envolvente_noche table {
  color: #3e4955;
}

.table td, .table th {
	border-top: 1px solid #d4dce3;
}

.noche .table td,.noche .table th {
	border-top: 1px solid #3e4955;
  width: auto;
}

.envolvente_noche .list-group {
  background-color: #18233D;
}

.form-control.input_discrete {
	background: #b6bec14a;
	transition: all .2s ease-in-out;
	border: none;
	padding: 12px;
}

.form-control.input_head {
	font-size: 1.2em;
  transition: all .2s ease-in-out;
  border-bottom: 1px solid;
}

.envolvente_noche .form-control.input_head {
  border-color: #3f444f;
}

.form-control.input_head:focus {
	font-size: 1.4em;
  transition: all .2s ease-in-out;
}

.form-control.input_discrete:focus {
	transition: all .2s ease-in-out;
}

.noche .form-control.input_discrete:focus {
	background: #3f444f;
}

.dia .form-control.input_discrete:focus {
	background: #e8e9ec;
}

.input-group-text {
  background: transparent;
  border: none;
  padding: 0 5px 0 0;
}

.noche .input-group-text {
  color: #69727b;
}

.nav-pills li.nav-item button {
	border: none;
	margin-right: 8px;
}
.envolvente_noche .nav-pills li.nav-item button {
	background: #4b505e;
}

.forma-crear-parametro {
  border-radius: 8px;   
}

.envolvente_dia .forma-crear-parametro {
	background: #e9e9ed;
}

.envolvente_noche .forma-crear-parametro {
  background: #20242d;
}

.form-group.inputs-criterio {
	height: 70px;
}

label {
  font-size: .9em;
  text-transform: uppercase;
}

.envolvente_noche .edicion-lista .btn {
	background: #00000070;
	color: #a7a8a8;
}
.envolvente_dia .edicion-lista .btn {
	background: #e3e8ee;
	color: #838c97;
}
.comentario-param {
  max-width: 200px;
}
.lista-revision label{
  font-size: 1em;
  text-transform: none;
}

/* ESTILOS ENVIO DE CORREO */
.envolvente_dia #btnAccion{
  color: white;
  border-color: white;
  background-color: transparent;
}
.envolvente_noche #btnAccion{
  color: black;
  border-color: black;
  background-color: transparent;
}
.envolvente_noche .menuBtn {
  background-color: white !important;
}
.envolvente_noche .subMenu:hover{
  background: white !important;
  color: #000;
}
.regEnvioConvo{
  margin-bottom: 15px;
  text-align: end;
}
.envolvente_noche .contenido_correos .titulo_correo{
  background-color: #CFCFCF;
}
.envolvente_noche .contenido_correos .titulo_correo th, .envolvente_dia .contenido_correos td{
  color: black;
}
.envolvente_noche .cuerpo_correo a{
  color: rgb(17, 85, 204);
}
.envolvente_dia .contenido_correos .titulo_correo{
  background-color: #0d6efd;
}
.envolvente_dia .contenido_correos .titulo_correo th{
  color: white;
}

.txtCenter{ text-align: center; }
.envolvente_dia .colorBtn{ color: black; }
.envolvente_noche .colorBtn, .envolvente_noche .colorBtn:hover, .envolvente_dia .colorBtn:hover{ color: white; }
.close_convo{ background-color: white!important;}

.vista_correo, .cuerpo_correo, .footer_correo{
  width: 100%;
  background-color: white;
  display: inline-block;
  color: #000;
  padding: 5px;
}
.vista_correo{
  display: inline-flex;
}
.firma_compuesta, .direccion{
  width: 50%;
}
.direccion{
  text-align: end;
  background-color: white;
  margin-top: auto;
}
.fecha_correo{
  width: 100%;
  text-align: end;
  background-color: white;
  color: black;
  padding: 7px;
}
.btnCorreo_descarga{
  color: white!important;
  background-color: #3498db;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  padding: 6px 8px;
  border-color: #3498db;
  text-decoration: none;
}
.txt_cuerpo{
  height: 120px;
  display: block;
  overflow-y: scroll;
}
.envolvente_noche .txt_cuerpo span{
  color: #F2F2F2!important;
}
.envolvente_dia .txt_cuerpo span{
  color: #79838F!important;
}
.categoriaCorreo{
  background-color: #9d2449!important;
  color: white!important;
}
.contenido_correos table b{
  color: white;
}
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: .25rem;
  border-radius: .25rem;
}
.bd-callout-info {
  border-left-color: #5bc0de;
}

.responsive-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* ESTILOS PANTALLA DE CARGANDO */
#loading-overlay {
  position: fixed; /* Cubre toda la pantalla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente negro */
  justify-content: center; /* Centrar contenido */
  align-items: center;
  z-index: 9999; /* Asegurar que está por encima de todo */
}

#loading {
  background: white; /* Fondo blanco para que el texto sea legible */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.procesos {
  border: 1px solid #d4dce3;
  border-radius: 5px;
  margin-top: 2em;
}

.proceso_titulo {
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
  background-color: #F8F7FC;
  padding: 0.3em 1em;
  font-weight: bold;
  font-family: sans-serif;
  border: 1px solid #d4dce3;
  border-bottom: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin-top: -1.6em; /* ajusta si hace falta */
  margin-left: 1em;
  z-index: 1;
}

.envolvente_noche .proceso_titulo{
  background-color: #292E3A;
  color: #ebedee;
}

.proceso_contenido {
  padding: 1em;
  padding-top: 1.5em; /* más bajo para alinearlo visualmente */
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
  font-size: 0.8em;
  padding: 0.3em 0.6em;
  border-radius: 0.3rem;
  margin-left: 0.3em;
}

/* PANEL DE NOTIFICACIONES */
/* Panel */
.notif-panel{
  width: 100%;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(43,108,176,0.08);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Header */
.notif-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  background: var(--glass);
  border-bottom:1px solid rgba(43,108,176,0.06);
}
.notif-header h3{
  margin:0;
  font-size:16px;
  color: #08345a;
}
.notif-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

/* Buttons */
.btn-secondary{
  background: transparent;
  border: 1px solid rgba(8,52,90,0.08);
  padding:6px 10px;
  border-radius:8px;
  font-size:13px;
  cursor:pointer;
  text-decoration: none;
  color: var(--accent) !important;
}
.btn-icon{
  background:transparent; border:0; font-size:14px; padding:6px; cursor:pointer;
}

/* Notificaciones */
.notif-tabs{ 
  display:flex;
  gap:8px;
  padding:10px;
  background: transparent;
  border-bottom:1px dashed rgba(8,52,90,0.04);
}
.tab{
  background:transparent;
  border:0;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  display:inline-flex;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-weight:600;
}
.tab:hover{
  background: rgba(43,108,176,0.04);
  color:var(--accent); 
}
.tab.active{
  background: white;
  box-shadow: 0 6px 18px rgba(30,30,30,0.03);
  color:var(--accent);
}

/* Total de tareas */
.notific {
  background-color: #e74c3c; /* rojo o el color que uses para notificaciones */
  color: #fff;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: bold;
}

.notific-empty {
  background-color: #bdc3c7; /* gris tenue */
  color: #fff;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0.7;
}

/* Body / Panels */
.notif-body{
  padding:12px;
  max-height:500px;
  overflow:auto;
}
.tab-panel{
  display:none;
}
.tab-panel.active{
  display:block;
}

/* Lista de notificaciones */
.notif-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
/* SIN LEER (MODO DIA) */
.notif-item{
  background:white;
  border-radius:10px;
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  border:1px solid rgba(8,52,90,0.03);
}
.notif-item.unread{
  box-shadow: 0 6px 14px rgba(46,194,106,0.06);
  border-left:4px solid var(--accent);
  animation: pulse .9s ease;
}
/* LEIDOS (MODO DIA) */
.notif-item.read {
  opacity: 0.6;
  background: #f7f7f7;
  border-color: #dcdcdc;
  box-shadow: none;
}
.notif-item.read:hover {
  opacity: 0.8;
}
@keyframes pulse { 
  from{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-2px);
  }
  to{
    transform:translateY(0);
  }
}

.left{
  flex:1;
  min-width:0
}
.title{
  font-weight:600;
  color:#08345a;
  font-size:14px;
  margin-bottom:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.meta{
  color:var(--muted);
  font-size:12px;
}
.tag{
  display:inline-block;
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  margin-bottom:6px;
  color:#fff;
}
.tag-assign{
  background: #9b59b6;
}
.tag-public{
  background: #3498db;
}
.tag-complete{
  background: #27ae60;
}
.tag-other{
  background: #7f8c8d;
}
.right{
  display:flex;
  gap:8px;
  align-items:center;
}
.btn-link{
  background:transparent;
  border:0;
  color:var(--accent);
  cursor:pointer;
  font-weight:600;
}

/* ESTILOS NOTIFICACIONES (MODO NOCHE) */
.envolvente_noche .notif-header,
.envolvente_noche .notif-tabs {
  background: #242634;
}
.envolvente_noche .notif-header h3,
.envolvente_noche .title,
.envolvente_noche .meta {
  color: #ebedee;
}
.envolvente_noche .unread .title {
  color: #08345a;
}
.envolvente_noche .unread .meta {
  color: var(--muted);
}
.envolvente_noche .unread .btn-link{
  color: var(--accent)!important;
}
/* LEIDOS (MODO NOCHE) */
.envolvente_noche .notif-item.read {
  opacity: 0.7;
  background: #242634;
  transition: background 0.3s, opacity 0.3s;
}
.envolvente_noche .notif-item.read:hover {
  opacity: 0.9;
  background: #2E3042;
}

/* Responsivo */
@media (max-width:520px){
  .notif-panel{ border-radius:0; box-shadow:none; width:100%; }
  .notif-tabs{ overflow:auto; padding:8px; gap:6px; }
}
