/* SMSBlog Autopublish — table styles */

.smsap-table-wrap {
    overflow-x: auto;
    margin: 1.5em 0;
    -webkit-overflow-scrolling: touch;
}

.smsap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93em;
    min-width: 620px;
    border-radius: 6px;
    overflow: hidden;
}

.smsap-table thead tr {
    background: #2c3e50;
}

.smsap-table th {
    background: #2c3e50;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: 0.01em;
}

.smsap-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    color: #333;
    line-height: 1.5;
}

.smsap-table tbody tr:hover {
    background: #f5f8ff;
    transition: background 0.15s;
}

.smsap-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.smsap-table tbody tr:nth-child(even):hover {
    background: #f0f5ff;
}

.smsap-table .leader-row td {
    background: #f0fff4 !important;
    font-weight: 500;
}

.smsap-table .leader-row:hover td {
    background: #e6ffee !important;
}

/* Dark mode support (newsmatic theme) */
body.newsmatic_dark_mode .smsap-table th {
    background: #1e2d42;
    color: #e0e6f0;
}

body.newsmatic_dark_mode .smsap-table td {
    border-bottom-color: #3a4a5c;
    color: #c9d1d9;
}

body.newsmatic_dark_mode .smsap-table tbody tr:nth-child(even) {
    background: #1a2332;
}

body.newsmatic_dark_mode .smsap-table tbody tr:nth-child(even):hover {
    background: #1e2d42;
}

body.newsmatic_dark_mode .smsap-table tbody tr:hover {
    background: #1e2d42;
}

body.newsmatic_dark_mode .smsap-table .leader-row td {
    background: #0d2618 !important;
    color: #7dcea0;
}
