/* Estilo padrão para telas grandes */
#tabela-freedo table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

#tabela-freedo th,
#tabela-freedo td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

/* Estilos gerais até 1024px */
@media (max-width: 1024px) {
    .section-body {
        background: #fff;
        border-radius: 30px;
    }

    .card-body {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
        background-color: #fff;
        border-radius: 3px;
        border: none;
        position: relative;
        margin-bottom: 30px;
    }

    .col-6 .btcadastro {
        border-radius: 30px;
        margin: 18px;
        position: absolute;
        top: -75px;
        right: -20px;
        background-color: var(--corprincipal);
        border: none;
    }

    .section .section-header {
        max-width: 180px;
    }

    table#tabela-freedo a i,
    #tabela-freedo table i {
        padding: 2px !important;
        border-radius: 10px;
        color: #6c757d !important;
        margin-top: 10px;
    }

    li#li-moedas {
        font-size: 10px;
        position: absolute;
        top: 52px;
        right: 17px;
    }

    .col-6 button.btn.btn-sm.btn-primary.btcadastro {
        position: absolute;
        right: -120%;
    }

    .float-left h6 {
        padding-left: 30px;
        font-size: 17px;
    }

    /* Scroll horizontal para tabela entre 800px e 1024px */
    .table-responsive {
        overflow-x: auto;
    }

    #tabela-freedo table {
        min-width: 800px;
        table-layout: fixed;
    }

    #tabela-freedo th:first-child,
    #tabela-freedo td:first-child {
        /*width: 25%;*/
        width: 100%;
        word-wrap: break-word;
    }
}

/* Estilo para telas menores que 800px */
@media only screen and (max-width: 800px) {
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* Transforma tabela em blocos */
    #tabela-freedo table,
    #tabela-freedo thead,
    #tabela-freedo tbody,
    #tabela-freedo th,
    #tabela-freedo td,
    #tabela-freedo tr {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    #tabela-freedo thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #tabela-freedo tr {
        border: 1px solid #dedede;
        border-radius: 20px;
        margin: 10px 0;
    }

    #tabela-freedo td {
        border-bottom: 1px solid #eee;
        position: relative;
        padding: 8px;
        white-space: normal;
        text-align: left;
        min-height: 42px;
    }

    #tabela-freedo td:before {
        content: attr(data-title);
        display: block;
        font-weight: bold;
        margin-bottom: 6px;
        line-height: 13px;
    }

    #tabela-freedo td.align-middle:empty {
        display: none;
    }

    #tabela-freedo td.align-middle:last-child {
        padding: 0;
    }

    #form-passo1 #tabela-freedo tr {
        max-width: 229px;
    }

    input.form-control.form-control-sm {
        max-width: 220px;
    }

    tr.text-danger {
        width: 220px;
    }
}
