:root {
  /* --p-menu-bg: #020617; */
  --p-menu-bg: #04419a;
  
  --p-size-sidebar: 105px;
  --p-text-color:#64748B;
  --a-background: rgba(255, 255, 255, 0.9);
  --a-bread-bar: white;
  --an-bg-app: #e7e9f2;
  --an-bg-shadowbar: 0 1px 4px rgba(0, 0, 0, 0.2);

  /* sso */
  --p-primary-bg: var(--p-menu-bg);
}

body {
  font-family: 'Lato', sans-serif;
}

/* Fondo moderno con transparencia y sombra */
#navbar {
  /* background: rgba(255, 255, 255, 0.9); */
  background: var(--a-background);
  /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); */
  box-shadow: var(--an-bg-shadowbar);
  border: none;
  backdrop-filter: blur(4px);
}

.user-dropdown-modern .dropdown-toggle {
  padding: 10px 15px;
  color: #333;
  background: transparent;
  font-weight: 500;
  transition: background 0.3s ease;
}

.user-dropdown-modern .dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
/* Dropdown general estilo moderno */
.modern-dropdown {
  min-width: 260px;
  padding: 12px 0;
  border: none;
  border-radius: 16px; /* MÁS redondeado */
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Ítems del menú */
.modern-dropdown > li > a {
  padding: 12px 24px;
  color: #333;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, border-radius 0.3s;
  border-radius: 12px; /* Hace que cada ítem tenga esquinas suaves */
  margin: 4px 8px;
}

.modern-dropdown > li > a:hover {
  background-color: #f3f3f3;
  color: #000;
}

/* Encabezado de bienvenida */
.modern-dropdown .greeting {
  font-size: 15px;
  padding: 10px 24px;
  color: #444;
  font-weight: 600;
}

/* Separador visual suave */
.modern-dropdown .divider {
  height: 1px;
  margin: 8px 16px;
  background-color: #e8e8e8;
}

/* Badge de notificación moderna */
.modern-badge {
  background-color: #ff5722;
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px; /* forma de píldora */
}

/* Contenido adicional como tareas y mensajes */
.dropdown-section {
  font-size: 13px;
  color: #555;
  padding: 4px 24px 12px;
}


/* #navbar, .navbar-container {
  overflow: visible !important;
  z-index: 1040; 
  position: relative;
} */

.user-dropdown-modern {
  position: relative;
}

.user-dropdown-modern .modern-dropdown {
  right: 0; /* Se alinea al borde derecho del botón */
  left: auto;
  position: absolute;
  top: 100%;
  z-index: 1000;
  min-width: 260px;
  white-space: normal;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  overflow: visible; /* importante */
}

/**** centrar contenido ****/
/* #navbar {
  display: flex;
  align-items: center;  
            
  padding: 0 20px;
  background-color: #fff; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
} */

/* #navbar {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  height: auto;
  min-height: 60px;
}
#navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
} */


.ace-nav > li {
    border-left: none;
    padding-left: 5px;
    
}

/***************** estilos sidebar menu **************************/

.logo_adu {
    padding-top: 14px;
    padding-bottom: 14px;
}

.skin-1 .nav-list > li {
    border-color: #3f4e54;
}

/******* menu ****/
.skin-1 .sidebar {
    background-color: var(--p-menu-bg);
    border-right-width: 0;
    border-right: 1px solid #ccc;
    box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.1);
    width: var(--p-size-sidebar);
    min-width: var(--p-size-sidebar);
}

.skin-1 .nav-list > li:hover > a {
    background-color: #234d9b;
    color: #e1eaf1;
    border-radius: 10px; 
    transition: background-color 0.2s ease, border-radius 0.2s ease;
    margin: 1px;
    cursor: pointer;
}

.skin-1 .nav-list > li > a {
    /* background-color: white; */
    background-color: var(--p-menu-bg);
    /*color: #b1bac1;*/
    color: #2a3547;
}

.nav-list > li {
    border-style: none;
    /* border-width: 1px 0 0; #2a3547 */
}

/**************************** Barra Adicional *********************************/
/* .barra-secundaria {
    background-color: #0057A0;
    color: white;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.barra-secundaria .titulo-barra {
    display: inline-block;
} */

/* .barra-secundaria {
    background-color: white;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    
} */

.barra-secundaria {
  position: absolute;
  left: var(--p-size-sidebar);
  right: 0;
  height: 50px;
  background-color: white;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
}

