#content {
width: 95%;
padding: 0;
-webkit-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s;
}
/* Se cambia el width al 100% cuando el sidebar esta plegado. */
#content.fullScreen{
width: 100%;
}

.nsTileTableRow{
margin-bottom:25px;  
overflow: hidden;
text-overflow: ellipsis;
}

#SwitchDarkMode{
cursor: pointer;
}

.grid-stack>.grid-stack-item>.grid-stack-item-content {
margin: 0;
position: absolute;
width: auto;
overflow-y: hidden;
overflow-x: auto;
}
.clsSvg {
display: block;
margin:auto;
}

body.dark-mode {
background-color: white; /* Fondo negro base para aplicar filtros */
color: black; /* Texto claro para contraste */
filter: invert(1) hue-rotate(160deg); /* Ajusta brillo para un gris más claro */
}
body.dark-mode {
background-color: rgb(36, 36, 36);
color: black;
}
body.dark-mode .tituloFast{
color: #3F4462;
}
body.dark-mode .node-TreeUtils:not(.node-disabled),
body.dark-mode .node-TreeServices:not(.node-disabled),
body.dark-mode .nav-pills .nav-link.active, .nav-pills .show>.nav-link,
body.dark-mode .form-control {
background-color: #d9d9d9;
}

body.dark-mode .form-control{
border-color: black;

}
body.dark-mode .nsTileHeaderTile,
body.dark-mode .nsTileHeaderTile-M,
body.dark-mode .nsTileHeaderTile-S{
color: black;
}



.ui-jqgrid{
border-left:  1px solid #ddd;
}

.treeview img{
max-width: 20px;
max-height: 25px;
margin-right: 13px !important;
}
.treeview span.icon {
margin-top: 5px;
}

.ui-jqgrid .ui-jqgrid-hdiv .ui-jqgrid-labels th {
  border: 1px solid #e6e6e6; /* Eliminar bordes derechos de celdas y encabezados */
  text-align: center; 
  font-family: "Montserrat" !important;
  color: #3F4462; 
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 2px;
  padding-bottom: 2px;
}

.containerIconoFast{
padding-left:10px;
padding-top:5px;
width:4%;
vertical-align: middle;
}

.tituloFast{
font-weight: 700;
font-size: 24px;
padding-top:10px;
font-family: 'Montserrat';
margin-left: 3px;
margin-right: 3px;
vertical-align: middle;
max-width: 220px;
}

#TxtMnu{
width: 85%;
cursor: pointer;
background-color: transparent;
color: #428bca;
font-weight: 600;
box-shadow: none;
text-align: left;
appearance: none;
margin-right: 6px;
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"%3E%3Cpath fill="%233F4462" id="arrow-icon" d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"%3E%3C/path%3E%3C/svg%3E');
/* background-image: none;  */
/* background-size: 20px 20px; */
}

#TxtMnu option{
color: #3F4462;
max-width: 84%;
text-overflow: ellipsis;
}

/* Scroll del body */
body{
margin: 0;
padding: 0;
overflow: hidden;
}

#rowTileContent{
overflow-y: auto;
overflow-x: hidden;
max-height: 85vh;
padding-bottom: 10px;
}
#rowTileContent.modo-1{
max-height: 80vh;
}



.text-ellipsis{
overflow: hidden;
text-overflow: ellipsis;
}

#bodyInformacionServicio
{
max-height: 120px;
overflow-y:  auto !important;
}

#paginaWebModi{
font-weight: 600;
color: #428bca;
}
#paginaWebModi:visited{
color: #6F1FAB; 
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px; /* Ancho de la barra de desplazamiento */
}

/* Estilo para el riel de la barra de desplazamiento */
::-webkit-scrollbar-track {
background: #f1f1f1; /* Color del fondo */
border-radius: 20px;
}

/* Estilo para el pulgar de la barra de desplazamiento */
::-webkit-scrollbar-thumb {
background: #AAAAAA; /* Color del pulgar */
border-radius: 20px;
height: 20px;
}

/* Estilo para el pulgar de la barra de desplazamiento al pasar el ratón */
::-webkit-scrollbar-thumb:hover {
background: #6E6E6E; /* Color del pulgar al pasar el ratón */
border-radius: 20px;
cursor:pointer;
}
/* Estilo barra eje x del que se muestra cuando el svg desvorda la pantalla */
.grid-stack-item-content::-webkit-scrollbar {
height: 6px; 
}


