html.theme-dark {
    color-scheme: dark;
    --dark-color: #e5e7eb;
    --light-color: #111827;
    --primary-color: #60a5fa;
    --primary: #ff9800;
    --primary-dark: #f57c00;
    --success-color: #ff9800;
    --info-color: #ff9800;
    --sn-secondary: #ff9800;
    --light: #0f172a;
    --lighter: #1f2937;
    --secondary: #e5e7eb;
    --gray: #9ca3af;
    --gray-light: #374151;
    --gray-border: #4b5563;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html.theme-dark body {
    background-color: #0f172a;
    color: #e5e7eb;
}

html.theme-dark .header,
html.theme-dark .header-mobile,
html.theme-dark .mobile-second-nav,
html.theme-dark .wrapper,
html.theme-dark .content,
html.theme-dark #kt_content {
    background-color: #0f172a !important;
    color: #e5e7eb;
}

html.theme-dark .aside,
html.theme-dark .aside-menu,
html.theme-dark .aside-menu-wrapper,
html.theme-dark .brand,
html.theme-dark .perfil-box {
    background-color: #111827 !important;
}

html.theme-dark .card,
html.theme-dark .modal-content,
html.theme-dark .dropdown-menu,
html.theme-dark .symbol-label,
html.theme-dark .menu-submenu,
html.theme-dark .bg-white,
html.theme-dark .bg-light,
html.theme-dark .bg-light-primary,
html.theme-dark .bg-light-success,
html.theme-dark .bg-light-warning,
html.theme-dark .bg-light-danger,
html.theme-dark .table,
html.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