@media (max-width: 990px) {
  .barra-secundaria {
    left: 0;
  }
}

/************ BARRA de Tareas *************/

.skin-1 .breadcrumbs {
  background-color: var(--a-bread-bar);
  border-bottom: 1px solid #ccc;
}

/********************************************/


.titulo-barra {
    display: inline-block;
    color: #2a3547;
}


.img-responsive {
  color: red !important;
}


@media only screen and (max-width: 479px) {
    .navbar:not(.navbar-collapse) .ace-nav {
      display: block;
      float: none !important;
      text-align: center;
      background-color: rgba(255, 255, 255);
      /* background: red; */
      /* border: 1px solid rgba(0, 0, 0, 0.1); */
      border-width: 1px 0 0;
      letter-spacing: -3px;
    }
}

.skin-1 .navbar .navbar-toggle:hover {
  background-color: #3992c6;
  color: #ccc;
}
.skin-1 .navbar .navbar-toggle:focus {
  background-color: #4D9DCC;
}
.skin-1 .navbar .navbar-toggle {
  /*transition: background-color .1s ease 0s;*/
  /* background-color: #4D9DCC; */
  
  /* background-color: var(--p-menu-bg) !important; */
  background-color: var(--p-text-color) !important;
  /* color:  var(--p-primary-bg) !important; */
  color: red !important;
  /* background-color: white; */
  margin-top: 12px;
  /* border: 1px solid var(--p-primary-bg) !important; */
}

/**************** MENU LIST ***********************/
/* .skin-1 .nav-list > li > .submenu > li:hover > a {
  background:  none !important;
}

.nav-list > li .submenu > li a > .menu-icon {
    left: 8px !important;
    background: none;
}

.skin-1 .nav-list > li:hover > a {
    background-color: #414b51;
    color: #e1eaf1
} */

/* borrar el contenido */
.skin-1 .nav-list > li:hover:before {
    background-color: transparent !important;
}

/* .skin-1 .nav-list > li > .submenu > li:hover > a {
    color: #8ab4de
} */

