body {
    /* font-size: 0.77rem !important; */
}

hr {
    color: rgb(0 0 0 / 51%);
}
/*************************************************************************************************/



/*******************************************/
/* Estilos loader
/*******************************************/

.loader-container {
    position: fixed;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 9999;
    background-color: #c2c0c077;
}

.loader-container-hidden {
    display: none;
}

.spinner{
  border: 16px solid #d4d4d4;
  border-top: 16px solid #3498db;
  border-bottom: 16px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
  position: absolute; /* cambiamos de fixed a absolute */
  /* Ponemos el valor de left, bottom, right y top en 0 */
  left: 0;
  bottom: 0; 
  right: 0; 
  top: 0; 
  margin: auto; /* Centramos vertical y horizontalmente */

  background-color: #ffffff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/*************************************************************************************************/





/*******************************************/
/* Formularios
/*******************************************/
/** Esta aplica a todos los controles  dentro de un formulario menos botones **/
.form-person {
    padding: .20rem .20rem;
}

.form-person-text {

}

.form-person-label {
    margin-bottom: 0px;
}

.form-person-checkbox {

}

.form-person-select {
    margin-bottom: 0px;
}

.btn-person {
    height: 2rem;
}

.nota {
    color: #db3434;
}

/** ESTOS SON DE BOOTSTRASP QUE SOBREESCRIBO **/
.form-control {
    border-color: #00000033;
    height: 1.6rem;
    font-size: 0.80rem;
}

.form-select {
    border-color: #00000033;
    height: 1.6rem;
    font-size: 0.80rem;    
}

.form-check-input {
    border-color: #00000033;
}

.form-control:disabled {
    background-color: #e0e0e0;
    opacity: 1;
}

.input-group-text {
    background-color: #ebebeb;
    color: #0f9cf3;
}

.accordion-button {
    background-color: #c0c0c03f !important;
}

.accordion-button.collapsed {
    background-color: #c0c0c03f  !important;
}

.boton-desactivado {
    opacity: 0.5;
    pointer-events: none; /* Bloquea el clic */
    cursor: not-allowed;  /* Muestra el símbolo de prohibido */
    filter: grayscale(1);
}

/* input:disabled {
    background: #ccc;
} */
/*************************************************************************************************/




/*******************************************/
/* Tablas
/*******************************************/
/** Border de los filas de los filtros y títulos **/
thead>tr {
    border-style: hidden;
}

/** Titulos tablas **/
thead>tr>th {
    /* padding: .25rem .2rem !important; */
    /* padding: .0rem .2rem !important; */
    padding: .7rem 1rem !important;
    vertical-align: middle;
    font-size: 0.80rem;
}

/** filas de datos (tbody tr td) **/
/** incluye text y selc    **/
tbody>tr>td {
    font-size: 0.80rem;
}
tbody > tr > td input[type="text"],
tbody > tr > td select {
    font-size: 0.80rem !important;
}
/*****************************/

.filtros_tabla>th {
    padding: 2px !important;
    width: 100px;
}

/** Campos filtros **/
.filtros_tabla>th>input[type='text'] {
    height: 1.5rem;
    font-size: 0.75rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.filtros_tabla>th>input[type='date'] {
    height: 1.5rem;
    font-size: 0.75rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.filtros_tabla select {
    height: 1.5rem;
    font-size: 0.75rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* *Thead fijo **/
thead {
    /* position: sticky; */
    top: 0;
}

/** Padding de los td (estaban muy anchos) **/
td {
    padding: .3rem .2rem !important;
}

.fila-opciones {
    display: inline;
    padding: 0px 5px;
}



/** Color de la fila seleccionada, funciona de la manos con la fución seleccionarFila() **/
.selected_fila>td {
    /* background-color: #0099ff2f !important; */
    background-color: #0099f752 !important;
}
/*****************************************************************************/
/** ESTAS CLASES REEMPLAZAN LAS DE BOOTSTRAP PARA EL MANEJO DE ESTILO CEBRA
/*****************************************************************************/
/** Esta clase reemplaza la clase table **/
.tables {
    --bs-table-color-type: initial;
    --bs-table-bg-type: initial;
    --bs-table-color-state: initial;
    --bs-table-bg-state: initial;
    --bs-table-color: var(--bs-emphasis-color);
    --bs-table-bg: var(--bs-secondary-bg);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-emphasis-color);
    --bs-table-striped-bg: var(--bs-tertiary-bg);
    --bs-table-active-color: var(--bs-emphasis-color);
    --bs-table-active-bg: var(--bs-tertiary-bg);
    --bs-table-hover-color: var(--bs-emphasis-color);
    --bs-table-hover-bg: var(--bs-tertiary-bg);
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: var(--bs-table-border-color)
}
/** Estas dos clases reemplazan la clase table-striped que da estilo cebra  a las tablas **/
.tables tr:nth-child(even) {
    /* background-color: #eee; */
    background-color: #cecece3d;
    /* border-style: solid; */  /* La dejo comentada por ahora porque me sale una rayita en la parte izquierda de los títulos de la tabla y se ve feo */
    border-bottom-width: 1px;
    border-top-width: 1px;
    border-color: #00000017;
}
.tables tr:nth-child(odd) {
    background-color: #fff;
}
/** Esta es para el título de la tabla**/
.tables>thead>tr>th {
    background-color: #435d7d;
    color: #ffffff;
}
/** Esta clase es para el hover de las filas **/
.tables-hover tbody tr:hover td, .table-hover tbody tr:hover th {
    /* background-color: #0099ff13; */
    background-color: #0099ff33;
}
/*******************************************************************************/

/** Esta es solo para mostrar el scroll horizontal normal y no delgado **/
table {
}

/* Alto de la tabla */
.table-responsive {
    /* height: 15rem; */
}

/* Resaltado tabla - Cebra clase .table-striped*/
/* .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-color-type: var(--bs-table-striped-color);
    --bs-table-bg-type: #f3f3f3;
} */


/* Que no se deborde y muestre (...) si el texto es muy largo */
td {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-content: center;
}


table.totales td {
    padding: 1px !important;
}
/** Color titulos tablas con clase .table-striped      **/
/** dejar en comentario cuando cambie todas las tablas **/
/* .table-striped>thead>tr>th {
    background-color: #435d7d;
    color: #ffffff;
} */
/*************************************************************************************************/


.tabla-cuadricula th,
.tabla-cuadricula td {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px;
  border: 1px solid #ddd;
}



/**********************************************************************/
/* Tablas resizables
/**********************************************************************/
/* .tabla-redimensionable th,
.tabla-redimensionable td {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px;
  border: 1px solid #ddd;
} */

.tabla-cuadricula th,
.tabla-cuadricula td {
    /** Para redimensionar, si lo quito se daña pues reemplaza los style:width que vienen el el html de los <th> **/
    /* width: 100px; */     
}

.tabla-cuadricula {
  table-layout: fixed; /* MUY IMPORTANTE */  /* Para redimensionar, si lo quito se daña ni idea porqué */
}

/* Resizer */
.resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  cursor: col-resize;
  height: 100%;
  background-color: #ccc;
}

.resizer:hover {
  background-color: #aaa;
}



/**********************************************************************/
/* Esto es para fijar la columna(1). estamos en pruebas
/**********************************************************************/
/* .tabla-cuadricula th,
.tabla-cuadricula td {
  border: 1px solid #ccc;
  padding: 8px;
  min-width: 120px;
  background: white;
}

.tabla-cuadricula th:first-child,
.tabla-cuadricula td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}

.tabla-cuadricula thead th:first-child {
  z-index: 3;
} */
/**********************************************************************/




/**********************************************************************/
/* Esto es para mejorar un poco el scroll
/**********************************************************************/
.scroll-facil {
  overflow: auto;
  scrollbar-width: auto;              /* Para Firefox */
  scrollbar-color: #888 #f0f0f0;      /* Para Firefox */
}

/* Para Chrome, Edge, Safari */
.scroll-facil::-webkit-scrollbar {
  width: 16px;   /* Grosor del scroll vertical */
  height: 16px;  /* Grosor del scroll horizontal */
}

.scroll-facil::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.scroll-facil::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 8px;
  border: 3px solid #f0f0f0; /* espacio interno para que no esté tan pegado */
}

.scroll-facil::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}