html.theme-dark .card-header,
html.theme-dark .card-footer,
html.theme-dark .table thead th,
html.theme-dark .table td,
html.theme-dark .table th,
html.theme-dark .dropdown-item,
html.theme-dark .modal-header,
html.theme-dark .modal-footer {
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark .text-dark,
html.theme-dark .text-dark-50,
html.theme-dark .text-dark-75,
html.theme-dark .text-muted,
html.theme-dark .text-body,
html.theme-dark .text-black,
html.theme-dark .menu-text,
html.theme-dark .menu-link,
html.theme-dark label,
html.theme-dark .navi-text,
html.theme-dark .dropdown-item {
    color: #d1d5db !important;
}

html.theme-dark .menu-item-active > .menu-link,
html.theme-dark .menu-item-open > .menu-link {
    background-color: #374151 !important;
}

html.theme-dark .menu-bullet span,
html.theme-dark .svg-icon svg g [fill] {
    fill: #d1d5db !important;
}

html.theme-dark .form-control,
html.theme-dark .custom-select,
html.theme-dark .input-group-text,
html.theme-dark .select2-selection,
html.theme-dark .select2-dropdown,
html.theme-dark .select2-search__field,
html.theme-dark textarea,
html.theme-dark input,
html.theme-dark select {
    background-color: #111827 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

html.theme-dark .form-control:focus,
html.theme-dark .custom-select:focus,
html.theme-dark .select2-selection:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

html.theme-dark .table-hover tbody tr:hover,
html.theme-dark .dropdown-item:hover {
    background-color: #374151 !important;
}

html.theme-dark .btn-light,
html.theme-dark .btn.btn-light,
html.theme-dark .btn-clean {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark .btn-light:hover,
html.theme-dark .btn.btn-light:hover,
html.theme-dark .btn-clean:hover {
    background-color: #374151 !important;
    color: #ffffff !important;
}

html.theme-dark .empresa-info {
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
}

html.theme-dark .empresa-info:hover {
    background-color: #374151 !important;
}

html.theme-dark .empresa-info i,
html.theme-dark .empresa-info label {
    color: #e5e7eb !important;
}

html.theme-dark .aside-menu .menu-nav > .menu-item > .menu-link:hover,
html.theme-dark .aside-menu .menu-nav > .menu-item > .menu-submenu .menu-subnav > .menu-item > .menu-link:hover {
    color: #ff9800 !important;
}

html.theme-dark .burger-icon span,
html.theme-dark .burger-icon span:before,
html.theme-dark .burger-icon span:after {
    background: #ff9800 !important;
}

html.theme-dark .mobile-second-nav {
    background: linear-gradient(135deg, #ff9800 0%, #187de4 100%) !important;
}

html.theme-dark .dropdown-header {
    background: #ff9800 !important;
}

html.theme-dark .text-success,
html.theme-dark .text-success i,
html.theme-dark .label-success,
html.theme-dark .badge-success {
    color: #ff9800 !important;
}

html.theme-dark .bg-success,
html.theme-dark .btn-success,
html.theme-dark .label-success,
html.theme-dark .badge-success {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #FFF !important;
}

html.theme-dark .btn-success:hover,
html.theme-dark .btn-success:focus,
html.theme-dark .btn-success:active {
    background-color: #f57c00 !important;
    border-color: #f57c00 !important;
}

html.theme-dark .border-success,
html.theme-dark .bgi-no-repeat[style*="7C1417"] {
    border-color: #ff9800 !important;
}

html.theme-dark .svg-icon-success svg g [fill],
html.theme-dark .svg-icon-success svg [fill] {
    fill: #ff9800 !important;
}

html.theme-dark .navbar,
html.theme-dark .navbar-laravel {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

html.theme-dark .nav-link,
html.theme-dark .navbar-brand {
    color: #d1d5db !important;
}

html.theme-dark .nav-tabs {
    border-bottom-color: #374151 !important;
}

html.theme-dark .nav-tabs .nav-link.active,
html.theme-dark .nav-tabs .nav-item.show .nav-link {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark hr,
html.theme-dark .border,
html.theme-dark [class*="border-"] {
    border-color: #374151 !important;
}

html.theme-dark .page-link {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark [style*="background: #fff"],
html.theme-dark [style*="background:#fff"],
html.theme-dark [style*="background-color: #fff"],
html.theme-dark [style*="background-color:#fff"],
html.theme-dark [style*="background: white"],
html.theme-dark [style*="background-color: white"],
html.theme-dark [style*="background: rgb(255, 255, 255)"],
html.theme-dark [style*="background-color: rgb(255, 255, 255)"],
html.theme-dark [style*="background: #ffffff"],
html.theme-dark [style*="background-color: #ffffff"] {
    background: #1f2937 !important;
}

html.theme-dark [style*="background-color: #f8f9fa"],
html.theme-dark [style*="background-color:#f8f9fa"],
html.theme-dark [style*="background: #f8f9fa"],
html.theme-dark [style*="background:#f8f9fa"],
html.theme-dark [style*="background-color: #EEF0F8"],
html.theme-dark [style*="background-color:#EEF0F8"] {
    background: #1f2937 !important;
}

html.theme-dark [style*="color: #000"],
html.theme-dark [style*="color:#000"],
html.theme-dark [style*="color: black"],
html.theme-dark [style*="color: #111"],
html.theme-dark [style*="color: #181c32"],
html.theme-dark [style*="color:#3699FF"],
html.theme-dark [style*="color: #3699FF"],
html.theme-dark [style*="color:#666"],
html.theme-dark [style*="color: #666"],
html.theme-dark [style*="color:#333"],
html.theme-dark [style*="color: #333"],
html.theme-dark [style*="color:#495057"],
html.theme-dark [style*="color: #495057"],
html.theme-dark [style*="color:#6c757d"],
html.theme-dark [style*="color: #6c757d"] {
    color: #e5e7eb !important;
}

html.theme-dark [style*="color:#7C1417"],
html.theme-dark [style*="color: #7C1417"],
html.theme-dark [style*="color:#7C1417"],
html.theme-dark [style*="color: #7C1417"] {
    color: #ff9800 !important;
}

html.theme-dark [style*="background:#7C1417"],
html.theme-dark [style*="background: #7C1417"],
html.theme-dark [style*="background:#7C1417"],
html.theme-dark [style*="background: #7C1417"],
html.theme-dark [style*="background-color:#7C1417"],
html.theme-dark [style*="background-color: #7C1417"],
html.theme-dark [style*="background-color:#7C1417"],
html.theme-dark [style*="background-color: #7C1417"] {
    background: #ff9800 !important;
    color: #e5e7eb !important;
}

html.theme-dark [style*="linear-gradient"][style*="7C1417"],
html.theme-dark [style*="linear-gradient"][style*="7C1417"] {
    background: linear-gradient(135deg, #ff9800 0%, #187de4 100%) !important;
}

html.theme-dark [style*="border-color:#7C1417"],
html.theme-dark [style*="border-color: #7C1417"],
html.theme-dark [style*="border-color:#7C1417"],
html.theme-dark [style*="border-color: #7C1417"],
html.theme-dark [style*="border: 1px solid #7C1417"],
html.theme-dark [style*="border:1px solid #7C1417"],
html.theme-dark [style*="border: 1px solid #7C1417"],
html.theme-dark [style*="border:1px solid #7C1417"] {
    border-color: #ff9800 !important;
}

html.theme-dark [style*="fill:#7C1417"],
html.theme-dark [style*="fill: #7C1417"],
html.theme-dark [style*="fill:#7C1417"],
html.theme-dark [style*="fill: #7C1417"] {
    fill: #ff9800 !important;
}

html.theme-dark [style*="rgba(0, 231, 140"],
html.theme-dark [style*="rgba(0,231,140"] {
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.25) !important;
}

html.theme-dark [style*="border-color: #e"],
html.theme-dark [style*="border-color:#e"],
html.theme-dark [style*="border: 1px solid #e"],
html.theme-dark [style*="border:1px solid #e"] {
    border-color: #374151 !important;
}

html.theme-dark .swal-modal {
    background-color: #1f2937;
    color: #e5e7eb;
}

html.theme-dark .swal-text,
html.theme-dark .swal-title {
    color: #e5e7eb;
}

html.theme-dark .user-header,
html.theme-dark .main-card,
html.theme-dark .metric-card,
html.theme-dark .dashboard-header,
html.theme-dark .filter-card,
html.theme-dark .stat-card,
html.theme-dark .chart-card,
html.theme-dark .form-section,
html.theme-dark .form-card,
html.theme-dark .detalhes-conta,
html.theme-dark .formulario-pagamento,
html.theme-dark .resumo-card,
html.theme-dark .conta-card,
html.theme-dark .total-categoria,
html.theme-dark .cf-kpi,
html.theme-dark .os-card,
html.theme-dark .filter-card,
html.theme-dark .page-header,
html.theme-dark .erp-card,
html.theme-dark .erp-relatorio-card,
html.theme-dark .client-card,
html.theme-dark .info-card,
html.theme-dark .value-card {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

html.theme-dark .topbar .theme-toggle-btn,
html.theme-dark .topbar button[data-theme-toggle],
html.theme-dark .right-section .theme-toggle-btn,
html.theme-dark #kt_header_mobile .theme-toggle-btn {
    color: #ff9800 !important;
    border-color: #ff9800 !important;
}

html.theme-dark .topbar .theme-toggle-btn i,
html.theme-dark .topbar button[data-theme-toggle] i,
html.theme-dark .right-section .theme-toggle-btn i,
html.theme-dark #kt_header_mobile .theme-toggle-btn i {
    color: #ff9800 !important;
}

html.theme-dark .topbar button[data-bs-toggle="dropdown"] .la-cog,
html.theme-dark #kt_header_mobile button[data-bs-toggle="dropdown"] .la-cog,
html.theme-dark #kt_header_mobile .la-cog.text-primary {
    color: #ff9800 !important;
}

.brand-logo .logo-dark {
    display: none;
}

html.theme-dark .brand-logo .logo-light {
    display: none !important;
}

html.theme-dark .brand-logo .logo-dark {
    display: inline-block !important;
}

/* Keep toggle visible when sidebar is minimized. */
.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo .logo-light,
.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo .logo-dark {
    display: none !important;
}

html.theme-dark .brand .brand-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 2;
}

html.theme-dark #kt_aside_toggle .svg-icon svg g [fill] {
    fill: #ff9800 !important;
}

.theme-toggle-btn {
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.04);
}

/* Novo menu superior */
html.theme-dark #kt_header {
    background: linear-gradient(135deg, #071827 0%, #10263d 100%) !important;
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38) !important;
}

html.theme-dark .menu-horizontal:not(.mobile-menu) {
    background: rgba(15, 23, 42, 0.96) !important;
    border-bottom-color: #243244 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32) !important;
}

html.theme-dark .menu-horizontal .menu-link {
    background: transparent !important;
    color: #d7dee9 !important;
}

html.theme-dark .menu-horizontal .menu-link .menu-text,
html.theme-dark .menu-horizontal .menu-link .menu-arrow,
html.theme-dark .menu-horizontal .menu-link .menu-icon,
html.theme-dark .menu-horizontal .menu-link .menu-icon svg {
    color: #ffffff !important;
    stroke: currentColor !important;
}

html.theme-dark .menu-horizontal .menu-link .menu-icon {
    font-size: 22px !important;
    margin-right: 11px !important;
}

html.theme-dark .menu-horizontal .menu-link .menu-icon i,
html.theme-dark .menu-horizontal .menu-link .menu-icon .la,
html.theme-dark .menu-horizontal .menu-link .menu-icon .fa,
html.theme-dark .menu-horizontal .menu-link .menu-icon .fas,
html.theme-dark .menu-horizontal .menu-link .menu-icon .far,
html.theme-dark .menu-horizontal .menu-link .menu-icon svg {
    color: #ffffff !important;
    fill: none !important;
    font-size: 22px !important;
    height: 22px !important;
    width: 22px !important;
}

html.theme-dark .menu-horizontal .menu-link .menu-icon svg [stroke] {
    stroke: #ffffff !important;
}

html.theme-dark .ambiente-indicator,
html.theme-dark .ambiente-indicator:hover,
html.theme-dark #ambiente-tour,
html.theme-dark #ambiente-tour:hover {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    color: #ffffff !important;
}

