/* Shared dark theme. The class is added by the layout and does not affect business workflows. */
html.dark-mode {
    color-scheme: dark;
    background: #101827;
}

html.dark-mode body,
body.dark-mode {
    --secondary-Bg-color: #101827;
    background: #101827;
    color: #e5edf8;
}

html.dark-mode .hbPlus-siderCon,
html.dark-mode .hbPlus-siderCon-body,
html.dark-mode .hbPlus-rBodyCon,
html.dark-mode header,
html.dark-mode .hbPlus-contentShell,
html.dark-mode .hBplus-ViewSubContainer,
html.dark-mode #hbPlus-formConID {
    background: #101827;
}

html.dark-mode #hbPlus-formConID {
    color: #e5edf8;
    border-color: #2b3b53;
}

/* Forms use a softer slate surface than the app shell to avoid a near-black workspace. */
html.dark-mode .modalFormView,
html.dark-mode .hBplus-ViewSubContainer {
    background: #1c2b42 !important;
}

html.dark-mode #hbPlus-formConID {
    background: #1c2b42 !important;
    border-color: #334b6b !important;
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID {
    color: #e5edf8;
    background: #172235;
    border-top: 1px solid #2b3b53;
    box-shadow: 0 -5px 16px rgba(0, 0, 0, .2);
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID.buttonActive {
    background: #172235 !important;
    border-top-color: #2b3b53;
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID .dx-button {
    border: 1px solid #4e7099;
    border-radius: 6px;
    box-shadow: none;
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID .dx-button-mode-contained.dx-button-default {
    color: #f4f8ff;
    background: #1e4f85;
    border-color: #6798cf;
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID .dx-button-mode-contained.dx-button-default:hover,
html.dark-mode #hBplus-SubmitAndCanceAjaxlID .dx-button-mode-contained.dx-button-default.dx-state-hover {
    background: #2866a8;
    border-color: #9cc7f6;
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID .dx-button.dx-state-focused {
    outline: 2px solid rgba(147, 197, 253, .7);
    outline-offset: 2px;
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID .dx-button-mode-contained.dx-button-normal {
    color: #dceafe;
    background: #203654;
}

html.dark-mode #hBplus-SubmitAndCanceAjaxlID .dx-button-mode-contained.dx-button-normal:hover {
    background: #294a73;
}

html.dark-mode .hbPlus-siderCon {
    border-color: #26354b;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .2);
}

html.dark-mode .hbplus-sidebar-menu {
    background: #142036;
}

html.dark-mode .hbPlus-Company,
html.dark-mode .hBplus-SideBarFooterCon,
html.dark-mode .hbPlus-sidebarUser {
    color: #e5edf8;
    background: #101827;
    border-color: #26354b;
    box-shadow: none;
}

html.dark-mode .hbplus-sidebar-menu .hbplus-mMenu-list,
html.dark-mode .hbplus-sMenu-List .hbPlus-sMenuBtn,
html.dark-mode .menuName,
html.dark-mode .hBplus-subMenuFont,
html.dark-mode .hbPlus-sCategory,
html.dark-mode .hbPlus-CatSubMenu,
html.dark-mode .hBplus-CatSubList,
html.dark-mode .hbPlus-sidebarUserName {
    color: #c9d7ea;
}

html.dark-mode .hbPlus-menuGroup,
html.dark-mode .hbPlus-sidebarUserRole,
html.dark-mode .hbPlus-sidebarUserChevron,
html.dark-mode .hbplus-mMenu-chevron {
    color: #8297b4;
}

html.dark-mode .hbPlus-ModuleIcon {
    filter: brightness(0) saturate(100%) invert(83%) sepia(16%) saturate(613%) hue-rotate(177deg) brightness(91%) contrast(88%);
}

html.dark-mode .hbplus-sidebar-menu .hbplus-mMenu-list:hover,
html.dark-mode .hbPlus-sidebarUser:hover,
html.dark-mode .hbPlus-sidebarUser:focus-visible {
    background: #1c304d;
}

html.dark-mode .hbplus-active {
    color: #a9cbff;
    background: #1d3b63 !important;
}

html.dark-mode .hbplus-active .menuName,
html.dark-mode .hbplus-active .hbplus-mMenu-chevron,
html.dark-mode .hbplus-active .hBplus-subMenuFont {
    color: #b8d5ff !important;
}

html.dark-mode .hbplus-active .hbPlus-ModuleIcon {
    filter: brightness(0) saturate(100%) invert(75%) sepia(51%) saturate(583%) hue-rotate(181deg) brightness(101%) contrast(101%);
}

html.dark-mode .hbPlus-MiconClass {
    color: #a9cbff;
    background: #1b2a40;
    border-color: #344b6a;
}

html.dark-mode .hbPlus-header {
    border-color: #2c3d56;
    background: linear-gradient(108deg, #111c30 0%, #1d2d48 100%);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
}

.hbPlus-themeToggle {
    width: 48px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #31527f;
    background: #dce9fb;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, justify-content .2s ease;
}

.hbPlus-themeToggle:hover,
.hbPlus-themeToggle:focus-visible {
    border-color: #93c5fd;
    color: #1e4f90;
    background: #c9defa;
    outline: none;
    transform: translateY(-1px);
}

.hbPlus-themeToggle i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #31527f !important;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
    font-size: 11px;
}

html.dark-mode .hbPlus-themeToggle {
    justify-content: flex-end;
    border-color: #476584;
    color: #fbbf24;
    background: #243955;
}

html.dark-mode .hbPlus-themeToggle i {
    color: #fbbf24 !important;
    background: #13233a;
}

html.dark-mode .hbPlus-headerMenuButton {
    color: #d6e5fb;
    background: #24334b;
}

html.dark-mode .hbPlus-headerMenuButton:hover,
html.dark-mode .hbPlus-headerMenuButton:focus-visible {
    color: #ffffff;
    background: #31517d;
}

html.dark-mode #unPostBtn {
    border-color: #466889 !important;
    color: #a9cbff !important;
    background: #1b2b44 !important;
    box-shadow: none;
}

html.dark-mode #unPostBtn:hover,
html.dark-mode #unPostBtn:focus-visible {
    border-color: #77a7ec !important;
    color: #ffffff !important;
    background: #254977 !important;
}

html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .card,
html.dark-mode .modal-content,
html.dark-mode .offcanvas,
html.dark-mode .dropdown-menu,
html.dark-mode .list-group-item,
html.dark-mode .table,
html.dark-mode .accordion-item {
    color: #e5edf8;
    background-color: #172235;
    border-color: #2b3b53;
}

html.dark-mode .hBplus-HeaderEvnt,
html.dark-mode .hBplus-ActionEvnt,
html.dark-mode #breadCrumbId,
html.dark-mode .breadcrumb {
    color: #d7e4f6;
    background: #172235;
    border-color: #2b3b53;
}

html.dark-mode .breadcrumb-item.active,
html.dark-mode .breadcrumb-item + .breadcrumb-item::before {
    color: #b8c8dc;
}

html.dark-mode .dx-form .dx-field-item-label,
html.dark-mode .dx-form .dx-field-item-label-content,
html.dark-mode .dx-form .dx-field-item-label-text,
html.dark-mode .dx-form .dx-label,
html.dark-mode .dx-form .dx-label span,
html.dark-mode .dx-form .dx-form-group-caption,
html.dark-mode .dx-form .dx-field-item-required-mark,
html.dark-mode .dx-form label,
html.dark-mode .dx-form legend {
    color: #d7e4f6 !important;
}

html.dark-mode .dx-form .dx-form-group-caption {
    color: #69a7ef !important;
}

html.dark-mode .dx-form .dx-texteditor,
html.dark-mode .dx-form .dx-texteditor.dx-editor-filled,
html.dark-mode .dx-form .dx-texteditor.dx-editor-outlined,
html.dark-mode .dx-form .dx-texteditor-input,
html.dark-mode .dx-form .dx-texteditor-input-container,
html.dark-mode .dx-form .dx-texteditor-container,
html.dark-mode .dx-form .dx-dropdowneditor-button,
html.dark-mode .dx-form .dx-datebox-wrapper,
html.dark-mode .dx-form textarea,
html.dark-mode .dx-form input {
    color: #edf4ff !important;
    background-color: #1b2a40 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .dx-form .dx-texteditor-input::placeholder,
html.dark-mode .dx-form .dx-placeholder,
html.dark-mode .dx-form .dx-placeholder::before {
    color: #9badc4 !important;
}

html.dark-mode .dx-form .dx-texteditor.dx-state-focused {
    border-color: #6099df !important;
    box-shadow: 0 0 0 2px rgba(96, 153, 223, .16);
}

html.dark-mode .dx-form .dx-checkbox-icon,
html.dark-mode .dx-form .dx-radiobutton-icon {
    border-color: #6686aa;
    background-color: #172235;
}

/* List pages: title panel, toolbar, pager, and grid headers. */
html.dark-mode .hBplus-ListHeader {
    background: linear-gradient(105deg, #17253a 0%, #1b2c45 58%, #17253a 100%);
    border-color: #2e4665;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

html.dark-mode .hBplus-ListHeader h5 {
    color: #edf4ff;
}

html.dark-mode .hbPlus-listHeaderSubtitle {
    color: #a8bdd8;
}

html.dark-mode .hbPlus-listHeaderIcon {
    color: #8fc1ff;
    background: #1d3a60;
    box-shadow: inset 0 0 0 1px #31577f;
}

html.dark-mode .hbPlus-listHeaderActions .dx-button {
    color: #dceafe;
    border-color: #3b5879;
    background: #1b2a40;
    box-shadow: none;
}

html.dark-mode .hbPlus-listHeaderActions .dx-button:hover,
html.dark-mode .hbPlus-listHeaderActions .dx-button.dx-state-hover {
    border-color: #6d9fda;
    background: #254365;
}

html.dark-mode .hbPlus-listHeaderActions .dx-button.dx-button-default {
    color: #ffffff;
    border-color: #4e90ea;
    background: #1d6fd4;
}

html.dark-mode #gridContainer {
    background: #172235;
    border-color: #2e4665;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

html.dark-mode #gridContainer .dx-datagrid-header-panel,
html.dark-mode #gridContainer .dx-datagrid-headers,
html.dark-mode #gridContainer .dx-datagrid-pager,
html.dark-mode #gridContainer .dx-pager,
html.dark-mode #gridContainer .dx-toolbar {
    color: #dceafe;
    background: #172235;
    border-color: #2e4665;
}

html.dark-mode #gridContainer .dx-header-row > td {
    color: #bcd8f7 !important;
    background: #1d304b !important;
    border-color: #344e70 !important;
}

html.dark-mode #gridContainer .dx-datagrid-rowsview .dx-row-focused > td,
html.dark-mode #gridContainer .dx-datagrid-rowsview .dx-selection > td,
html.dark-mode #gridContainer .dx-datagrid-rowsview .dx-data-row.dx-selection > td {
    color: #edf6ff !important;
    background: #244a76 !important;
    border-color: #4b79ad !important;
}

html.dark-mode #gridContainer .dx-datagrid-rowsview .dx-row-focused .dx-datagrid-text-content,
html.dark-mode #gridContainer .dx-datagrid-rowsview .dx-selection .dx-datagrid-text-content {
    color: #edf6ff !important;
}

html.dark-mode #gridContainer .dx-datagrid-pager,
html.dark-mode #gridContainer .dx-pager {
    border-top-color: #2e4665;
}

