body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.bajada {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}


h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: #28367B;
}

/*Colors*/
.color-primary {
    color: #28367B;
    opacity: 90%;
}

.color-blue400 {
    color: #3547A2;
}

.color-bluelight {
    color: #EAEBF2;
}

.color-secondary {
    color: #E84048;
}

.color-redlight{
    color: #FDECED;
}

.color-redlighthover{
    color: #F8C4C6;
}

.color-red400 {
    color: #ED6D73;
}

.color-red600 {
    color: #DA1A23;
}

.color-btncancel {
    color: #CF4047;
}

.color-link {
    color: #0060F1;
}

.color-calipso {
    color: #16C0DA;
}

.btn-primary {
    background-color: #3547A2;
}

.btn-secondary-calipso {
    background-color: #16C0DA;
    color: #FFFFFF;
}

.btn-warning {
    background-color: #e2e620;
    color: #FFFFFF;
}

.btn-Orange {
    background-color: #f0ad4e;
    color: #FFFFFF;
}

.btn-Orange:hover {
    background-color: #e59e3d; /* O el color que prefieras para el hover */
    color: #FFFFFF; /* Mantiene el color blanco en el hover */
}

.btn-Blue {
    background-color: #5bc0de;
    color: #FFFFFF;
}

.btn-Blue:hover {
    background-color: #3eb3d7; /* O el color que prefieras para el hover */
    color: #FFFFFF; /* Mantiene el color blanco en el hover */
}

.btn-danger {
    background-color: #CF4047;
    color: #FFFFFF;
}

.border-bottom-tab {
    border-bottom: 1px solid #ED6D73;
}

.btn-primary-relacionadas {
    background-color: #576fe7;
    color: #FFFFFF;
}

/* MainMenu */
.dropend .dropdown-toggle:empty::after {
    margin-left: 5px;
}
.header {
    background: #FFF !important;
}
.titulo-sistema {
    color: #28367B;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 31px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.nombre-usuario {
    width: 100px;
    height: 40px;
    color: #0B4582;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.texto-nombre-usuario {
    padding: 0; margin: 0;
    overflow: hidden;
    text-align: end;
    text-wrap: wrap;
}

.shadow-inner {
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* pdf */
#filePreview {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 75vh;
  overflow: auto;
  background-color: #f8f9fa;
  padding: 0.5rem;
}
#filePreview iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: none;
  display: block;
  box-sizing: border-box;
}
@media (max-width: 576px) {
  #filePreview {
    height: 65vh;
  }
  #filePreview iframe {
    height: 65vh;
  }
}
@media (max-width: 576px) {
  #lista.table-sm th,
  #lista.table-sm td {
    font-size: 9px !important;
    padding: 2px 4px !important;
  }
}
@media (max-width: 800px) {
      #Filtros {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    #Filtros > div {
        margin-bottom: 10px;
        width: 100%;
    }
    #edFiltroEstado {
        width: 100% !important;
    }
}

