           /*
.chat-box {
    height: 300px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
} */
.chat-box {
    max-height: 100%;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #80808010;
    border-radius: 10px;
    margin-bottom: 10px;

    /*height: 400px;*/
}

.chat-box-hgh400px {
    height: 400px;
}

.chat-box-hgh100x100 {
    height: calc(100vh - 100px - 80px);
    /* Resta del header y el footer */
}

.chat-input {
    margin-top: 0;
}

.card-body {
    background-color: none;
}

.card-footer {
    padding: 10px;
    margin: 0;
}

.chat-input-container {
    display:inline-block;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: none;
}

.chat-input-container input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #00000020;
    margin: 0 0 10px 0;
    outline: none;
}

.chat-input-container button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 20px;
    cursor: pointer;
}

.chat-input-container button:hover {
    background-color: #515f6d;
}

/* Estilos de la subida de adjuntos */
.file-upload-label {
    padding: 10px;
    background-color: #eaeaea;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 10px;
}

.file-upload-label i {
    font-size: 16px;
    color: #333;
}

/* Estilos de los mensajes */
.message {
    margin: 10px 0;
    padding: 10px;
    background-color: #515f6d;
    border-radius: 10px;
    max-width: 80%;
    clear: both;
}
.btn-chat {
    border-radius: 10px;
    width: 100%;
    max-width: 60px;
}
/* .message {
    padding: 5px;
    border-bottom: 1px solid #eee;
} */

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    text-align: left;
    margin-left: auto;
    text-align: right;
    /*background-color: #d1f0ff;*/
    padding: 10px;
    border-radius: 5px;
}

.bot-message {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px 0;
    max-width: 80%;
    word-wrap: break-word;
    color: black;
    align-self: flex-start;
    text-align: left;
}

.suggestions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestions-container {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.suggestion-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.suggestion-button {
    padding: 5px 10px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    border-radius: 10px;
}

.suggestion-btn:hover {
    background-color: #0056b3;
}
.suggestion-button:hover {
    background-color: #bbb;
}

.user-message {
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px 0;
    align-self: flex-end;
    max-width: 80%;
    word-wrap: break-word;
}

.more-info-btn {
    background-color: #007bff;
    color: white;
    border: 3px;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
        







/* Menú de opciones del card header: nombres largos sin salirse de la tarjeta */
.card-header .dropdown-menu.nx-menu-card {
    min-width: 12rem;
    max-width: min(22rem, calc(100vw - 2rem));
}
.card-header .dropdown-menu.nx-menu-card .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
    display: flex;
    align-items: flex-start;
    line-height: 1.3;
}
.card-header .dropdown-menu.nx-menu-card .dropdown-item > i {
    flex: 0 0 auto;
    margin-top: 0.15em;
}

/* Evita el desplazamiento lateral de la página cuando algo sobresale un poco */
html, body { overflow-x: clip; }
.nxl-container, .main-content { max-width: 100%; }

/* Mismo ajuste para desplegables nx-menu-card fuera del card header (p. ej. Documentos del contrato) */
.dropdown-menu.nx-menu-card { min-width: 12rem; max-width: min(22rem, calc(100vw - 2rem)); }
.dropdown-menu.nx-menu-card .dropdown-item { white-space: normal; overflow-wrap: anywhere; }
