﻿#overlay {
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1090;
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
}

#overlay-Loading {
    display: none;
    position: fixed;
    top: -200px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
}

#contenedor-loader {
    width: 20%;
    margin-left: 40%;
    height: 150px;
}

.loader-animated {
    margin-left: 50%;
}

    .loader-animated,
    .loader-animated:before,
    .loader-animated:after {
        background: #000;
        -webkit-animation: load1 1s infinite ease-in-out;
        animation: load1 1s infinite ease-in-out;
        width: 1em;
        height: 4em;
    }

        .loader-animated:before,
        .loader-animated:after {
            position: absolute;
            top: 0;
            content: '';
        }

        .loader-animated:before {
            left: -1.5em;
        }

.loader-animated {
    text-indent: -9999em;
    margin: 40% auto;
    position: relative;
    font-size: 11px;
    -webkit-animation-delay: 0.16s;
    animation-delay: 0.16s;
}

    .loader-animated:after {
        left: 1.5em;
        -webkit-animation-delay: 0.32s;
        animation-delay: 0.32s;
    }

@-webkit-keyframes load1 {
    0%, 80%, 100% {
        box-shadow: 0 0 #000;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em #000;
        height: 5em;
    }
}

@keyframes load1 {
    0%, 80%, 100% {
        box-shadow: 0 0 #000;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em #000;
        height: 5em;
    }
}

.loading-points {
    font-size: 30px;
}

    .loading-points:after {
        overflow: hidden;
        display: inline-block;
        vertical-align: bottom;
        -webkit-animation: ellipsis steps(4,end) 900ms infinite;
        animation: ellipsis steps(4,end) 900ms infinite;
        content: "\2026"; /* ascii code for the ellipsis character */
        width: 0px;
    }

@keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

@-webkit-keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

.cell-grid {
    width: 100%;
    position: relative;
}

.cell-stick-animated {
    transform: translateX(0);
    position: relative;
    font-family: sans-serif;
    color: #FFF;
    text-align: center;
    padding: 10px 5px;
    width: 100%;
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    cursor: pointer;
}

    .cell-stick-animated:before {
        content: '';
        position: absolute;
        top: 0px;
        right: 0px;
        width: 0px;
        height: 0px;
        background: linear-gradient(45deg, rgba(0,0,0,0.3) 50%, white 45%);
        transition-duration: 0.3s;
    }

    .cell-stick-animated:hover::before {
        width: 15px;
        height: 15px;
    }

.estados {
    left: 0px;
    right: 0px;
    background-color: rgba(255, 255, 255, 1);
    position: absolute;
    border-radius: 5px;
    -o-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.25);
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.25);
}

    .estados::before {
        content: '';
        position: absolute;
        background: white;
        top: -5px;
        right: 50%;
        width: 16px;
        height: 16px;
        transform: rotate(0.13turn);
    }

.sub-cell-stick {
    transform: translateX(0);
    color: white;
    position: relative;
    font-family: sans-serif;
    text-align: center;
    padding: 7px 5px;
    width: 80%;
    left: 10%;
    vertical-align: middle;
    font-size: 12px;
    margin: 7px 0px;
    cursor: pointer;
}

.close:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.modal-body > .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    z-index: 1;
}

.modal .close {
    font-weight: 100;
}

button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

button, html [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
}

.close {
    float: right;
    font-size: 1.40625rem;
    font-weight: 600;
    line-height: 1;
    color: #000;
    text-shadow: none;
    opacity: .5;
}

.stick-tooltip {
    position: absolute;
    background-color: rgba(0,0,0,0.7);
    left: 102%;
    top: -50%;
    width: 50%;
    padding: 5px 3px;
    display: none;
}

    .stick-tooltip::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -5px;
        width: 10px;
        height: 10px;
        background: linear-gradient(45deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 50%);
        transform: rotate(-135deg);
    }

fieldset {
    position: relative;
    background-color: rgba(0, 193, 200, 0.06);
    padding: 20px 0px;
    border-left: 5px solid;
}

.field-content.expanded {
    height: auto;
}

.field-content.unexpanded {
    height: 0px;
}

.cursor-pointer {
    cursor: pointer;
}

.btn-unexpanded::before {
    content: '-';
}

.btn-expanded::before {
    content: '+';
}

.text-orange {
    color: #E34F00 !important;
}

.bg-orange {
    color: #FFF !important;
    background-color: #E34F00 !important;
}

.fa-lg {
    font-size: 1.1em !important;
    line-height: .75em;
    vertical-align: -15%;
}

.select-optgroup {
    font-weight: bold;
    background-color: #f2f3f2;
}

.bloqueaClass {
    opacity: .95;
    display: flex;
    text-align: center;
    align-content: center;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    overflow-x: hidden;
    vertical-align: middle;
}

.nombres {
    text-transform: uppercase;
}

.no-hover {
    position: relative;
    display: inline-block;
}

    .no-hover::before {
        content: '';
        background-color: transparent;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 60;
    }

.btn-100-px {
    width: 100px;
}

.btn-pequeno {
    width: 10px !important;
}

.download-pdf:hover {
    color: #C90101;
}

.download-csv:hover {
    color: #027A1B;
}

/* ==================================================================
   Agregado por Breco Sistemas para integración con LoadingHelper.js
    de Modulo de Reportes BI

   LOADING HELPER - CSS ADICIONAL
   
   IMPORTANTE: Este CSS se agrega al final del archivo loading.css
   NO modifica las clases existentes, solo agrega nuevas.
   ================================================================== */

/* Override de posición para centrado perfecto */
#overlay-Loading {
    top: 0 !important; /* Sobrescribe el top: -200px existente */
    background-color: rgba(0, 0, 0, 0.7) !important; /* Fondo oscuro en lugar de blanco */
}

    /* Cuando está visible, usa flex para centrar */
    #overlay-Loading[style*="display: flex"],
    #overlay-Loading[style*="display:flex"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Cuando está oculto, fuerza display none */
    #overlay-Loading[style*="display: none"],
    #overlay-Loading[style*="display:none"] {
        display: none !important;
    }

/* ==================================================================
   CONTENEDOR DE CARGANDO (usado por LoadingHelper)
   ================================================================== */

#contenedor-cargando {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 0.3s ease-out;
}

    /* Override del contenedor-loader existente para LoadingHelper */
    #contenedor-cargando #contenedor-loader {
        width: 200px !important;
        height: auto !important;
        margin: 0 !important; /* Sobrescribe margin-left: 40% */
    }

        #contenedor-cargando #contenedor-loader img {
            width: 100%;
            height: auto;
            display: block;
        }

/* ==================================================================
   MENSAJE DE LOADING (nuevo elemento)
   ================================================================== */

#loading-message {
    color: white;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==================================================================
   ANIMACIONES
   ================================================================== */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ==================================================================
   CONTENEDOR CON ICONO DE CARGANDO (usado en Layout)
   ================================================================== */

.icono-cargando {
    text-align: center;
}