html.dark-mode #gridContainer .dx-page,
html.dark-mode #gridContainer .dx-page-size,
html.dark-mode #gridContainer .dx-pages .dx-selection,
html.dark-mode #gridContainer .dx-pages .dx-page {
    color: #b9d5f6;
}

html.dark-mode #gridContainer .dx-pages .dx-selection {
    color: #ffffff;
    background: #1d6fd4;
}

/* Column chooser is rendered in a body-level overlay, outside #gridContainer. */
html.dark-mode .dx-datagrid-column-chooser,
html.dark-mode .dx-datagrid-column-chooser .dx-popup-content,
html.dark-mode .dx-datagrid-column-chooser .dx-scrollable-container,
html.dark-mode .dx-datagrid-column-chooser .dx-list {
    color: #dceafe;
    background: #172235 !important;
    border-color: #2e4665;
}

html.dark-mode .dx-datagrid-column-chooser .dx-list-item,
html.dark-mode .dx-datagrid-column-chooser .dx-list-item-content {
    color: #dceafe !important;
    background: #1b2a40 !important;
    border-color: #344e70 !important;
}

html.dark-mode .dx-datagrid-column-chooser .dx-list-item:hover,
html.dark-mode .dx-datagrid-column-chooser .dx-list-item.dx-state-hover {
    background: #254365 !important;
}