html.theme-dark .menu-horizontal .menu-item:hover > .menu-link,
html.theme-dark .menu-horizontal .menu-item:focus-within > .menu-link,
html.theme-dark .menu-horizontal .menu-item.active > .menu-link {
    background: rgba(255, 152, 0, 0.14) !important;
    color: #ffb347 !important;
}

html.theme-dark .menu-horizontal .menu-item:hover > .menu-link .menu-text,
html.theme-dark .menu-horizontal .menu-item:hover > .menu-link .menu-arrow,
html.theme-dark .menu-horizontal .menu-item:hover > .menu-link .menu-icon,
html.theme-dark .menu-horizontal .menu-item.active > .menu-link .menu-text,
html.theme-dark .menu-horizontal .menu-item.active > .menu-link .menu-arrow,
html.theme-dark .menu-horizontal .menu-item.active > .menu-link .menu-icon {
    color: #ffb347 !important;
}

html.theme-dark .menu-horizontal .menu-item:hover > .menu-link .menu-icon svg [stroke],
html.theme-dark .menu-horizontal .menu-item.active > .menu-link .menu-icon svg [stroke] {
    stroke: #ffb347 !important;
}

html.theme-dark .menu-horizontal .menu-item.active > .menu-link::after {
    background: #ff9800 !important;
}

