/* Table Styling for .media-chat-message */
.media-chat-message table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.media-chat-message table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.media-chat-message table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.media-chat-message table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    color: #212529;
}

.media-chat-message table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.media-chat-message table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive tables for .media-chat-message */
@media screen and (max-width: 768px) {
    .media-chat-message .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .media-chat-message .table-responsive table {
        width: 100%;
        min-width: 650px;
    }
}

/* Table variants for .media-chat-message */
.media-chat-message .table-bordered {
    border: 1px solid #dee2e6;
}

.media-chat-message .table-bordered th,
.media-chat-message .table-bordered td {
    border: 1px solid #dee2e6;
}

.media-chat-message .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.media-chat-message .table-dark {
    color: #fff;
    background-color: #343a40;
}

.media-chat-message .table-dark th,
.media-chat-message .table-dark td,
.media-chat-message .table-dark thead th {
    border-color: #454d55;
}

.media-chat-message .table-dark tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* Compact tables for .media-chat-message */
.media-chat-message .table-sm th,
.media-chat-message .table-sm td {
    padding: 0.3rem;
}

/* Table with fixed layout for .media-chat-message */
.media-chat-message .table-fixed {
    table-layout: fixed;
}

/* Table with text wrapping for .media-chat-message */
.media-chat-message .table-wrap td,
.media-chat-message .table-wrap th {
    white-space: normal;
    word-wrap: break-word;
}

/* Table with no wrapping for .media-chat-message */
.media-chat-message .table-nowrap td,
.media-chat-message .table-nowrap th {
    white-space: nowrap;
}

/* Chat message table specific styling */
.media-chat-message table {
    margin: 1rem 0;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.media-chat-message table th {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.media-chat-message table td {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive tables in chat messages */
@media screen and (max-width: 768px) {
    .media-chat-message table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
