html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/*Diseño para mostrar icono y texto editar encima de la foto de perfil.*/
/*------------------------------------------------------------------------------*/
.foto-perfil {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.foto-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}

.foto-perfil:hover .foto-overlay {
    opacity: 1;
}


/*Diseño de botones del Dashboard*/
/*------------------------------------------------------------------------------*/
.btn-accion {
    background-color: #333947 !important;
    color: white !important;
    border: none !important;
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.25s ease; /*animación suave*/
}

    .btn-accion:hover {
        background-color: #404656 !important; /*un poquito más claro*/
        transform: translateY(-2px); /*se levanta ligeramente*/
        box-shadow: 0 4px 10px rgba(0,0,0,0.2); /*sombra suave*/
    }

    .btn-accion:active {
        transform: translateY(0px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

/*Damos diseño a los elementos de texto para que se vean bloqueados */
/*------------------------------------------------------------------------------*/
input[readonly].form-control {
    border: 1px solid #ced4da !important;
    background-color: transparent;
    box-shadow: none;
    /*padding-left: 0;*/
    pointer-events: none;
}
/*.form-control[readonly],
.form-select[disabled] {
    border: 1px solid #ced4da !important;*/ /* gris normal Bootstrap */
    /*background-color: #fff !important;
    color: #212529;
    box-shadow: none;
    cursor: default;
}*/
/* Estilo para que el combobox no se vea gris cuando está bloqueado */
/*------------------------------------------------------------------------------*/
.custom-select[disabled] {
    background-color: white !important; /* Fondo blanco o transparente según tu preferencia */
    border: 1px solid #ced4da !important; /* Sin borde */
    opacity: 1 !important;
    cursor: default;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /*padding-left: 0;*/ /* Texto se alinea a la izquierda del contenedor */
    padding-right: 0; /* Quita padding extra que desplazaba texto */
    text-align: left; /* Ajusta alineación del texto */
    position: relative; /* Necesario para que ::after funcione correctamente */
}

    /* Flecha personalizada se mantiene visible */
    .custom-select[disabled]::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 1rem; /* Ajusta la posición de la flecha */
        width: 0.5rem;
        height: 0.5rem;
        pointer-events: none;
        transform: translateY(-50%) rotate(45deg);
        border-right: 2px solid #495057;
        border-bottom: 2px solid #495057;
    }

/*Diseño del modal param cargar número de teléfono*/
.custom-input {
    height: 38px !important;
    width: 190px !important;
    font-size: 15px;
    margin: 0 auto;
}

.swal2-popup .swal2-confirm,
.swal2-popup .swal2-cancel {
    height: 35px !important; /* Altura más pequeña */
    /*font-size: 13px !important;*/ /* Texto un poco más pequeño */
    padding: 0 10px !important;  Espaciado horizontal 
}

/*Tamaño fijo para el contenedor del form*/
.form-user-container {
    min-height: 300px; /* ajusta según tu bloque más alto */
    transition: all 0.3s ease; /* para que se vea más suave */
}

/*Diseño de borde al habilitar campos editables*/
/* Campos en modo edición */
.form-control.editando,
.form-select.editando {
    border: 1.5px solid #dbbb06 !important;
    /*background-color: #f4f5f7 !important;*/ /* opcional, combina mejor con ese tono */
}

    /* Efecto al hacer focus */
    .form-control.editando:focus,
    .form-select.editando:focus {
        box-shadow: 0 0 8px rgba(51, 57, 71, 0.5) !important;
    }

/*Le damos formato al menú de la izquierda para alinear perfectamente todo*/
.nav-link {
    display: flex;
    align-items: center; /* Alinea icono y texto verticalmente */
    gap: 10px; /* Espacio entre imagen y texto */
}

    .nav-link img {
        width: 35px;
        height: 35px;
        object-fit: contain; /* Mantiene proporción de los íconos */
    }

/* Para que la imagen desaparezca al minimizar */
.sidebar.toggled #logoFinalSidebar {
    display: none;
}

.icon-sidebar {
    width: 38px !important;
    height: 45px !important;
}

/*.editando {
    border: 2px solid #0d6efd !important;
    background-color: #f8f9ff !important;
}*/

    /* Opcional: mejora visual en focus */
    /*.editando:focus {
        outline: none;
        box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
    }*/





/*Responsive param menú izquierdo.*/
.sidebar-logo-wrapper {
    margin-top: 2rem;
    transition: all 0.3s ease;
}

/* Cuando el sidebar está colapsado */
.sidebar.toggled .sidebar-logo-wrapper {
    display: none;
}

/*Subir y bajar el menu automaticamente*/
.sidebar.toggled {
    padding-top: 0 !important;
}

.sidebar {
    transition: all 0.3s ease;
}

    .sidebar.toggled .nav-item:first-child {
        margin-top: 1rem;
    }

/*Alineación de encabezados en tablas*/
/*Tabla de bienes*/
#tablaBienes th.text-start {
    text-align: left !important;
}

#tablaBienes th.text-center {
    text-align: center !important;
}

/*Tabla de creditos*/
#tablaCreditos th.text-start {
    text-align: left !important;
}

#tablaCreditos th.text-center {
    text-align: center !important;
}

#tablaCreditos th.text-end {
    text-align: right !important;
}


/*Tabla de faltas*/
#tablaFaltas th.text-start {
    text-align: left !important;
}

#tablaFaltas th.text-center {
    text-align: center !important;
}

#tablaFaltas th.text-end {
    text-align: right !important;
}

#tablaFaltas th,
#tablaFaltas td {
    cursor: default;
}

/*Tabla de nomina*/
#tablaNominas th.text-center {
    text-align: center !important;
}

#tablaNominas th.text-end {
    text-align: right !important;
}



/*Colocar el cursor por default a las tablas*/
#tablaBienes th,
#tablaBienes td {
    cursor: default;
}

#tablaCreditos th,
#tablaCreditos td {
    cursor: default;
}

#tablaFaltas th,
#tablaFaltas td {
    cursor: default;
}

#tablaNominas th,
#tablaNominas td {
    cursor: default;
}

#tablaConFacNom th,
#tablaConFacNom td {
    cursor: default;
}

.readonly-text {
    cursor: default;
}

/*Compactar y ajustar la altura de las tablas.*/
#tablaBienes th,
#tablaBienes td {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.85rem;
}

#tablaCreditos th,
#tablaCreditos td {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.85rem;
}

#tablaFaltas th,
#tablaFaltas td {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.85rem;
}

#tablaNominas th,
#tablaNominas td {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.85rem;
}


#tablaConFacNom th,
#tablaConFacNom td {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.85rem;
}