/* Animacion filtros búsqueda */
.modes_menu_ocultar {
    display: none;
}
.modes_menu_mostrar {
    animation: 300ms ease desplegar 1;
}
@keyframes desplegar {
    from {
      transform: scaleY(0);
    }
}
/*************************************************************************************************/






/*******************************************/
/* Paginador
/*******************************************/

.page-link:focus {
    box-shadow: inset 0 0 0 1px rgba(0, 183, 255, 0.397);
    /* "border" created with a drop shadow plus the focus ring */
    outline: none;
}

.page-link {
    padding: .25rem .75rem;
    font-size: .90rem;
}
/*************************************************************************************************/





/*******************************************/
/* Menú
/*******************************************/
#sidebar-menu ul li a span{
    font-size: 0.72rem;
}

.vertical-menu {
    /* width: 235px; */
}
/*************************************************************************************************/



.card {
    /* min-height: 75vh; */
}



.pagination {
    margin-top: 1px;
    padding-left: 6px;
}




/*******************************************/
/* Varios
/*******************************************/
.not-visible {
    display: none;
}

.opacity {
    opacity: .9;
}

.my {
    text-transform: uppercase;
}



/*******************************************/
/* App
/*******************************************/
.separado {
    background-color: #00000063 !important;
}

.boletin {
    background-color: #ff000045 !important;
}