html.dark-mode .dx-datagrid-column-chooser .dx-texteditor,
html.dark-mode .dx-datagrid-column-chooser .dx-texteditor-input,
html.dark-mode .dx-datagrid-column-chooser .dx-texteditor-container {
    color: #edf4ff !important;
    background: #1b2a40 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .dx-datagrid-column-chooser .dx-button {
    color: #dceafe;
    background: #203654;
    border-color: #4e7099;
}

html.dark-mode .dx-datagrid-column-chooser .dx-button:hover,
html.dark-mode .dx-datagrid-column-chooser .dx-button.dx-state-hover {
    background: #294a73;
    border-color: #8bb9ea;
}

html.dark-mode .dx-datagrid-column-chooser .dx-button.dx-button-default {
    color: #ffffff;
    background: #1d6fd4;
    border-color: #5b9bf0;
}

/* Dashboard Access workspace. */
html.dark-mode body.dashboard-view-active .hbPlus-rBodyCon.dashboard-region-active > div {
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, .16), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(14, 116, 144, .12), transparent 32%),
        linear-gradient(135deg, #101827 0%, #142136 58%, #101827 100%);
}

html.dark-mode .dashboard-shell {
    --dashboard-surface: #1a2940;
    --dashboard-border: #2d4667;
    --dashboard-text: #edf4ff;
    --dashboard-subtext: #b0c2d8;
    --dashboard-bg-a: #111d30;
    --dashboard-bg-b: #152640;
    --dashboard-shadow: 0 20px 48px rgba(0, 0, 0, .28);
    background:
        radial-gradient(circle at 0 100%, rgba(37, 99, 235, .16), transparent 34%),
        radial-gradient(circle at 100% 0, rgba(14, 116, 144, .13), transparent 29%),
        linear-gradient(180deg, var(--dashboard-bg-b), var(--dashboard-bg-a));
}

