th, td {
    padding: 0.5rem;
    font-size: 1rem;
}

th {
    font-weight: normal;
    background: var(--cor-link);
    color: white;
    line-height: normal;
    border-bottom: 3px solid var(--cor-warmgray-escuro);
}

body.alto-contraste th {
    background: black;
    color: white;
    border-top: 1px solid white;
    border-bottom: 3px solid white;
}

th:first-child {
    border-top-left-radius: 4px;
}

th:last-child {
    border-top-right-radius: 4px;
}

tr {
    /* border-bottom: 1px solid var(--cor-warmgray-claro); */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15);
    /*todo verificar se margin bottom 1rem quebra algo, senão remova*/
    margin-bottom: 1rem;
}

body.alto-contraste tr {
    border-bottom: 1px solid white;
}

.ctn-tabela {
    height: calc(100vh - var(--altura-menu) - 2rem);
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
}

.botoes-docados .ctn-tabela {
    height: calc(100vh - var(--altura-menu) - 2rem - 4rem);
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
}

.ctn-tabela > * {
    flex: 0 0 auto;
}

.ctn-tabela > .dados {
    flex: 1 1 auto;
    overflow: auto;
    width: calc(100% + 2rem);
    padding: 1rem;
    margin-left: -1rem;
}

.ctn-tabela > .acoes {
    display: flex;
    align-items: center;
    justify-content: center;
}

table.th-fixo th {
    position: sticky;
    top: 0;
}

@media (min-width: 1024px) {
    .ctn-tabela .acoes input[type="search"] {
        flex: 0 0 300px;
    }

    tr {
        box-shadow: none;
        margin-bottom: 0;
    }

    .ctn-tabela > .dados {
        flex: 1 1 auto;
        overflow: auto;
        width: 100%;
        padding: 0;
        margin-left: 0;
    }
}

.ctn-tabela h1 {
    margin: 0;
}