.promesa {
    background-color: #fbff0052 !important;
}

.escritura {
    background-color: #83ff0066 !important;
}





/*******************************************/
/* Zona carga archivos
/*******************************************/
/* #id_dropzone {
    padding: 5px 40px;
    background: #ccc;
} */

/* #id_dropzone p {
    padding: 20px 10px;
    background: white;
    text-align: center;
    border: 2px dashed #333;
} */

#id_dropzone label {
    border-bottom: 1px solid blue;
    color: blue;
    cursor: pointer;
}

#id_dropzone input {
    display: none;
}
/*************************************************************************************************/




/******************************************************/
/* para manejo de archivos que suben por dropzone
/******************************************************/
/* Contenedor principal */
#fill {
    display: flex; /* Para mostrar los elementos en una fila */
    flex-wrap: wrap; /* Para que se ajusten cuando no haya espacio */
    justify-content: flex-start; /* Alinea los elementos al principio */
    gap: 10px; /* Espaciado entre los elementos */
}

/* Contenedor de la imagen o archivo */
.imagen-container, .archivo-icono {
    position: relative;
    display: flex;
    flex-direction: column; /* Esto pone el contenido en columna (imagen/ícono + nombre) */
    align-items: center;
    justify-content: space-between;
    width: 150px;
    height: 160px; /* Ajustar según sea necesario para dar espacio al nombre */
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    padding: 5px;
}

/* Contenedor de la imagen o archivo */
/* .imagen-container, .archivo-icono { */
    /* position: relative; */
    /* display: inline-block; */
    /* width: 150px; */ /* Asegura que todos los contenedores tengan el mismo tamaño */
    /* height: 150px; */ /* Tamaño consistente para imagen y archivo */
    /* background-color: #f0f0f0; */ /* Fondo gris claro */
    /* border-radius: 8px; */ /* Bordes redondeados */
    /* text-align: center; */ /* Alineación del contenido */
    /* overflow: hidden; */ /* Evita que el contenido se desborde */
/* } */

/* Para las imágenes */
.imagen-container img {
    width: 100%; /* Ocupa todo el contenedor */
    height: 100%; /* Ocupa todo el contenedor */
    /* object-fit: contain; */ /* Mantiene la proporción de la imagen */
}

/* Para los archivos, centramos el ícono */
.archivo-icono {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Asegura que el ícono ocupe toda la altura */
    font-size: 40px; /* Tamaño moderado para los íconos de archivo */
    color: #555; /* Color de los íconos */
}

/* Estilo para el ícono de eliminación */
.eliminar-icono {
    position: absolute;
    top: 2px;
    right: 5px;
    background-color: rgb(81 4 255 / 50%); /* Fondo morado */
    color: white;
    padding: 5px; /* Reducimos el padding para que no se desborde */
    border-radius: 50%; /* Asegura que el ícono esté dentro de un círculo */
    cursor: pointer;
    display: none; /* Inicialmente oculto */
    font-size: 16px; /* Tamaño moderado para el ícono de eliminar */
    width: 34px; /* Asegura que el ícono tenga un tamaño fijo */
    height: 34px; /* Asegura que el ícono tenga un tamaño fijo */
    line-height: 24px; /* Centra el ícono dentro del círculo */
    z-index: 1; /* Asegura que el ícono esté encima del contenido */
}

/* Mostrar el ícono de eliminación cuando se pasa el mouse */
.imagen-container:hover .eliminar-icono,
.archivo-icono:hover .eliminar-icono {
    display: block; /* Muestra el ícono cuando el mouse pasa por encima */
}

/* Estilo para los enlaces de descarga (si decides agregar uno) */
.archivo-icono a {
    margin-top: 10px;
    text-decoration: none;
    color: #007bff; /* Color de texto azul */
    font-size: 14px;
}

