input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.column {
    width: 100%;
    padding: 0 1em 1em 1em;
    text-align: center;
}

.card-index {
    background-color: rgb(255, 255, 255);
    cursor: pointer;

    -webkit-box-shadow: 0px 0px 11px 1px rgba(143, 143, 143, 1);
    -moz-box-shadow: 0px 0px 11px 1px rgba(143, 143, 143, 1);
    box-shadow: 0px 0px 11px 1px rgba(143, 143, 143, 1);
}

.card-index:hover {
    background-color: rgb(26, 49, 83);
}

.card-index i {
    color: rgb(26, 49, 83);
    margin-right: 5px;
    font-size: 50px;
    text-align: center;
    margin-bottom: 20px;
}

.card-index h3 {
    color: rgb(26, 49, 83);
}

.card-index:hover i {
    color: white;
}

.card-index:hover h3 {
    color: white;
}

.logo-menu {
    display: flex;
    margin: 20px;
    display: inline-block;
}

.logo-menu img {
    width: 15%;
    display: inline-block;
    vertical-align: top;
}

.titulo-logo {
    clear: left;
    text-align: right;
    vertical-align: middle;
    line-height: 35px;
    font-weight: 600;
    color: rgb(23, 2, 99);
    font-size: 21px;
    letter-spacing: -0.5px;
    font-weight: 700 !important;
}

.rojo {
    color: rgb(212, 0, 0);
}

/* MENU HORIZONTAL */
.salirItem {
    cursor: pointer;
}

/********************************************/
/** ADMIN / USUARIOS **/
/********************************************/

.card-usuarios {
    min-height: 610px;
}

.table-usuarios thead th,
.table-roles thead th {
    color: white !important;
}

.create {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    margin: auto;
}

.derecha {
    margin-bottom: 40px !important;
}

.table-usuarios img {
    width: 50px;
}

.restablecer_foto:hover {
    color: red;
}

.restablecer_foto {
    color: rgb(143, 143, 143);
}

.cambiar_foto {
    color: rgb(116, 116, 116);
    cursor: pointer;
}

.cambiar_foto:hover {
    color: rgb(0, 0, 0);
}

.td-imagen img {
    width: 30px;
}

/** TOAST **/
.error {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.usuarioCreado {
    color: #057c07;
    font-size: 18px;
    margin-bottom: 10px;
}

.usuarioEliminado {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 10px;
}

.titulo-usuarioEliminado,
.titulo-usuarioCreado {
    margin-left: 10px;
}

/* MODAL ELIMINAR USUARIO */

.header-usuario {
    background-color: rgb(14, 46, 81);
}

.titulo-usuario {
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}

/* MODAL EDITAR USUARIO */

#texto-usuario {
    color: rgb(21, 87, 157);
}

/*********************************************************/
/*********** ROLES ****************/
/*********************************************************/

.agregar-roles {
    float: right;
}

.header-role {
    background-color: rgb(14, 46, 81);
}

.titulo-role {
    color: rgb(255, 255, 255);
}

#id_role_edit {
    display: none;
}

.jersey-25-regular {
    font-family: "Jersey 25", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 40px;
    color: #093864;
    text-align: center;
    margin: 20px;
}

#contenedor_imagen {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contenedor_imagen img,
#contenedor_perfil img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

#contenedor_perfil {
    width: 43px;
    height: 43px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar.avatar-online:after {
    transform: translate(100%, 55%);
}

.fotoTablaUsuario img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.fotoTablaUsuario {
    width: 43px;
    height: 43px;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*******************************************************************************/
/* RESETAR CONTRASEÑA */
/*******************************************************************************/

.titulo-reset {
    clear: left;
    vertical-align: middle;
    line-height: 35px;
    font-weight: 600;
    color: rgb(23, 2, 99);
    font-size: 21px;
    letter-spacing: -0.5px;
    font-weight: 700 !important;
}

.card-restablecerPass {
    max-height: 585px !important;
}

.alert-correo {
    color: #072b06 !important;
    background-color: #b9f19d;
    border: 1px solid #62c75f !important;
}

#msjEnviado {
    display: none;
}

