
#contenedor_carga{
    /*background-color:gray;/*rgb(250,240,245,0.9);*/
    height: 100%;
    width: 100%;
    position:fixed;
    -webkit-transition: all 1s ease;
    -o-transition:  all 1s ease;
    transition: all 1s ease;
    z-index: 10000;
    display:none;
}

#carga{
    border:15px solid #ccc;
    border-top-color: #F4266A;
    border-top-style:groove;
    height: 100px;
    width: 100px;
    border-radius: 100%;

    position : absolute;
    top: 0;
    left:0;
    right: 0;
    bottom:0;
    margin:auto;
    -webkit-animation: girar 1.5s linear infinite;
    -o-animation: girar 1.5s linear infinite;
    animation: girar 1.5s linea infinite;
}
@keyframes girar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    position : absolute;
    top: 0;
    left:0;
    right: 0;
    bottom:0;
    margin:auto;
    animation: spin 2s linear infinite;
    /*display:none;*/
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.circulo-verde{
   height:10px;
   width:10px;
   background:green;
   -moz-border-radius:50px;
   -webkit-border-radius:50px;
   border-radius:50px;
}

.circulo-rojo{
   height:10px;
   width:10px;
   background:red;
   -moz-border-radius:50px;
   -webkit-border-radius:50px;
   border-radius:50px;
}


.ocultar{
    display:none;
  
  }
  .modal { 
    overflow: auto !important; 
}

select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: #eee;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow, select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}

.select2-container .select2-selection--single {
    height: 38px; /* igual que input Bootstrap */
    padding: 6px 12px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px;
}


.error-show{
    display: inline-block;
    color: red;
}

.not-error{
    display: none
}

.dataTables_wrapper .dt-buttons {
    float:left;
    text-align:center;
}

.dataTables_filter {
    float:right;
}
/* El contenedor padre debe ser relativo */
.position-relative {
    position: relative;
}

/* El contador se posiciona de forma absoluta */
.contador-flotante {
    position: absolute;
    top: 5px;       /* Distancia desde arriba */
    right: 25px;    /* Distancia desde la derecha (ajustado por el scrollbar) */
    background-color: rgba(255, 255, 255, 0.8); /* Fondo semi-transparente */
    padding: 0 5px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #6c757d;
    z-index: 10;    /* Para que siempre esté por encima del texto */
    pointer-events: none; /* Permite hacer clic a través del contador */
}

/* Opcional: Para que el texto no se escriba "debajo" del contador */
.contador-dinamico {
    padding-top: 20px !important; 
}

/* Estilos para el visor de imágenes */
.image-container_view {
    height: 120px; /* Altura fija para el contenedor */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin-bottom: 15px;
    padding: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.image-container_view:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.image-container_view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Estilo para archivo no encontrado */
.file-missing-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ced4da;
    text-align: center;
}

.file-missing-placeholder span {
    font-size: 10px;
    font-weight: 600;
    color: #adb5bd;
    margin-top: 5px;
}

/* Personalización global de SweetAlert2 Azul Logimar */
.swal2-styled.swal2-confirm {
    background-color: #1371E9 !important;
    box-shadow: 0 0 0 3px rgba(19, 113, 233, 0.5) !important;
}
.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(19, 113, 233, 0.5) !important;
}
