﻿body {
    background: #ffffff;
}

#loading-overlay {
    display: none; /* Oculto inicialmente */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo semi-transparente */
    z-index: 9999; /* Asegura que esté sobre otros elementos */
    justify-content: center;
    align-items: center;
    opacity: 0; /* Opacidad inicial */
    transition: opacity 0.3s ease; /* Transición de opacidad */
}

    #loading-overlay.active {
        display: flex; /* Mostrar el overlay */
        opacity: 1; /* Cambiar opacidad para que sea visible */
    }

    #loading-overlay .spinner {
        border: 8px solid #f3f3f3; /* Color gris claro */
        border-top: 8px solid #3498db; /* Color azul */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


aside {
    background: #f9f9f9;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

hr {
    margin-top: 0px;
}

.map-bk {
    width: 100%;
    background: #f3f3f3;
}

div#dvFormPyme {
    background: rgb(240,240,240);
    background: linear-gradient(0deg, rgba(240,240,240,1) 0%, rgba(255,255,255,1) 50%);
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-family: 'Roboto Slab', serif;
    line-height: 1.2;
}

    h1.tit {
        font-size: 26px;
        margin-top: 22px;
        margin-bottom: 44px;
    }

        h1.tit::after {
            content: "";
            width: 45px;
            height: 2px;
            background: #E22C2C;
            margin: 10px 0px 22px;
            display: block;
            font-size: 22px;
        }

a {
    color: #000;
}

.instrucciones {
    background: #e3f8ff;
}

.txt-instrucciones {
    font-size: 14px;
    color: #727272;
}

.card {
    padding: 30px 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
}

.headerInterior h1 {
    margin: 34px 0 0 0;
}

.card-body {
    padding: 0px;
}

    .card-body h4 {
        font-size: 1.2rem;
        color: #111;
    }

        .card-body h4::after {
            content: "";
            width: 45px;
            height: 2px;
            background: #E22C2C;
            margin: 10px 0px 22px;
            display: block;
            font-size: 22px;
        }

h5.card-title::after {
    content: "";
    width: 45px;
    height: 2px;
    background: #afafaf;
    margin: 10px 0px 22px;
    display: block;
    font-size: 22px;
}

input::placeholder {
    color: #ccc;
    font-style: italic;
    opacity: 0.5;
}

textarea::placeholder {
    color: #ccc;
    font-style: italic;
    opacity: 0.5;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #6a6a6a;
    margin-bottom: 4px;
}

.scroll-filtro {
    overflow-y: auto;
    height: calc(100vh - 390px);
    transition: height 0.1s linear;
    max-height: fit-content;
}

    .scroll-filtro div.form-check:nth-of-type(1) {
        width: 100%;
    }

.form-check {
    padding-left: 1.8em;
}

.alert {
    margin-bottom: 0 !important;
}

.screen a {
    display: unset;
    text-decoration: unset;
}

.btn-primary {
    background-color: #0f69c4;
    border-color: #0f69c4;
    font-weight: 400;
}

    .btn-primary:focus {
        outline: none;
        color: white;
    }

.disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/*SELECT*/
select {
}

    select option[value="separator"] {
        color: #999 !important; /* Texto gris */
        pointer-events: none !important; /* No seleccionable */
    }

/*MODAL*/
.my-modal {
    border-radius: unset;
    border: none;
}

.modal-body {
    padding-top: 0px;
}

/*Registros*/
.registro_anual_zona {
    width: 100%;
    height: 400px;
    min-width: 1200px;
}

#registro_sociedad_container,
#registro_persona_container {
    position: relative;
    width: 100%;
    height: 350px !important;
}

#registro_sociedad,
#registro_persona {
    width: 100% !important;
    height: 100% !important;
}

.grafico {
    width: 65%;
    margin: auto;
}


#registro_anual {
    width: 100% !important;
    display: block;
}

.reg_anual .total-registros {
    position: absolute;
    top: 60px;
    width: fit-content;
    border: 1px solid #eaeaea;
    color: #4286da;
    text-align: left;
    border-radius: 0px;
    padding: 6px 10px;
    font-size: 14px;
    left: 16px;
    background: #fbfbfb;
}

    .reg_anual .total-registros::before {
        content: "Contituciones totales del año seleccionado: ";
    }