#tokenExistente {
    display: none;
}

#tokenRemovido {
    display: none;
}

.activo {
    background-color: #eeeeee;
}

.activo:before {
    filter: blur(2px);
    content: "";
    position: absolute;
    height: 20%;
    width: 20%;
    background: url("/img/galeria/2023.jpg");
    background-size: cover;
    z-index: -1;
    -webkit-transform: scale(5);
    -webkit-transform-origin: top left;
}

.titleRese {
    margin-top: -70px;
}

.obligatorio {
    font-size: 11px;
    font-style: italic;
    color: red;
    padding-bottom: 0px;
}

/***************************************************************/
/* PARA FOOTER */
/***************************************************************/


.footer {
    margin-bottom: 10px;
}


@media (max-width: 1199px) {
    #layout-menu {
        display: flex;
        flex-direction: column;
        height: 100vh;
        /* Ocupa toda la altura de la pantalla */
    }

    #layout-menu .menu-inner {
        overflow-y: auto !important;
        flex: 1;
        margin-bottom: 131px !important;
        overflow-x: hidden !important;
    }

    /* Opcional: estilo para el scroll */
    #layout-menu .menu-inner::-webkit-scrollbar {
        width: 6px;
    }

    #layout-menu .menu-inner::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 3px;
    }

}

.disk-usage-fill-footer {
    height: 100%;
    background-color: #0e64b5;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.disk-usage-bar-footer {
    width: 248px;
    height: 14px;
    background-color: #c7c7c7;
    border-radius: 80px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #c0c0c0;
}

.disk-usage-text-footer {
    margin-left: 10px;
    font-size: 14px;
    color: #000000b5;
}

.modal-instructivo {
    max-width: 90%;
    max-height: 100vh !important; /* Limita la altura al 80% de la altura del viewport */
}

.correo-medio {
    background-color: #c2b70d !important;
}

.correo-lleno {
    background-color: #d60000 !important;
}

/* ****************************************************************
    PROPIEDADES PARA HABILITAR LA CARGA
* ****************************************************************/

.carga-plantilla {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.7); /* Opcional: capa suave */
    z-index: 9999; /* Encima de todo */
}

/* ****************************************************************
    SKELETON PARA CARFA DE TABLE
* ****************************************************************/

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #f8f8f8 20%,
        #f0f0f0 40%,
        #e9e8e8 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    display: inline-block;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-text-medium {
    width: 80%;
}

.skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 12px;
}

.skeleton-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.actions {
    display: flex;
    gap: 8px;
}

/* Pulse animation for variety */
.skeleton-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.info-text {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}

/* **********************************************************/
/* ULTIMA COLUMNA FIJA */
/* **********************************************************/

.fixed-column {
    position: sticky;
    left: 0;
    background: white;
    /* Para que no se transparente al hacer scroll */
    z-index: 10;
}

.table-usuarios td.fixed-column {
    z-index: 11;
    background-color: #ffffff !important;
    /* Color del thead oscuro */
    color: #fff;
}

.fixed-column-right {
    position: sticky;
    right: -13px;
    /* Fija al lado derecho */
    background-color: #fff !important;
    z-index: 5;
}

/* Para la cabecera (thead) */
.table-usuarios th.fixed-column-right {
    background-color: #343a40 !important;
    /* table-dark */
    color: #fff;
    z-index: 6;
}

/* Última columna (ACCIÓN) */
.fixed-right-1 {
    position: sticky;
    right: 0;
    background-color: #fff !important;
    z-index: 7;
}

/* Penúltima columna (TOTAL) */
.fixed-right-2 {
    position: sticky;
    right: 90px;
    /* <-- Ajusta al ancho real de tu columna */
    background-color: #fff !important;
    z-index: 6;
}

/* Para thead */
.table-usuarios th.fixed-right-1 {
    background-color: #343a40 !important;
    color: #fff;
    z-index: 8;
}

.table-usuarios th.fixed-right-2 {
    background-color: #343a40 !important;
    color: #fff;
    z-index: 7;
}
