:root {
    --bs-body-font-size: 0.95rem !important;
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 80px;
}

.scroll-sidebar, .navbar-brand {
    background-color: black;
}

#main-wrapper[data-layout=horizontal] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link, #main-wrapper[data-layout=vertical] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link {
    color: white;
}

.sidebar-item .sidebar-link:hover {
    color: #00D88C !important;
}

    #main-wrapper[data-layout=horizontal] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link .feather-icon, #main-wrapper[data-layout=horizontal] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link i, #main-wrapper[data-layout=vertical] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link .feather-icon, #main-wrapper[data-layout=vertical] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link i {
        color: #00D88C;
    }

    .nav-tabs .nav-item.show .nav-link, .nav-tabs .active{
        color: #202224 !important;
        border-bottom: 2px solid #202224 !important;
    }

.nav-tabs .nav-link {
    color: #141414 !important;
}

.sidebar-nav #sidebarnav .sidebar-item.selected > .sidebar-link {
    background: #00D88C !important;
    color: #141414 !important;
    border-radius: inherit !important;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.nav-small-cap .hide-menu {
    color: #00D88C !important;
}

.sidebar-link .active, .sidebar-item.selected > .sidebar-link .feather-icon {
    color: #141414 !important;
}

.topbar .top-navbar .navbar-header .navbar-brand{
    padding: 15px 30px 0 30px !important;
}

.page-breadcrumb .breadcrumb .breadcrumb-item a {
    color: #00D88C !important;
}

.breadcrumb-item .text-muted {
    color: #20CCB1 !important;
}

.text-bg-primary {
    color: #141414 !important;
    background-color: #20CCB1 !important;
}

/*.btn {
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}*/

.btn-primary {
    --bs-btn-color: #141414;
    --bs-btn-bg: #00D88C;
    --bs-btn-border-color: #00D88C;
    --bs-btn-hover-bg: #00bd7a;
    --bs-btn-hover-border-color: #00bd7a;
    --bs-btn-hover-color: #141414;
    --bs-btn-focus-shadow-rgb: 119,139,235;
    --bs-btn-active-color: #141414;
    --bs-btn-active-bg: #20CCB1;
    --bs-btn-active-border-color: #20CCB1;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #141414;
    --bs-btn-disabled-bg: #00D88C;
    --bs-btn-disabled-border-color: #00D88C
}

.btn-outline-primary {
    --bs-btn-color: #00D88C;
    --bs-btn-border-color: #00D88C;
    --bs-btn-hover-color: #141414;
    --bs-btn-hover-bg: #00D88C;
    --bs-btn-hover-border-color: #00D88C;
    --bs-btn-focus-shadow-rgb: 95, 118, 232;
    --bs-btn-active-color: #141414;
    --bs-btn-active-bg: #00D88C;
    --bs-btn-active-border-color: #00D88C;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #00D88C;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #00D88C;
    --bs-gradient: none;
}

input.invalid {
    border: 2px solid red;
}

.page-wrapper > .page-breadcrumb {
    max-width: 100% !important;
}

.page-wrapper > .container-fluid, .page-wrapper > .container-lg, .page-wrapper > .container-md, .page-wrapper > .container-sm, .page-wrapper > .container-xl, .page-wrapper > .container-xxl {
    max-width: 100% !important;
}

.dataTables_wrapper {
    padding-bottom:20px;
}

    .dataTables_wrapper .page-link {
        color: #20CCB1;
    }

    .dataTables_wrapper .dataTables_paginate, .dataTables_info {
        margin-top: 20px !important;
    }

    .dataTables_wrapper .dataTables_filter input[type="search"] {
        height: 38px;
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
        border-radius: 0.25rem;
        border: 1px solid #ced4da;
        background-color: #fff;
        width: auto;
        margin-bottom: 20px;
    }

    .dataTables_wrapper .dataTables_length select {
        height: 38px;
        font-size: 1rem;
        padding: 0.375rem 2rem 0.375rem 0.75rem;
        border-radius: 0.25rem;
        border: 1px solid #ced4da;
        background-color: #fff;
        appearance: none;
        margin-bottom: 20px;
    }

    .dataTables_wrapper .active > .page-link, .page-link.active {
        background-color: #00d88c;
        border-color: #00d88c;
        color: #141414;
    }

/*Layout principal*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f4f6f9;
}

.layout-wrapper {
    display: flex;
    height: 100vh;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    background-color: #1a1a1a;
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.logo-section {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 80px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-wrapper {
    flex: 1;
    padding: 0px;
    overflow-y: auto;
}

.toggle-sidebar-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.navbar .ms-auto {
    margin-left: auto !important;
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar-wrapper {
        position: fixed;
        width: var(--sidebar-width);
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }

        .sidebar-wrapper.open {
            left: 0;
        }

    .main-content-wrapper {
        width: 100%;
    }

    .toggle-sidebar-btn {
        display: inline-block;
    }
}

.page-wrapper > .container-fluid, .page-wrapper > .container-lg, .page-wrapper > .container-md, .page-wrapper > .container-sm, .page-wrapper > .container-xl, .page-wrapper > .container-xxl {
    padding: 20px !important;
}

.page-breadcrumb {
    padding: 30px 20px 0 !important;
}

/*Menu lateral*/

