body {
    margin-bottom: 50px;
    padding-top: 55px; /* 90px con .titulo */
}

.modal-width-90 {
    max-width: 90%;
}

.animate__animated {
    animation-duration: 1s; /* Duración de la animación */
    animation-delay: 0.2s; /* Retraso antes de que comience la animación */
}

.slow-animate {
    animation-duration: 1.5s; /* Ajusta este valor según prefieras */
}

/*#region ChatMensajes */

/* Contenedor contraído de usuarios conectados en la esquina inferior derecha */
.connected-users {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

#connectedUsers .fa-stack {
    position: relative;
    display: inline-block;
    text-align: center;
    width: 45px;
    height: 45px !important;
}

#connectedUsers .fa-stack-1x {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Ajusta el tamaño del número */
}

.user-list {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 250px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    max-height: 400px;
    overflow-y: auto;
    display: block; /* Cambiar de none a block */
}

    .user-list.hidden {
        display: none; /* Oculta la lista cuando tiene la clase 'hidden' */
    }

.chat-container {
    position: fixed;
    bottom: 40px;
    right: 280px;
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    z-index: 1000;
}

.chat-box {
    width: 300px;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .chat-box header {
        background-color: #081541;
        color: white;
        padding: 10px;
        font-weight: bold;
        text-align: center;
        cursor: pointer;
    }

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    list-style: none;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

    .chat-input input {
        flex-grow: 1;
        padding: 10px;
        border: none;
    }

    .chat-input button {
        padding: 10px;
        background-color: #081541;
        color: white;
        border: none;
    }

.hidden {
    display: none;
}

.user-list {
    list-style-type: none; /* Elimina la viñeta */
    padding: 0; /* Opcional: elimina el padding por defecto */
}

    .user-list li {
        display: flex;
        align-items: center;
        padding: 5px;
    }

/* Estilo del punto verde o gris */

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px; /* Espacio entre el punto y el nombre */
}

    .status-dot.connected {
        background-color: green;
    }

    .status-dot.disconnected {
        background-color: gray;
    }

.user-search {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 250px;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: block; /* Cambiar de none a block cuando la lista esté visible */
}

    .user-search.hidden {
        display: none; /* Oculta el campo de búsqueda cuando tiene la clase 'hidden' */
    }

.sender-system {
    color: #8B0000; /* Rojo oscuro */
}

.sender-self {
    color: darkblue; /* Azul oscuro para el remitente */
}

.sender-other {
    color: darkgreen; /* Café oscuro para el destinatario */
}

.message-date {
    color: gray; /* Gris para la fecha */
}

/*#endregion */

/*#region Botones personalizados */

.btn-outline-purple {
    color: #4b0082; /* Color de texto */
    border-color: #4b0082; /* Color del borde */
}

    .btn-outline-purple:hover {
        color: #fff; /* Color de texto al hacer hover */
        background-color: #4b0082; /* Color de fondo al hacer hover */
        border-color: #4b0082;
    }

.btn-outline-custom2 {
    color: #ff4500;
    border-color: #ff4500;
}

    .btn-outline-custom2:hover {
        color: #fff;
        background-color: #ff4500;
        border-color: #ff4500;
    }

/*#endregion */

/*#region Iconos font-awesome */

table tbody a {
    cursor: pointer;
    padding-left: 4px;
    padding-right: 4px;
}

a.fa-pen-to-square, i.fa-pen-to-square { color: darkorange; }
a.fa-trash-can, i.fa-trash-can, a.fa-ban, i.fa-ban, a.fa-file-pdf, a.fa-flag-checkered { color: darkred; }
a.fa-lock-open, i.fa-lock-open, a.fa-file-excel, a.fa-tasks, a.fa-list-ol { color: darkgreen; }
a.fa-image, a.fa-magnifying-glass, a.fa-search, a.fa-cogs, a.fa-user-lock { color: darkblue; }
a.fa-user-clock { color: #D7DF01; } /* Amarillo oscuro */
a.fa-plus { color: black; }
a.fa-download { color: darkviolet; }

/*#endregion */

/*#region Ancho */

.w-10 { width: 10% !important; }
.w-15 { width: 15% !important; }
.w-20 { width: 20% !important; }
.w-25 { width: 25% !important; }
.w-30 { width: 30% !important; }
.w-35 { width: 35% !important; }
.w-40 { width: 40% !important; }
.w-60 { width: 60% !important; }
.w-70 { width: 70% !important; }
.w-80 { width: 80% !important; }
.w-90 { width: 90% !important; }

.w-300-500px {
    min-width: 300px !important;
    max-width: 500px !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/*#endregion */

/*#region Sugerencias autoacompletado input:text */

.sugerencias {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sugerencia-item {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/*#endregion */

/*#region Carga Archivos */

.CargaArchivo {
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    width: 100%;
    height: 100%;
}

    .CargaArchivo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .CargaArchivo .custom-file-button {
        background-color: #007bff;
        border: none;
        padding: 30px 30px;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .CargaArchivo .btn-circle {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        color: white;
    }

        .CargaArchivo .btn-circle i {
            font-size: 15px;
        }

    .CargaArchivo .control-buttons {
        justify-content: space-between;
        position: absolute;
        bottom: 10px;
        width: 100%;
    }

    .CargaArchivo .btn-upload {
        border: none;
        background: transparent;
        color: black;
        height: 100%;
        width: 100%;
    }

    .CargaArchivo .btn-delete {
        background-color: red;
        position: absolute;
        bottom: 10px;
        left: 10px;
    }

    .CargaArchivo .btn-change {
        background-color: green;
        position: absolute;
        bottom: 10px;
        right: 10px;
    }

    .CargaArchivo .btn-preview {
        background-color: blue;
        position: absolute;
        bottom: 10px;
        left: calc(50% - 10px);
    }

.btn-download {
    background-color: blue;
    position: absolute;
    bottom: 10px;
    left: calc(50% - 20px);
}

.modal-full-height-90 {
    height: 90vh; /* 90% de la altura del viewport */
}

    .modal-full-height-90 .modal-body {
        height: 100%; /* Asegura que el contenido dentro del modal ocupe el 100% del modal */
        overflow-y: auto; /* Agrega un scroll en caso de que el contenido sea mayor */
    }

/*#endregion */

/*#region Graficas */

.grafica-container {
    position: relative;
    width: 100%;
    height: 350px;
}

/*#endregion */

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    /* Transformar card vertical en horizontal */
    .card.vertical {
        margin-bottom: 10px;
        box-shadow: 0 1px 15px 1px black;
        flex-direction: column;
    }

        .card.vertical .card-header {
            width: 100%;
            border-right: none;
            display: flex;
            flex-direction: row;
        }

        .card.vertical .card-body .table-responsive {
            max-height: 90% !important;
        }

        .card.vertical .nav-tabs {
            flex-direction: row;
            width: 100%;
        }

        .card.vertical .nav-item {
            width: auto;
        }

        .card.vertical .nav-link {
            width: auto;
            border-left: none;
        }

            .card.vertical .nav-link.active {
                border-left: none;
            }
}

 /* Indicadores Tablas */ 
.cssVerde {
    text-align: center;
    color: #008000;
    font-weight: bold;
}

.cssAmarillo {
    text-align: center;
    color: #FFFF00;
    font-weight: bold;
}

.cssNaranja {
    text-align: center;
    color: #FF8000;
    font-weight: bold;
}

.cssRojo {
    text-align: center;
    color: #FF0000;
    font-weight: bold;
}

.cssBlanco {
    text-align: center;
}