div#registro_anual_mensaje {
    text-align: center;
    color: #de404f;
    font-size: 14px;
    margin: 100px auto;
    background: #fbfbfb;
    border: 1px solid #eaeaea;
    padding: 12px;
    border-radius: 8px;
    max-width: 300px;
}

.reg_person, .reg_empresa {
    min-height: 400px;
}

#total_periodo {
    width: fit-content;
    border: 1px solid #eaeaea;
    color: #4286da;
    text-align: left;
    border-radius: 0px;
    padding: 6px 10px;
    font-size: 14px;
    background: #fbfbfb;
    margin: 30px auto;
}

.total-registros {
    width: fit-content;
    border: 1px solid #eaeaea;
    color: #4286da;
    border-radius: 0px;
    padding: 6px 10px;
    font-size: 14px;
    margin: auto;
    background: #fbfbfb;
}


    .total-registros::before {
        content: "Totales: ";
    }

.reg_empresa .total-registros {
    order: 1;
    width: fit-content;
    border: 1px solid #eaeaea;
    color: #4286da;
    text-align: left;
    border-radius: 0px;
    padding: 6px 10px;
    font-size: 14px;
    background: #fbfbfb;
    margin-top: 20px;
}

    .reg_empresa .total-registros::before {
        content: "Totales: ";
    }

/* Scroll */


.custom-scrollbar {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #95b3df #f1f1f1; /* Firefox */
    padding-right: 20px;
}

    .custom-scrollbar:active {
    }
    /* Para Chrome, Edge y Safari */
    .custom-scrollbar::-webkit-scrollbar {
        width: 12px; /* Ancho del scroll */
    }

    .custom-scrollbar::-webkit-scrollbar-track {
        background: #f1f1f1; /* Color del fondo */
    }

    .custom-scrollbar::-webkit-scrollbar-thumb {
        background-color: #95b3df; /* Color de la barra */
        border-radius: 10px; /* Bordes redondeados */
        border: 3px solid #f1f1f1; /* Espacio alrededor del thumb */
    }

        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background-color: #a0a0a0; /* Color cuando se pasa el mouse por encima */
        }

@media (max-width: 1700px) {
    .grafico {
        width: 70%;
    }

    #registro_sociedad_container,
    #registro_persona_container {
        position: relative;
        width: 100%;
        height: 400px;
    }

    .custom1-padding {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

@media (max-width: 1280px) {

    .registro_anual_zona {
        height: 300px;
    }

    #registro_persona_container {
        height: 300px !important;
    }

    .btn-primary {
        font-size: 12px;
    }

    .scroll_anual {
        overflow: auto;
    }
}

@media (max-width: 768px) {
    /*canvas#registro_regiones, canvas#registro_genero {
        height: 270px !important;
    }*/
    .grafico {
        width: 80%;
    }

    button#btnFiltrar {
        font-size: 14px;
        width: 100%;
    }

    h1.tit {
        margin: 0px;
    }

    aside.col-md-3.col-lg-3.col-xl-2 {
        background: #e3f6fd !important;
    }

    .reg_anual .total-registros {
        top: 90px;
        width: auto;
        margin-right: 16px;
    }

    .reg_anual h5.card-title.mb-5 {
        margin-bottom: 80px !important;
    }

    .total-registros, #total_periodo {
        width: 100%;
        text-align: center;
        position: inherit;
        margin-top: 22px;
        position: initial !important;
    }

    .reg_empresa #otrasInscripcionesDiv {
        margin-top: 38px;
    }

    .responsive-table th, .responsive-table td {
        padding: 12px;
        font-size: 10px;
    }

    .responsive-table th {
        font-size: 12px;
    }

    .scroll-filtro {
        height: 100px !important;
        padding-top: 0px !important;
    }

    .custom-scrollbar .form-check {
        float: left;
        display: inline-block;
        width: 33%;
    }
}
