
* {
    margin: 0;
    padding: 0;
}


.box {
    width: 200px;
    height: 200px;
    background-image: url('Img/FotoPerfil.jpg');
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}

.box img {
    width: 100%;
    height: auto;
}

@supports(object-fit: cover) {
    .box img {
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}


.escondido {
    display: none;
}


#processing {
    position: fixed !important;
    background: rgba(0,0,0,0.9) !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important; /* Valor máximo posible */
    backdrop-filter: blur(3px) !important;
}

/* Forzar que esté por encima de TODOS los modales */
body #processing,
html #processing,
* #processing {
    z-index: 2147483647 !important;
    position: fixed !important;
}


#processing > div {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    margin-left: -30px;
    top: 50%;
    margin-top: -30px;
}

#processing > div > div {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #78b92f;
    top: 10px;
    left: 10px;
    transform-origin: 20px 20px;
    border-radius: 8px;
    animation: spin-a 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

#processing > div > .c2 {
    top: 10px;
    left: auto;
    right: 10px;
    transform-origin: -4px 20px;
    animation: spin-b 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

#processing > div > .c3 {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 10px;
    transform-origin: -4px -4px;
    animation: spin-c 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

#processing > div > .c4 {
    top: auto;
    bottom: 10px;
    transform-origin: 20px -4px;
    animation: spin-d 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

@keyframes spin-a {
    0% {
        transform: rotate(90deg);
    }

    0% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-b {
    0% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-c {
    0% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-d {
    0% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#processing > span {
    width: 100px;
    height: 30px;
    position: absolute;
    left: 50%;
    margin-left: -50px;
    top: 50%;
    margin-top: 30px;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
}

.menu li.menu-item a:hover {
    color: white;
}

.menu li.menu-item a:hover {
    color: white;
}

.sub-menu li.menu-item a:hover {
    color: #78b92f;
}

.menu-principal a:hover, .menu-principal a:focus {
    color: #78b92f;
}

.menu-item a:hover {
    color: #78b92f;
    text-decoration: none !important;
}

.required:before {
    content: '* ';
    color: red;
    font-weight: bold;
}​​​​

.hide {
    display: none;
}

.show {
    display: block;
}
​​​​​​
/*Select2*/
.select2-container--default .select2-selection--single {
    background-color: #f5f5f5;
    height: 45px !important;
}

span.select2 {
    width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px !important;
}

.dataTables_scrollBody {
    position: initial !important;
}

div.dataTables_wrapper {
    width: 100%;
    margin: 0 auto;
}

.contenido table {
    margin: 0px !important;
}

@media (max-width: 580px) and (min-width: 50px) {
    .contenido table td:before {
        padding: 0px !important;
    }
}
​​​​​​​
.labelRadio {
    display: inline-block !important;
    font-size: inherit;
}

.cnt-pregunta {
    border: 1px solid #c5c5c5;
    border-radius: 5px;
    padding: 10px;
}

.cnt-preguntaRequerida {
    border: 1px solid red;
    background-color: #ffdcdc;
}

.divRadio {
    position: relative;
    margin: auto;
    vertical-align: bottom !important;
    left: 25%;
    margin-top: 25% !important;
}

input[type='text'],
input[type='number'],
input[type='date'],
input[type='email']
{
    background-color: white !important;
}

input[type='button'],
input[type='submit'] {
    background-color: #78b92f !important;
}


input:disabled {
    background-color: #e9ecef !important;
}


input[type='radio']:disabled {
    cursor: default;
}

input[type='checkbox']:disabled {
    cursor: default;
}

.inputDate {
    /*margin-top: 0.6em;*/
    margin-top: 0.5em;
    height: 45px;
}

.inputNota {
    width: 40% !important;
}

.inputNotaDetalle {
    width: 150px !important;
}

.contador {
    float: right;
    color: #555555;
    font-style: italic;
    margin-top: -10px;
}
.iconHelp{
    margin-left:3px;
}

.headTable {
    text-align: center;
}

.inputIdioma::-webkit-inner-spin-button {
    opacity: 1 !important;
}


/* ------------------------------ */
/* Estilos para _Anexos           */
/* ------------------------------ */
.archivo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.archivo-input {
    flex: 1;
    height: 38px;
    border-radius: 4px;
}

/* Botones redondos */
.btn-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
}

    .btn-round:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .btn-round i {
        font-size: 16px;
    }

/* Colores específicos para cada tipo de botón */
.btn-ver {
    /*background-color: #5a6268;*/
    color: white;
}

    .btn-ver:hover {
        /*background-color: #5a6268;*/
        color: white;
    }

.btn-template {
    background-color: #28a745;
    color: white;
}

    .btn-template:hover {
        background-color: #218838;
        color: white;
    }

/* Alineación de labels */
.form-group-anexos {
    margin-bottom: 1rem;
}

    .form-group-anexos label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

/*.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}
*/
/* Responsive para móviles */
@media (max-width: 576px) {
    .mb-3 .col-8,
    .mb-3 .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mb-3 .col-8 {
        margin-bottom: 10px;
    }

    .mb-3 .col-4 .d-flex {
        justify-content: flex-start !important;
    }
}

/* Tooltips para los botones */
.btn-round[data-toggle="tooltip"] {
    cursor: pointer;
}

/* Ajustes para el diseño de dos columnas */
.mb-3 .row {
    margin: 0;
}

.mb-3 .col-8,
.mb-3 .col-4 {
    padding-left: 5px;
    padding-right: 5px;
}

    /* Asegurar altura mínima para alineación vertical */
    .mb-3 .col-4 .d-flex {
        min-height: 38px; /* Altura del input */
    }

/* Prevenir selección de texto en el modal para evitar confusión */
/*#modalPlanillaParafiscales .modal-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}*/

/* Destacar el botón único de cierre */
  

/* Indicador visual de que el modal no se puede cerrar */
#modalPlanillaParafiscales .modal-header {
    border-bottom: 3px solid #ffc107;
}

/* Animación para llamar la atención al botón */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#btnAceptarPlanilla:focus {
    animation: pulse 1s infinite;
}

