/* Shared ReportViewer-style blue grid theme (Ixpert brand navy / azure) */
.ix-blue-theme {
    --ix-blue-primary: #2F80ED;
    --ix-blue-header: #E8F1FF;
    --ix-blue-header-text: #102A56;
    --ix-blue-footer-bg: #eef4ff;
    --ix-blue-footer-text: #2F80ED;
    --ix-blue-row-alt: #f5f8fc;
    --ix-blue-border: #d6e2f0;
    --ix-blue-text: #1a1a1a;
}

.ix-blue-theme .ix-blue-grid.dxbl-grid,
.ix-blue-theme .rv-grid.dxbl-grid {
    border: 0 !important;
    font-size: 12px !important;
    color: var(--ix-blue-text) !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-header,
.ix-blue-theme .rv-grid .dxbl-grid-header {
    background: var(--ix-blue-header) !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-header-row > th,
.ix-blue-theme .ix-blue-grid .dxbl-grid-header-row > td,
.ix-blue-theme .ix-blue-grid .dxbl-grid-filter-row > th,
.ix-blue-theme .ix-blue-grid .dxbl-grid-filter-row > td,
.ix-blue-theme .rv-grid .dxbl-grid-header-row > th,
.ix-blue-theme .rv-grid .dxbl-grid-header-row > td,
.ix-blue-theme .rv-grid .dxbl-grid-filter-row > th,
.ix-blue-theme .rv-grid .dxbl-grid-filter-row > td {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 4px 8px !important;
    vertical-align: middle !important;
    background: var(--ix-blue-header) !important;
    color: var(--ix-blue-header-text, #102A56) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-color: #d6e4f5 !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-header-content,
.ix-blue-theme .ix-blue-grid .dxbl-grid-header-cell-content,
.ix-blue-theme .rv-grid .dxbl-grid-header-content,
.ix-blue-theme .rv-grid .dxbl-grid-header-cell-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--ix-blue-header-text, #102A56) !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-filter-menu-funnel-btn,
.ix-blue-theme .ix-blue-grid .dxbl-grid-filter-menu-button,
.ix-blue-theme .ix-blue-grid .dxbl-grid-header .dxbl-btn,
.ix-blue-theme .rv-grid .dxbl-grid-filter-menu-funnel-btn,
.ix-blue-theme .rv-grid .dxbl-grid-filter-menu-button,
.ix-blue-theme .rv-grid .dxbl-grid-header .dxbl-btn {
    color: var(--ix-blue-header-text, #102A56) !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-table tbody tr:nth-child(even):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td,
.ix-blue-theme .rv-grid .dxbl-grid-table tbody tr:nth-child(even):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td {
    background: var(--ix-blue-row-alt) !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-table tbody tr:nth-child(odd):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td,
.ix-blue-theme .rv-grid .dxbl-grid-table tbody tr:nth-child(odd):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td {
    background: #fff !important;
}

.ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row,
.ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row,
.ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row,
.ix-blue-theme .rv-grid tr.dxbl-grid-focused-row,
.ix-blue-theme .rv-grid tr.dxbl-grid-selected-row,
.ix-blue-theme .rv-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row {
    --dxbl-grid-focus-bg: #E8F1FF;
    --dxbl-grid-focus-color: #1e1e1e;
    --dxbl-grid-selection-bg: #E8F1FF;
    --dxbl-grid-selection-color: #1e1e1e;
}

.ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row > td,
.ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row > td,
.ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row > td,
.ix-blue-theme .rv-grid tr.dxbl-grid-focused-row > td,
.ix-blue-theme .rv-grid tr.dxbl-grid-selected-row > td,
.ix-blue-theme .rv-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row > td {
    background-color: #E8F1FF !important;
    color: #1e1e1e !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td,
.ix-blue-theme .rv-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td {
    background-color: #F0F6FF !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-table td,
.ix-blue-theme .rv-grid .dxbl-grid-table td {
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eceff3 !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
    color: var(--ix-blue-text) !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-footer,
.ix-blue-theme .ix-blue-grid .dxbl-grid-footer td,
.ix-blue-theme .ix-blue-grid .dxbl-grid-total-footer td,
.ix-blue-theme .rv-grid .dxbl-grid-footer,
.ix-blue-theme .rv-grid .dxbl-grid-footer td,
.ix-blue-theme .rv-grid .dxbl-grid-total-footer td {
    background: var(--ix-blue-footer-bg) !important;
    color: var(--ix-blue-footer-text) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-top: 2px solid #c5daf7 !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-empty-cell,
.ix-blue-theme .rv-grid .dxbl-grid-empty-cell {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.ix-blue-theme .ix-blue-grid.dxbl-grid .dxbl-grid-table,
.ix-blue-theme .rv-grid.dxbl-grid .dxbl-grid-table {
    width: max-content !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-table th,
.ix-blue-theme .ix-blue-grid .dxbl-grid-table td,
.ix-blue-theme .rv-grid .dxbl-grid-table th,
.ix-blue-theme .rv-grid .dxbl-grid-table td {
    min-width: 0 !important;
    max-width: 1px !important;
}

.ix-blue-theme .ix-blue-grid .dxbl-grid-header-row > th,
.ix-blue-theme .rv-grid .dxbl-grid-header-row > th {
    max-width: none !important;
}

.ix-blue-theme .ix-blue-grid .grid-editor,
.ix-blue-theme .ix-blue-grid .dxbl-text-edit,
.ix-blue-theme .ix-blue-grid input,
.ix-blue-theme .ix-blue-grid select,
.ix-blue-theme .ix-blue-grid textarea,
.ix-blue-theme .rv-grid .grid-editor,
.ix-blue-theme .rv-grid .dxbl-text-edit,
.ix-blue-theme .rv-grid input,
.ix-blue-theme .rv-grid select,
.ix-blue-theme .rv-grid textarea {
    font-size: 12px !important;
}

/* TreeList (MasterView menu-treelist) — same palette as grid */
.ix-blue-theme .menu-treelist.ix-blue-grid.dxbl-tl,
.ix-blue-theme .menu-treelist.ix-blue-grid {
    border: 0 !important;
    font-size: 12px !important;
    color: var(--ix-blue-text) !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-header,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-header {
    background: var(--ix-blue-header) !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-header-row > th,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-header-row > td,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-header-row > th,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-header-row > td,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-filter-row > th,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-filter-row > td {
    background: var(--ix-blue-header) !important;
    color: var(--ix-blue-header-text, #102A56) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-color: #d6e4f5 !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-table tbody tr:nth-child(even):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-table tbody tr:nth-child(even):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td {
    background: var(--ix-blue-row-alt) !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-table tbody tr:nth-child(odd):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-table tbody tr:nth-child(odd):not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) td {
    background: #fff !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid tr.dxbl-grid-focused-row > td,
.ix-blue-theme .menu-treelist.ix-blue-grid tr.dxbl-grid-selected-row > td,
.ix-blue-theme .menu-treelist.ix-blue-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row > td {
    background-color: #E8F1FF !important;
    color: #1e1e1e !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td {
    background-color: #F0F6FF !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-table td,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-table td {
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eceff3 !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    color: var(--ix-blue-text) !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-footer td,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-total-footer td {
    background: var(--ix-blue-footer-bg) !important;
    color: var(--ix-blue-footer-text) !important;
    font-weight: 700 !important;
    border-top: 2px solid #c5daf7 !important;
}

.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-filter-menu-funnel-btn,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-filter-menu-button,
.ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-header .dxbl-btn {
    color: #fff !important;
}

/* MenuLayout / workspace shell */
.workspace-shell.ix-blue-theme {
    background: #eef2f7 !important;
}

.workspace-shell.ix-blue-theme .workspace-panel {
    background: #fff !important;
    border-color: #dee2e6 !important;
    box-shadow: 0 4px 18px rgba(0, 40, 100, .1) !important;
}

.workspace-shell.ix-blue-theme .workspace-tabs-row {
    background: #f8fafc !important;
    border-bottom-color: #dee2e6 !important;
}

.workspace-shell.ix-blue-theme .menu-layout-content {
    background: #eef2f7 !important;
}

.workspace-shell.ix-blue-theme .module-sidebar,
.workspace-shell.ix-blue-theme .menu-main-panel {
    border-color: #dee2e6 !important;
}

.workspace-shell.ix-blue-theme .module-nav-item.active {
    background: #e7f1ff !important;
    border-color: #90b8e8 !important;
    color: #0056b3 !important;
}

.workspace-shell.ix-blue-theme .module-nav-item.active .module-nav-text,
.workspace-shell.ix-blue-theme .module-nav-item.active .module-nav-icon,
.workspace-shell.ix-blue-theme .module-nav-item.active .module-nav-icon svg {
    color: #0056b3 !important;
}

.theme-host .workspace-shell.ix-blue-theme .module-nav-item.active {
    background: #e7f1ff !important;
    border-color: #90b8e8 !important;
    color: #0056b3 !important;
}

.theme-host .workspace-shell.ix-blue-theme .module-nav-item.active .module-nav-text,
.theme-host .workspace-shell.ix-blue-theme .module-nav-item.active .module-nav-icon,
.theme-host .workspace-shell.ix-blue-theme .module-nav-item.active .module-nav-dot {
    color: #0056b3 !important;
}

.workspace-shell.ix-blue-theme .mainmenu-card::before,
.workspace-shell.ix-blue-theme .submenu-bullet {
    background: #0056b3 !important;
}

.workspace-shell.ix-blue-theme .submenu-tile:hover {
    border-color: #90b8e8 !important;
    background: #e7f1ff !important;
}

/* Workspace active tab (Sales Invoice, etc.) */
.workspace-shell.ix-blue-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active),
.workspace-shell.ix-blue-theme .ix-tabs .dxbl-tabs-item.dxbl-tabs-item-active,
.workspace-shell.ix-blue-theme .ix-tabs .dxbl-tabs-item[aria-selected="true"],
.ix-blue-theme .workspace-tabs-wrap .dxbl-tabs-item:has(.ix-tab-template.is-active),
.ix-blue-theme .workspace-tabs-wrap .dxbl-tabs-item.dxbl-tabs-item-active,
.ix-blue-theme .workspace-tabs-wrap .dxbl-tabs-item[aria-selected="true"] {
    background: #E8F1FF !important;
    border-color: #bfdbfe !important;
    color: #102A56 !important;
    box-shadow: 0 1px 4px rgba(47, 128, 237, .12) !important;
}

.workspace-shell.ix-blue-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-icon,
.workspace-shell.ix-blue-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-title,
.workspace-shell.ix-blue-theme .ix-tab-template.is-active .ix-tab-icon,
.workspace-shell.ix-blue-theme .ix-tab-template.is-active .ix-tab-title,
.ix-blue-theme .workspace-tabs-wrap .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-icon,
.ix-blue-theme .workspace-tabs-wrap .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-title {
    color: #102A56 !important;
    font-weight: 700 !important;
}

.workspace-shell.ix-blue-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-close-btn,
.workspace-shell.ix-blue-theme .ix-tab-template.is-active .ix-tab-close-btn {
    color: #5b6b86 !important;
}

/* Menu workspace — warm brown chrome; workspace tabs stay red below */
.workspace-shell.ix-menu-theme .ix-blue-theme {
    --ix-blue-primary: #8b7355;
    --ix-blue-header: #6d5a45;
    --ix-blue-header-text: #ffffff;
    --ix-blue-footer-bg: #f7f3ef;
    --ix-blue-footer-text: #6d5a45;
    --ix-blue-row-alt: #faf8f5;
    --ix-blue-border: #cfc0ae;
}

.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-header-row > th,
.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-header-row > td,
.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-filter-row > th,
.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-filter-row > td {
    border-color: #5c4a38 !important;
    color: #fff !important;
}

.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-footer,
.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-footer td,
.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-total-footer td {
    border-top-color: #cfc0ae !important;
}

.workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active),
.workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item.dxbl-tabs-item-active,
.workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item[aria-selected="true"],
.workspace-shell.ix-menu-theme .workspace-tabs-wrap .dxbl-tabs-item:has(.ix-tab-template.is-active),
.workspace-shell.ix-menu-theme .workspace-tabs-wrap .dxbl-tabs-item.dxbl-tabs-item-active,
.workspace-shell.ix-menu-theme .workspace-tabs-wrap .dxbl-tabs-item[aria-selected="true"] {
    background: #e31e24 !important;
    border-color: #c62828 !important;
    color: #fff !important;
    box-shadow: 0 1px 4px rgba(227, 30, 36, .28) !important;
}

.workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-icon,
.workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-title,
.workspace-shell.ix-menu-theme .ix-tab-template.is-active .ix-tab-icon,
.workspace-shell.ix-menu-theme .ix-tab-template.is-active .ix-tab-title,
.workspace-shell.ix-menu-theme .workspace-tabs-wrap .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-icon,
.workspace-shell.ix-menu-theme .workspace-tabs-wrap .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-title {
    color: #fff !important;
    font-weight: 700 !important;
}

.workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active) .ix-tab-close-btn,
.workspace-shell.ix-menu-theme .ix-tab-template.is-active .ix-tab-close-btn {
    color: #ffe4e4 !important;
}

.theme-host .workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item:has(.ix-tab-template.is-active),
.theme-host .workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item.dxbl-tabs-item-active,
.theme-host .workspace-shell.ix-menu-theme .ix-tabs .dxbl-tabs-item[aria-selected="true"] {
    background: #e31e24 !important;
    border-color: #c62828 !important;
    color: #fff !important;
}

.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row,
.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row,
.workspace-shell.ix-menu-theme .ix-blue-theme .menu-treelist.ix-blue-grid tr.dxbl-grid-focused-row,
.workspace-shell.ix-menu-theme .ix-blue-theme .menu-treelist.ix-blue-grid tr.dxbl-grid-selected-row {
    --dxbl-grid-focus-bg: #ebe3d8;
    --dxbl-grid-selection-bg: #ebe3d8;
}

.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row > td,
.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row > td,
.workspace-shell.ix-menu-theme .ix-blue-theme .menu-treelist.ix-blue-grid tr.dxbl-grid-focused-row > td,
.workspace-shell.ix-menu-theme .ix-blue-theme .menu-treelist.ix-blue-grid tr.dxbl-grid-selected-row > td {
    background-color: #ebe3d8 !important;
}

.workspace-shell.ix-menu-theme .ix-blue-theme .ix-blue-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td,
.workspace-shell.ix-menu-theme .ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td,
.workspace-shell.ix-menu-theme .ix-blue-theme .menu-treelist.ix-blue-grid .dxbl-tl-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td {
    background-color: #f7f3ef !important;
}

/* Pager page numbers (1, 2, …) inside menu workspace */
.workspace-shell.ix-menu-theme .ix-blue-theme ::deep .dxbl-pager .dxbl-btn.dxbl-btn-primary,
.workspace-shell.ix-menu-theme .ix-blue-theme ::deep .dxbl-pager .dxbl-active,
.workspace-shell.ix-menu-theme .ix-blue-theme ::deep .dxbl-pager .dxbl-btn[aria-current="page"],
.workspace-shell.ix-menu-theme .ix-blue-theme ::deep .dxbl-pager .dxbl-btn[aria-current],
.workspace-shell.ix-menu-theme .ix-blue-theme ::deep .dxbl-pager .dxbl-selected,
.workspace-shell.ix-menu-theme .ix-blue-theme .dxbl-pager .dxbl-btn.dxbl-btn-primary,
.workspace-shell.ix-menu-theme .ix-blue-theme .dxbl-pager .dxbl-active,
.workspace-shell.ix-menu-theme .ix-blue-theme .dxbl-pager .dxbl-btn[aria-current="page"],
.workspace-shell.ix-menu-theme .master-view-page.ix-blue-theme ::deep .dxbl-pager .dxbl-btn.dxbl-btn-primary,
.workspace-shell.ix-menu-theme .master-view-page.ix-blue-theme ::deep .dxbl-pager .dxbl-active,
.workspace-shell.ix-menu-theme .master-view-page.ix-blue-theme ::deep .dxbl-pager .dxbl-btn[aria-current="page"],
.workspace-shell.ix-menu-theme .master-view-page.ix-blue-theme ::deep .menu-treelist .dxbl-pager .dxbl-btn.dxbl-btn-primary,
.workspace-shell.ix-menu-theme .master-view-page.ix-blue-theme ::deep .menu-treelist .dxbl-pager .dxbl-active,
.workspace-shell.ix-menu-theme .master-view-page.ix-blue-theme ::deep .menu-treelist .dxbl-pager .dxbl-btn[aria-current="page"],
body:has(.workspace-shell.ix-menu-theme) .dxbl-pager .dxbl-btn.dxbl-btn-primary,
body:has(.workspace-shell.ix-menu-theme) .dxbl-pager .dxbl-active,
body:has(.workspace-shell.ix-menu-theme) .dxbl-pager .dxbl-btn[aria-current="page"],
body:has(.workspace-shell.ix-menu-theme) .dxbl-pager .dxbl-btn[aria-current] {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

/* Dropdown / combo list (portaled; DevExpress 25 uses dxbl-list-box-*) */
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box,
body:has(.workspace-shell.ix-menu-theme) .dxbl-itemlist-dropdown {
    --dxbl-list-box-item-hover-bg: #f7f3ef;
    --dxbl-list-box-item-selected-bg: #ebe3d8;
    --dxbl-list-box-item-selected-hover-bg: #e0d5c8;
    --dxbl-list-box-item-selected-color: #6d5a45;
    --dxbl-list-box-focus-frame-color: #8b7355;
    --DS-color-surface-primary-default-rest: #ebe3d8;
    --DS-color-surface-primary-default-hovered: #e0d5c8;
    --DS-color-content-neutral-static-pressed: #6d5a45;
}

body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box .dxbl-list-box-item-selected,
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box tbody > tr.dxbl-list-box-item-selected,
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box tbody > tr.dxbl-list-box-item-focused,
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box tbody > tr:focus,
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box tbody > tr:hover,
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box-render-container tbody > tr.dxbl-list-box-item-selected,
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box-render-container tbody > tr.dxbl-list-box-item-focused,
body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box-render-container tbody > tr:hover,
body:has(.workspace-shell.ix-menu-theme) .dxbl-itemlist-dropdown .dxbl-list-box-item-selected,
body:has(.workspace-shell.ix-menu-theme) .dxbl-itemlist-dropdown tbody > tr.dxbl-list-box-item-selected,
body:has(.workspace-shell.ix-menu-theme) .dxbl-itemlist-dropdown tbody > tr.dxbl-list-box-item-focused,
body:has(.workspace-shell.ix-menu-theme) .dxbl-itemlist-dropdown tbody > tr:hover {
    --dxbl-list-box-item-bg: #ebe3d8 !important;
    --dxbl-list-box-item-color: #6d5a45 !important;
    background-color: #ebe3d8 !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .dxbl-list-box tbody > tr:hover:not(.dxbl-list-box-item-selected),
body:has(.workspace-shell.ix-menu-theme) .dxbl-itemlist-dropdown tbody > tr:hover:not(.dxbl-list-box-item-selected) {
    --dxbl-list-box-item-bg: #f7f3ef !important;
    background-color: #f7f3ef !important;
    color: #6d5a45 !important;
}

/* + add-field buttons on form sections */
body:has(.workspace-shell.ix-menu-theme) .ix-tab-add-btn {
    border-color: #cfc0ae !important;
    background: #f7f3ef !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-tab-add-btn:hover {
    border-color: #8b7355 !important;
    background: #ebe3d8 !important;
    color: #5c4a38 !important;
    box-shadow: 0 1px 4px rgba(109, 90, 69, .18) !important;
}

/* FormRenderer + MasterFormRenderer — brown overrides (scoped blue theme unchanged elsewhere) */
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme {
    background: #ffffff !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-card,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-popup-main {
    background: #fff !important;
    border-color: #cfc0ae !important;
    box-shadow: 0 4px 18px rgba(77, 58, 40, .08) !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-popup-topbar {
    background: #e0d5c8 !important;
    border: 0 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar .ix-master-toolbtn,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar ::deep .ix-doc-host-toolbar-btn.ix-master-toolbtn {
    border-color: #cfc0ae !important;
    background: #ffffff !important;
    color: #3d342c !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar .ix-master-toolbtn:hover,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar ::deep .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled) {
    background: #f7f3ef !important;
    border-color: #b8956f !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar .ix-master-toolbtn.primary,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar .ix-save-split.ix-master-toolbtn.primary {
    background: #8b7355 !important;
    color: #fff !important;
    border-color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar .ix-master-toolbtn.primary:hover,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar .ix-save-split.ix-master-toolbtn.primary:hover {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-main-toolbar .ix-save-split.primary .ix-save-split-toggle {
    border-left-color: rgba(255, 255, 255, .35) !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme ::deep .master-popup-action-save .dxbl-btn,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme ::deep .master-popup-action-save.dxbl-btn,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme ::deep .master-popup-action-save .dxbl-btn.dxbl-btn-primary {
    background: #8b7355 !important;
    color: #fff !important;
    border-color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme ::deep .master-popup-action-save .dxbl-btn:hover:not(:disabled),
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme ::deep .master-popup-action-save .dxbl-btn.dxbl-btn-primary:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-popup-actions .ix-master-toolbtn.master-popup-action-btn {
    border: 1px solid #cfc0ae !important;
    background: rgba(255, 255, 255, .55) !important;
    color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-popup-actions .ix-master-toolbtn.master-popup-action-btn:hover:not(:disabled) {
    background: #ebe3d8 !important;
    border-color: #b8956f !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme ::deep .master-popup-action-close .dxbl-btn {
    border: 1px solid #cfc0ae !important;
    background: rgba(255, 255, 255, .55) !important;
    color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .frm-title,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .section-title,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-popup-chip {
    color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-popup-chip {
    background: #f7f3ef !important;
    border-color: #cfc0ae !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .left-summary-item {
    border-left-color: #8b7355 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .left-summary-icon {
    background: #f7f3ef !important;
    color: #8b7355 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .header-fields-card,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .voucher-fields-card,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .section-card {
    background: linear-gradient(180deg, #fff 0%, #faf8f5 100%) !important;
    border-color: #e0d5c8 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .main-tab-strip,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-form-tab-strip {
    background: #f7f3ef !important;
    border-bottom-color: #cfc0ae !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .main-tab-btn.active,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-form-tab-btn.active {
    background: #8b7355 !important;
    border-color: #8b7355 !important;
    color: #fff !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .main-tab-btn:hover,
.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .master-form-tab-btn:hover {
    border-color: #8b7355 !important;
    color: #6d5a45 !important;
    background: #ebe3d8 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .grid-toolbar-row .ix-master-toolbtn {
    color: #3d342c !important;
    border-color: #cfc0ae !important;
    background: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 12px !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .grid-toolbar-row .ix-master-toolbtn.primary {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .grid-toolbar-row .ix-master-toolbtn.primary:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .grid-toolbar-row .ix-master-toolbtn.outline {
    background: #fff !important;
    color: #8b7355 !important;
    border-color: #8b7355 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .grid-toolbar-row .ix-master-toolbtn.outline:hover:not(:disabled) {
    background: #f7f3ef !important;
    border-color: #6d5a45 !important;
    color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme .entry-grid th {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
    color: #fff !important;
}

.workspace-shell.ix-menu-theme .frm-page.ix-blue-theme ::deep .master-tabs-shell .dxbl-tabs-item-active {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

/* =========================================================
   REPORT VIEWER — brown theme inside MenuLayout workspace
   ========================================================= */
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme {
    --rv-primary: #8b7355;
    --rv-header: #6d5a45;
    --rv-footer-bg: #f7f3ef;
    --rv-footer-text: #6d5a45;
    --rv-row-alt: #faf8f5;
    --rv-border: #cfc0ae;
    background: #ffffff !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-shell {
    box-shadow: 0 4px 18px rgba(77, 58, 40, .08) !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-refresh-btn {
    background: #e31e24 !important;
    border-color: #c62828 !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-refresh-btn:hover {
    background: #c62828 !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-filter-editor-btn:hover:not(:disabled),
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-filter-funnel.active,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-filter-funnel:hover {
    border-color: #8b7355 !important;
    color: #6d5a45 !important;
    background: #f7f3ef !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-report-progress {
    background: #ebe3d8 !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .ix-report-body-grid:not(.ptr-grid) tr.dxbl-grid-focused-row,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .ix-report-body-grid:not(.ptr-grid) tr.dxbl-grid-selected-row {
    --dxbl-grid-focus-bg: #ebe3d8;
    --dxbl-grid-selection-bg: #ebe3d8;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .ix-report-body-grid:not(.ptr-grid) tr.dxbl-grid-focused-row > td,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .ix-report-body-grid:not(.ptr-grid) tr.dxbl-grid-selected-row > td {
    background-color: #ebe3d8 !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .ix-report-body-grid:not(.ptr-grid) .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td {
    background-color: #f7f3ef !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid.report-grid:not(.ix-report-body-grid) .dxbl-grid-header-row > th,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid.report-grid:not(.ix-report-body-grid) .dxbl-grid-header-row > td,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid.report-grid:not(.ix-report-body-grid) .dxbl-grid-filter-row > th,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid.report-grid:not(.ix-report-body-grid) .dxbl-grid-filter-row > td {
    border-color: #5c4a38 !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid:not(.ix-report-body-grid) .dxbl-grid-footer td,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid:not(.ix-report-body-grid) .dxbl-grid-total-footer td {
    border-top-color: #cfc0ae !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid .dxbl-pager .dxbl-btn.dxbl-btn-primary,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid .dxbl-pager .dxbl-active,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .rv-grid .dxbl-pager .dxbl-btn[aria-current="page"] {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-actions-menu button:hover,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-task-menu-item:hover {
    background: #f7f3ef !important;
    border-color: #cfc0ae !important;
    color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-action-link,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-action-link:hover {
    color: #6d5a45 !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme .rv-popup-head {
    background: linear-gradient(135deg, #8b7355 0%, #6d5a45 100%) !important;
}

.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .layout-btn-save.dxbl-btn,
.workspace-shell.ix-menu-theme .ix-report-page.rv-theme ::deep .layout-btn-save .dxbl-btn {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

/* Column chooser + add-column popups (portaled) */
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns {
    background: #faf8f5 !important;
    color: #3d342c !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-head {
    border-bottom-color: #cfc0ae !important;
    background: linear-gradient(180deg, #fff 0%, #f7f3ef 100%) !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-icon {
    background: #f7f3ef !important;
    color: #6d5a45 !important;
    box-shadow: inset 0 0 0 1px #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-close:hover {
    background: #ebe3d8 !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-column-toolbar {
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-column-list .rv-edit-column-check:hover {
    border-color: #cfc0ae !important;
    background: #f7f3ef !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-column-check input[type="checkbox"] {
    accent-color: #8b7355;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-column-save {
    border-color: #6d5a45 !important;
    background: #8b7355 !important;
    box-shadow: 0 8px 20px rgba(109, 90, 69, .18) !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-column-save:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-column-restore:hover {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-save-split-menu-item {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-save-split-menu-item:hover {
    background: #f7f3ef !important;
    color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-add-field-builder-btn {
    border-color: #cfc0ae !important;
    background: #f7f3ef !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-add-field-builder-btn:hover {
    background: #ebe3d8 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-custom-field-row.active {
    border-color: #cfc0ae !important;
    background: #f7f3ef !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-expr-nav-btn.active {
    background: #ebe3d8 !important;
    color: #6d5a45 !important;
}

/* =========================================================
   REPORT VIEWER POPUPS (portaled to body — Load Layout, Column Chooser,
   Manage Columns, Filter Editor, Conditional Formatting menu)
   body:has(.workspace-shell.ix-menu-theme) — menu only; standalone /reports unchanged
   ========================================================= */

/* Load Layout — grid selection + footer buttons */
body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid tr.dxbl-grid-focused-row,
body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid tr.dxbl-grid-selected-row {
    --dxbl-grid-focus-bg: #ebe3d8;
    --dxbl-grid-selection-bg: #ebe3d8;
}

body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid tr.dxbl-grid-focused-row > td,
body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid tr.dxbl-grid-selected-row > td {
    background-color: #ebe3d8 !important;
    color: #3d342c !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td {
    background-color: #f7f3ef !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid .dxbl-pager .dxbl-btn.dxbl-btn-primary,
body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid .dxbl-pager .dxbl-active,
body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-user-grid .dxbl-pager .dxbl-btn[aria-current="page"] {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .dxbl-btn.layout-btn-save,
body:has(.workspace-shell.ix-menu-theme) .rv-filter-editor-popup .dxbl-btn.layout-btn-save,
body:has(.workspace-shell.ix-menu-theme) .rv-cf-popup .dxbl-btn.layout-btn-save,
body:has(.workspace-shell.ix-menu-theme) .ix-add-field-popup .dxbl-btn.layout-btn-save,
body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-popup-footer .dxbl-btn.layout-btn-save {
    --dxbl-btn-bg: #8b7355 !important;
    --dxbl-btn-border-color: #6d5a45 !important;
    --dxbl-btn-color: #fff !important;
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .dxbl-btn.layout-btn-save:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .rv-filter-editor-popup .dxbl-btn.layout-btn-save:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .rv-cf-popup .dxbl-btn.layout-btn-save:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .ix-add-field-popup .dxbl-btn.layout-btn-save:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .dxbl-btn.layout-btn-cancel,
body:has(.workspace-shell.ix-menu-theme) .rv-filter-editor-popup .dxbl-btn.layout-btn-cancel,
body:has(.workspace-shell.ix-menu-theme) .rv-cf-popup .dxbl-btn.layout-btn-cancel,
body:has(.workspace-shell.ix-menu-theme) .ix-add-field-popup .dxbl-btn.layout-btn-cancel,
body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .layout-popup-footer .dxbl-btn.layout-btn-cancel {
    --dxbl-btn-bg: #fff !important;
    --dxbl-btn-border-color: #cfc0ae !important;
    --dxbl-btn-color: #6d5a45 !important;
    background: #fff !important;
    border-color: #cfc0ae !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-layout-popup .dxbl-btn.layout-btn-cancel:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .rv-filter-editor-popup .dxbl-btn.layout-btn-cancel:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .rv-cf-popup .dxbl-btn.layout-btn-cancel:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .ix-add-field-popup .dxbl-btn.layout-btn-cancel:hover:not(:disabled) {
    background: #f7f3ef !important;
    border-color: #8b7355 !important;
    color: #5c4a38 !important;
}

/* Filter Editor — And/Or group buttons + property chips */
body:has(.workspace-shell.ix-menu-theme) .rv-filter-editor-popup .dxbl-filter-builder {
    --dxbl-filter-builder-group-btn-bg: #f7f3ef;
    --dxbl-filter-builder-group-btn-hover-bg: #ebe3d8;
    --dxbl-filter-builder-group-btn-selected-bg: #8b7355;
    --dxbl-filter-builder-group-btn-active-bg: #6d5a45;
    --dxbl-filter-builder-property-btn-bg: #fff;
    --dxbl-filter-builder-property-btn-hover-bg: #f7f3ef;
    --dxbl-filter-builder-property-btn-selected-bg: #ebe3d8;
    --dxbl-filter-builder-property-btn-active-bg: #e0d5c8;
    --DS-color-surface-primary-default-rest: #8b7355;
    --DS-color-surface-primary-default-hovered: #6d5a45;
}

/* Column chooser — native buttons (override POS blue if present) */
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-columns-icon,
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-columns-icon {
    background: #f7f3ef !important;
    color: #6d5a45 !important;
    box-shadow: inset 0 0 0 1px #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-columns-close,
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-columns-close {
    background: #f7f3ef !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-column-check input[type="checkbox"],
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-column-check input[type="checkbox"] {
    accent-color: #8b7355 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-column-save,
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-column-save {
    border: 1px solid #6d5a45 !important;
    background: #8b7355 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(109, 90, 69, .18) !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-column-save:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-column-save:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-column-cancel,
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-column-cancel {
    border: 1px solid #cfc0ae !important;
    background: #fff !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-column-cancel:hover,
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-column-cancel:hover {
    background: #f7f3ef !important;
    border-color: #8b7355 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-column-restore,
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-column-restore {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns-popup .rv-edit-column-restore:hover,
body:has(.workspace-shell.ix-menu-theme) .rv-edit-columns .rv-edit-column-restore:hover {
    color: #5c4a38 !important;
}

/* Manage report columns — footer primary/secondary */
body:has(.workspace-shell.ix-menu-theme) .ix-add-field-popup .dxbl-btn.dxbl-btn-primary {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-add-field-popup .dxbl-btn.dxbl-btn-secondary,
body:has(.workspace-shell.ix-menu-theme) .ix-add-field-popup .dxbl-btn.dxbl-btn-outlined {
    background: #fff !important;
    border-color: #cfc0ae !important;
    color: #6d5a45 !important;
}

/* Conditional formatting — Excel-style dropdown on report toolbar */
body:has(.workspace-shell.ix-menu-theme) .ix-report-page .rv-excel-item-wrap:hover > .rv-excel-item,
body:has(.workspace-shell.ix-menu-theme) .ix-report-page .rv-excel-flyout button:hover {
    background: #f7f3ef !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-report-page .rv-cf-wrap .rv-topbtn.active {
    background: rgba(255, 255, 255, .22) !important;
}

/* Report main grid — SPv ptr-grid row sizing + selection only (headers = DevExpress theme) */
body:has(.workspace-shell.ix-menu-theme) .ix-report-page.rv-theme .ix-report-body-grid.ptr-grid.ptr-row-normal .dxbl-grid-table > tbody > tr > td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 12.5px !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-report-page.rv-theme .ix-report-body-grid.ptr-grid tr.dxbl-grid-focused-row > td,
body:has(.workspace-shell.ix-menu-theme) .ix-report-page.rv-theme .ix-report-body-grid.ptr-grid tr.dxbl-grid-selected-row > td {
    background-color: #E8F1FF !important;
    color: #1e1e1e !important;
}

/* Platinum + Sapphire � selection / header */
.workspace-shell.ix-platinum-workspace .ix-blue-theme {
    --ix-blue-primary: #2563EB;
    --ix-blue-header: #F8FAFC;
    --ix-blue-header-text: #0F172A;
    --ix-blue-footer-bg: #F8FAFC;
    --ix-blue-footer-text: #2563EB;
    --ix-blue-row-alt: #F3F5F8;
    --ix-blue-border: #E4EAF2;
}

.workspace-shell.ix-platinum-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row,
.workspace-shell.ix-platinum-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row,
.workspace-shell.ix-platinum-workspace .ix-blue-theme .rv-grid tr.dxbl-grid-selected-row {
    --dxbl-grid-focus-bg: #EAF4FF;
    --dxbl-grid-selection-bg: #EAF4FF;
}

.workspace-shell.ix-platinum-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row > td,
.workspace-shell.ix-platinum-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row > td,
.workspace-shell.ix-platinum-workspace .ix-blue-theme .rv-grid tr.dxbl-grid-selected-row > td {
    background-color: #EAF4FF !important;
    color: #0F172A !important;
}

.workspace-shell.ix-platinum-workspace .ix-blue-theme .ix-blue-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td,
.workspace-shell.ix-platinum-workspace .ix-blue-theme .rv-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td {
    background-color: #EEF5FF !important;
}

/* Charcoal + Copper � selection / header */
.workspace-shell.ix-charcoal-workspace .ix-blue-theme {
    --ix-blue-primary: #A65E2E;
    --ix-blue-header: #F5E6D3;
    --ix-blue-header-text: #2A2A2A;
    --ix-blue-footer-bg: #F7F5F2;
    --ix-blue-footer-text: #A65E2E;
    --ix-blue-row-alt: #F7F5F2;
    --ix-blue-border: #DDD6CE;
}

.workspace-shell.ix-charcoal-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row,
.workspace-shell.ix-charcoal-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row,
.workspace-shell.ix-charcoal-workspace .ix-blue-theme .rv-grid tr.dxbl-grid-selected-row {
    --dxbl-grid-focus-bg: #FFF8F0;
    --dxbl-grid-selection-bg: #FFF8F0;
}

.workspace-shell.ix-charcoal-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-selected-row > td,
.workspace-shell.ix-charcoal-workspace .ix-blue-theme .ix-blue-grid tr.dxbl-grid-focused-row.dxbl-grid-selected-row > td,
.workspace-shell.ix-charcoal-workspace .ix-blue-theme .rv-grid tr.dxbl-grid-selected-row > td {
    background-color: #FFF8F0 !important;
    color: #2A2A2A !important;
}

.workspace-shell.ix-charcoal-workspace .ix-blue-theme .ix-blue-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td,
.workspace-shell.ix-charcoal-workspace .ix-blue-theme .rv-grid .dxbl-grid-table > tbody > tr:hover:not(.dxbl-grid-focused-row):not(.dxbl-grid-selected-row) > td {
    background-color: #FFF4E8 !important;
}
