/*reduce ticket list table padding*/

.table thead {
    height: 34px;
}

.table thead th.table__first_th {
    padding: 6px 6px;
}

.table thead th {
    padding: 6px 6px;
}

.table tbody tr .table__first_td {
    padding: 6px 6px;
}

.table tbody td {
    padding: 6px 6px;
}

/*ticket message body*/

.ticket__body_block {
    background-color: #fff;
    margin-bottom: 12px;
    border-radius: 2px;
    border: 1px solid #2C70A2;
    box-shadow: 5px 8px 8px 0 rgba(38,40,42,0.3);
    padding: 15px 30px 34px;
    text-align: justify;
}

.ticket__body_block.response {
    box-shadow: 5px 8px 8px 0 rgba(38,40,42,0.3);
    background-color: #dcffe6;
}

.ticket__body_block.original-message {
    padding-bottom: 0px;
    margin-bottom: 16px;
    min-height: 48px;
    border-radius: 2px;
    box-shadow: 5px 8px 8px 0 rgba(38, 40, 42, 0.1);
}

.ticket__params .params--block .row {
    display: -ms-flexbox;
    display: flex;
    font-family: "Lato", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    line-height: 0.57;
    letter-spacing: .1px;
    margin-bottom: 18px;
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

.lightbox-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 60px 20px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    text-align: center;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    z-index: 10001;
    max-height: 60px;
    overflow: hidden;
}

.attachment-item {
    transition: transform 0.2s;
}

.attachment-item:hover {
    transform: scale(1.05);
}

/* Target rows based on existing priority indicators */
.table tbody tr:has(.priority_img[style*="border-top-color:#e74441"]) td,
.table tbody tr:has(.priority_img[style*="border-top-color:#e64342"]) td {
    background-color: #ffe6e6 !important; /* Critical - red */
}

.table tbody tr:has(.priority_img[style*="border-top-color:#fac500"]) td {
    background-color: #fff4d1 !important; /* High - light golden/orange */
}

.table tbody tr:has(.priority_img[style*="border-top-color:#3abb7a"]) td {
    background-color: #d4f4dd !important; /* Medium - light green */
}

.table tbody tr:has(.priority_img[style*="border-top-color:#71a5ec"]) td {
    background-color: #e8f4ff !important; /* Low - very light blue */
}