.table-responsive {
    max-width: 100%; /* Define 50% da largura da tela */
    margin: 0 auto; /* Centraliza a tabela horizontalmente */
}

.table {
    table-layout: fixed; /* Garante que as colunas tenham largura consistente */
    width: 100%;
}

tbody {
    display: block; /* Torna o corpo da tabela um bloco para aplicar scroll */
    max-height: 45vh; /* Define a altura máxima com scroll */
    height: 45vh; /* Define a altura máxima com scroll */
    overflow-y: auto; /* Ativa o scroll vertical */
}

thead, tbody tr {
    display: table; /* Garante que as linhas do cabeçalho e do corpo mantenham o formato da tabela */
    width: 100%;
    table-layout: fixed; /* Consistência na largura das colunas */
}

thead {
    width: 100%;
}

th:nth-child(1), td:nth-child(1){
    width: 50px;
    text-align: end; 
}

th:nth-child(5), td:nth-child(5) {
    width: 70px;  
    text-align: center; 

}

th:nth-child(8), td:nth-child(8) {
    width: 90px; 
    text-align: center; 
}


.table-apelido-medicamento {
    table-layout: fixed;
    width: 100%;
}

.table-apelido-medicamento .col-procedimento { width: 140px; }
.table-apelido-medicamento .col-tratamento   { width: 180px; }
.table-apelido-medicamento .col-medicamento  { width: 220px; }
.table-apelido-medicamento .col-usuario      { width: 150px; }

.table-apelido-medicamento .text-truncate-cell {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
