﻿.ticket-details {
    float: left;
    width: 50%;
    padding: 20px;
    background-color: #f4f4f4;
    border-right: 1px solid #ddd;
}

.ticket-name {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}

.tag_bubble {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin: 5px 5px 5px 0;
    text-transform: capitalize;
    text-align: center;
    white-space: nowrap
}

.lifeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 30px;
}

    .lifeline-container .steps {
        display: flex;
        width: 100%;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
    }

.step-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.steps .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    font-size: 22px;
    font-weight: 500;
    border-radius: 50%;
    background: #fff;
    border: 4px solid;
    transition: all 200ms ease;
    transition-delay: 0s;
}

    .steps .circle.inactive {
        transition-delay: 100ms;
        border-color: #e0e0e0;
        color: #999;
    }

    .steps .circle.active {
        transition-delay: 100ms;
        border-color: #4070f4;
        color: #4070f4;
    }

.steps .progress-bar {
    position: absolute;
    height: 4px;
    width: 75%;
    background: #e0e0e0;
    z-index: -1;
    left: 12.5%;
    top: 40%;
    transform: translateY(-50%);
}

.progress-bar .indicator {
    position: absolute;
    height: 100%;
    background: #4070f4;
    transition: all 300ms ease;
}

.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.user-message .chat-header {
    background-color: #d1e7fd;
    align-self: flex-start;
}

.system-message .chat-header {
    background-color: #f0f0f0;
    align-self: flex-end;
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user-info p {
    margin: 0;
    color: #333;
}

.user-name {
    font-weight: bold;
    font-size: 16px;
}

.company-name {
    font-size: 12px;
    color: #777;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message-content {
    padding: 10px;
    border-radius: 10px;
    *max-width: 85%;
    /*width: fit-content;*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    font-size: 14px;
}

.user-message .message-content {
    background-color: #d1e7fd;
    align-self: flex-start;
}

.system-message .message-content {
    background-color: #f0f0f0;
    align-self: flex-end;
}

.message-time {
    font-size: 15px;
    color: #aaa;
    margin-top: 5px;
    text-align: right;
    width: 100%;
}

.attachments {
    display: flex;
    max-width: 80%;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.user-message .attachments {
    align-self: flex-start;
}

.system-message .attachments {
    align-self: flex-end;
}

.attachment {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 150px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .attachment img {
        width: 100%;
        height: auto;
        max-width: 120px;
        max-height: 120px;
        object-fit: cover;
        border-radius: 5px;
    }

    .attachment .file-info {
        margin-top: 10px;
        font-size: 12px;
        color: #555;
        word-wrap: break-word;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }

    .attachment .file-name {
        font-weight: bold;
        color: #333;
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .attachment .file-size {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .attachment .download-btn {
        display: inline-block;
        margin-top: 10px;
        padding: 5px 10px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-size: 14px;
    }

        .attachment .download-btn:hover {
            background-color: #0056b3;
        }

.zip {
    display: inline-block;
    width: 38px;
    height: 38px;
    background-image: url(https://opale-systems.odoo.com/web/static/img/mimetypes/archive.svg);
}


.not_yet_specified {
    
}

.new_ticket {
    color: orangered;
}