.nombre-archivo {
    text-align: center;
    margin-top: 10px; /* Espaciado entre el contenido y el nombre del archivo */
    font-size: 12px;
    color: #333;
    white-space: nowrap; /* Evita que el texto se rompa */
    overflow: hidden; /* Evita que el texto se desborde */
    text-overflow: ellipsis; /* Agrega "..." si el texto es muy largo */
}

/*************************************************************************************************/







/*******************************************/
/* Modales personalizados - nada de bootstrap
/*******************************************/
.modal-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(-50px);
    max-height: 80vh;
    overflow-y: auto;
    width: 80%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Tamaños base */
/* .modal-small { width: 300px; } */
.modal-small { width: 30%; }

/* .modal-medium { width: 500px; } */
.modal-medium { width: 50%}

/* .modal-large { width: 800px; } */
.modal-large { width: 80%; }

.modal-xlarge { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; }

/* Animaciones */
.modal-overlay.show {
    visibility: visible;
    opacity: 1; /** Este nos da la opacidad para el modal **/
}

.modal-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividad */
@media (max-width: 1400px) {
    .modal-content {
        width: 95%;
    }

    .modal-small,
    .modal-medium,
    .modal-large {
        width: 90%;
    }

    .modal-xlarge {
        width: 100%;
        height: 100%;
    }
}

/* @media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .modal-small,
    .modal-medium,
    .modal-large {
        width: 90%;
    }

    .modal-xlarge {
        width: 100%;
        height: 100%;
    }
} */

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .close-btn {
        font-size: 20px;
    }
}
/*************************************************************************************************/




/*************************************************************************************************/
#editor_quill {
    width: 100%; /* O el valor de ancho que necesites */
    min-height: 100px; /* Establecer una altura mínima si lo deseas */
    height: auto !important; /* Esto permite que el contenedor se adapte al contenido */
    overflow-y: hidden; /* Evita el desbordamiento vertical */

    /* max-height: 300px; */
}
/*************************************************************************************************/





/*******************************************/
/* Estilos para la ventana flotante
/*******************************************/
.saldo_flotante {
    position: fixed;
    top: 150px;
    right: 20px;
    background-color: rgba(76, 175, 80, 0.85); /* Fondo con algo de transparencia */
    /*background-color: rgba(76, 175, 80, 0.6);*/ /* Más transparencia en el fondo */
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); /* Sombra más visible */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px; /* Ajustamos un poco el tamaño */
}

.saldo_flotante p {
    margin: 0;
}

.saldo_flotante .titulo {
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: normal;
}

.cerrar-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 5px;
}
/*************************************************************************************************/






/** Damos formato a los select que tengan el atributo size **/
select[size] {
  height: auto;
  width: auto;
  font-size: 0.9rem;
}




/* Aplica estos estilos solo para móviles */
@media (max-width: 767px) {
  .tu-tabla.clase-para-movil {
    /* ... tus estilos específicos para móviles ... */
  }
}



/**********************************************************************/
/* sobreescribir bootstrap
/**********************************************************************/

/*.btn-primary {
/*    background-color: #69d183 !important; /* verde Bootstrap */
/*    border-color: #28a745 !important;
/*}
/*
/*.btn-primary:hover {
/*    background-color: #38a750 !important; /* verde más oscuro al pasar el mouse */
/*    border-color: #1e7e34 !important;
/*}
/*
/*.btn-outline-primary {
/*    color: #69d183 !important;
/*    border-color: #69d183 !important;
/*}
/*
/*.btn-outline-primary:hover {
/*    background-color: #69d183;
/*    color: #ffffff !important;
/*    border-color: #69d183 !important;
/*}
/*
/*.btn.show {
/*    background-color: #69d183 !important;
/*    color: #ffffff !important;
/*}
/*
/*.btn:first-child:active {
/*    background-color: #69d183 !important;
/*    color: #ffffff !important;
/*}
/*
/*li.mm-active > a {
/*    color: #69d183 !important;
/*}
/*
/*.mm-active>a i {
/*    color: #69d183 !important;
/*}
/*
/*td a {
/*    color: #69d183 !important;
/*}
/*
/*.active>.page-link, .page-link.active {
/*    background-color: #69d183;
/*    border-color: #69d183;
/*}
/*
/*.page-link {
/*    color: #38a750 !important; /* verde más oscuro al pasar el mouse */
/*}
/*
/*.page-link:hover {
/*    background-color: #e2e9e3 !important; 
/*    /* border-color: #1e7e34 !important; */
/*}




/* li.mm-active > a:hover {
    background-color: #218838; 
    color: white;
} */