.input.danger.input--switch[type=checkbox]:checked {
    --bg-opacity: 1;
    background-color: #a80020!important;
    --border-opacity: 1;
    border-color: #a80020!important;
}

/* Chat unread badge styling */
.chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Chat modal custom styles */
.chat-modal-wide .modal__content {
    width: 80vw;
    min-width: 600px;
}

.chat-messages-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.chat-message {
    margin-bottom: 15px;
    clear: both;
}

.chat-input-container textarea {
    resize: none;
}

/* Table styling for order details */
.table-report {
    border-collapse: collapse;
}

.table-report th {
    font-weight: 600;
    width: 150px;
}

.table-report td {
    word-wrap: break-word;
}

.order-details-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-modal-wide .modal-dialog {
        width: 95%;
        max-width: 95%;
    }
    
    .order-details-container {
        max-height: 300px;
    }
    
    .chat-messages-container {
        height: 400px;
    }
}