.alert.alert-error {
    background: #ff00009e;
    color: #fff;
}

.campos-planilla .form-group {
    margin-bottom: 1rem;
}

.campos-planilla label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ------------------------------ */
/* Estilos para _Anexos           */
/* ------------------------------ */

/* ------------------------------ */
/* Estilos para responsividad de tablas */
/* ------------------------------ */
.contenidoTable table thead {
    background-color: #32464d;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.contenidoTable table th {
    border-right: thin solid #fff;
    padding: 0 5px;
    height: 45px;
}

.contenidoTable table thead {
    background-color: #32464d;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.contenidoTable table tr {
    border: none;
    min-height: 40px;
}
.contenidoTable table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: none;
    margin: 30px 0;
    border-bottom: 3px solid #4c4c4c;
    font-size: 1rem;
    line-height: 1.5;
}
contenidoTable table td:first-child {
    border-left: none;
}

.contenido table td {
    padding: 5px;
    border-left: thin solid #ccc;
    border-right: thin solid #ccc;
    vertical-align: top;
}

/* Estilos básicos para DataTables */
.dataTables_wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Asegurar que la tabla ocupe el ancho completo */
#TblConsultaUsuarios {
    width: 100% !important;
}

/* Estilos para los botones de acción */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Estilos básicos para tablas responsivas */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Configuración específica para móviles */
@media (max-width: 768px) {
    /* Mejoras para controles de DataTables */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-bottom: 10px;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        margin-top: 10px;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.25rem 0.5rem;
        margin: 0 2px;
    }
}

/* ------------------------------ */
/* Estilos para secciones de formulario - Opción 1 */
/* ------------------------------ */

.section-card {
    background: #ffffff;
    border: 2px solid #e3e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #78b92f, #5a8c1f);
    border-radius: 8px 8px 0 0;
}

.section-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

/* Hover effect para las secciones */
/*.section-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}*/

/* Estilos específicos para los headers de sección */
.section-card h3.header.smaller.lighter {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

/* Estilos específicos para el contenedor de auditoría */
#contenedorAuditoria {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  
}

#contenedorAuditoria .body_auditoria {
    width: 100% !important;
    max-width: 100% !important;

}

#contenedorAuditoria .progress-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Asegurar que el tab-pane de auditoría mantenga el ancho completo */
#auditoria.tab-pane {
    width: 100% !important;
    max-width: 100% !important;
}

