/* Submissão SMARS Pro - Custom CSS */

/* Ajuste para tabelas DataTables */
table.dataTable {
    width: 100% !important;
    margin: 0 auto !important;
    clear: both;
    border-collapse: separate !important;
    border-spacing: 0;
}

/* Ajuste de colunas para acomodar texto em PT-BR */
table.dataTable thead th,
table.dataTable thead td {
    padding: 10px 8px !important;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    white-space: nowrap;
}

table.dataTable tbody th,
table.dataTable tbody td {
    padding: 8px 8px !important;
    vertical-align: middle;
}

/* Coluna ID */
table.dataTable tbody td:first-child,
table.dataTable thead th:first-child {
    width: 40px !important;
    text-align: center;
}

/* Coluna Título - mais espaço */
table.dataTable thead th:nth-child(2),
table.dataTable tbody td:nth-child(2) {
    min-width: 180px !important;
    max-width: 300px !important;
}

/* Coluna Avaliação */
table.dataTable thead th:nth-child(3),
table.dataTable tbody td:nth-child(3) {
    min-width: 120px !important;
    text-align: center;
}

/* Coluna Estado */
table.dataTable thead th:nth-child(4),
table.dataTable tbody td:nth-child(4) {
    min-width: 90px !important;
    text-align: center;
}

/* Coluna Preferência */
table.dataTable thead th:nth-child(5),
table.dataTable tbody td:nth-child(5) {
    min-width: 100px !important;
    text-align: center;
}

/* Coluna Data de submissão */
table.dataTable thead th:nth-child(6),
table.dataTable tbody td:nth-child(6) {
    min-width: 140px !important;
}

/* Coluna Anexo */
table.dataTable thead th:nth-child(7),
table.dataTable tbody td:nth-child(7) {
    width: 50px !important;
    text-align: center;
}

/* Coluna Ação */
table.dataTable thead th:last-child,
table.dataTable tbody td:last-child {
    min-width: 120px !important;
    text-align: center;
}

/* Ajuste para responsividade */
@media screen and (max-width: 1200px) {
    table.dataTable {
        font-size: 13px;
    }

    table.dataTable thead th,
    table.dataTable tbody td {
        padding: 6px 4px !important;
    }
}

/* Container da tabela */
.dataTables_wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    clear: both;
}

/* Controles de paginação */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
}

/* Busca */
.dataTables_wrapper .dataTables_filter input {
    margin-left: 8px;
}

/* Links de ação */
table.dataTable tbody td a {
    margin: 0 3px;
    text-decoration: none;
}

/* Evitar quebra de linha em células pequenas */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    white-space: nowrap;
}
