﻿body.dark-theme {
    background-color: #141432 !important;
    color: #e4e6eb !important;
}

.dark-theme .kt-portlet {
    background-color: #1D1D42 !important;
    border: 1px solid #2d3348 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.dark-theme .kt-portlet__head {
    border-bottom: 1px solid #2d3348 !important;
    background-color: #1D1D42 !important;
}

.dark-theme .form-control {
    background-color: #1e2235 !important;
    color: #e4e6eb !important;
    border: 1px solid #3a405c !important;
    transition: border-color 0.2s ease-in-out;
}

    .dark-theme .form-control:focus {
        border-color: #4a5275 !important;
        box-shadow: 0 0 0 2px rgba(74, 82, 117, 0.25) !important;
    }

.dark-theme .border-primary {
    border-color: #3a405c !important;
}

.dark-theme .kt-header {
    border-bottom: 1px solid #2d3348 !important;
}

.dark-theme .kt-aside {
    background-color: #242736 !important;
    border-right: 1px solid #2d3348 !important;
}

.dark-theme .kt-subheader_wrapper h6 {
    color: #e4e6eb !important;
}

.dark-theme tr {
    background-color: #242736 !important;
    transition: background-color 0.2s ease-in-out;
}

    .dark-theme tr:hover {
        background-color: #2a2f42 !important;
    }

    .dark-theme tr:nth-child(odd) {
        background-color: #1e2235 !important;
        color: #e4e6eb !important;
    }

    .dark-theme tr.dark-row,
    .dark-theme tr:nth-child(even) {
        background-color: #242736 !important;
        color: #e4e6eb !important;
    }

        .dark-theme tr.dark-row td,
        .dark-theme tr:nth-child(even) td {
            color: #e4e6eb !important;
        }

.dark-theme td {
    color: inherit !important;
    border-color: #2d3348 !important;
}

.dark-theme legend {
    background-color: #242736 !important;
    color: #e4e6eb !important;
    border: 1px solid #2d3348 !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
}

.dark-theme .legend.col-12 {
    background-color: #242736 !important;
    color: #e4e6eb !important;
    border-radius: 4px;
}

.dark-theme h5.m-0 {
    color: #e4e6eb !important;
    font-weight: 500;
}

.dark-theme .btn.btn-metal {
    background-color: #3a405c !important;
    color: #e4e6eb !important;
    border: 1px solid #4a5275 !important;
}

    .dark-theme .btn.btn-metal:hover {
        background-color: #4a5275 !important;
        color: #ffffff !important;
    }

    .dark-theme .btn.btn-metal:active {
        background-color: #2d3348 !important;
        border-color: #3a405c !important;
    }

.dark-theme .btn.btn-secondary {
    background-color: #242736 !important;
    color: #e4e6eb !important;
    border: 1px solid #3a405c !important;
}

    .dark-theme .btn.btn-secondary:hover {
        background-color: #2a2f42 !important;
        border-color: #4a5275 !important;
    }

    .dark-theme .btn.btn-secondary:active {
        background-color: #1e2235 !important;
        border-color: #3a405c !important;
    }

    .dark-theme .btn.btn-secondary:focus {
        box-shadow: 0 0 0 2px rgba(74, 82, 117, 0.25) !important;
    }

.btn.btn-secondary {
    background-color: #e4e6eb;
    color: #464E5F;
    border: 1px solid #E4E6EF;
}

    .btn.btn-secondary:hover {
        background-color: #d7dae7;
        border-color: #d7dae7;
    }

    .btn.btn-secondary:active {
        background-color: #E4E6EF;
        border-color: #E4E6EF;
    }

.dark-theme .text-center {
    text-align: center !important;
}

.dark-theme .tr .anulacaoEmpenho,
.dark-theme .tr .tipoLancamentoDois {
    color: #e4e6eb !important;
}

.dark-theme .form-control:hover {
    border-color: #4a5275 !important;
}

.dark-theme *:focus {
    outline-color: #4a5275 !important;
}