:root {
    --sidebar-width: 240px;
    --sidebar-width-collapsed: 80px;
}

body {
    overflow-x: hidden;
}

.layout-wrapper {
    display: flex;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
    transition: all 0.3s ease;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

html.sidebar-collapsed .sidebar-wrapper {
    width: var(--sidebar-width-collapsed);
}

.logo-section {
    padding: 1rem;
    text-align: center;
}

.main-content-wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    width: 100%;
}

html.sidebar-collapsed .main-content-wrapper {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

html.sidebar-collapsed .toggle-btn {
    transform: rotate(180deg);
}

html.sidebar-collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.sidebar-nav .feather-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 1.5;
}

html.sidebar-collapsed .hide-on-collapse,
html.sidebar-collapsed .list-divider,
html.sidebar-collapsed .nav-small-cap {
    display: none !important;
}

html.sidebar-collapsed .sidebar-link {
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

    html.sidebar-collapsed .sidebar-link .feather-icon {
        margin: 0 !important;
    }

.sidebar-wrapper.no-transition,
.sidebar-wrapper.no-transition ~ .main-content-wrapper {
    transition: none !important;
}

.sidebar-nav #sidebarnav .nav-small-cap{
    /*line-height: 0px !important;*/
}

.sidebar-nav #sidebarnav .sidebar-item .sidebar-link {
    padding: 12px 20px;
    line-height: 20px !important;
    margin-right: 5px;
}
.sidebar-nav #sidebarnav .nav-small-cap {
    padding: 0px 20px;
}

/*Table*/
.table > :not(caption) > * > * {
    padding: 16px 10px 8px 10px !important;
}

.form-check-input[type=checkbox], .form-check-input[type=radio] {
    border: 1px solid #7c8798;
}

/*Summernote*/
.modal-body {
    height: calc(100vh - 220px);
    overflow-y: auto;
}

.note-editor {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.note-editing-area {
    flex: 1;
    overflow-y: auto;
}

.note-editable b,
.note-editable strong, #divDoc b, #divDoc strong {
    font-weight: bold !important;
}

.note-editable ul, #divDoc ul{
    list-style: disc !important;
    margin-left: 20px !important;
}

.note-editable ol, #divDoc ol {
    list-style: decimal !important;
    margin-left: 20px !important;
}

.dropdown-menu {
    min-width: 180px;
    z-index: 1055;
}

/* ==== ESTILO MODERNO E SUAVE ==== */

