::selection {
    background: #d0b358;
    color: #fff;
}

::-moz-selection {
    background: #d0b358;
    color: #fff;
}

.dark-theme .full-width-header {
    background: #1f2937;
    border-bottom: 1px solid #a1a1a1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #e5e7eb;
}

.dark-theme .ag-theme-alpine {
    --ag-background-color: #1f2937;
    --ag-header-background-color: #1f2937;
    --ag-odd-row-background-color: #111827;
    --ag-row-hover-color: #374151;
    --ag-border-color: #374151;
    --ag-foreground-color: #e5e7eb;
    --ag-header-foreground-color: #f9fafb;
    --ag-secondary-foreground-color: #9ca3af;
    --ag-selected-row-background-color: #2563eb33;
    --ag-range-selection-background-color: #2563eb44;
    --ag-input-border-color: #4b5563;
    --ag-header-cell-hover-background-color: #374151;
}

.dark-theme .ag-theme-balham {
    --ag-background-color: #1f2937;
    --ag-header-background-color: #1f2937;
    --ag-odd-row-background-color: #111827;
    --ag-row-hover-color: #374151;
    --ag-border-color: #374151;
    --ag-foreground-color: #e5e7eb;
    --ag-header-foreground-color: #f9fafb;
    --ag-secondary-foreground-color: #9ca3af;
    --ag-selected-row-background-color: #2563eb33;
    --ag-range-selection-background-color: #2563eb44;
    --ag-input-border-color: #4b5563;
    --ag-header-cell-hover-background-color: #374151;
}

    .dark-theme .ag-theme-balham .ag-body-viewport::-webkit-scrollbar,
    .dark-theme .ag-theme-balham .ag-center-cols-viewport::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .dark-theme .ag-theme-balham .ag-body-viewport::-webkit-scrollbar-track,
    .dark-theme .ag-theme-balham .ag-center-cols-viewport::-webkit-scrollbar-track {
        background: #111827;
    }

    .dark-theme .ag-theme-balham .ag-body-viewport::-webkit-scrollbar-thumb,
    .dark-theme .ag-theme-balham .ag-center-cols-viewport::-webkit-scrollbar-thumb {
        background-color: #374151;
        border-radius: 6px;
        border: 2px solid #111827;
    }

        .dark-theme .ag-theme-balham .ag-body-viewport::-webkit-scrollbar-thumb:hover,
        .dark-theme .ag-theme-balham .ag-center-cols-viewport::-webkit-scrollbar-thumb:hover {
            background-color: #4b5563;
        }

    /* Firefox */
    .dark-theme .ag-theme-balham .ag-body-viewport,
    .dark-theme .ag-theme-balham .ag-center-cols-viewport {
        scrollbar-width: thin;
        scrollbar-color: #374151 #111827;
    }

.dark-theme .panel-body {
    background: #1f2937;
}

.dark-theme .btn-without-border {
    color: #fff;
}

.dark-theme .datagrid-toolbar {
    background: #1f2937;
}

.dark-theme .l-btn-text {
    color: #fff;
}

.dark-theme .btn-dark-theme {
    color: #fff;
}

.dark-theme .profile-area {
    background: #4b5563;
    color: #fff;
}

.dark-theme .sidebar .menu-area {
    scrollbar-color: #f9fafb #1f2937;
}

.dark-theme .profile-info .name {
    color: #fff;
}

.dark-theme .sidebar .tree {
    color: #fff;
}

    .dark-theme .sidebar .tree:hover {
        color: #000;
    }

.dark-theme .sidebar .tree-node {
    color: #fff;
}

    .dark-theme .sidebar .tree-node:hover {
        color: #000;
    }

.dark-theme .header-logo {
    background: #ffffff;
}

.dark-theme .sidebar {
    background: #1f2937;
    border-right: 1px solid #ffffff;
}

    .dark-theme .sidebar .nav-link.active, .dark-theme .sidebar .nav-link:hover {
        background-color: #374151;
        color: #e5e7eb;
        font-weight: 600;
    }

.dark-theme .menu-title {
    color: #fff;
}

.dark-theme .submenu li a {
    color: #ffffff;
}

.dark-theme .sidebar .nav-link i {
    color: #ffffff;
}

.dark-theme .sidebar .nav-link.active i {
    color: #d0b358;
}

.dark-theme .sidebar .upgrade-btn {
    background-color: #4b5563;
    color: #e5e7eb;
}

.dark-theme .sidebar-footer {
    margin-top: auto;
    color: #9ca3af;
    text-align: center;
    user-select: none;
}

.dark-theme .main-content-inner .text-muted {
    color: #9ca3af !important;
}

.dark-theme .submenu .active {
    background: #374151;
}

.dark-theme .submenu li a:hover {
    background: #374151;
}

.dark-theme .logo-area::after {
    background-color: #4b5563;
}

.dark-theme #sidebarToggle {
    color: #fff !important;
}

.dark-theme .header-logo .brand {
    color: #d0b358;
}

.dark-theme .sidebar-sales {
    background-color: #ff6600;
    color: white;
}