.dark-theme .dropdown-menu {
    background-color: #1D1D42 !important;
    border: 1px solid #2d3348 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

    .dark-theme .dropdown-menu a {
        color: #e4e6eb !important;
        padding: 0.5rem 1rem !important;
    }

        .dark-theme .dropdown-menu a:hover {
            background-color: #242736 !important;
            color: #e4e6eb !important;
        }

    .dark-theme .dropdown-menu.dropdown-menu-right.custom-dropdown {
        background-color: #1D1D42 !important;
        border-color: #2d3348 !important;
    }

    .dark-theme .dropdown-menu .dropdown-divider {
        border-color: #2d3348 !important;
    }

.dark-theme .select2-container--default .select2-selection--single {
    background-color: #1E2235 !important;
    border: 1px solid #3a405c !important;
    border-radius: 4px;
}

.dark-theme .select2-selection__rendered {
    background-color: #1E2235 !important;
    color: #e4e6eb !important;
    line-height: 35px !important;
}

.dark-theme .select2-dropdown {
    background-color: #1E2235 !important;
    border: 1px solid #3a405c !important;
}

.dark-theme .select2-results__option {
    color: #e4e6eb !important;
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

    .dark-theme .select2-container--default .select2-results__option--highlighted[aria-selected],
    .dark-theme .select2-results__option:hover {
        background-color: #007bff !important;
        color: #e4e6eb !important;
    }

.dark-theme .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #141432 !important;
    color: #e4e6eb !important;
}

    .dark-theme .select2-container--default .select2-results__option[aria-selected=true]:hover {
        background-color: #1D1D42 !important;
    }

.dark-theme .select2-search__field {
    background-color: #1E2235 !important;
    color: #e4e6eb !important;
    border: 1px solid #3a405c !important;
}

.dark-theme .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 35px;
}

    .dark-theme .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #e4e6eb transparent transparent transparent !important;
    }

.dark-theme .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4a5275 !important;
    box-shadow: 0 0 0 2px rgba(74, 82, 117, 0.25) !important;
}

.dark-theme .alert, .alert-light, .alert-elevate {
    background-color: #1D1D42;
}

.dark-theme .card {
    background-color: #1D1D42;
    color: #e4e6eb;
}

.dark-theme .btn, .btn-secondary {
    color: #e4e6eb;
}

.dark-theme .chart-container {
    color: #e4e6eb;
}

.dark-theme .accordion {
    background-color: #1D1D42 !important;
    border: 1px solid #2d3348 !important;
    padding: 0.5rem !important;
    color: #e4e6eb !important;
}

.dark-theme .card-header {
    background-color: #242736 !important;
    border-bottom: 1px solid #2d3348 !important;
    padding: 1rem;
}

.dark-theme .accordion .card {
    background-color: #1D1D42 !important;
    color: #e4e6eb !important;
    margin-bottom: 0.5rem;
}

.dark-theme .card-title {
    color: #e4e6eb !important;
    margin: 0;
}

.dark-theme .collapse,
.dark-theme .collapsing {
    background-color: #1e2235 !important;
    color: #e4e6eb !important;
}

.dark-theme .card-header:hover {
    background-color: #2a2f42 !important;
    transition: background-color 0.2s ease-in-out;
}

.dark-theme .calendar-container {
    background-color: #1D1D42 !important;
    color: #e4e6eb !important;
    border: 1px solid #2d3348 !important;
}

.dark-theme .calendar-header {
    background-color: #242736 !important;
    border-bottom: 1px solid #2d3348 !important;
    padding: 1rem;
}

.dark-theme #month-year {
    color: #e4e6eb !important;
    font-weight: 500;
}

.dark-theme .calendar-container button {
    background-color: #3a405c !important;
    color: #e4e6eb !important;
    border: 1px solid #4a5275 !important;
}

    .dark-theme .calendar-container button:hover {
        background-color: #4a5275 !important;
    }

.dark-theme .nav-tabs .nav-link {
    background-color: #141432;
    color: #a1a5b7 !important;
    transition: all 0.3s ease-in-out;
}

    .dark-theme .nav-link:hover {
        color: #ffffff !important;
        background-color: #2a2d3e !important;
    }

    .dark-theme .nav-link.active {
        color: #ffffff !important;
        background-color: #000 !important;
        border-bottom: 3px solid #fff !important;
    }

.dark-theme .modal-dialog {
    background-color: #1D1D42 !important;
}

.dark-theme .modal-content,
.dark-theme #ModalImportarLicitacao .modal-content {
    border: 1px solid #2d3348 !important;
    background-color: #1D1D42 !important;
}

