/* SM HTML Table Builder - Frontend Styles */

.SM-blocks.styled-table {
    margin: 2rem auto;
    max-width: 850px;
    overflow-x: auto;
}

.SM-blocks.styled-table.content-centered {
    text-align: center;
}

.SM-blocks.styled-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: #fff;
}

/* Header row styling */
.SM-blocks.styled-table tr.highlight-lvl-2 {
    background: #2a3f5f;
    color: #fff;
}

.SM-blocks.styled-table tr.highlight-lvl-2 td {
    padding: 12px 15px;
    font-weight: 500;
    border: none;
}

.SM-blocks.styled-table tr.highlight-lvl-2 strong {
    color: #fff;
    font-weight: 600;
}

.SM-blocks.styled-table tr.highlight-lvl-2:hover {
    background: #2a3f5f;
}

/* Body rows */
.SM-blocks.styled-table tbody tr {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.SM-blocks.styled-table tbody tr:last-child {
    border-bottom: none;
}


.SM-blocks.styled-table td {
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
    color: #333;
}

/* Highlight first column styling */
.SM-blocks.styled-table td.highlight.subtle {
    background: #f5f7fa;
    font-weight: 500;
    color: #2a3f5f;
}

.SM-blocks.styled-table td.highlight.subtle b,
.SM-blocks.styled-table td.highlight.subtle strong {
    color: #2a3f5f;
}

/* Text alignment classes */
.SM-blocks.styled-table td.align-left {
    text-align: left;
}

.SM-blocks.styled-table td.align-center {
    text-align: center;
}

.SM-blocks.styled-table td.align-right {
    text-align: right;
}

/* Dark mode support */
.darkmode--activated .SM-blocks.styled-table table {
    background: #1a1a1a;
}

.darkmode--activated .SM-blocks.styled-table tbody tr {
    background: #1a1a1a;
    border-color: #333;
}

.darkmode--activated .SM-blocks.styled-table tbody tr:hover {
    background: #252525;
}

.darkmode--activated .SM-blocks.styled-table td {
    color: #e0e0e0;
    border-color: #333;
}

.darkmode--activated .SM-blocks.styled-table td.highlight.subtle {
    background: #252525;
    color: #b0b0b0;
}

.darkmode--activated .SM-blocks.styled-table td.highlight.subtle b,
.darkmode--activated .SM-blocks.styled-table td.highlight.subtle strong {
    color: #fff;
}

.darkmode--activated .SM-blocks.styled-table tr.highlight-lvl-2 {
    background: #1e3a5f;
}

/* Responsive */
@media (max-width: 768px) {
    .SM-blocks.styled-table {
        margin: 1rem 0;
    }
    
    .SM-blocks.styled-table table {
        font-size: 14px;
    }
    
    .SM-blocks.styled-table td {
        padding: 8px 10px;
    }
}
