.list-group {
    margin-bottom: 20px; /* Espaço entre as listas */
}

.list-group + .list-group {
    margin-top: 20px; /* Espaço acima da segunda lista */
}


/* Centralizar os botões lateralmente */
.list-group, .mt-4 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

/* Estilo para os botões laterais */
.list-group-item {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.list-group-item:hover {
    background-color: #e2e6ea;
}

/* Melhorar o alinhamento dos títulos */
h5 {
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

/* Wrapper da tabela com altura fixa para permitir rolagem */
.table-wrapper {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    position: relative;
}

/* Estilos para as tabelas */
.table {
    width: 100%;
    margin-bottom: 20px;
    table-layout: fixed;
}


.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
    vertical-align: middle;
    min-width: 80px;
}

/* Fixar o cabeçalho no topo da tabela ao rolar */
.table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa !important; /* Adicionado !important para garantir que o background-color seja mantido */
    color: #333;
    border-bottom: 1px solid #ddd; /* Alterar a cor da borda inferior do cabeçalho */
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

/* Garantir que o conteúdo da tabela não sobreponha o cabeçalho */
.table tbody tr {
    z-index: 1;
}

/* Alternar as cores das linhas */
.table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}



/* Remover a barra de rolagem visível */
.table-wrapper::-webkit-scrollbar {
    display: none;
}

/* Ajuste do modal */
.modal-body {
    padding: 10px;
}

.form-label {
    margin-bottom: 5px;
}

.form-control {
    padding: 5px;
    font-size: 0.9rem;
}

.form-check-label, .form-select, .form-control {
    font-size: 0.9rem;
    padding: 5px;
}

fieldset {
    padding: 10px;
    margin-bottom: 10px;
}

legend {
    font-size: 0.95rem;
}

.modal-footer .btn {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.modal-body .row {
    margin-bottom: 10px;
}

/* Estilo para as opções de status */
fieldset {
    border: 1px solid #ddd;
    padding: 10px;
}

legend {
    font-weight: bold;
    font-size: 1rem;
}

/* Estilo dos campos de input */
.form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Estilo para o modal de adicionar suíno */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tabela de registro de saúde */
.table-wrapper-health {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    position: relative;
}

.table-wrapper-health::-webkit-scrollbar {
    display: none;
}

.list-group-item i {
    margin-right: 5px; /* Espaço à direita do ícone */
    font-size: 1.2em; /* Ajusta o tamanho do ícone */
    vertical-align: middle; /* Alinha verticalmente com o texto */
}