.dark-theme .modal-content {
    border: 1px solid #2d3348 !important;
}

.dark-theme .modal-header {
    border-bottom: 1px solid #2d3348 !important;
    color: #e4e6eb !important;
}

.dark-theme .modal-body {
    background-color: #1D1D42 !important;
    color: #e4e6eb !important;
}

.dark-theme .modal-body p {
    color: #e4e6eb !important;
}

.dark-theme .modal-footer {
    background-color: #242736 !important;
    border-top: 1px solid #2d3348 !important;
}

.dark-theme .modal .close {
    color: #e4e6eb !important;
    opacity: 0.8;
}

    .dark-theme .modal .close:hover {
        opacity: 1;
    }

.dark-theme .modal .btn-primary {
    background-color: #3699FF !important;
    color: #ffffff !important;
    border: none !important;
}

.dark-theme .modal-content.p {
    color: #242736 !important;
}

.dark-theme .modal .btn-secondary {
    background-color: #242736 !important;
    color: #e4e6eb !important;
    border: 1px solid #3a405c !important;
}

.dark-theme .modal-dialog-centered {
    background-color: transparent !important;
}

.dark-theme .modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.dark-theme .kt-footer {
    background-color: #1D1D42 !important;
    border-top: 1px solid #2d3348 !important;
    color: #e4e6eb !important;
}

    .dark-theme .kt-footer a {
        color: #e4e6eb !important;
    }

        .dark-theme .kt-footer a:hover {
            color: #ffffff !important;
        }

    .dark-theme .kt-footer.kt-grid.kt-grid--desktop.kt-grid--ver-desktop {
        background-color: #1D1D42 !important;
    }

    .dark-theme .kt-footer .kt-footer__copyright,
    .dark-theme .kt-footer .kt-footer__menu {
        color: #e4e6eb !important;
    }

.dark-theme .nav-pills {
    background-color: #1D1D42 !important;
}

    .dark-theme .nav-pills .nav-item {
        margin-right: 5px;
    }

    .dark-theme .nav-pills .nav-link {
        color: #e4e6eb !important;
        background-color: #242736 !important;
        border: 1px solid #2d3348 !important;
        border-radius: 5px;
        padding: 8px 15px;
        transition: all 0.3s ease;
    }

        .dark-theme .nav-pills .nav-link:hover {
            background-color: #2d3348 !important;
            color: #ffffff !important;
        }

        .dark-theme .nav-pills .nav-link.active {
            background-color: #3699FF !important;
            color: #ffffff !important;
            border-color: #3699FF !important;
        }

.dark-theme .ul.nav.nav-pills.justify-content-center.mb-3.p-2.shadow-sm.rounded-pill {
    background-color: #242736 !important;
    padding: 10px !important;
    border-radius: 5px !important;
}

.dark-theme .nav-pills.justify-content-center.mb-3.p-2.shadow-sm.rounded-pill {
    background-color: #242736 !important;
    padding: 10px !important;
    border-radius: 20px !important;
}

.dark-theme ul.nav.nav-pills.justify-content-center.mb-3.p-2.shadow-sm.rounded-pill {
    background-color: #242736 !important;
}

.dark-theme .nav-pills .nav-item .nav-link.active {
    background-color: #3699FF !important;
    color: #ffffff !important;
}

.dark-theme .nav-pills .nav-item:first-child .nav-link.active,
.dark-theme .Despesas.Empenhadas {
    background-color: #1a1a3d !important;
    color: #ffffff !important;
    font-weight: bold;
}

.dark-theme .kt-switch {
    padding: 15px;
    background-color: #1D1D42;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .dark-theme .kt-switch:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.dark-theme .switch-container {
    margin: 10px 0;
}

.dark-theme span.kt-switch.kt-switch--icon.align-items-center.d-flex.switch-container {
    background-color: #242736;
    border: 1px solid #2d3348;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-theme input[type="checkbox"].checkbox {
    height: 0;
    width: 0;
    visibility: hidden;
}

.dark-theme .kt-switch .kt-switch--icon {
    color: #e4e6eb;
}

.dark-theme .kt-switch:hover {
    background-color: #262850;
}

.dark-theme .kt-switch.active {
    border-left: 3px solid #3699FF;
}

.dark-theme .certificate-list {
    background-color: #1D1D42;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #2d3348;
}