html.dark-mode .dashboard-hero {
    background:
        radial-gradient(circle at 88% -50%, rgba(37, 99, 235, .36), transparent 46%),
        linear-gradient(135deg, #111d30 0%, #192b47 58%, #20385d 100%);
}

html.dark-mode .dashboard-chip {
    color: #dbeafe;
    background: rgba(96, 165, 250, .14);
    border-color: rgba(147, 197, 253, .32);
}

html.dark-mode .dashboard-card {
    background: var(--dashboard-surface);
    border-color: #314d70;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
}

html.dark-mode .dashboard-card:hover {
    border-color: #5c92d3;
    box-shadow: 0 20px 34px rgba(0, 0, 0, .32);
}

html.dark-mode .dashboard-card h3 {
    color: #edf4ff;
}

html.dark-mode .dashboard-card p {
    color: #b0c2d8;
}

html.dark-mode .dashboard-link {
    color: #8fc1ff;
}

html.dark-mode .dashboard-card:hover .dashboard-link {
    color: #b8d9ff;
}

html.dark-mode .dashboard-empty {
    color: #b0c2d8;
    background: rgba(26, 41, 64, .78);
    border-color: #496586;
}

html.dark-mode .dashboard-empty strong {
    color: #edf4ff;
}

/* Workspace sub-pages such as Management, Procurement, and Inventory dashboards. */
html.dark-mode .dashboard-page-shell {
    background:
        linear-gradient(180deg, rgba(20, 33, 54, .98), rgba(16, 27, 45, .98)),
        radial-gradient(circle at top right, rgba(37, 99, 235, .18), transparent 30%);
    border-color: #2d4667;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

html.dark-mode .dashboard-page-header {
    background: linear-gradient(135deg, #1a2a43, #17253a);
    border-bottom-color: #2d4667;
}

html.dark-mode .dashboard-page-header h2,
html.dark-mode .dashboard-page-card h3,
html.dark-mode .dashboard-page-link {
    color: #edf4ff;
}

html.dark-mode .dashboard-page-header p,
html.dark-mode .dashboard-page-card p {
    color: #b0c2d8;
}

html.dark-mode .dashboard-back-btn {
    color: #dceafe;
    background: #1b2a40;
    border-color: #456489;
}

html.dark-mode .dashboard-back-btn:hover,
html.dark-mode .dashboard-back-btn:focus-visible {
    color: #ffffff;
    background: #254365;
    border-color: #78a9df;
    outline: none;
}

html.dark-mode .dashboard-page-card {
    background: #1a2940;
    border-color: #314d70;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

html.dark-mode .dashboard-page-card:hover {
    box-shadow: 0 18px 28px rgba(0, 0, 0, .32);
}

/* Procurement analytics dashboard. */
html.dark-mode .procurement-dashboard-shell {
    background:
        linear-gradient(180deg, rgba(17, 29, 48, .98), rgba(14, 25, 42, .98)),
        radial-gradient(circle at top right, rgba(13, 148, 136, .18), transparent 28%);
    border-color: #2d4667;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

html.dark-mode .procurement-dashboard-header {
    background: linear-gradient(135deg, #1a2a43, #17253a);
    border-bottom-color: #2d4667;
}

html.dark-mode .procurement-dashboard-header h2,
html.dark-mode .procurement-section-title h3,
html.dark-mode .procurement-kpi-value,
html.dark-mode .procurement-aging-card strong {
    color: #edf4ff;
}

html.dark-mode .procurement-dashboard-header p,
html.dark-mode .procurement-section-title span,
html.dark-mode .procurement-kpi-meta,
html.dark-mode .procurement-aging-card .count {
    color: #b0c2d8;
}

html.dark-mode .procurement-dashboard-back-btn {
    color: #dceafe;
    background: #1b2a40;
    border-color: #456489;
}

html.dark-mode .procurement-dashboard-back-btn:hover,
html.dark-mode .procurement-dashboard-back-btn:focus-visible {
    color: #ffffff;
    background: #254365;
    border-color: #78a9df;
    outline: none;
}

html.dark-mode .procurement-kpi-card,
html.dark-mode .procurement-panel,
html.dark-mode .procurement-aging-card {
    background: #1a2940;
    border-color: #314d70;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

html.dark-mode .procurement-kpi-label {
    color: #c7d5e7;
}

html.dark-mode .procurement-aging-card .amount {
    color: #51d1be;
}

html.dark-mode .procurement-chart svg text,
html.dark-mode .procurement-grid svg text {
    fill: #bdd0e7 !important;
}

html.dark-mode .procurement-chart .dxc-grid,
html.dark-mode .procurement-chart .dxc-arg-line,
html.dark-mode .procurement-chart .dxc-val-line {
    stroke: #35506f !important;
}

/* Sales analytics dashboard. */
html.dark-mode .sales-dashboard-shell {
    background:
        linear-gradient(180deg, rgba(17, 29, 48, .98), rgba(14, 25, 42, .98)),
        radial-gradient(circle at top right, rgba(2, 132, 199, .2), transparent 30%);
    border-color: #2d4667;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

html.dark-mode .sales-dashboard-header {
    background: linear-gradient(135deg, #1a2a43, #17253a);
    border-bottom-color: #2d4667;
}

html.dark-mode .sales-dashboard-header h2,
html.dark-mode .sales-section-title h3,
html.dark-mode .sales-kpi-value,
html.dark-mode .sales-monitor-card strong {
    color: #edf4ff;
}

html.dark-mode .sales-dashboard-header p,
html.dark-mode .sales-section-title span,
html.dark-mode .sales-filter-note,
html.dark-mode .sales-kpi-meta {
    color: #b0c2d8;
}

html.dark-mode .sales-dashboard-back-btn {
    color: #dceafe;
    background: #1b2a40;
    border-color: #456489;
}

html.dark-mode .sales-dashboard-back-btn:hover,
html.dark-mode .sales-dashboard-back-btn:focus-visible {
    color: #ffffff;
    background: #254365;
    border-color: #78a9df;
    outline: none;
}

html.dark-mode .sales-panel,
html.dark-mode .sales-kpi-card,
html.dark-mode .sales-monitor-card {
    background: #1a2940;
    border-color: #314d70;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

html.dark-mode .sales-kpi-label {
    color: #c7d5e7;
}

html.dark-mode .sales-monitor-card .value {
    color: #51d1be;
}

html.dark-mode .sales-filter-grid .dx-texteditor,
html.dark-mode .sales-filter-grid .dx-texteditor-input,
html.dark-mode .sales-filter-grid .dx-texteditor-container,
html.dark-mode .sales-filter-grid .dx-dropdowneditor-button {
    color: #edf4ff !important;
    background: #1b2a40 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .sales-filter-grid .dx-placeholder,
html.dark-mode .sales-filter-grid .dx-placeholder::before {
    color: #9badc4 !important;
}

html.dark-mode .sales-preset-row .dx-button,
html.dark-mode #salesApplyFilter .dx-button {
    color: #dceafe;
    background: #203654;
    border-color: #4e7099;
}

html.dark-mode .sales-preset-row .dx-button:hover,
html.dark-mode #salesApplyFilter .dx-button:hover,
html.dark-mode .sales-preset-row .dx-button.dx-state-hover,
html.dark-mode #salesApplyFilter .dx-button.dx-state-hover {
    background: #294a73;
    border-color: #8bb9ea;
}

html.dark-mode #salesApplyFilter .dx-button.dx-button-default {
    color: #ffffff;
    background: #1d6fd4;
    border-color: #5b9bf0;
}

html.dark-mode .sales-chart svg text,
html.dark-mode .sales-grid svg text {
    fill: #bdd0e7 !important;
}

html.dark-mode .sales-chart .dxc-grid,
html.dark-mode .sales-chart .dxc-arg-line,
html.dark-mode .sales-chart .dxc-val-line {
    stroke: #35506f !important;
}

/* Marketing dashboard. */
html.dark-mode .mkt-dashboard {
    --mkt-ink: #edf4ff;
    --mkt-muted: #aec0d6;
    --mkt-teal: #5bb8c8;
    color: var(--mkt-ink);
    background: #101827;
    border-color: #2d4667;
}

html.dark-mode .mkt-header,
html.dark-mode .mkt-main {
    background: #101827;
}

html.dark-mode .mkt-header h2,
html.dark-mode .mkt-section h3,
html.dark-mode .mkt-section h4,
html.dark-mode .mkt-product-stats strong,
html.dark-mode .mkt-brand-heading strong,
html.dark-mode .mkt-table td {
    color: #edf4ff;
}

html.dark-mode .mkt-button {
    color: #dceafe;
    background: #1b2a40;
    border-color: #456489;
}

html.dark-mode .mkt-button:hover {
    color: #ffffff;
    background: #254365;
    border-color: #78a9df;
}

html.dark-mode .mkt-button-primary {
    color: #ffffff;
    background: #185878;
    border-color: #317eaa;
}

html.dark-mode .mkt-product-visual,
html.dark-mode .mkt-brand-products .mkt-product-visual {
    background: linear-gradient(145deg, #25364d, #1c2b40);
}

html.dark-mode .mkt-empty {
    color: #b0c2d8;
    background: #17253a;
    border-color: #496586;
}

html.dark-mode .mkt-table th {
    color: #a9bfd8;
    border-bottom-color: #36506e;
}

html.dark-mode .mkt-table td {
    border-bottom-color: #2d4667;
}

html.dark-mode .mkt-footer {
    border-top-color: #2d4667;
}

html.dark-mode .mkt-filters .dx-texteditor,
html.dark-mode .mkt-filters .dx-texteditor-input,
html.dark-mode .mkt-filters .dx-texteditor-container,
html.dark-mode .mkt-filters .dx-dropdowneditor-button {
    color: #edf4ff !important;
    background: #1b2a40 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .mkt-filters .dx-placeholder,
html.dark-mode .mkt-filters .dx-placeholder::before {
    color: #9badc4 !important;
}

html.dark-mode .mkt-chart svg text {
    fill: #bdd0e7 !important;
}

html.dark-mode .mkt-chart .dxc-grid,
html.dark-mode .mkt-chart .dxc-arg-line,
html.dark-mode .mkt-chart .dxc-val-line {
    stroke: #35506f !important;
}

/* System Integrity & Diagnostics dashboard. */
html.dark-mode .si-shell {
    background:
        linear-gradient(180deg, rgba(17, 29, 48, .98), rgba(14, 25, 42, .98)),
        radial-gradient(circle at top right, rgba(71, 85, 105, .2), transparent 30%);
    border-color: #2d4667;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

html.dark-mode .si-header {
    background: linear-gradient(135deg, #1a2a43, #17253a);
    border-bottom-color: #2d4667;
}

html.dark-mode .si-header h2,
html.dark-mode .si-panel-title,
html.dark-mode .si-kpi-value,
html.dark-mode .si-category-name,
html.dark-mode .si-detail-value {
    color: #edf4ff;
}

html.dark-mode .si-header p,
html.dark-mode .si-panel-subtitle,
html.dark-mode .si-scan-note,
html.dark-mode .si-kpi-meta,
html.dark-mode .si-category-note,
html.dark-mode .si-detail-label {
    color: #b0c2d8;
}

html.dark-mode .si-admin-badge {
    color: #dceafe;
    background: rgba(96, 165, 250, .12);
    border-color: #496586;
}

html.dark-mode .si-back-btn,
html.dark-mode .si-tab {
    color: #dceafe;
    background: #1b2a40;
    border-color: #456489;
}

html.dark-mode .si-back-btn:hover,
html.dark-mode .si-back-btn:focus-visible,
html.dark-mode .si-tab:hover {
    color: #ffffff;
    background: #254365;
    border-color: #78a9df;
    outline: none;
}

html.dark-mode .si-tab.si-tab-active {
    color: #ffffff;
    background: #1d6fd4;
    border-color: #5b9bf0;
}

html.dark-mode .si-panel,
html.dark-mode .si-kpi-card,
html.dark-mode .si-category-row,
html.dark-mode .si-detail-cell {
    background: #1a2940;
    border-color: #314d70;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

html.dark-mode .si-kpi-label {
    color: #c7d5e7;
}

html.dark-mode .si-filter-grid .dx-texteditor,
html.dark-mode .si-filter-grid .dx-texteditor-input,
html.dark-mode .si-filter-grid .dx-texteditor-container,
html.dark-mode .si-filter-grid .dx-dropdowneditor-button,
html.dark-mode .si-filter-grid-secondary .dx-texteditor,
html.dark-mode .si-filter-grid-secondary .dx-texteditor-input,
html.dark-mode .si-filter-grid-secondary .dx-texteditor-container,
html.dark-mode .si-filter-grid-secondary .dx-dropdowneditor-button {
    color: #edf4ff !important;
    background: #1b2a40 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .si-filter-grid .dx-placeholder,
html.dark-mode .si-filter-grid-secondary .dx-placeholder,
html.dark-mode .si-filter-grid .dx-placeholder::before,
html.dark-mode .si-filter-grid-secondary .dx-placeholder::before {
    color: #9badc4 !important;
}

html.dark-mode .si-filter-actions .dx-button {
    color: #dceafe;
    background: #203654;
    border-color: #4e7099;
}

html.dark-mode .si-filter-actions .dx-button.dx-button-default {
    color: #ffffff;
    background: #1d6fd4;
    border-color: #5b9bf0;
}

html.dark-mode .si-attention-item {
    background: rgba(127, 29, 29, .22);
    border-color: rgba(248, 113, 113, .38);
}

html.dark-mode .si-attention-title { color: #fecaca; }
html.dark-mode .si-attention-meta { color: #fca5a5; }

html.dark-mode .si-healthy-state {
    background: rgba(6, 78, 59, .35);
    border-color: rgba(52, 211, 153, .35);
}

html.dark-mode .si-healthy-state h3 { color: #6ee7b7; }
html.dark-mode .si-healthy-state p { color: #a7f3d0; }

html.dark-mode .si-banner-warn {
    color: #fde68a;
    background: rgba(120, 53, 15, .34);
    border-color: rgba(251, 191, 36, .38);
}

html.dark-mode .si-banner-danger,
html.dark-mode .si-section-danger {
    color: #fecaca;
    background: rgba(127, 29, 29, .22);
    border-color: rgba(248, 113, 113, .38);
}

/* Unpost workspace. */
html.dark-mode .unpost-page,
html.dark-mode .unpost-shell {
    background: #101827;
}

html.dark-mode .unpost-header {
    background: linear-gradient(105deg, #17253a 0%, #1b2c45 58%, #17253a 100%);
    border-color: #2e4665;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

html.dark-mode .unpost-header > div:first-child::before {
    color: #8fc1ff;
    background: #1d3a60;
    box-shadow: inset 0 0 0 1px #31577f;
}

html.dark-mode .unpost-title { color: #edf4ff; }
html.dark-mode .unpost-subtitle { color: #aec0d6; }

html.dark-mode .unpost-actions .hbPlus-itemWrapper button,
html.dark-mode .unpost-actions .dx-button {
    color: #dceafe;
    background: #1b2a40;
    border-color: #3b5879;
    box-shadow: none;
}

html.dark-mode .unpost-actions .hbPlus-itemWrapper button:hover,
html.dark-mode .unpost-actions .dx-button:hover,
html.dark-mode .unpost-actions .dx-button.dx-state-hover {
    background: #254365;
    border-color: #6d9fda;
}

html.dark-mode .unpost-actions .dx-texteditor,
html.dark-mode .unpost-actions .dx-texteditor-input,
html.dark-mode .unpost-actions .dx-texteditor-container,
html.dark-mode .unpost-actions .dx-dropdowneditor-button {
    color: #edf4ff !important;
    background: #1b2a40 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .unpost-page #UnPostGridContainer,
html.dark-mode .unpost-page #UnPostGridContainer .dx-datagrid-rowsview,
html.dark-mode .unpost-page #UnPostGridContainer .dx-datagrid-pager,
html.dark-mode .unpost-page #UnPostGridContainer .dx-pager {
    color: #dceafe;
    background: #172235;
    border-color: #2e4665;
}

html.dark-mode .unpost-page #UnPostGridContainer .dx-header-row > td {
    color: #bcd8f7 !important;
    background: #1d304b !important;
    border-color: #344e70 !important;
}

html.dark-mode .unpost-page #UnPostGridContainer .dx-data-row > td,
html.dark-mode .unpost-page #UnPostGridContainer .dx-row-alt > td {
    color: #e5edf8 !important;
    background: #172235 !important;
    border-color: #2b3b53 !important;
}

html.dark-mode .unpost-page #UnPostGridContainer .dx-selection > td,
html.dark-mode .unpost-page #UnPostGridContainer .dx-row-focused > td {
    color: #edf6ff !important;
    background: #244a76 !important;
    border-color: #4b79ad !important;
}

/* Grid right-click menus are rendered in a body-level DevExtreme overlay. */
html.dark-mode .dx-context-menu,
html.dark-mode .dx-context-menu .dx-submenu,
html.dark-mode .dx-context-menu .dx-menu-base,
html.dark-mode .dx-context-menu .dx-menu-items-container {
    color: #dceafe;
    background: #172235 !important;
    border-color: #344e70 !important;
}

html.dark-mode .dx-context-menu .dx-menu-item,
html.dark-mode .dx-context-menu .dx-menu-item-content,
html.dark-mode .dx-context-menu .dx-menu-item-text,
html.dark-mode .dx-context-menu .dx-menu-item .dx-icon {
    color: #dceafe !important;
    background: transparent !important;
}

html.dark-mode .dx-context-menu .dx-menu-item.dx-state-hover,
html.dark-mode .dx-context-menu .dx-menu-item.dx-state-focused,
html.dark-mode .dx-context-menu .dx-menu-item:hover {
    color: #ffffff !important;
    background: #254365 !important;
}

html.dark-mode .dx-context-menu .dx-menu-separator {
    border-color: #344e70;
}

/* Document viewer chrome only; the printable report page remains white for accurate print/PDF output. */
html.dark-mode .dxrdp-surface,
html.dark-mode .dxrd-report-preview-holder,
html.dark-mode .dxrd-preview-wrapper,
html.dark-mode .dxrd-report-preview-holder > div:not(.dxrd-report-preview) {
    background: #101827 !important;
}

html.dark-mode .dxrd-toolbar-wrapper,
html.dark-mode .dxrd-toolbar-wrapper.dxd-back-secondary-invariant,
html.dark-mode .dxrd-toolbar,
html.dark-mode .dxrd-preview-toolbar-scrollable {
    color: #dceafe;
    background: #172235 !important;
    border-color: #2e4665 !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}

html.dark-mode .dxrd-toolbar-wrapper .dx-button,
html.dark-mode .dxrd-toolbar .dx-button,
html.dark-mode .dxrd-toolbar-wrapper .dx-texteditor,
html.dark-mode .dxrd-toolbar-wrapper .dx-texteditor-input,
html.dark-mode .dxrd-toolbar-wrapper .dx-dropdowneditor-button {
    color: #dceafe !important;
    background: #1b2a40 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .dxrd-toolbar-wrapper .dx-button:hover,
html.dark-mode .dxrd-toolbar-wrapper .dx-button.dx-state-hover {
    color: #ffffff !important;
    background: #254365 !important;
    border-color: #78a9df !important;
}

html.dark-mode .dxrd-toolbar-wrapper .dx-icon,
html.dark-mode .dxrd-toolbar-wrapper .dx-button-text {
    color: #dceafe !important;
}

/* DevExpress report preview: darken only the viewer chrome, never the printable page. */
html.dark-mode .dxrd-preview.dxrd-designer-wrapper,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-preview-wrapper,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-preview-surface,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-preview-surface .dxrd-report-preview-holder,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dx-scrollable-container,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dx-scrollable-content {
    background: #101827 !important;
}

html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrdp-toolbar-scrollable.dxrd-toolbar-wrapper,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrdp-toolbar-scrollable.dxrd-toolbar-wrapper .dxrd-toolbar {
    color: #dceafe !important;
    background: #172235 !important;
    border-color: #2e4665 !important;
}

html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item-with-separator,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item-with-separator::before,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item-with-separator::after {
    color: #cfe0f5 !important;
    border-color: #38516f !important;
}

html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item:not(.dx-state-disabled) .dxrd-toolbar-item-image,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item:not(.dx-state-disabled) .dx-icon,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item:not(.dx-state-disabled) svg {
    color: #cfe0f5 !important;
    opacity: 1;
}

html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item:not(.dx-state-disabled) .dxrd-toolbar-item-image {
    filter: brightness(0) saturate(100%) invert(89%) sepia(13%) saturate(589%) hue-rotate(174deg) brightness(103%) contrast(93%);
}

html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-toolbar-item.dx-state-disabled {
    opacity: .45;
}

html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-preview-pager-selectbox .dx-texteditor,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-preview-pager-selectbox .dx-texteditor-input,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-zoom-selectbox .dx-texteditor,
html.dark-mode .dxrd-preview.dxrd-designer-wrapper .dxrd-zoom-selectbox .dx-texteditor-input {
    color: #e5edf8 !important;
    background: #1b2a40 !important;
    border-color: #3d5878 !important;
}

/* Expanded/master-detail grids used by disbursement and sales order verification. */
html.dark-mode .dx-datagrid .dx-master-detail-cell,
html.dark-mode .dx-datagrid .dx-master-detail-cell > .dx-datagrid,
html.dark-mode .dx-datagrid .dx-master-detail-cell .dx-datagrid-rowsview,
html.dark-mode .dx-datagrid .dx-master-detail-cell .dx-datagrid-pager,
html.dark-mode .dx-datagrid .dx-master-detail-cell .dx-datagrid-header-panel {
    color: #e5edf8 !important;
    background: #101827 !important;
    border-color: #2e4665 !important;
}

html.dark-mode .dx-datagrid .dx-master-detail-cell .dx-datagrid-headers,
html.dark-mode .dx-datagrid .dx-master-detail-cell .dx-datagrid-headers .dx-row > td {
    color: #bfdbfe !important;
    background: #203957 !important;
    border-color: #38516f !important;
}

html.dark-mode .dx-datagrid .dx-master-detail-cell .dx-data-row > td,
html.dark-mode .dx-datagrid .dx-master-detail-cell .dx-row-alt > td {
    color: #e5edf8 !important;
    background: #172235 !important;
    border-color: #2e4665 !important;
}

/* Cheque print setup: keep the cheque sample paper light, darken the editor workspace. */
html.dark-mode .cheque-print-page,
html.dark-mode .cheque-print-popup,
html.dark-mode .cheque-print-settings-grid,
html.dark-mode .cheque-print-settings-grid > div:last-child {
    color: #e5edf8 !important;
    background: #101827 !important;
}

html.dark-mode .cheque-print-page .cheque-print-numberBox > span,
html.dark-mode .cheque-print-preview-shell h6,
html.dark-mode .cheque-print-preview-shell p {
    color: #e5edf8 !important;
}

html.dark-mode .cheque-print-preview-shell .cheque-preview-stage,
html.dark-mode .cheque-print-preview-shell #chequePreview {
    color: #1f2d3d !important;
    background: #fbf6ef !important;
}

html.dark-mode .cheque-print-actions {
    background: #172235 !important;
    border-top: 1px solid #2e4665;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .28) !important;
}

/* Accounting report shells and their filter/grid panels. */
html.dark-mode #reportPage,
html.dark-mode .sales-summary-shell,
html.dark-mode .header-Report-title,
html.dark-mode #reportGridContainer {
    color: #e5edf8 !important;
    background: #172235 !important;
    border-color: #2e4665 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2) !important;
}

html.dark-mode .sales-summary-title,
html.dark-mode .sales-summary-date-chip-value,
html.dark-mode .ReportFilter-Name {
    color: #e5edf8 !important;
}

html.dark-mode .sales-summary-subtitle,
html.dark-mode .sales-summary-date-chip-label {
    color: #aebfd4 !important;
}

html.dark-mode .sales-summary-kicker,
html.dark-mode .sales-summary-date-chip {
    color: #bfdbfe !important;
    background: #1b2a40 !important;
    border-color: #38516f !important;
}

html.dark-mode #reportGridContainer .dx-datagrid-header-panel,
html.dark-mode #reportGridContainer .dx-datagrid-pager,
html.dark-mode #reportGridContainer .dx-datagrid-group-panel {
    background: #172235 !important;
    border-color: #2e4665 !important;
}

/* Printer panel displayed above report grids. */
html.dark-mode #PrinterPanelId,
html.dark-mode #PrinterPanelContainer,
html.dark-mode .printer-panel,
html.dark-mode .hasi-printer-panel {
    color: #e5edf8 !important;
    background: #172235 !important;
    border-color: #2e4665 !important;
}

html.dark-mode .hBplus-PrintPanel,
html.dark-mode .hBplus-PrintPanel .printheaderCon,
html.dark-mode .hBplus-PrintPanel #printBody {
    color: #e5edf8 !important;
    background: #172235 !important;
    border-color: #2e4665 !important;
}

html.dark-mode .hBplus-PrintPanel #ReportTitleId,
html.dark-mode .hBplus-PrintPanel #CompanyTitleId,
html.dark-mode .hBplus-PrintPanel #DateResultId,
html.dark-mode .hBplus-PrintPanel #BankNameResultId {
    color: #dceafe !important;
}

html.dark-mode .hBplus-PrintPanel .reportGridContainer-class .dx-datagrid-headers,
html.dark-mode .hBplus-PrintPanel .reportGridContainer-class .dx-datagrid-headers .dx-datagrid-table,
html.dark-mode .hBplus-PrintPanel .reportGridContainer-class .dx-datagrid-total-footer,
html.dark-mode .hBplus-PrintPanel .reportGridContainer-class .dx-datagrid-total-footer .dx-row > td {
    background: #1d2d45 !important;
    border-color: #38516f !important;
}

/* Header title partial injects its own light styles after the shared stylesheet. */
html.dark-mode .hBplus-ListHeader {
    background: linear-gradient(105deg, #17253a 0%, #1b2c45 58%, #17253a 100%) !important;
    border-color: #2e4665 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2) !important;
}

html.dark-mode .hBplus-ListHeader h5,
html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderTitle,
html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderSubtitle {
    color: #e5edf8 !important;
}

html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderSubtitle {
    color: #aebfd4 !important;
}

html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderIcon {
    color: #9dcbff !important;
    background: #1d3a60 !important;
    border-color: #31577f !important;
}

html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderActions .dx-button {
    color: #dceafe !important;
    background: #172235 !important;
    border-color: #3d5878 !important;
}

html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderActions .dx-icon,
html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderActions .dx-button .dx-icon,
html.dark-mode .verification-actions .dx-icon,
html.dark-mode .dr-status-action-group .dx-icon,
html.dark-mode .hBplus-ActionEvnt .dx-icon,
html.dark-mode .hBplus-HeaderBtn .dx-icon {
    color: #b9d7ff !important;
}

html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderActions .dx-button-default .dx-icon,
html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderActions #hBplus-BtnCreate .dx-icon {
    color: #ffffff !important;
}

html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderActions button > i,
html.dark-mode .hBplus-ListHeader .hbPlus-listHeaderActions button > svg,
html.dark-mode .verification-actions button > i,
html.dark-mode .verification-actions button > svg {
    color: #b9d7ff !important;
    fill: currentColor;
}

/* Navigation/process canvases store the workflow markup dynamically in the database. */
html.dark-mode .hBplus-MainNavigation,
html.dark-mode #hBplus-NavWindowDis,
html.dark-mode #hBplus-panelNavigationUtility,
html.dark-mode .hBplus-ViewDataNavContainer {
    color: #e5edf8 !important;
    background-color: #101827 !important;
    background-image: radial-gradient(circle at 50% 0, rgba(45, 93, 151, .16), transparent 42%) !important;
}

html.dark-mode .hBplus-HLine,
html.dark-mode .hBplus-VLine,
html.dark-mode .hBplus-Verticaline,
html.dark-mode .hBplus-Horizontaline {
    background-color: #90a4bf !important;
}

html.dark-mode .hBplus-TextBox {
    color: #e5edf8 !important;
    background: #172235 !important;
    border-color: #38516f !important;
}

/* Workflow node colors are user-configured, including light pastel fills. */
html.dark-mode .hBplus-MainNavigation .hBplus-BoxShape,
html.dark-mode #hBplus-panelNavigationUtility .hBplus-BoxShape {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(5, 15, 30, .95), 0 0 3px rgba(5, 15, 30, .7);
}

html.dark-mode .hBplus-MainNavigation .hBplus-BoxShape label,
html.dark-mode .hBplus-MainNavigation .hBplus-BoxShape span,
html.dark-mode .hBplus-MainNavigation .hBplus-BoxShape p,
html.dark-mode #hBplus-panelNavigationUtility .hBplus-BoxShape label,
html.dark-mode #hBplus-panelNavigationUtility .hBplus-BoxShape span,
html.dark-mode #hBplus-panelNavigationUtility .hBplus-BoxShape p {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(5, 15, 30, .95), 0 0 3px rgba(5, 15, 30, .7);
}

/* Unsaved-form confirmation is created dynamically by sidemenu.js. */
html.dark-mode #FormDirtyModal .form-dirty-content {
    color: #e5edf8 !important;
    background: #172235 !important;
    border: 1px solid #3e5878 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .5) !important;
}

html.dark-mode #FormDirtyModal .modal-body {
    color: #c5d4e8 !important;
}

html.dark-mode #FormDirtyModal .modal-body span[style] {
    color: #ff9c9c !important;
}

html.dark-mode #FormDirtyModal .form-dirty-content img {
    filter: invert(87%) sepia(42%) saturate(607%) hue-rotate(341deg) brightness(102%) contrast(101%);
}

html.dark-mode #FormDirtyModal .formDirtyButton[attr-stay="yes"] {
    color: #dceafe !important;
    background: #1b2a40 !important;
    border-color: #496786 !important;
}

/* Transaction History uses inline styles, so these scoped overrides intentionally win in dark mode. */
html.dark-mode .transactionHistoryPanel {
    background: rgba(3, 10, 22, .7) !important;
}

html.dark-mode .transactionHistoryCard {
    color: #e5edf8;
    background: #172235 !important;
    border: 1px solid #314d70;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .45) !important;
}

html.dark-mode .transactionHistoryTitle {
    color: #edf4ff !important;
}

html.dark-mode .transactionHistorySubtitle {
    color: #aec0d6 !important;
}

html.dark-mode .transactionHistoryClose {
    color: #dceafe;
    background: #243650 !important;
    border: 1px solid #426182 !important;
}

html.dark-mode .transactionHistoryClose:hover {
    color: #ffffff;
    background: #315071 !important;
}

html.dark-mode .transactionHistoryCard .summaryBox {
    background: #1b2a40 !important;
    border: 1px solid #314d70;
}

html.dark-mode .transactionHistoryCard .summaryLabel {
    color: #aec0d6 !important;
}

html.dark-mode .transactionHistoryCard .summaryValue {
    color: #edf4ff !important;
}

html.dark-mode #transactionHistoryGrid .dx-datagrid-headers,
html.dark-mode #transactionHistoryGrid .dx-header-row > td {
    color: #bcd8f7 !important;
    background: #1d304b !important;
    border-color: #344e70 !important;
}

html.dark-mode #transactionHistoryGrid .dx-datagrid-rowsview,
html.dark-mode #transactionHistoryGrid .dx-data-row > td,
html.dark-mode #transactionHistoryGrid .dx-row-alt > td {
    color: #e5edf8 !important;
    background: #172235 !important;
    border-color: #2b3b53 !important;
}

html.dark-mode .form-control::placeholder {
    color: #8fa2bc;
}

html.dark-mode .form-control:focus,
html.dark-mode .form-select:focus {
    color: #f8fbff;
    background-color: #1b2a40;
    border-color: #5b91d6;
    box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .18);
}

html.dark-mode .text-muted,
html.dark-mode .text-secondary,
html.dark-mode small,
html.dark-mode .form-text {
    color: #9db0c8 !important;
}

html.dark-mode .border,
html.dark-mode .border-top,
html.dark-mode .border-bottom,
html.dark-mode .border-start,
html.dark-mode .border-end {
    border-color: #2b3b53 !important;
}

html.dark-mode .user-offcanvas-panel.offcanvas-end,
html.dark-mode .user-offcanvas-card {
    background: #172235;
    color: #e5edf8;
}

html.dark-mode .user-offcanvas-icon {
    color: #a9cbff;
    background: #203757;
}

html.dark-mode .user-offcanvas-message,
html.dark-mode .user-offcanvas-field-label,
html.dark-mode .user-offcanvas-password-toggle {
    color: #c6d4e6;
}

/* DevExtreme controls are rendered after the page markup, so keep their overrides scoped to dark mode. */
html.dark-mode .dx-widget,
html.dark-mode .dx-datagrid,
html.dark-mode .dx-datagrid-rowsview,
html.dark-mode .dx-datagrid-total-footer,
html.dark-mode .dx-datagrid-pager,
html.dark-mode .dx-popup-content,
html.dark-mode .dx-popup-title,
html.dark-mode .dx-toolbar,
html.dark-mode .dx-tabpanel-container,
html.dark-mode .dx-tabpanel-tabs {
    color: #e5edf8;
    background-color: #1c2b42;
}

html.dark-mode .dx-datagrid-headers,
html.dark-mode .dx-datagrid-headers .dx-row > td,
html.dark-mode .dx-datagrid-rowsview .dx-row > td,
html.dark-mode .dx-datagrid-total-footer .dx-row > td,
html.dark-mode .dx-datagrid .dx-row-alt > td,
html.dark-mode .dx-datagrid-borders > .dx-datagrid-headers,
html.dark-mode .dx-datagrid-borders > .dx-datagrid-rowsview,
html.dark-mode .dx-datagrid-borders > .dx-datagrid-total-footer {
    color: #e5edf8;
    background-color: #172235;
    border-color: #2b3b53;
}

html.dark-mode .dx-datagrid-rowsview .dx-data-row > td,
html.dark-mode .dx-datagrid-rowsview .dx-data-row.dx-row-alt > td {
    color: #e5edf8 !important;
    background-color: #172235 !important;
    border-color: #2b3b53 !important;
}

html.dark-mode .dx-datagrid-rowsview .dx-data-row:hover > td,
html.dark-mode .dx-datagrid-rowsview .dx-data-row.dx-state-hover > td {
    background-color: #203451 !important;
}

html.dark-mode .dx-datagrid-headers .dx-row > td {
    color: #bcd1eb;
    background: #1d2d45;
}

html.dark-mode .dx-datagrid .dx-row-alt > td {
    background-color: #1b2940;
}

html.dark-mode .dx-texteditor,
html.dark-mode .dx-texteditor-input,
html.dark-mode .dx-dropdowneditor-button,
html.dark-mode .dx-selectbox-popup-wrapper .dx-list,
html.dark-mode .dx-list-item,
html.dark-mode .dx-menu-base,
html.dark-mode .dx-context-menu-content {
    color: #e5edf8;
    background: #1b2a40;
    border-color: #3a506e;
}

html.dark-mode .dx-texteditor-input::placeholder,
html.dark-mode .dx-placeholder {
    color: #91a5bf;
}

html.dark-mode .dx-tab {
    color: #aebfd4;
}

html.dark-mode .dx-tab.dx-tab-selected {
    color: #b9d7ff;
}

html.dark-mode .dx-overlay-wrapper .dx-popup-content,
html.dark-mode .dx-overlay-wrapper .dx-popup-title,
html.dark-mode .dx-overlay-wrapper .dx-dropdowneditor-overlay {
    background: #172235;
    color: #e5edf8;
}