#auditoria.tab-pane .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Estilos para centrar la tarjeta de Bienvenida en pantallas entre 415px y 768px */
@media (min-width: 415px) and (max-width: 768px) {
    #dashboard {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
       /*  min-height: 100vh !important;*/
        width: 100% !important;
    }

    .overlay_Index {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        width: 400px !important;
        height: 400px !important;
        z-index: 0 !important;
    }
}
/*estilos modal*/
.modal-header .close {
    margin-top: 0 !important;
}

/* Override más específico para el botón de cerrar del modal */
 .modal-header .close {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* BS5 (injectHTML) + hoja BS4: título .w-100 en header flex cubre el botón cerrar; el clic no cierra */
.modal-header .modal-title.w-100 {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
}

/* Estilos para mantener solo los colores del menú en resoluciones menores a 780px */
@media (max-width: 780px) and (min-width: 50px) {
    /* Sobrescribir el fondo blanco problemático */
    .secondary-header-menu + #responsive-secondary-menu {
        background-color: transparent !important;
        background: transparent !important;
    }
    
    /* Colores específicos para mantener la apariencia de la imagen */
 
    .verde-lima{
        background-color: #2d5016 !important;
    }

  
.menu li.menu-item a:hover {
    color: white;
}

.menu li.menu-item a:hover {
    color: white;
}

.sub-menu li.menu-item a:hover {
    color: #78b92f;
}

.menu-principal a:hover, .menu-principal a:focus {
    color: #78b92f;
}

.menu-item a:hover {
    color: #78b92f;
    text-decoration: none !important;
}
   /* #responsive-secondary-menu .slicknav_nav li:hover {
        
        background-color: #78b92f;


    }*/
  

   
}

/* Deshabilitar la animación pulse que causa parpadeo */
#btnAceptarPlanilla:focus {
    animation: none !important;
    transform: none !important;
}

#btnAceptarPlanilla:hover {
    transform: none !important;
    transition: none !important;
}

/* Prevenir que el modal herede estilos del section-card */
#modalPlanillaParafiscales {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

#modalPlanillaParafiscales:hover {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

#modalPlanillaParafiscales .modal-dialog {
    transform: none !important;
    transition: none !important;
}

#modalPlanillaParafiscales .modal-dialog:hover {
    transform: none !important;
    transition: none !important;
}

#modalPlanillaParafiscales .modal-content {
    transform: none !important;
    transition: none !important;
}

#modalPlanillaParafiscales .modal-content:hover {
    transform: none !important;
    transition: none !important;
}

/* Asegurar que el modal no herede estilos del contenedor padre */
#contenedorAnexos #modalPlanillaParafiscales,
.section-card #modalPlanillaParafiscales {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

#contenedorAnexos #modalPlanillaParafiscales:hover,
.section-card #modalPlanillaParafiscales:hover {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

/* Reglas más agresivas para prevenir cualquier animación */
#modalPlanillaParafiscales,
#modalPlanillaParafiscales *,
#modalPlanillaParafiscales .modal-dialog,
#modalPlanillaParafiscales .modal-content,
#modalPlanillaParafiscales .modal-header,
#modalPlanillaParafiscales .modal-body,
#modalPlanillaParafiscales .modal-footer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
    -webkit-animation: none !important;
}

/* Prevenir cualquier efecto hover en el modal */
#modalPlanillaParafiscales:hover,
#modalPlanillaParafiscales:hover *,
#modalPlanillaParafiscales .modal-dialog:hover,
#modalPlanillaParafiscales .modal-content:hover,
#modalPlanillaParafiscales .modal-header:hover,
#modalPlanillaParafiscales .modal-body:hover,
#modalPlanillaParafiscales .modal-footer:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
    -webkit-animation: none !important;
}

/* Deshabilitar cualquier animación de Bootstrap en el modal */
#modalPlanillaParafiscales.fade,
#modalPlanillaParafiscales.fade .modal-dialog {
    transition: none !important;
    transform: none !important;
}

#modalPlanillaParafiscales.show,
#modalPlanillaParafiscales.show .modal-dialog {
    transition: none !important;
    transform: none !important;
}

/* Loading unificado (pestañas Create, modales de auditoría, bloques AJAX) */
.tab-pane.app-loading-pane,
.app-loading-pane {
    position: relative;
    min-height: 140px;
}

.app-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-loading-overlay.d-none {
    display: none !important;
}

.app-loading-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 1rem;
}

.app-loading-inline__spinner {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

.app-loading-inline__text {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}
