/* Estilos para tabelas nas notícias */
.news-content table,
.article-body table,
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.news-content table th,
.article-body table th,
.content table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content table td,
.article-body table td,
.content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    line-height: 1.5;
}

.news-content table tr:nth-child(even),
.article-body table tr:nth-child(even),
.content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.news-content table tr:hover,
.article-body table tr:hover,
.content table tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}

/* Responsividade para tabelas */
@media (max-width: 768px) {
    .news-content table,
    .article-body table,
    .content table {
        font-size: 12px;
    }
    
    .news-content table th,
    .article-body table th,
    .content table th,
    .news-content table td,
    .article-body table td,
    .content table td {
        padding: 8px 10px;
    }
    
    /* Scroll horizontal para tabelas grandes em mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
}

/* Estilos especiais para diferentes tipos de tabela */
.table-striped {
    background-color: transparent;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

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

/* Tabelas com destaque */
.table-highlight th {
    background-color: #007bff;
    color: white;
}

.table-success th {
    background-color: #28a745;
    color: white;
}

.table-warning th {
    background-color: #ffc107;
    color: #212529;
}

.table-danger th {
    background-color: #dc3545;
    color: white;
}

/* Células com alinhamento específico */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* Números e valores monetários */
.table td.number,
.table td.currency {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Cabeçalhos de seção */
.table th.section-header {
    background-color: #6c757d;
    color: white;
    text-align: center;
    font-weight: bold;
}

/* Totais e subtotais */
.table tr.total td {
    font-weight: bold;
    background-color: #e9ecef;
    border-top: 2px solid #6c757d;
}

/* Wrapper responsivo automático */
.auto-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Indicador de scroll em mobile */
@media (max-width: 768px) {
    .auto-table-wrapper::after {
        content: "← Deslize para ver mais →";
        display: block;
        text-align: center;
        font-size: 12px;
        color: #6c757d;
        padding: 10px;
        background-color: #f8f9fa;
        border-top: 1px solid #dee2e6;
    }
    
    .auto-table-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .auto-table-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .auto-table-wrapper::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .auto-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}