.dark-theme .certificate-item {
    background-color: #242736;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border-left: 3px solid #3699FF;
}

    .dark-theme .certificate-item:hover {
        transform: translateX(5px);
        background-color: #2a2e42;
    }

    .dark-theme .certificate-item p,
    .dark-theme .certificate-item span,
    .dark-theme .certificate-item div {
        color: #e4e6eb;
        margin: 5px 0;
    }

    .dark-theme .certificate-item strong,
    .dark-theme .certificate-item b {
        color: #ffffff;
        font-weight: 500;
    }

.dark-theme h4 {
    color: #ffffff;
    border-bottom: 1px solid #3699FF;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.dark-theme .certificate-item .identificador {
    color: #3699FF;
    font-weight: bold;
}

.dark-theme .certificate-item .data-vencimento {
    color: #ffc107;
}

.dark-theme .certificate-item.expiring {
    border-left: 3px solid #ffc107;
}

.dark-theme .certificate-item.expired {
    border-left: 3px solid #f44336;
}

.dark-theme div.certificate-item {
    background-color: #242736;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-theme .ag-theme-balham-dark .ag-column-drop-empty,
.dark-theme .ag-theme-balham .ag-column-drop-empty {
    color: var(--ag-disabled-foreground-color);
}

.dark-theme .ag-theme-balham-dark .ag-column-drop-horizontal,
.dark-theme .ag-theme-balham .ag-column-drop-horizontal {
    background-color: #1D1D42;
    border: 1px solid #2d3348;
}

.dark-theme .ag-theme-balham-dark .ag-root-wrapper-body,
.dark-theme .ag-theme-balham .ag-root-wrapper-body {
    background-color: #1D1D42;
}

.dark-theme .ag-theme-balham-dark .ag-status-bar,
.dark-theme .ag-theme-balham .ag-status-bar {
    background-color: #1D1D42;
    border: 1px solid #2d3348;
}

.dark-theme .ag-theme-balham-dark .ag-paging-panel,
.dark-theme .ag-theme-balham .ag-paging-panel {
    background-color: #1D1D42;
    border: 1px solid #2d3348;
}

.dark-theme .ag-theme-balham-dark .ag-watermark,
.dark-theme .ag-theme-balham .ag-watermark {
    background-color: #1D1D42;
}

.dark-theme .ag-theme-balham-dark .ag-row,
.dark-theme .ag-theme-balham .ag-row {
    background-color: #1D1D42;
    border-color: #2d3348;
}

.dark-theme .ag-theme-balham-dark .ag-row-odd,
.dark-theme .ag-theme-balham .ag-row-odd {
    background-color: #242736;
}

.dark-theme .ag-theme-balham-dark .ag-cell,
.dark-theme .ag-theme-balham .ag-cell {
    color: #e4e6eb;
}

.dark-theme .ag-theme-balham-dark .ag-header,
.dark-theme .ag-theme-balham .ag-header {
    background-color: #242736;
    border-bottom: 1px solid #2d3348;
}

.dark-theme .ag-theme-balham-dark .ag-header-cell,
.dark-theme .ag-theme-balham .ag-header-cell {
    color: #e4e6eb;
    border-right: 1px solid #2d3348;
}

.dark-theme .ag-theme-balham-dark .ag-row-hover,
.dark-theme .ag-theme-balham .ag-row-hover {
    background-color: #000 !important;
}

.dark-theme .ag-theme-balham-dark .ag-row-selected,
.dark-theme .ag-theme-balham .ag-row-selected {
    background-color: #3a405c;
}

.dark-theme .ag-theme-balham-dark .ag-column-drop-cell,
.dark-theme .ag-theme-balham .ag-column-drop-cell {
    background-color: #242736;
    border: 1px solid #2d3348;
    color: #e4e6eb;
}

.dark-theme .ag-theme-balham-dark .ag-column-drop-wrapper,
.dark-theme .ag-theme-balham .ag-column-drop-wrapper {
    border: 1px solid #2d3348;
}

.dark-theme .ag-paging-panel {
    color: white !important;
}

.dark-theme .ag-paging-row-summary-panel,
.dark-theme .ag-paging-page-summary-panel,
.dark-theme .ag-paging-description {
    color: white !important;
}

.dark-theme .ag-paging-button {
    color: white !important;
}

.dark-theme .ag-paging-panel span {
    color: white !important;
}

.dark-theme .ag-paging-button:focus {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .ag-paging-button.ag-disabled {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dark-theme .ag-column-drop-empty-message,
.dark-theme .ag-column-drop-horizontal-empty-message {
    color: white !important;
}

.dark-theme .ag-column-drop-title-bar,
.dark-theme .ag-column-drop-horizontal-title-bar {
    color: white !important;
}

.dark-theme .ag-column-drop-list,
.dark-theme .ag-column-drop-horizontal-list {
    color: white !important;
}

.dark-theme .ag-root-wrapper-body,
.dark-theme .ag-layout-normal,
.dark-theme .ag-focus-managed {
    color: white !important;
}

.dark-theme span.ag-column-drop-empty-message {
    color: white !important;
}

.dark-theme .ag-theme-balham-dark,
.dark-theme .ag-theme-balham {
    --ag-background-color: #1D1D42;
    --ag-foreground-color: #e4e6eb;
    --ag-border-color: #2d3348;
    --ag-header-background-color: #242736;
    --ag-odd-row-background-color: #242736;
    --ag-row-hover-color: #3a405c;
    --ag-selected-row-background-color: #3a405c;
}

    .dark-theme .ag-theme-balham-dark .ag-root-wrapper-body,
    .dark-theme .ag-theme-balham .ag-root-wrapper-body,
    .dark-theme .ag-root-wrapper,
    .dark-theme .ag-layout-normal,
    .dark-theme .ag-focus-managed {
        background-color: #1D1D42;
        color: #e4e6eb;
    }

    .dark-theme .ag-theme-balham-dark .ag-column-drop-empty,
    .dark-theme .ag-theme-balham .ag-column-drop-empty,
    .dark-theme .ag-column-drop-empty-message,
    .dark-theme .ag-column-drop-horizontal-empty-message,
    .dark-theme span.ag-column-drop-empty-message {
        color: #e4e6eb !important;
    }

    .dark-theme .ag-theme-balham-dark .ag-column-drop-horizontal,
    .dark-theme .ag-theme-balham .ag-column-drop-horizontal {
        background-color: #1D1D42;
        border: 1px solid #2d3348;
    }

    .dark-theme .ag-theme-balham-dark .ag-status-bar,
    .dark-theme .ag-theme-balham .ag-status-bar,
    .dark-theme .ag-theme-balham-dark .ag-paging-panel,
    .dark-theme .ag-theme-balham .ag-paging-panel {
        background-color: #1D1D42;
        border: 1px solid #2d3348;
        color: #e4e6eb !important;
    }

    .dark-theme .ag-theme-balham-dark .ag-row,
    .dark-theme .ag-theme-balham .ag-row {
        background-color: #1D1D42;
        border-color: #2d3348;
    }

    .dark-theme .ag-theme-balham-dark .ag-row-odd,
    .dark-theme .ag-theme-balham .ag-row-odd {
        background-color: #242736;
    }

    .dark-theme .ag-theme-balham-dark .ag-cell,
    .dark-theme .ag-theme-balham .ag-cell {
        color: #e4e6eb;
    }

.dark-theme .ag-cell-inline-editing {
    background-color: #242736;
    border: 1px solid #3a405c;
}

.dark-theme .ag-cell-focus {
    border: 1px solid #4d5679 !important;
}

.dark-theme .ag-row:hover,
.dark-theme .ag-row-hover,
.dark-theme [role="row"]:hover,
.dark-theme [row-id]:hover,
.dark-theme [row-index]:hover,
.dark-theme .ag-body-viewport .ag-row:hover,
.dark-theme .ag-body-viewport-wrapper .ag-row:hover,
.dark-theme .ag-center-cols-container .ag-row:hover,
.dark-theme .ag-center-cols-clipper .ag-row:hover,
.dark-theme .ag-full-width-container .ag-row:hover,
.dark-theme .ag-theme-balham .ag-row:hover,
.dark-theme .ag-theme-balham-dark .ag-row:hover,
.dark-theme .ag-theme-balham .ag-row-hover,
.dark-theme .ag-theme-balham-dark .ag-row-hover,
.dark-theme *[class^="ag-row"]:hover,
.dark-theme *[class*=" ag-row"]:hover,
.dark-theme [data-row-index]:hover,
.dark-theme .ag-theme-balham-dark [class*="ag-row"]:hover,
.dark-theme .ag-theme-balham [class*="ag-row"]:hover {
    background-color: #3a405c !important;
}

.dark-theme .ag-theme-balham-dark .ag-row-selected,
.dark-theme .ag-theme-balham .ag-row-selected {
    background-color: #3a405c;
}

    .dark-theme .ag-theme-balham-dark .ag-row-selected:hover,
    .dark-theme .ag-theme-balham .ag-row-selected:hover {
        background-color: #4d5679 !important;
    }

.dark-theme .ag-theme-balham-dark .ag-header,
.dark-theme .ag-theme-balham .ag-header {
    background-color: #242736;
    border-bottom: 1px solid #2d3348;
}

.dark-theme .ag-theme-balham-dark .ag-header-cell,
.dark-theme .ag-theme-balham .ag-header-cell {
    color: #e4e6eb;
    border-right: 1px solid #2d3348;
}

.dark-theme .ag-paging-panel,
.dark-theme .ag-paging-row-summary-panel,
.dark-theme .ag-paging-page-summary-panel,
.dark-theme .ag-paging-description,
.dark-theme .ag-paging-button {
    color: #e4e6eb !important;
}

    .dark-theme .ag-paging-button:focus {
        color: #e4e6eb !important;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .dark-theme .ag-paging-button.ag-disabled {
        color: rgba(255, 255, 255, 0.5) !important;
    }

.dark-theme .ag-popup,
.dark-theme .ag-menu,
.dark-theme .ag-popup-child {
    background-color: #242736;
    color: #e4e6eb;
    border: 1px solid #2d3348;
}

.dark-theme .ag-menu-option,
.dark-theme .ag-menu-option-part {
    color: #e4e6eb;
}

    .dark-theme .ag-menu-option:hover,
    .dark-theme .ag-menu-option-active {
        background-color: #3a405c !important;
        color: #e4e6eb !important;
    }

.dark-theme .ag-menu-separator {
    border-color: #2d3348;
}

.dark-theme .ag-tabs,
.dark-theme .ag-tab {
    background-color: #242736;
    color: #e4e6eb;
    border-color: #2d3348;
}

.dark-theme .ag-tab-selected {
    background-color: #3a405c;
    border-bottom-color: #3a405c;
}

.dark-theme .ag-menu-header,
.dark-theme [ref="tabHeader"] {
    background-color: #1D1D42;
    border-color: #2d3348;
}

.dark-theme .ag-menu-option-text:hover,
.dark-theme .ag-menu-option-part:hover,
.dark-theme .ag-menu-option:hover * {
    color: #e4e6eb !important;
}

.dark-theme .ag-tooltip {
    background-color: #242736;
    color: #e4e6eb;
    border: 1px solid #2d3348;
}

.dark-theme .ag-filter,
.dark-theme .ag-filter-toolpanel,
.dark-theme .ag-picker-field-wrapper,
.dark-theme .ag-picker-field-display,
.dark-theme [ref="eWrapper"],
.dark-theme [ref="eDisplayField"],
.dark-theme [id^="ag-"],
.dark-theme [class^="ag-filter-"] {
    background-color: #242736 !important;
    color: #e4e6eb !important;
    border-color: #2d3348 !important;
}

.dark-theme .ag-filter-header {
    background-color: #1D1D42;
}

.dark-theme .ag-filter-apply-panel {
    background-color: #1D1D42;
    border-top: 1px solid #2d3348;
}

.dark-theme .ag-filter-filter,
.dark-theme input.ag-filter-filter,
.dark-theme input[class*="ag-"],
.dark-theme input[type="text"],
.dark-theme .ag-text-field-input,
.dark-theme .ag-input-field-input {
    color: #e4e6eb !important;
    border: 1px solid #3a405c !important;
}

.dark-theme .ag-filter-body,
.dark-theme .ag-filter-wrapper,
.dark-theme .ag-picker-field {
    background-color: #242736 !important;
    color: #e4e6eb !important;
}

.dark-theme .ag-picker-field-icon,
.dark-theme [ref="eIcon"],
.dark-theme .ag-filter .ag-icon {
    color: #e4e6eb !important;
}

.dark-theme [aria-label="Operador de filtragem"],
.dark-theme .ag-floating-filter-body,
.dark-theme .ag-floating-filter-button {
    background-color: #1D1D42 !important;
    color: #e4e6eb !important;
}

.dark-theme ::placeholder,
.dark-theme input[placeholder],
.dark-theme input::placeholder {
    color: #8a8d97 !important;
}

.dark-theme .ag-picker-field-display:focus,
.dark-theme input[type="text"]:focus {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(77, 86, 121, 0.25) !important;
}

.dark-theme .ag-filter-applied {
    background-color: #3a405c !important;
}

.dark-theme .card,
.dark-theme div[id="columnSelection"],
.dark-theme .card.card-body {
    background-color: #1D1D42 !important;
    border-color: #2d3348 !important;
    color: #e4e6eb !important;
}

    .dark-theme .card .d-flex,
    .dark-theme div[id="columnSelection"] .d-flex {
        background-color: #1D1D42 !important;
        color: #e4e6eb !important;
    }

    .dark-theme .card label,
    .dark-theme div[id="columnSelection"] label {
        color: #e4e6eb !important;
    }

.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme .card-title {
    color: #e4e6eb !important;
}

.dark-theme #gridContainer,
.dark-theme [id^="tab-"],
.dark-theme .tab-pane {
    background-color: #1D1D42 !important;
    color: #e4e6eb !important;
}

.dark-theme [id="columnSelection"] {
    background-color: #1D1D42 !important;
    color: #e4e6eb !important;
    border: 1px solid #2d3348 !important;
}

    .dark-theme [id="columnSelection"] input[type="checkbox"] {
        accent-color: #3a405c;
    }

.dark-theme .ag-standard-button,
.dark-theme button.ag-standard-button {
    background-color: #242736;
    color: #e4e6eb;
    border: 1px solid #2d3348;
}

    .dark-theme .ag-standard-button:hover,
    .dark-theme button.ag-standard-button:hover {
        background-color: #3a405c;
    }

.dark-theme .card .btn-danger,
.dark-theme div[id="columnSelection"] .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.dark-theme .ag-column-drop-cell-button {
    color: #e4e6eb;
}

.dark-theme .ag-column-select-header {
    background-color: #242736;
    border-bottom: 1px solid #2d3348;
}

.dark-theme .ag-tool-panel-wrapper {
    background-color: #1D1D42;
    border-right: 1px solid #2d3348;
}

.dark-theme .ag-column-select-column-drag {
    color: #e4e6eb;
}

.dark-theme .ag-ghost {
    background-color: rgba(61, 70, 101, 0.5);
}

.dark-theme .ag-icon,
.dark-theme .ag-icon-tree-open,
.dark-theme .ag-icon-tree-closed,
.dark-theme .ag-icon-checkbox-checked,
.dark-theme .ag-icon-checkbox-unchecked,
.dark-theme .ag-icon-checkbox-indeterminate {
    color: #e4e6eb;
}


.dark-theme .ag-row {
    transition: background-color 0.15s ease-in-out;
}

/* Estilos para o menu fiscal no tema escuro */
.dark-theme .bg-fiscal {
    background-color: #5a6e8c !important;
}

.dark-theme .kt-aside-menu.bg-fiscal {
    background-color: #5a6e8c !important;
}

.dark-theme .kt-menu__nav.bg-fiscal {
    background-color: #5a6e8c !important;
}

.dark-theme .kt-menu__item .kt-menu__link {
    color: #e4e6eb !important;
    transition: background-color 0.2s ease-in-out;
}

.dark-theme .kt-menu__item .kt-menu__link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .kt-menu__item--submenu .kt-menu__submenu {
    background-color: #4a5f7a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .kt-menu__item--submenu .kt-menu__submenu .kt-menu__link {
    color: #e4e6eb !important;
}

.dark-theme .kt-menu__item--submenu .kt-menu__submenu .kt-menu__link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-theme .kt-menu__link-text {
    color: #e4e6eb !important;
    opacity: 1 !important;
}

.dark-theme .kt-menu__link-icon {
    color: #e4e6eb !important;
    opacity: 0.9;
}

.dark-theme .menu-search {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e4e6eb !important;
}

.dark-theme .menu-search::placeholder {
    color: rgba(228, 230, 235, 0.6) !important;
}

.dark-theme .menu-search:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}