body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ecf9ec;
}

div {
    margin-bottom: 10px;
}

label {
    padding-top: 15px;
    display: block; /* Alteração para exibir os rótulos como blocos */
}

select, input {
    padding: 10px;
    box-sizing: border-box;
    width: 150px;
}

#registrosPorPagina
{
    width: 75px;
}

#conteudo {
    margin-top: 10px;
    text-align: center;
    padding-bottom: 10px;
}

#conteudo div {
/*    padding-bottom: 10px;*/
}

#menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 10px;
}

#menu label, #menu select
{
    margin-bottom: 5px;
}

table {
    width: 98%;
    margin-left: 1%;
    margin-right: 1%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #a3cca3;
}

thead {
    background-color: #81c781;
}

th, td {
    padding: 10px;
    text-align: left;
}

thead th {
    padding: 5px;
}

th:not(:first-child):not(:last-child) {
    line-height: 35px;
    min-width: 200px;
}

.first-cell,
.last-cell {
    text-align: center;
    max-width: 90px;
}

.centered-td {
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #d1f4d1;
}

.busca-row input {
    width: 100%;
/*    margin-bottom: 5px;*/
}

.ordenar {
    cursor: pointer;
}

.ordenar:hover {
    background-color: #4cae4c;
}

.limpar-filtros, .adicionar {
    padding: 10px 5px;
    background-color: #d9534f;
    color: #fff;
    border: none;
    cursor: pointer;
    min-width: 90px;
    max-width: 150px;
}

.adicionar {
    background-color: #0bc8f5;
}

.adicionar:hover {
    border-bottom: 1px solid #337a8b;
    border-right: 1px solid #337a8b;
}

.limpar-filtros:hover {
    border-bottom: 1px solid #8b0606;
    border-left: 1px solid #8b0606;
}

.visualizar-editar {
    text-decoration: none;
    color: #4cae4c;
    cursor: pointer;
}

.visualizar-editar:hover {
    text-decoration: underline;
}

.pagination-container {
    text-align: center;
    display: inline-flex;
}

.pagination-row {
    margin: 0;
    padding: 0;
    display: block;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: inline;
    margin: 10px;
    width: 100%;
    box-sizing: border-box;
}

.pagination-item a {
    color: #fff;
    width: 80px;
    padding: 10px;
    border-radius: 3px;
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
    background-color: #4cae4c;
}

.pagination-item a:hover {
    background-color: #398439;
}

.pagination-item span {
    line-height: 40px;
}

#pelicula {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding-top: 20%;
    z-index: 999;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #4cae4c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-left: calc(50% - 32px);
}

#inclusaoRegistro {
    width: 50%;
    margin: 0 auto;
    background-color: #fff;
    padding: 1px 20px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#inclusaoRegistro label, #inclusaoRegistro input {
/*    display: block;*/
    margin-bottom: 10px; /* Adiciona um espaçamento entre os campos */
}

#inclusaoRegistro .btnCadastrar {
    background-color: #4cae4c;
/*    margin-top: 30px;*/
    cursor: pointer;
    color: #fff;
}

#inclusaoRegistro label {
    padding-top: 5px; /* Reduz o espaçamento superior do rótulo */
}

#inclusaoRegistro input, #inclusaoRegistro select, .desisteInclusao {
    width: calc(100% - 20px); /* Ajusta a largura para ocupar 100%, considerando o espaçamento interno */
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
}

label {
    font-weight: bold;
}

.desisteInclusao {
    background-color: red;
    margin-bottom: 20px;
    cursor: pointer;
    color: #fff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 600px) {
    table {
        width: 100%;
        border-collapse: collapse;
    }
    th {
        text-align: center;
    }

    tr {
        border: 1px solid #a3cca3;
        margin-bottom: 10px;
    }

    td {
        border: none;
        position: relative;
/*        padding: 0 10px 5px 10px;*/
    }

    td:first {
        padding-top: 10px;
    }

    td:last {
        padding-bottom: 10px;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }

    .busca-row input, .busca-row select, .limpar-filtros {
        width: 90%;
        margin: 0 auto;
    }

    #inclusaoRegistro {
        width: 85%;
    }

    .pagination-container {
/*        display: flex;*/
/*        flex-direction: column;*/
    }

    .pagination-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 10px;
    }

    .pagination-item {
        width: 25%;
        margin: 0px;
        display: inline-block;
        box-sizing: border-box;
    }

    .pagination-item a {
        padding: 20px 2px;
        margin: auto 4px;
        width: 70px;
    }
}