/******** MENU BOTONES ************/
.menu-boton {

  /* background-color: #e5e7eb;  */
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-radius: 12px;

  padding: 8px;
  padding-bottom: 12px;
  padding-top: 12px;

  margin: 2px;
  margin-bottom: 6px;
  margin-top: 4px;

  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-boton:hover {
  background-color: rgba(255, 255, 255, 0.1); /* más oscuro al hacer hover */
}

.menu-icono {
  margin-bottom: 2px;
}

.menu-texto {
  max-height: 2.4em;
  line-height: 1.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  margin-top: 7px;

  /*max-height: none;
  overflow: visible;
  text-overflow: unset;
  line-height: normal;
  white-space: normal;
  word-wrap: break-word;
  margin-top: 7px;*/
}

/* .menu-texto:hover {
max-height: none;
} */

.menu-boton:hover .menu-texto {
  max-height: none;
  overflow: visible;
}

.line-gray {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 1rem 0;
}

/*---------------- la barra lateral esa en ----------------- */
/* ace.css */
/*
.main-content {
  margin-left: 190px;
  min-height: 100%;
  padding: 0;
}
*/

.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb > li > a {
  color: var(--p-text-color);
  font-weight: normal;
}
.breadcrumb > li, .breadcrumb > li.active {
  color: var(--p-text-color);
  padding: 0 3px 0 3px;
}

/* .breadcrumb > li + li:before {
  margin: 0 0px 0 0 !important;
} */

/**** Estilos CSS ****/
.menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.menu-btn:hover {
  background-color: #0056b30F;
  /* background-color: rgba(255, 255, 255, 0.3); */
}

.menu-btn-outline {
  background-color: white;
  color: #007bff;
  border: 1px solid #007bff;
}

.menu-btn-outline:hover {
  background-color: #007bff;
  color: white;
}

.menu-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/**** para menu ****/
.skin-1 .nav-list > li {
    border-color: #3f4e54;
    padding: 12px;
}

.skin-1 .nav-list li.hover > .submenu {
    padding-left: 0;
    padding-bottom: 2px;
    padding-right: 0;
    border-color: #232828;
}
.nav-list li.hover:hover > .submenu {
    display: block !important;
}
.skin-1 .nav-list > li > .submenu {
    border-top-color: #505a5b;
}
.skin-1 .nav-list > li .submenu {
  background-color: var(--p-menu-bg);
  padding: 6px;
}
.nav-list li.hover > .submenu {
    padding: 0 2px;

    border-top-color: #505a5b;
    border-radius: 6px !important; /* o el valor que desees */
    /* overflow: hidden;  */
    margin-top: 6px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}
.submenu {
  padding: 6px;
}
/* .nav-list li.hover > .submenu {
    position: absolute;
    left: 100%;
    margin-left: -2px;
    top: -10px;
    bottom: auto;
    z-index: 1026;
    width: 190px;
    border: 1px solid;
    display: none !important;
} */

.skin-1 .nav-list > li .submenu > li > a {
    background-color: var(--p-menu-bg) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: left !important;
}
.skin-1 .nav-list > li .submenu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar.compact + .main-content {
  margin-left: 0px;
}

.sidebar.compact + .main-content {
  margin-left: 105px;
}


/*** collapsable ***/
  .center {
    text-align: center;
    padding: 8px;
  }

  .colapsable-checkbox {
    display: none;
  }

  .colapsable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .colapsable-checkbox:checked ~ .colapsable-content {
    max-height: 200px;
  }

  .colapsable-trigger {
    cursor: pointer;
    display: inline-block;
  }

  .an-card-body {
    color: rgba(255, 255, 255, 0.7);
  }

.marca-agua {
  background: rgba(221, 221, 221, 0.7);
  border-radius: 6px;
  padding: 4px;
  padding-bottom: 2px !important;
  padding-top: 2px !important;
}

/* .ace-nav > li {
    line-height: 25px;
} */

.marca-agua .ace-nav > li {
  line-height: 25px !important;
}


/****************************** estilo para aparecer scroll ***********************************/
/*
.nav.nav-list {
  max-height: calc(100vh - 130px); 
  overflow-y: auto;
}


.nav.nav-list {
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.nav.nav-list::-webkit-scrollbar {
  width: 6px;
}

.nav.nav-list::-webkit-scrollbar-track {
  background: transparent;
}

.nav.nav-list::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.nav.nav-list::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
*/

.dark-mode {
  --p-menu-bg: #18181B;
  --p-size-sidebar: 105px;
  --p-text-color:#020617;
  --a-background: #18181B;
  --a-bread-bar: #18181B;

  --an-bg-app: #09090b;

  --an-bg-shadowbar: 0 1px 2px rgba(224, 221, 221, 0.8);
  --p-text-color: #888;
}

.bg-app {
  background: var(--an-bg-app);
}

/*
navbar-toggle menu-toggler pull-left

navbar-toggle menu-toggler pull-left

*/


/* Notificaciones */
/* Scoped styles para el globo */
/*
.custom-notification {
    position: relative;
}

.custom-notification > a {
    background: none;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.custom-notification > a:hover {
    background: #f0f0f0;
}

.custom-notification .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 1000;
}

.custom-notification .dropdown-header {
    font-weight: bold;
    font-size: 14px;
    color: #444;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.custom-notification .notification-content {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.custom-notification .badge-warning {
    background-color: #ffb74d;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}*/

/* ----------------- */
/* .custom-dropdown-menu {
  left: 0 !important;
  right: auto !important;
  top: 100%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 10px;
} */

/* .custom-notification {
  position: relative;
}

.custom-notification .dropdown-menu {
  left: 0 !important;
  right: auto !important;
  top: 100%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 10px;
  min-width: 250px;
}
 */

/* .custom-notification {
  position: relative;
}

.custom-notification .dropdown-menu {
  left: 0 !important;
  right: auto !important;
  top: 100%;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 250px;
  padding: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.custom-notification .dropdown-header {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.custom-notification .notification-content {
  font-size: 13px;
  color: #555;
} */

.custom-notification .dropdown-header {
    font-weight: bold;
    font-size: 14px;
    color: #444;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.custom-notification {
  position: relative;
  border-radius: 8px !important;
}

.custom-notification .dropdown-menu {
  left: auto;
  right: 0;
  min-width: 200px;
}

.custom-notification .notification-content {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-content:hover {
  /* background: var(--p-text-color); */
  
  background-color: #0056b30F;
  
}

.dp-noti {
  border-radius: 8px !important;
  overflow: hidden;
}
.acube {
  border-radius: 5px;
  background: #f59e0b !important;
}

/* brad crumb */
.breadcrumb > li + li:before {
    /* font-family: FontAwesome;
    content: "\f105"; */
    font-size: 16px !important;
    color: var(--p-text-color) !important;
    margin: 0 5px 0 0;
    /* padding: 0;
    position: relative;
    top: 0px; */
}