html.theme-dark .dropdown-menu-2 {
    background: #111827 !important;
    border-color: #263244 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42) !important;
}

html.theme-dark .dropdown-menu-title {
    color: #9ca3af !important;
    border-bottom-color: #263244 !important;
}

html.theme-dark .dropdown-item-2 {
    background: transparent !important;
    color: #d7dee9 !important;
}

html.theme-dark .dropdown-item-2 .dropdown-icon-2 {
    background: #1f2937 !important;
    color: #9ca3af !important;
}

html.theme-dark .dropdown-item-2:hover,
html.theme-dark .dropdown-item-2:focus,
html.theme-dark .dropdown-item-2.active {
    background: rgba(255, 152, 0, 0.12) !important;
    color: #ffb347 !important;
}

html.theme-dark .dropdown-item-2:hover .dropdown-icon-2,
html.theme-dark .dropdown-item-2.active .dropdown-icon-2 {
    background: #ff9800 !important;
    color: #111827 !important;
}

html.theme-dark .menu-toggle-btn span {
    background-color: #ffb347 !important;
}

html.theme-dark .menu-horizontal.mobile-menu {
    background: #0f172a !important;
    border-right: 1px solid #263244 !important;
    box-shadow: 12px 0 34px rgba(0, 0, 0, 0.42) !important;
}

html.theme-dark .mobile-menu-header {
    background: #111827 !important;
    border-bottom-color: #263244 !important;
    color: #e5e7eb !important;
}

html.theme-dark .mobile-menu-close {
    background: #1f2937 !important;
    color: #ffb347 !important;
}

html.theme-dark .menu-horizontal.mobile-menu .menu-link {
    border-bottom-color: #263244 !important;
}

html.theme-dark .menu-horizontal.mobile-menu .dropdown-menu-2 {
    background: #111827 !important;
}

html.theme-dark .menu-horizontal.mobile-menu .dropdown-item-2 {
    border-bottom-color: #263244 !important;
}

html.theme-dark .menu-overlay {
    background: rgba(2, 6, 23, 0.72) !important;
}