.dark-theme .sidebar-sales-container {
    border: 1px solid #374151;
}

    .dark-theme .sidebar-sales-container i {
        font-size: 0.75rem;
    }

.dark-theme .main-header h1 {
    color: #e5e7eb;
}

.dark-theme .main-header p {
    color: #ffffff;
}

.dark-theme .footer {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: #000 !important;
}

.dark-theme .text-muted {
    color: #ffffff !important;
}

.dark-theme .sidebar-footer {
    color: #ffffff !important;
}

.dark-theme .profile-text {
    color: #fff;
}

.dark-theme .profile-dropdown {
    background: #4b5563 !important;
    color: #fff;
}

.dark-theme .dropdown-item:hover {
    color: #000000 !important;
    background-color: #f3f4f6;
}

.dark-theme .dropdown-item {
    color: #000 !important;
}

.dark-theme .dropdown-item {
    border: none;
}

.dark-theme .fa-paint-brush {
    color: #000 !important;
}

.dark-theme .dropdown-item:hover .fa-paint-brush {
    color: #000 !important;
}

.dark-theme .tdBackground {
    background-color: #1f2937;
}

.dark-theme .tableBackground {
    background-color: #1f2937;
}
.dark-theme .sun-icon {
    color: #fff;
}


.dark-theme .datagrid-view,
.dark-theme .datagrid {
    background: #1f2937;
    color: #e5e7eb;
}

/* Header */
.dark-theme .datagrid-header,
.dark-theme .datagrid-header-inner,
.dark-theme .datagrid-header-row {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

.dark-theme .datagrid-td-rownumber {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

.dark-theme .datagrid-cell-rownumber {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

.dark-theme .datagrid-header .datagrid-cell {
    border-color: #374151;
}

/* Body */
.dark-theme .datagrid-body {
    background: #1f2937;
}

/* Rows */
.dark-theme .datagrid-row {
    background: #1f2937;
    color: #e5e7eb;
}

.dark-theme .datagrid-row-alt {
    background: #111827;
}

/* Hover */
.dark-theme .datagrid-row:hover {
    background: #374151;
}

/* Selected row */
.dark-theme .datagrid-row-selected {
    background: #2563eb33 !important;
    color: #f9fafb;
}

/* Cell borders */
.dark-theme .datagrid-cell,
.dark-theme .datagrid-cell-rownumber {
    border-color: #374151;
}

/* Pager */
.dark-theme .datagrid-pager {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

/* Pager buttons */
.dark-theme .pagination a {
    color: #e5e7eb;
}

/* Loading mask */
.dark-theme .datagrid-mask,
.dark-theme .datagrid-mask-msg {
    background: #1f2937;
    color: #e5e7eb;
}

.dark-theme td {
    color: #fff;
}

.dark-theme button, input, optgroup, select, textarea {
    color: #000 !important;
}

.dark-theme .l-btn-plain:hover {
    background: #eaf2ff;
    color: #000000 !important;
}

.dark-theme .l-btn-text:hover {
    color: #000;
}

.dark-theme .l-btn-plain:hover .l-btn-text {
    color: #000;
}

.dark-theme fieldset legend {
    color: #fff;
}

.dark-theme label {
    color: #fff;
}

.dark-theme #toolbarTaskScheduleMgt {
    color: #fff;
}

.dark-theme .ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .dark-theme .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .dark-theme .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .dark-theme .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .dark-theme .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .dark-theme .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .dark-theme .ag-theme-balham .ag-ltr textarea[class^=ag-], .dark-theme .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .dark-theme .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .dark-theme .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .dark-theme .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .dark-theme .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .dark-theme .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .dark-theme .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .dark-theme .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .dark-theme .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .dark-theme .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .dark-theme .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .dark-theme .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .dark-theme .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .dark-theme .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
    padding-left: var(--ag-grid-size);
    color: #fff !important;
}

.dark-theme .l-btn {
    color: #f9fafb;
    background: #1f2937;
    border: 1px solid #374151;
    background: -webkit-linear-gradient(top, #374151 0%, #1f2937 100%);
    background: -moz-linear-gradient(top, #374151 0%, #1f2937 100%);
    background: -o-linear-gradient(top, #374151 0%, #1f2937 100%);
    background: linear-gradient(to bottom, #374151 0%, #1f2937 100%);
    border-radius: 5px;
}

    .dark-theme .l-btn:hover .l-btn-text {
        color: #000;
    }

.dark-theme .panel-body {
    color: #ffffff;
}



.dark-theme  .ess-btn-primary.l-btn {
    color: #000 !important;
    background: #1f2937;
    border: 1px solid #374151;
    background: linear-gradient(to bottom, #e0ecff 0%, #e0ecff 100%) !important;
    border-radius: 5px;
    padding: 0px;
}

.dark-theme .ess-btn-primary .l-btn-text {
    color: #000000;
}

.dark-theme .ess-btn-primary {
    color: black !important;
    background-color: #E0ECFF !important;
    border-color: #E0ECFF !important;
    border: 1px solid #95B8E7 !important;
    padding: 2px 0.2rem;
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 1px;
    margin-right: 1px;
}