.nexis-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.nexis-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.nexis-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.nexis-modal-close:hover,
.nexis-modal-close:focus {
    color: #000;
    text-decoration: none;
}

#nexis-message-form label {
    display: block;
    margin-bottom: 5px;
}

#nexis-message-form input[type="text"],
#nexis-message-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#nexis-message-form button[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#nexis-message-form button[type="submit"]:hover {
    background-color: #005177;
}

#message-form-message {
    margin-top: 10px;
    color: #d63638;
}

.send-message-button {
    background-color: #0073aa;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

.send-message-button:hover {
    background-color: #005177;
}

.message-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-sender {
    font-weight: bold;
}

.message-date {
    color: #666;
    font-size: 0.9em;
}

.message-reply-button,
.message-delete-button {
    background-color: #0073aa;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.message-reply-button:hover,
.message-delete-button:hover {
    background-color: #005177;
}

.message-content {
    margin-top: 5px;
}

.messages-link {
    position: relative;
    margin-right: 10px;
}

#unread-messages-count {
    background-color: #d63638;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8em;
    position: absolute;
    top: -5px;
    right: -10px;
}

/* Стили для массового сообщения */
#nexis-bulk-message-button {
    margin-bottom: 10px;
}

#nexis-bulk-message-modal .nexis-modal-content {
    max-width: 600px;
}

/* #nexis-bulk-message-form div {
    margin-top: 15px;
} */

#bulk_message_recipients {
    width: 100%;
    padding: 8px;
}

#bulk_message_role {
    width: 100%;
    padding: 8px;
}

#bulk_message_content {
    width: 100%;
    height: 150px;
}

#bulk-message-form-message {
    margin-top: 10px;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000 !important;
}