.main-panel-menu {
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    box-shadow: 2px 0px 2px 1px rgba(0, 0, 0, 0.10);
}
.barra-menu {
    position: fixed;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    box-shadow: 2px 0px 2px 1px rgba(0, 0, 0, 0.10);
    z-index: 501;
}
.item-menu {
    margin-top: 10px;
    margin-bottom: 10px;;
}
.icono-menu {
    color: #28367B;
    opacity: 90%;
    cursor: pointer;
    width: 30px;
    text-align: center;
}
.texto-menu {
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
}
.dropdown-menu {
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: start;
}
.divisor-menu {
    color: #28367B;
    opacity: 90%;
    margin-top: 10;
    margin-bottom: 0;
}
.toggler-menu {
    color: #28367B;
    opacity: 90%;
    cursor: pointer;
    width: 30px;
}
.barra-opciones {
    left: 0; bottom: 0;
    position: fixed;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    box-shadow: 2px 0px 2px 1px rgba(0, 0, 0, 0.10);
    z-index: 500;
}
.margen-inferior-opciones {
    height: 80px;
}
.margen-inferior {
    height: 80px;
}
.opcion-movil {
    width: 60px;
    margin-top: 10px;
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
    line-height: 20px;
}
.contenedor-icono-opcion-movil {
    width: 70px;
}
.icono-opcion-movil {
    color: #28367B;
    opacity: 90%;
}
.texto-opcion-movil {
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.footer-bym {
    background: #FFF !important;
    height: 50px;
    color: #28367B;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-wrap: wrap;
    text-align: center;
    border: 1.5px solid rgba(0, 0, 0, 0.10);
}

.barra-migas{
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.alert-secondary-select {
    color: #41464b;
    background-color: #EAEBF2 !important;
    border-color: #F8C4C6; 
}


/* Página Home */
.home {
    background-color: #FFFFFF;
    background-repeat: repeat;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 50px; 
    padding-right: 50px;
}
.home-titulo-seccion {
    color: #28367B;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border-bottom:3px solid rgba(235, 60, 70, 0.80);
    padding-bottom: 4px;
}
.home-opcion-menu {
    width: 170px; height: 143px;
    border-radius: 5px;
    margin: 5px;
    padding: 4px;
    cursor: pointer;
}
.home-icono-opcion {
    text-align: center;
    color: #DA1A23;
    opacity: 65% !important;
}
.home-texto-opcion {
    cursor: pointer;
    text-align: center;
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.home-image {
    width: 100%;
    height: auto;
}

.seccion-image {
    width: auto;
    height: auto;
}

.seccion-sincontent {
    display: flex;
    align-items: center;
}

.seccion-container{
    display: grid;
    place-items: center;
    margin: auto;
}

.icono-menu-home {
    color: #DA1A23;
    opacity: 65%;
    cursor: pointer;
    width: 50px;
    text-align: center;
}
.item-menu-home {
    font-size: 16px;
    padding-top: 5px;
    padding-bottom: 5px;
}
.home-notificacion {
    width: 260px; height: 94px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background: #FFF;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.25);
    margin: 20px;
    padding: 20px;
    cursor: pointer;
}
.home-icono-notificacion {
    text-align: center;
    color: #DA1A23;
    opacity: 65%;
}
.home-texto-notificacion {
    cursor: pointer;
    text-align: center;
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Estilos secciones */
.seccion {
    background-color: #FFFFFF;
    background-repeat: repeat;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 50px; 
    padding-right: 50px;
}
.titulo-seccion {
    color: #28367B;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border-bottom:3px solid rgba(235, 60, 70, 0.80);
    padding-bottom: 4px;
}

.titulo-subseccion {
    color: #28367B !important;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding-bottom: 4px;
}

/* Estilos personalizados para el botón de inicio de sesión de Microsoft */
.ms-login-button {
    background-color: #FFFFFF; /* Fondo blanco por defecto */
    color: #0078D4; /* Texto azul característico de Microsoft */
    border: 0.5px solid #808080; /* Borde gris por defecto */
    padding: 8px 16px; /* Tamaño reducido del botón */
    border-radius: 4px;
    font-size: 14px; /* Tamaño de fuente reducido */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: border-color 0.3s; /* Transición para el cambio de color de borde */
}
.ms-login-button:hover {
    border-color: #0078D4; /* Cambia el color del borde a azul de Microsoft al pasar el cursor sobre el botón */
}
.ms-icon {
    width: 16px; /* Tamaño del icono */
    height: 16px;
    margin-left: 8px; /* Espacio entre el texto y el icono */
}

.table > :not(:first-child) {
    border-top: 2px solid #3547A2;
}

.list-group-item {
    border-color: transparent !important;
}

.subtitulo-editor {
    display:flex;
    justify-content: center;
    align-items: center;
    background-color: #dfe1eb; 
    border-radius: 10px;
    font-weight: 500;
    font-size: 18px;
}

.table tbody>tr>td {
    padding: 4px !important;
    cursor: pointer;
}
.table-primary {
    --ct-table-bg: #dff0d8 !important;
}
.fa-1 {
    font-size: 1.2em;
}

.fa-2 {
    font-size: 1.3em;
}

.color-redlight{
    color: #FDECED;
}


/* 
    MODULO LIQUIDACIONES
*/
.nav-liquidacion{
    border: 1px solid #4757aa;
    border-start-start-radius: 6px;
    border-start-end-radius: 6px;
    font-size: 13px;
}

.nav-liquidacion .nav-link.active {
    color: #ffffff;
    background-color: #4757aa !important;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-liquidacion .nav-link{
    display: block;
    padding: .5rem 1rem;
    color: #4757aa;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.fz-8{font-size: 8px !important}
.fz-10{font-size: 10px !important}
.fz-12{font-size: 12px !important}
.fz-13{font-size: 13px !important;}
.fz-14{font-size: 14px !important;}
.fz-16{font-size: 16px !important;}
.fz-18{font-size: 18px !important;}
.fz-20{font-size: 20px !important;}
.pointer{
    cursor: pointer;
}
.red-fas{
    color: #d0414a;
}
.green-fas{
    color: forestgreen;
}
.yellow-fas{
    color: goldenrod;
}
.blue-fas{
    color: navy
}
.div-recalada-selected{
    width: 100%;
    text-align: center;
    color: #cb4245;
    background-color: #cfe2ff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.btn-upload-file{
    border-radius: 54%;
    width: 30px;
    height: 30px;
    font-size: 15px;
    background: #ffc008;
    border: none;
    color: white;
}
.font-weight-800{font-weight: 800 !important;}
.table-header-custom{
    border-width: 1px;
    padding: 0.5em;
    position: relative;
    text-align: left;
    border-radius: 0.25em;
    border-style: solid;
    background: #EEE;
    border-color: #BBB;
}

.table-head-custom{
    text-align: center !important;
    align-content: center !important;
    color: white;
    background: #3646a2;
    font-weight: 800;
    border-width: 1px;
    padding: 0.5em;
    position: relative;
    text-align: left;
    border-radius: 0.25em;
    border-style: solid;
    border-color: #DDD;
}
.table-head-custom-edit{
    text-align: center !important;
    align-content: center !important;
    color: white;
    background: #3646a2;
    font-weight: 800;
    padding: 0.5em;
    position: relative;
    border-style: solid;
    border-color: #5160b6f1;
    border-width: 0.5px;
}
.table-body-custom-cell{
    position: relative;
    text-align: left; 

    display: flex;
    align-items: center; 
}
.table-body-custom-cell .form-control,
.table-body-custom-cell .form-select {
    width: 100%; 
    height: 40px;
    border: 1px solid #ced4da; 
    border-radius: .25rem;
    background-color: #fff; 
    font-size: 0.8rem; 
    padding: .375rem .75rem;
}
.table-body-custom-cell .text-end {
    text-align: end !important;
}
.red-fas {
    color: #dc3545; 
    font-size: 1.25rem; 
}
.pointer {
    cursor: pointer;
}
#filas {
  max-height: 300px;
  overflow-y: overlay;
}
@supports not (overflow: overlay) {
  #filas {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}
/*scroll no visible
#filas {
  scrollbar-width: none;
  -ms-overflow-style: none; 
}
#filas::-webkit-scrollbar {
  display: none; 
} */
.table-body-custom{
    border-width: 1px;
    padding: 0.5em;
    position: relative;
    text-align: left;
    border-radius: 0.25em;
    border-style: solid;
    border-color: #DDD;
}
.badge-info {
    color: #fff;
    background-color: #17a2b8;
}

.badge-info[href]:hover, .badge-info[href]:focus {
    color: #fff;
    text-decoration: none;
    background-color: #117a8b;
}
.card-header-timelog{
    padding: .5rem 1rem;
    margin-bottom: 0;
    background-color: #337ab7;
    border-bottom: 1px solid #337ab7;
    color: white;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}
.card-header-key{
    font-size: 15px;
    font-weight: 600;
    width: 115px !important;
    display: inline-block;
}
.card-header-value{
    font-size: 12px;
    display: block;
    width: 80%;
}
.card-header-col{
    display: flex;
    padding: 0.5rem;
    align-items: center;
}

.border-tab {
    width: 100%;
    height: 100%;
    border-color: rgb(62, 62, 62);
    border-width: 1px;
    border-style: solid;
}

.loader  {
    animation: rotate 1s infinite;  
    height: 50px;
    width: 50px;
  }
  
  .loader:before,
  .loader:after {   
    border-radius: 50%;
    content: '';
    display: block;
    height: 15px;  
    width: 15px;
  }
  .loader:before {
    animation: ball1 1s infinite;  
    background-color: #3547a2a1;
    box-shadow: 30px 0 0 #3547a2a1;
    margin-bottom: 10px;
  }
  .loader:after {
    animation: ball2 1s infinite; 
    background-color: #3547a2a1;
    box-shadow: 30px 0 0 #3547a2a1;
  }

  .row-equal {
    display: flex;
    gap: 15px;
    width: 100%; 
}

  
  @keyframes rotate {
    0% { 
      -webkit-transform: rotate(0deg) scale(0.8); 
      -moz-transform: rotate(0deg) scale(0.8);
    }
    50% { 
      -webkit-transform: rotate(360deg) scale(1.2); 
      -moz-transform: rotate(360deg) scale(1.2);
    }
    100% { 
      -webkit-transform: rotate(720deg) scale(0.8); 
      -moz-transform: rotate(720deg) scale(0.8);
    }
  }
  
  @keyframes ball1 {
    0% {
      box-shadow: 30px 0 0 #3547a2a1;
    }
    50% {
      box-shadow: 0 0 0 #3547a2a1;
      margin-bottom: 0;
      -webkit-transform: translate(15px,15px);
      -moz-transform: translate(15px, 15px);
    }
    100% {
      box-shadow: 30px 0 0 #3547a2a1;
      margin-bottom: 10px;
    }
  }
  
  @keyframes ball2 {
    0% {
      box-shadow: 30px 0 0 #3547a2a1;
    }
    50% {
      box-shadow: 0 0 0 #3547a2a1;
      margin-top: -20px;
      -webkit-transform: translate(15px,15px);
      -moz-transform: translate(15px, 15px);
    }
    100% {
      box-shadow: 30px 0 0 #3547a2a1;
      margin-top: 0;
    }
  }


  /* estilos para modal de revisión proforma*/

  /* Color de fondo siempre visible */

  .header-revision {
    background: #83a1dd;
    border-width: 1px;
    border-radius: calc(0.25rem - 1px);
    color: #fff;
    margin: 0px;
  }

  .header-revision-relacionadas {
    background: #fbba56d1;
    border-width: 1px;
    border-radius: calc(0.25rem - 1px);
    color: #fff;
    margin: 0px;
  }


.texto-sm{
    font-weight: 600 !important;
    text-align: start !important;
    font-size: small;

}

.border-dotted-sides {
    border-left: 2px dotted #83a1dd !important;
    border-right: 2px dotted #83a1dd !important;
    border-bottom: 2px dotted #83a1dd !important;
    border-top: none !important; /* Asegura que no haya borde arriba */
}

.full-border-dotted-sides {
    border-left: 2px dotted #83a1dd !important;
    border-right: 2px dotted #83a1dd !important;
    border-bottom: 2px dotted #83a1dd !important;
    border-top: 2px dotted #83a1dd !important;
}

/* Celdas con borde interno */
.grid-item {
    border: 1px solid #3e3e3e;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center; /* Asegura que el texto también esté centrado horizontalmente */
    height: 35px; /* Define una altura */
}

.grid-valor {
    border: 1px solid #3e3e3e;
    text-align: start;
    font-size: 12px;
    display: flex;
    align-items: center;
    height: 35px; /* Define una altura para que funcione align-items */
}

/* Eliminar bordes duplicados internos */
.row:not(:first-child) .grid-item,
.row:not(:first-child) .grid-valor {
    border-top: none;
}


.grid-valor p {
    margin: 0; /* Elimina el margen predeterminado */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

/* Opcional: bordes verticales internos más finos */
.grid-item:not(:last-child),
.grid-valor:not(:last-child) {
    border-right: 0px;
}

.row:first-child .grid-item,
.row:first-child .grid-valor {
    border-top: 1px solid #3e3e3e;
}

.needs-validation-costo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.working-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1051; /* Más alto que el contenido del modal */
}

.spinner-container {
    color: rgb(43, 32, 32);
    font-size: 2rem;
}

.info-bar{
    background:  #6aadff;
    background-color: #6aadff;
    color: #3d3939;
}

/* === MODO OSCURO === */
body.dark-mode {
    background-color: #1a1d2e !important;
    color: #d0d4e8;
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5 {
    color: rgba(208, 212, 232, 0.85) !important;
}

body.dark-mode .table-hover > tbody > tr:hover > * {
    color: rgba(110, 255, 255, 0.85) !important;
    --ct-table-color-state: rgba(110, 255, 255, 0.85) !important;
    --ct-table-bg-state: #3547A2 !important
}

body.dark-mode .header,
body.dark-mode nav.navbar {
    background: #252840 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .barra-menu,
body.dark-mode .barra-opciones,
body.dark-mode .main-panel-menu {
    background: #252840 !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 2px 0px 2px 1px rgba(0,0,0,0.4) !important;
}
body.dark-mode .footer-bym {
    background: #252840 !important;
    color: rgba(208, 212, 232, 0.85);
    border-color: rgba(255,255,255,0.08);
}
body.dark-mode .titulo-sistema,
body.dark-mode .titulo-seccion,
body.dark-mode .home-titulo-seccion,
body.dark-mode .titulo-subseccion,
body.dark-mode .page-title {
    color: rgba(208, 212, 232, 0.85) !important;
}
body.dark-mode .icono-menu,
body.dark-mode .toggler-menu,
body.dark-mode .icono-opcion-movil,
body.dark-mode .icono-menu-home {
    color: #7b92e8;
}
body.dark-mode .texto-menu,
body.dark-mode .texto-opcion-movil,
body.dark-mode .home-texto-opcion,
body.dark-mode .home-texto-notificacion {
    color: rgba(208, 212, 232, 0.85);
}
body.dark-mode .nombre-usuario {
    color: #8fa0e8;
}
body.dark-mode .dropdown-menu {
    background-color: #2e3254;
    color: rgba(208, 212, 232, 0.85);
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .dropdown-item {
    color: rgba(208, 212, 232, 0.85);
}
body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background-color: #3a3f6e;
    color: #fff;
}
body.dark-mode .dropdown-divider {
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .seccion,
body.dark-mode .home {
    background-color: #1a1d2e;
}
body.dark-mode .home-notificacion {
    background: #252840;
    border-color: rgba(255,255,255,0.1);
    color: #d0d4e8;
}
body.dark-mode .home-opcion-menu {
    background-color: #252840;
}
body.dark-mode .alert-secondary-select {
    background-color: #2e3254 !important;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .subtitulo-editor {
    background-color: #2e3254;
    color: #d0d4e8;
}
body.dark-mode .card {
    background-color: #252840;
    border-color: rgba(255,255,255,0.1);
    color: #d0d4e8;
}
body.dark-mode .card-header {
    background-color: #2e3254;
    border-color: rgba(255,255,255,0.1);
    color: #d0d4e8;
}
body.dark-mode .card-body {
    background-color: #252840;
}
body.dark-mode .modal-content {
    background-color: #252840;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: rgba(255,255,255,0.1);
    background-color: #2e3254 !important;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1a1d2e !important;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.2);
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background-color: #1a1d2e !important;
    color: #d0d4e8;
    border-color: #7b92e8;
    box-shadow: 0 0 0 0.2rem rgba(123, 146, 232, 0.25);
}
body.dark-mode .form-control::placeholder {
    color: rgba(208, 212, 232, 0.4);
}
body.dark-mode .input-group-text {
    background-color: #2e3254;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.2);
}
body.dark-mode label,
body.dark-mode .form-label {
    color: #d0d4e8;
}
body.dark-mode input[type="radio"] {
    background-color: #252840;
    border-color: rgba(255,255,255,0.3);
    accent-color: #67c8e8;
}
body.dark-mode input[type="radio"]:checked {
    background-color: #67c8e8;
    border-color: #67c8e8;
    accent-color: #67c8e8;
}
body.dark-mode input[type="radio"]:focus {
    border-color: #67c8e8;
    box-shadow: 0 0 0 0.2rem rgba(103, 200, 232, 0.25);
    outline: none;
}
body.dark-mode input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
body.dark-mode input[type="radio"]:disabled:checked {
    background-color: #4a7a8a;
    border-color: #4a7a8a;
    accent-color: #4a7a8a;
    opacity: 0.6;
}
body.dark-mode .form-check-label {
    color: #d0d4e8;
}
body.dark-mode .table {
    color: #d0d4e8;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(255,255,255,0.06);
    --bs-table-border-color: rgba(255,255,255,0.1);
}
body.dark-mode .table > :not(:first-child) {
    border-top-color: #5a6bc8;
}
body.dark-mode .table th,
body.dark-mode .table thead th {
    background-color: #2e3357 !important;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.12);
}
body.dark-mode .table-primary,
body.dark-mode .table-primary > th,
body.dark-mode .table-primary > td {
    --bs-table-bg: #2e3a6e;
    --bs-table-striped-bg: #2a3566;
    --bs-table-hover-bg: #354280;
    background-color: #2e3a6e !important;
    color: #a8c8f0;
    border-color: rgba(100,130,220,0.3);
}
body.dark-mode .table-head-custom,
body.dark-mode .table-head-custom-edit {
    background: #3a3f6e;
    border-color: #5a6bc8;
}
body.dark-mode .table-header-custom {
    background: #2e3254;
    border-color: #4a5090;
}
body.dark-mode .table-body-custom {
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .table-body-custom-cell .form-control,
body.dark-mode .table-body-custom-cell .form-select {
    background-color: #1a1d2e;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.2);
}
body.dark-mode .nav-liquidacion {
    border-color: #5a6bc8;
}
body.dark-mode .nav-liquidacion .nav-link {
    color: #8fa0e8;
}
body.dark-mode .nav-liquidacion .nav-link.active {
    background-color: #5a6bc8 !important;
    color: #fff;
}
body.dark-mode .nav-item .nav-link {
    color: #8fa0e8;
}
body.dark-mode .nav-item .nav-link:hover {
    color: #ffffff;
    background-color: #3547a2d9;
}
body.dark-mode .nav-item .nav-link.active {
    background-color: #3a3f6e;
    color: #fff;
}
body.dark-mode .nav-item .nav-link.disabled {
    color: #555a80;
}
body.dark-mode .nav-tabs {
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .nav-tabs .nav-link {
    color: #8fa0e8;
}
body.dark-mode .nav-tabs .nav-link.active {
    background-color: #252840;
    border-color: rgba(255,255,255,0.1);
    color: #d0d4e8;
}
body.dark-mode .nav-pills .nav-link {
    color: #d0d4e8;
    background-color: #3547A2;
}
body.dark-mode .nav-pills .nav-link.active {
    background-color: #3a3f6e;
    color: #fff;
}
body.dark-mode .list-group-item {
    background-color: #252840;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode hr {
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode #filePreview {
    background-color: #1a1d2e;
}
body.dark-mode .div-recalada-selected {
    background-color: #2e3254;
    color: #e87a7f;
}
body.dark-mode .bg-light,
body.dark-mode .bg-white {
    background-color: #252840 !important;
}
body.dark-mode .text-muted {
    color: rgba(208, 212, 232, 0.5) !important;
}
body.dark-mode .border {
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .border-bottom {
    border-bottom-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .grid-item,
body.dark-mode .grid-valor {
    border-color: rgba(255,255,255,0.15);
    color: #d0d4e8;
}
body.dark-mode .row:first-child .grid-item,
body.dark-mode .row:first-child .grid-valor {
    border-top-color: rgba(255,255,255,0.15);
}
body.dark-mode .badge-info {
    background-color: #1a7a8a;
}
body.dark-mode .card-header-timelog {
    background-color: #2a5a8a;
    border-color: #2a5a8a;
}
body.dark-mode .btn-outline-secondary {
    color: #8fa0e8;
    border-color: #8fa0e8;
}
body.dark-mode .btn-outline-secondary:hover {
    background-color: #3a3f6e;
    color: #fff;
}

body.dark-mode .btn-close {
    filter: invert();
}

body.dark-mode .home-image {
    filter: opacity(0.4);
}

body.dark-mode .info-bar {
    background-color: #3a3f6e;
    color: #fff;
}

body.dark-mode .pagination .page-link {
    background-color: #252840;
    border-color: rgba(255,255,255,0.12);
    color: #d0d4e8;
}
body.dark-mode .pagination .page-link:hover {
    background-color: #3a3f6e;
    border-color: rgba(255,255,255,0.2);
    color: #a0dff0;
}
body.dark-mode .pagination .page-item.active .page-link {
    background-color: #3a3f6e;
    border-color: #d0d4e8;
    color: #fff;
}
body.dark-mode .pagination .page-item.disabled .page-link {
    background-color: #1e2136;
    border-color: rgba(255,255,255,0.08);
    color: #555a80;
}

/* Accordion */
body.dark-mode .accordion-item {
    background-color: #252840;
    border-color: rgba(255,255,255,0.08);
    color: #d0d4e8;
}
body.dark-mode .accordion-button {
    background-color: #2e3357;
    color: #d0d4e8 !important;
    border-color: rgba(255,255,255,0.08);
}
body.dark-mode .accordion-button:not(.collapsed) {
    background-color: #3a3f6e;
    color: #d0d4e8;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
body.dark-mode .accordion-button::after {
    filter: invert(1) brightness(1.5);
}
body.dark-mode .accordion-body {
    background-color: #252840;
    color: #d0d4e8;
}

/* Offcanvas / panel editor */
body.dark-mode .offcanvas {
    background-color: #1e2136 !important;
    color: #d0d4e8;
    border-color: rgba(255,255,255,0.08);
}
body.dark-mode .offcanvas .bg-white,
body.dark-mode .offcanvas .bg-light {
    background-color: #252840 !important;
}
body.dark-mode .offcanvas .card {
    background-color: #252840 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d0d4e8;
}
body.dark-mode .offcanvas .card .border-top {
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .offcanvas .input-group-text {
    background-color: #2e3357;
    border-color: rgba(255,255,255,0.15);
    color: #d0d4e8;
}

/* Loader */
body.dark-mode .loader:before {
    animation-name: ball1-dark;
    background-color: #67c8e8a1;
    box-shadow: 30px 0 0 #67c8e8a1;
}
body.dark-mode .loader:after {
    animation-name: ball2-dark;
    background-color: #67c8e8a1;
    box-shadow: 30px 0 0 #67c8e8a1;
}
@keyframes ball1-dark {
    0%   { box-shadow: 30px 0 0 #67c8e8a1; }
    50%  { box-shadow: 0 0 0 #67c8e8a1; margin-bottom: 0; -webkit-transform: translate(15px,15px); transform: translate(15px,15px); }
    100% { box-shadow: 30px 0 0 #67c8e8a1; margin-bottom: 10px; }
}
@keyframes ball2-dark {
    0%   { box-shadow: 30px 0 0 #67c8e8a1; }
    50%  { box-shadow: 0 0 0 #67c8e8a1; margin-top: -20px; -webkit-transform: translate(15px,15px); transform: translate(15px,15px); }
    100% { box-shadow: 30px 0 0 #67c8e8a1; margin-top: 0; }
}

/* Choices.js */
body.dark-mode .choices__inner {
    background-color: #252840;
    border-color: rgba(255,255,255,0.15);
    color: #d0d4e8;
}
body.dark-mode .is-focused .choices__inner,
body.dark-mode .is-open .choices__inner {
    border-color: #67c8e8;
}
body.dark-mode .choices__input {
    background-color: #252840;
    color: #d0d4e8;
}
body.dark-mode .choices[data-type*=select-one] .choices__input {
    background-color: #1e2136;
    border-bottom-color: rgba(255,255,255,0.12);
    color: #d0d4e8;
}
body.dark-mode .choices__list--dropdown,
body.dark-mode .choices__list[aria-expanded] {
    background-color: #252840;
    border-color: rgba(255,255,255,0.15);
    color: #d0d4e8;
}
body.dark-mode .choices__list--dropdown .choices__item--selectable.is-highlighted,
body.dark-mode .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: #3a3f6e;
    color: #fff;
}
body.dark-mode .choices[data-type*=select-one]::after {
    border-color: #d0d4e8 transparent transparent;
}
body.dark-mode .choices[data-type*=select-one].is-open::after {
    border-color: transparent transparent #d0d4e8;
}
body.dark-mode .choices__heading {
    border-bottom-color: rgba(255,255,255,0.08);
    color: #8fa0e8;
}
body.dark-mode .choices.is-disabled .choices__inner,
body.dark-mode .choices.is-disabled .choices__input {
    background-color: rgba(255,255,255,0.04);
}

/* === SCROLLBAR MINIMALISTA === */
* {
    scrollbar-width: thin;
    scrollbar-color: #c1c7d0 transparent;
}
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background-color: #c1c7d0;
    border-radius: 999px;
    transition: background-color 0.2s;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: #9aa0ae;
}
*::-webkit-scrollbar-corner {
    background: transparent;
}

/* Scrollbar modo oscuro */
body.dark-mode * {
    scrollbar-color: #3a3f6e transparent;
}
body.dark-mode *::-webkit-scrollbar-thumb {
    background-color: #3a3f6e;
}
body.dark-mode *::-webkit-scrollbar-thumb:hover {
    background-color: #5a6bc8;
}


/* === MODO OSCURO — TabCaratula === */
body.dark-mode .doc-wrapper {
    --brand-dark: #8fa0e8;
    --text-main:  #d0d4e8;
    --border:     rgba(255, 255, 255, 0.12);
    --bg-alt:     #2e3254;

    background:  #252840;
    box-shadow:  0 4px 18px rgba(0, 0, 0, 0.4);
}

/* === MODO OSCURO — TabCaratulaGenerada === */
body.dark-mode #subtitulo {
   
    background-color: #5f7dc4 !important;  /* más oscuro que #83a1dd, mejor contraste sobre dark */
}
/* Burbuja "Tiene notificaciones pendientes" en la campana */
#cmdNotificaciones {
    position: relative;
    overflow: visible;
}
#bubbleNotificaciones {
    display: none;
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    z-index: 1080;
    pointer-events: none;
    animation: bubbleNotifPop 0.25s ease-out;
}
#bubbleNotificaciones::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #dc3545;
}
@keyframes bubbleNotifPop {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
body.dark-mode #bubbleNotificaciones { background-color: #e05260; }
body.dark-mode #bubbleNotificaciones::after { border-bottom-color: #e05260; }