.limitar-lineas-3 {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3; /* Número de líneas */
-webkit-box-orient: vertical;
}

#tspanFotovoltaicoSVG{
display: none;
}

#tspanFechaHora{
display: none;
}

#svg-container{
display: flex;
max-height: 370px;
max-width: 540px;
}

.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #FAFAFA;
padding: 20px;
border-radius: 5px;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
z-index: 9999;
}
.password-popup{
width: 800px;
}

.popup-content {
text-align: center;
}

.close {
padding: 4px;
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
position: absolute;
top: -7px; 
right: 5px; 
cursor: pointer;
}

.close:hover{
color: #66C5E9;
}

.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}



.clsLogoLogin{
  width: 97px;
  height: 113px;
}



.span-btn{
display: block;
max-width: 98%;
padding: .375rem .75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: var(--bs-body-color);
background-color: var(--bs-body-bg);
background-clip: padding-box;
border: var(--bs-border-width) solid var(--bs-border-color);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: var(--bs-border-radius);
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
margin-top: -10px; /*Alineado con el resto de elementos del filter*/
margin-left: 4px;
margin-right: 4px;
text-align: center;
cursor: pointer;
}
.span-btn:hover {
color: #495057;
background-color: #fff;
border-color: #80bdff;
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Portail de <= 14 pulgadas */
@media screen and (max-width: 1600px){


#clsTreeContainer.modo-1{
  max-height: 66vh;
}
.form-control{
  font-size: small;
}
.span-btn {
  font-size: small;
}
/* #rowTileContent{
  max-height: 80vh;
  max-width: 100%;
} */
}

@media screen and (max-width: 1280px){
  .tituloFast{
    margin-left: 20px;  
  }
  #clsTreeContainer.modo-0{
    max-height: 70vh;
  }
} 

@media screen and (max-width: 1024px){
  #clsTreeContainer.modo-0{
    max-height: 65vh;
  }
} 
/* Tablet en posición vertical:  */
@media ((min-width: 768px) and (max-width: 1023px)){

}
/* Tablet en posición horizontal */
@media ((min-width: 1024px) and (max-width: 1365px))
{

}

@media (max-width: 960px){
  .nav-link{
    margin: 6px;
  }
  .tituloFast {
    text-align: left;
    margin-right: 0;
    margin-left: 88px;
  }
  #clsTreeContainer.modo-0{
    max-height: 60vh;
  }
  .containerIconoFast{
    margin-right: 20px;
  }
  }
  /* Teléfono Móvil */
  @media (max-width: 768px){
  .password-popup{
    width: 90%;
    height: 65%;
  }
  .clsSvg{
    max-height: 80%;
  }
  #content{
    width: 100%;
  }
  #clsTreeContainer.modo-0{
    max-height: 70vh;
  }
  .containerIconoFast{
    padding-top: 6px;
    padding-left: 6px;
    margin-right: 25px;
  }
  .IconoFast{
    padding-right: 10px;
    max-width: 26px;
  }
  .tituloFast{ 
    margin-left: 0;
    white-space: nowrap;
    font-size: 20px;
    padding-top: 6px;
  }
  #OpenAlerts{
    margin-right: 4px;
  }
  .sidebar.active{
    min-width: 100%;
  }

  .navmenuFast{
    padding-top: 1px;
    flex-direction: inherit;
    --bs-nav-link-padding-x: 1;
    --bs-navbar-padding-y: 0;
    max-height: 27px;
  }
  .navbarMenuFast{
    --bs-navbar-padding-y: 0rem;
  }

  .nsTileHeaderTile{
    font-size: 21px !important;
  }
  .nsTileHeaderTile-M, .nsTileHeaderTile{
    font-size: 18px;
  }

    .circle-container-S{
    width: 50px;
    height: 50px;
  }

  .span_label_ws558{
    text-align: left;
  }
}


.dashedLine{
    margin-top: 10px;
    width: 50%;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
    margin-left: 25%;
    display: block !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #42699e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
}

 /* Estilos para el modal personalizado */

.close-modal {
padding: 4px;
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
position: absolute;
right: 5px; 
cursor: pointer;
}