.table-scroll {
    width: 100%;
}

table {
    width: 99%;
    border-collapse: collapse;
    position: relative;
}

@media screen and (max-width: 767px){
    table {
        width: 100%;
    }
}

table thead {
    background-color: #fff;
    border-bottom: 1px solid var(--ui-color-neutral-40);
    position: sticky;
    top: 0;
    z-index: 10;
}

table thead.sticky {
    border-bottom: none;
    box-shadow: var(--ui-box-shadow-v-4);
}

table thead::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 100%;
    background: #fff;
    top: 0;
    right: -12px;
}

table thead::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 100%;
    background: #fff;
    top: 0;
    left: -12px;
}

table thead tr th {
    padding: 12px;
    text-align: left;
    font: var(--ui-text-font-p);
}

table tbody tr td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--ui-color-neutral-20);
    color: var(--ui-color-neutral-100);
    z-index: 1;
    position: relative;
}

table tbody tr td .icones {
    display: flex;
    align-items: center;
    gap: 8px;
}

table tbody tr td .icone-table {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--ui-color-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
}

table tbody tr td .icone-table.red {
    border-color: var(--ui-color-red-100);
}

table tbody tr td .icone-table.disabled {
    border-color: var(--ui-color-neutral-40);
    cursor: not-allowed;
    pointer-events: none;
}

table tbody tr td .icone-table span {
    color: var(--ui-color-primary);
    font-size: 20px;
    user-select: none;
}

table tbody tr td .icone-table.red span {
    color: var(--ui-color-red-100);
}

table tbody tr td .icone-table.disabled span {
    color: var(--ui-color-neutral-40);
}

table tbody tr td .icone-table:active {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
}

table tbody tr td .icone-table.disabled:active {
    transform: scale(1);
}

table tbody tr td .icone-table:hover {
    background-color: var(--ui-color-primary);
}

table tbody tr td .icone-table.red:hover {
    background-color: var(--ui-color-red-100);
}

table tbody tr td .icone-table.disabled:hover {
    background-color: transparent;
}

table tbody tr td .icone-table:hover span {
    color: #fff;
}

table tbody tr {
    position: relative;
}

table tbody tr.action {
    position: relative;
    cursor: pointer;
}

table tbody tr::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--ui-color-primary);
    opacity: 0;
    z-index: 0;
}

table tbody tr:hover::after {
    opacity: .04;
}

table tbody tr td .tag {
    padding: 4px 12px;
    border-radius: 12px;
    color: #fff;
}

table tbody tr td .tag.ativo {
    background-color: var(--ui-color-green-100);
}

table tbody tr td .tag.inativo {
    background-color: var(--ui-color-red-100);
}

table tbody tr td .tag.pendente {
    background-color: var(--ui-color-yellow-100);
}

table tbody tr td.nowrap {
    white-space: nowrap;
}

.flex-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ui-color-neutral-100);
}

.icon-cell {
    font-size: 18px;
    color: var(--ui-color-neutral-60);
}

table tbody tr td.texto-recado {
    max-width: 32ch;
    min-width: 24ch;
}

@media screen and (max-width: 767px){
    table tbody tr td.texto-pergunta,
    table tbody tr td.titulo-manual {
        max-width: 32ch;
        min-width: 24ch;
    }
}

table tbody tr td .img {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
}

table tbody tr td .img.thumb {
    height: 40px;
    min-height: 40px;
    width: auto;
    border-radius: 0;
    justify-content: flex-start;
}

table tbody tr td .img.thumb {
    min-width: 56px;
}

table tbody tr td .img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

table tbody tr td .link-table {
    color: var(--ui-color-neutral-100);
}

table tbody tr td .link-table:hover {
    text-decoration: underline;
}

@media screen and (max-width: 992px){
    #listaUsuarios td,
    #listaVideo td,
    #listaEstabelecimentos td,
    #listaParceiros td,
    #listaFAQ td:not(.texto-pergunta),
    #listaTermo td,
    #listaManual td:not(.titulo-manual)
    {
        white-space: nowrap;
    }

    .table-scroll {
        overflow-x: auto;
    }
}