/* Layout geral */
body {
    background-color: #f8f9fb;
    color: #1a1a1a;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* Cards e boxes */
.card, .dashboard-box, .bg-card, .ai-agent-card {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .dashboard-box:hover, .bg-card:hover, .ai-agent-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    }

/* Inputs e selects */
.form-control, select.form-select {
    border-radius: 10px !important;
    border: 1px solid #dee2e6;
    padding: 0.6rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus, select.form-select:focus {
        border-color: #00D88C;
        box-shadow: 0 0 0 4px rgba(0,216,140,0.2);
    }

/* Botões */
.btn {
    border-radius: 10px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00D88C, #20CCB1);
    border: none;
    color: #141414 !important;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #00c580, #1ebda3);
        box-shadow: 0 6px 16px rgba(0,216,140,0.3);
    }

/* Substitui botões outline para ficarem mais suaves */
.btn-outline-primary {
    border: 2px solid #00D88C;
    color: #00D88C !important;
    border-radius: 10px;
    color: #141414 !important;
}

    .btn-outline-primary:hover {
        background: #00D88C;
        color: #141414 !important;
    }

/* Tabelas */
.table {
    border-collapse: separate;
    border-spacing: 0 6px;
}

    .table > tbody > tr {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

        .table > tbody > tr:hover {
            background: #f5fdf9;
        }

/* Cards dentro de steps ou documentos */
.step-item {
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .step-item:hover {
        background-color: #f3fff9;
        transform: translateX(3px);
    }

/* Modais */
.modal-content {
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Badges e status */
.badge-status {
    border-radius: 12px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 6px 12px;
}

/* Navbar/topbar */
.topbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Sidebar mais suave */
.sidebar-wrapper {
    background: linear-gradient(160deg, #1a1c2e, #11121a);
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Hover mais suave no menu lateral */
.sidebar-link {
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .sidebar-link:hover {
        background: rgba(255,255,255,0.08);
    }

/* Tooltip e pequenos detalhes */
.tooltip-inner {
    background-color: #141414;
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* Scrollbar moderna */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0,0,0,0.3);
    }





/* Remove efeitos visuais estranhos quando tabela está vazia */
table.dataTable tbody tr.empty,
.dataTables_empty {
    background: #fafafa !important;
    color: #9ea1a7 !important;
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    border: none !important;
    box-shadow: none !important;
}

/* Ajusta espaçamento e bordas da tabela */
.table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100%;
}

    .table > thead > tr > th {
        background: #f9f9f9;
        font-weight: 600;
        color: #333;
        border-bottom: 2px solid #e6e6e6 !important;
        padding: 1rem;
    }

    .table > tbody > tr {
        background-color: #fff;
        transition: background-color 0.2s ease;
    }

        .table > tbody > tr:hover {
            background-color: #f8fffb;
        }

/* Remove sombras duplicadas que estavam nos cards com tabelas */
.card-body .table {
    box-shadow: none !important;
}

/* Melhor aparência quando vazio */
.dataTables_wrapper .dataTables_empty {
    padding: 40px 0;
    border-radius: 10px;
    background-color: #fcfcfc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* ======== BOTÕES DE AÇÃO NA TABELA ======== */
.table .btn,
.table .btn-sm {
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .table .btn:hover {
        transform: scale(1.05);
    }

/* ======== ESPAÇAMENTO GERAL ======== */
.page-wrapper > .container-fluid {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}

/* ======== TABELA MODERNA ======== */

.table-modern {
    border-collapse: separate;
    border-spacing: 0 6px;
    width: 100%;
}

    .table-modern thead th {
        background-color: #f9fafb;
        color: #444;
        font-weight: 600;
        text-transform: none;
        border: none !important;
        padding: 14px 16px;
    }

    .table-modern tbody tr {
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        transition: all 0.2s ease;
        border-radius: 10px;
    }

        .table-modern tbody tr:hover {
            background-color: #f5fdf9;
            transform: translateY(-1px);
        }

    .table-modern td {
        border-top: none !important;
        padding: 14px 16px;
        vertical-align: middle;
    }

/* Remove aquele fundo cinza alternado */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #ffffff !important;
}

/* ======== BOTÕES DE AÇÃO ======== */

.table-actions .btn {
    border-radius: 8px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: rgba(0,216,140,0.08);
    color: #00b97a;
    transition: all 0.2s ease;
}

    .table-actions .btn:hover {
        background-color: rgba(0,216,140,0.2);
        color: #008f5e;
        transform: scale(1.05);
    }

/* Botão de deletar */
.table-actions .btn-delete {
    background-color: rgba(255,0,0,0.08);
    color: #c81d25;
}

    .table-actions .btn-delete:hover {
        background-color: rgba(255,0,0,0.15);
    }

/* ======== STATUS (se houver badge) ======== */
.badge-status {
    background: #eef8f4;
    color: #00b97a;
    border-radius: 10px;
    font-weight: 500;
    padding: 5px 10px;
}

/* ======== CABEÇALHO DA TABELA ======== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px;
    background: #f0f0f0;
    color: #555 !important;
    transition: all 0.2s ease;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #00D88C !important;
        color: #fff !important;
    }

/* ======== EMPTY STATE ======== */
.dataTables_empty {
    padding: 40px 0;
    background-color: #fcfcfc;
    border-radius: 12px;
    color: #999;
    font-style: italic;
}

/* ======== AJUSTE GLOBAL ======== */
.table-modern td:first-child,
.table-modern th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table-modern td:last-child,
.table-modern th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ======== REFINAMENTO DA TABELA ======== */

/* Melhora contraste entre linhas */
.table-modern tbody tr {
    background-color: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background-color: #f9fefb;
    border-color: #00d88c30;
    box-shadow: 0 2px 6px rgba(0,216,140,0.08);
}

/* Melhora o espaçamento entre linhas e percepção de camadas */
.table-modern tbody tr + tr {
    margin-top: 6px;
}

/* Cabeçalho com fundo mais perceptível */
.table-modern thead th {
    background-color: #f4f6f8;
    border-bottom: 2px solid #e0e3e6 !important;
    color: #222;
    font-weight: 600;
}

/* Células com leve estrutura */
.table-modern td {
    border-top: none !important;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #333;
}

/* Linhas alternadas muito sutis */
.table-modern tbody tr:nth-child(odd) {
    background-color: #fcfcfc;
}

/* ======== BOTÕES DE AÇÃO MELHORADOS ======== */
.table-actions .btn {
    border-radius: 10px;
    padding: 6px 9px;
    background-color: rgba(0,216,140,0.12);
    color: #009c6c;
    font-size: 14px;
    border: none;
    transition: all 0.2s ease;
}

.table-actions .btn:hover {
    background-color: rgba(0,216,140,0.25);
    color: #007953;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,216,140,0.25);
}

/* Botão de deletar com mais contraste */
.table-actions .btn-delete {
    background-color: rgba(255,0,0,0.12);
    color: #c81d25;
}

.table-actions .btn-delete:hover {
    background-color: rgba(255,0,0,0.2);
    color: #a61016;
}

/* Ícones um pouco maiores */
.table-actions .btn i {
    font-size: 15px;
}

/* ======== EMPTY STATE MAIS VISÍVEL ======== */
.dataTables_empty {
    background-color: #f9fafb;
    border: 1px dashed #d8d8d8;
    color: #777;
    padding: 2.5rem 0;
    border-radius: 10px;
}

/* ======== CABEÇALHO MELHORADO ======== */
.table-modern thead th {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1e1e1e;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    padding: 14px 18px;
}

/* ======== LINHAS MAIS DEFINIDAS ======== */
.table-modern tbody tr {
    background-color: #fff;
    border: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

    .table-modern tbody tr:hover {
        background-color: #f9fefb;
    }

.table-modern tbody td {
    border-top: 1px solid #f0f0f0 !important; /* linha bem fina entre registros */
    padding: 14px 18px;
    font-size: 0.94rem;
    color: #222;
}

/* Remove linha dupla no topo */
.table-modern tbody tr:first-child td {
    border-top: none !important;
}

/* ======== BOTÕES ======== */
.table-actions .btn {
    border-radius: 8px;
    padding: 6px 9px;
    border: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-actions .btn-edit {
    background-color: rgba(0,216,140,0.12);
    color: #00a372;
}

    .table-actions .btn-edit:hover {
        background-color: rgba(0,216,140,0.25);
        color: #007953;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,216,140,0.25);
    }

.table-actions .btn-delete {
    background-color: rgba(255,0,0,0.1);
    color: #d03030;
}

    .table-actions .btn-delete:hover {
        background-color: rgba(255,0,0,0.18);
        color: #a01010;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(255,0,0,0.25);
    }

/* ======== PAGINAÇÃO FINAL AJUSTADA ======== */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding-top: 1rem;
}

    /* Reset completo para corrigir DataTables inline styles */
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        margin: 0 2px;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        background: #f9fafb !important;
        color: #00b87a !important;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.2s ease-in-out;
        box-shadow: none !important;
    }

        /* Hover */
        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background-color: #00d88c !important;
            color: #fff !important;
            border-color: #00d88c !important;
            box-shadow: 0 2px 6px rgba(0,216,140,0.25);
        }

        /* Botão ativo */
        .dataTables_wrapper .dataTables_paginate .paginate_button.current,
        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            background-color: #00d88c !important;
            color: #fff !important;
            border-color: #00d88c !important;
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(0,216,140,0.25);
        }

        /* Desabilitado */
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
            background-color: #f5f5f5 !important;
            color: #b5b5b5 !important;
            border-color: #e5e7eb !important;
            opacity: 0.7;
            cursor: not-allowed !important;
        }

        /* Remove outline feio */
        .dataTables_wrapper .dataTables_paginate .paginate_button:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        /* Suaviza hover quando ativo */
        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            transform: none;
        }


/* ==== Ajuste de estilo para subitens de Configurações ==== */

/* Quando o menu principal (Configurações) está ativo */
.sidebar-nav #sidebarnav .sidebar-item.selected > .sidebar-link {
    background: #00D88C !important;
    color: #141414 !important;
    border-radius: inherit !important;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

/* Subpáginas dentro de Configurações (ex: Produtos, Status Oportunidade) */
.sidebar-nav #sidebarnav .sidebar-item.selected .sidebar-item.selected > .sidebar-link {
    background: none !important;
    color: #00D88C !important;
    clip-path: none !important;
}

/* Mantém o pai "Configurações" com o ativo padrão (fundo verde) */
.sidebar-nav #sidebarnav .sidebar-item.selected > .sidebar-link {
    background: #00D88C !important;
    color: #141414 !important;
    border-radius: inherit !important;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

/* Subitem ativo dentro de "Configurações":
   - sem fundo
   - texto verde
   - ícone branco */
.sidebar-nav #sidebarnav .sidebar-item.selected .sidebar-item.selected > .sidebar-link {
    background: none !important;
    color: #00D88C !important; /* texto do link */
    clip-path: none !important;
}

    /* Força o ícone do subitem ativo a ficar branco */
    .sidebar-nav #sidebarnav .sidebar-item.selected .sidebar-item.selected > .sidebar-link .feather-icon,
    .sidebar-nav #sidebarnav .sidebar-item.selected .sidebar-item.selected > .sidebar-link i {
        color: #fff !important;
        stroke: #fff !important; /* para os SVGs do Feather */
    }