
.email-card .card-header {
    cursor: pointer; 
}

.scrollable-card {
    max-height: 400px;
    overflow-y: auto;
}

.custom-separator {
    display: inline-block; 
    height: 20px; 
    width: 1px; 
    background-color: #cfd7df; 
    margin: 0 10px; 
    text-align: center;
}

.ticket-header {
    font-weight: 600;
}

.ticket-information,
.ticket-thread {
    margin-top: 10px;
}

.error-message {
    font-size: 0.875em;
    color: #dc3545; 
    margin-top: 0.25rem;
}

.message {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 18px;
    background-color: #ffffff;
    border: 1px solid #ddd;
}

/* Add ons */
.message-header {
    display: flex;
    align-items: flex-start;
}

.name-badge-container {
    flex-direction: column; /* Stack the name, badge, and extra info vertically */
    margin-left: 3px; /* Space between avatar and text */
    flex-grow: 1;
}

.name {
    font-size: 108%;
    font-weight: 700;
    margin-right: 5px; /* Space between name and badge */
    display: inline-flex;
    align-items: center;
}

.extra-info {
    margin-top: 2px; 
}

.timestamp {
    font-size: 0.875rem; /* Adjust font size */
    color: #737373; /* Lighter text color */
    margin-top: 2px; /* Space between name and timestamp */
}

.customer-avatar {
    background-color: #576574; 
}

.customer-name {
    color: #2c5cc5;
}

.message-agent {
    background: #F5F7F9;
}

.message-system {
    background: #F5F7F9;
}

.agent-avatar {
    background-color: #2ecc71; /* #686de0(blue), #9c88ff(violet), #ee5253(red), #10ac84(teal), #2ecc71(green)*/
}

.system-avatar {
    background-color: #00a8ff;
}

.agent-name {
    color: #2c5cc5; 
}

.message p {
    margin-top: 15px;
    font-size: 1rem; /* Adjust font size as needed */
}

.message-attachments {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
}

.attachment-file {
    display: flex;
    align-items: center;
    height: fit-content; 
    margin-right: 5px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333; 
    font-weight: bolder; 
    word-wrap: break-word; 
}

.attachment-file:hover {
    background-color: #e9ecef;
    color: #000;
}

.attachment-preview {
    margin: 0 10px 10px 0; 
}

.attachment-preview img {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover; 
    border-radius: 5px; 
}

.ticket-update {
    margin-top: 20px;
}

.ticket-form {
    max-width: 500px;
}

.form-header {
    background-color: #ffffff;
    /* padding: 15px; */
    border-radius: 0.375rem;
    margin-bottom: 10px;
}

.form-title {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.avatar {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    line-height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 10px;
    color: #fff;
    vertical-align: middle;
}

.message-body {
    margin-top: 10px;
    font-size: 14px;
    margin-left: 50px;
    word-wrap: break-word;
    width: calc(100% - 50px);
    max-width: 100%;
    overflow-x: auto; 
}

.message-body table {
    width: 100%;
    max-width: 100%;    
}

.message-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.message-activities {
    margin-top: 10px;
    font-size: 14px;
    margin-left: 50px;
    word-wrap: break-word;
}

.message-activities:has(ul) {
    margin-left: 30px;
}

#body_content {
    margin-bottom: 10px;
    margin-left: 50px;
    font-size: 14px;
    word-wrap: break-word;
    width: calc(100% - 50px);
    max-width: 100%;
    overflow-x: auto; 
}

#body_content table {
    width: 100%;
    max-width: 100%;    
}

#body_content img {
    max-width: 100%;
    height: auto;
    display: block;
}