﻿/*MISC*/
.dropdown-menu.dropdown-menu-left {
    left: 3px !important;
    width: 96% !important;
    overflow-x: auto !important;
    max-height: 300px !important;
    height: auto !important;
}

.redesign ul {
    list-style: none;
    margin: 0;
}

#chat-main-container div.chat-badge {
    margin-top: 65px !important;
    cursor: pointer !important;
    box-shadow: 0px 1px 4px 0px #00000063 !important;
}
.redesign .section-title-bar {
    color: rgba(0, 0, 0, 0.5) !important;
    font-size: 22px;
}
.redesign .section-title-bar::before {
    content: '';
    border-radius: 25px;
    border-left: 6px solid var(--redesign-primary-color);
    margin-right: .6rem;
    opacity: 0.7;
}

/*LOADING*/
#carregando_novo {
    width: 35% !important;
    height: 25% !important;
    margin: 22% auto !important;
    border-radius: var(--default-border-radius) !important;
    font-weight: bold !important;
    padding: 2rem !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: initial !important;
}

    #carregando_novo img {
        margin-bottom: 2rem !important;
        width: 0px !important;
        height: 0px !important;
    }

.text_carregando::before {
    content: '';
    width: 50px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--redesign-primary-color);
    -webkit-mask: repeating-conic-gradient(#0000 0deg,#000 1deg 70deg,#0000 71deg 90deg), radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: spin 1s ease-in-out infinite;
    display: block;
    margin: 0 auto;
    margin-bottom: 3rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.gradient-wave {
    position: relative;
    background: linear-gradient(90deg, var(--redesign-primary-color), var(--redesign-secondary-color));
    overflow: hidden;
    z-index: 0; /* cria o contexto de empilhamento */
}

    .gradient-wave::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient( from 0deg, var(--redesign-primary-color), var(--redesign-secondary-color), var(--redesign-primary-color) );
        animation: spin 6s linear infinite;
        filter: blur(80px);
        opacity: 0.5;
        z-index: -1; /* 🔥 mantém atrás do conteúdo */
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.redesign table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100%;
    font-family: var(--redesign-font-family) !important;
}

/* DataTables com scroll clona o thead em um wrapper; evita "vão" entre head e primeira linha */
.redesign .dataTables_scrollHead table,
.redesign .dataTables_scrollBody table,
.redesign .dt-scroll-head table,
.redesign .dt-scroll-body table {
    margin-bottom: 0 !important;
    border-spacing: 0 !important;
}

.redesign .dataTables_scrollHead,
.redesign .dt-scroll-head {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.redesign .dataTables_scrollBody,
.redesign .dt-scroll-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.redesign thead {
    border-radius: var(--default-border-radius) !important;
}
.redesign thead th {
    text-transform: capitalize !important;
    color: #333 !important;
}

.redesign thead th:first-child {
    border-top-left-radius: var(--default-border-radius) !important;
}

.redesign thead th:last-child {
    border-top-right-radius: var(--default-border-radius) !important;
}

.redesign tbody td:first-child {
    border-bottom-left-radius: var(--default-border-radius) !important;
}
.redesign tbody td:last-child {
    border-bottom-right-radius: var(--default-border-radius) !important;
}


.redesign .table-actions-cell {
    text-align: center;
    white-space: nowrap;
}

.redesign .table-actions-cell button {
    width: 38px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background-color: var(--redesign-primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.redesign .table-actions-cell button:hover {
    background-color: var(--redesign-secondary-color);
}

.redesign .table-actions-cell button .botaoTabela {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #fff !important;
}