/* =========================================================
   Menu workspace extras (body:has — portaled / shell UI)
   Chat panel, Office Documents, FormRenderer spreadsheet
   Active only when MenuLayout (.workspace-shell.ix-menu-theme) is open
   ========================================================= */

/* ----- Header chat panel (AppShellLayout) ----- */
body:has(.workspace-shell.ix-menu-theme) .ix-chat-panel {
    border-color: #cfc0ae !important;
    box-shadow: 0 18px 48px rgba(61, 52, 44, .18) !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-header {
    background: linear-gradient(135deg, #8b7355 0%, #6d5a45 100%) !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-search {
    background: #f7f3ef !important;
    border-bottom-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-search input {
    border-color: #cfc0ae !important;
    background: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-search input:focus {
    border-color: #8b7355 !important;
    box-shadow: 0 0 0 2px rgba(139, 115, 85, .15) !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-users {
    border-right-color: #cfc0ae !important;
    background: #faf8f5 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-user {
    border-bottom-color: #ebe3d8 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-user:hover,
body:has(.workspace-shell.ix-menu-theme) .ix-chat-user.active {
    background: #ebe3d8 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-avatar {
    background: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-badge {
    background: #e31e24 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-footer {
    border-top-color: #cfc0ae !important;
    background: #f7f3ef !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-footer input {
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-footer button,
body:has(.workspace-shell.ix-menu-theme) .ix-chat-approval-btn {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-footer button:hover:not(:disabled),
body:has(.workspace-shell.ix-menu-theme) .ix-chat-approval-btn:hover:not(:disabled) {
    background: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-attach-btn,
body:has(.workspace-shell.ix-menu-theme) .ix-chat-emoji-btn {
    border-color: #cfc0ae !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-attach-btn:hover,
body:has(.workspace-shell.ix-menu-theme) .ix-chat-emoji-btn:hover {
    background: #ebe3d8 !important;
    border-color: #8b7355 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-user-status-box {
    border-color: #cfc0ae !important;
    background: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-user-status-box select {
    border-color: #cfc0ae !important;
    background: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-user-status-box select:focus {
    border-color: #8b7355 !important;
    box-shadow: 0 0 0 2px rgba(139, 115, 85, .15) !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-msg.me {
    background: #ebe3d8 !important;
    color: #3d342c !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-chat-msg.other {
    background: #f7f3ef !important;
    border: 1px solid #ebe3d8;
}

/* ----- Office File Manager / Documents popup ----- */
body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-chip {
    background: #f7f3ef !important;
    color: #6d5a45 !important;
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-chip.muted {
    background: #faf8f5 !important;
    color: #64748b !important;
    border-color: #e5e7eb !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-btn-primary {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(109, 90, 69, .2) !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-btn-secondary {
    background: #fff !important;
    color: #6d5a45 !important;
    border-color: #cfc0ae !important;
    box-shadow: none !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-btn-secondary:hover:not(:disabled) {
    background: #f7f3ef !important;
    border-color: #8b7355 !important;
    color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-link-btn:not(.danger) {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-link-btn:not(.danger):hover {
    color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-td-link {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-file-table th {
    background: #e0d5c8 !important;
    color: #3d342c !important;
    border-bottom-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-file-table-wrap {
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-card {
    border-color: #cfc0ae !important;
    background: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-cap-bar {
    background: #f7f3ef !important;
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-empty-pending {
    border-color: #cfc0ae !important;
    background: #faf8f5 !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-msg.info {
    color: #6d5a45 !important;
    background: #f7f3ef !important;
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .ix-office-doc-popup .odm-ai-hit:hover {
    background: #ebe3d8 !important;
    border-color: #cfc0ae !important;
}

/* Office File Manager tab (embedded in menu workspace, not portaled) */
body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-btn-primary {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-btn-primary:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-btn-secondary {
    background: #fff !important;
    color: #6d5a45 !important;
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-btn-secondary:hover:not(:disabled) {
    background: #f7f3ef !important;
    border-color: #8b7355 !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-chip {
    background: #f7f3ef !important;
    color: #6d5a45 !important;
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-link-btn:not(.danger) {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-td-link {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-file-table th {
    background: #e0d5c8 !important;
    color: #3d342c !important;
    border-bottom-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-cap-bar {
    background: #f7f3ef !important;
    border-color: #cfc0ae !important;
}

body:has(.workspace-shell.ix-menu-theme) .odm-page .odm-msg.info {
    color: #6d5a45 !important;
    background: #f7f3ef !important;
    border-color: #cfc0ae !important;
}

/* ----- Office File Manager / Documents — Graphite + Emerald ----- */
body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-chip,
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-chip,
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-chip,
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-chip {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-btn-primary,
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-btn-primary,
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-btn-primary,
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-btn-primary {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(5, 150, 105, .25) !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-btn-primary:hover:not(:disabled) {
    background: #047857 !important;
    border-color: #065f46 !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-btn-secondary,
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-btn-secondary {
    background: #fff !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-btn-secondary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-btn-secondary:hover:not(:disabled),
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-btn-secondary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-btn-secondary:hover:not(:disabled) {
    background: #ecfdf5 !important;
    border-color: #059669 !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-td-link,
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-td-link,
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-td-link,
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-td-link {
    color: #047857 !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-file-table th,
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-file-table th,
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-file-table th,
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-file-table th {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-bottom-color: #a7f3d0 !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-cap-bar,
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-cap-bar,
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-cap-bar,
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-cap-bar {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .ix-office-doc-popup .odm-msg.info,
body:has(.theme-host.ix-app-theme-graphite) .ix-office-doc-popup .odm-msg.info,
body:has(.workspace-shell.ix-graphite-workspace) .odm-page .odm-msg.info,
body:has(.theme-host.ix-app-theme-graphite) .odm-page .odm-msg.info {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}

/* ----- Office File Manager / Documents — Modern Navy ----- */
body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-chip,
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-chip,
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-chip,
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-chip {
    background: #E8F1FF !important;
    color: #102A56 !important;
    border-color: #bfdbfe !important;
}

body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-btn-primary,
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-btn-primary,
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-btn-primary,
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-btn-primary {
    background: #2F80ED !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-btn-primary:hover:not(:disabled) {
    background: #2563eb !important;
}

body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-btn-secondary,
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-btn-secondary {
    color: #1c6dd0 !important;
    border-color: #bfdbfe !important;
}

body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-td-link,
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-td-link,
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-td-link,
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-td-link {
    color: #1c6dd0 !important;
}

body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-file-table th,
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-file-table th,
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-file-table th,
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-file-table th {
    background: #dbeafe !important;
    color: #102A56 !important;
    border-bottom-color: #bfdbfe !important;
}

body:has(.workspace-shell.ix-navy-workspace) .ix-office-doc-popup .odm-cap-bar,
body:has(.theme-host.ix-app-theme-navy) .ix-office-doc-popup .odm-cap-bar,
body:has(.workspace-shell.ix-navy-workspace) .odm-page .odm-cap-bar,
body:has(.theme-host.ix-app-theme-navy) .odm-page .odm-cap-bar {
    background: #E8F1FF !important;
    border-color: #bfdbfe !important;
}

/* ----- Office File Manager / Documents — Light Glass ----- */
body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-chip,
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-chip,
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-chip,
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-chip {
    background: #eef2ff !important;
    color: #4338ca !important;
    border-color: #c7d2fe !important;
}

body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-btn-primary,
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-btn-primary,
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-btn-primary,
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-btn-primary {
    background: #4F46E5 !important;
    border-color: #4338ca !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-btn-primary:hover:not(:disabled) {
    background: #4338ca !important;
}

body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-btn-secondary,
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-btn-secondary {
    color: #4338ca !important;
    border-color: #c7d2fe !important;
}

body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-td-link,
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-td-link,
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-td-link,
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-td-link {
    color: #4338ca !important;
}

body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-file-table th,
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-file-table th,
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-file-table th,
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-file-table th {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    border-bottom-color: #c7d2fe !important;
}

body:has(.workspace-shell.ix-glass-workspace) .ix-office-doc-popup .odm-cap-bar,
body:has(.theme-host.ix-app-theme-glass) .ix-office-doc-popup .odm-cap-bar,
body:has(.workspace-shell.ix-glass-workspace) .odm-page .odm-cap-bar,
body:has(.theme-host.ix-app-theme-glass) .odm-page .odm-cap-bar {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
}

/* ----- Office File Manager / Documents — Platinum + Sapphire ----- */
body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-chip,
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-chip,
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-chip,
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-chip {
    background: #DBEAFE !important;
    color: #1d4ed8 !important;
    border-color: #93C5FD !important;
}

body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-btn-primary,
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-btn-primary,
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-btn-primary,
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-btn-primary {
    background: #2563EB !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-btn-primary:hover:not(:disabled) {
    background: #1d4ed8 !important;
}

body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-btn-secondary,
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-btn-secondary {
    color: #1d4ed8 !important;
    border-color: #93C5FD !important;
}

body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-td-link,
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-td-link,
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-td-link,
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-td-link {
    color: #1d4ed8 !important;
}

body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-file-table th,
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-file-table th,
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-file-table th,
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-file-table th {
    background: #DBEAFE !important;
    color: #1e3a8a !important;
    border-bottom-color: #93C5FD !important;
}

body:has(.workspace-shell.ix-platinum-workspace) .ix-office-doc-popup .odm-cap-bar,
body:has(.theme-host.ix-app-theme-platinum) .ix-office-doc-popup .odm-cap-bar,
body:has(.workspace-shell.ix-platinum-workspace) .odm-page .odm-cap-bar,
body:has(.theme-host.ix-app-theme-platinum) .odm-page .odm-cap-bar {
    background: #eff6ff !important;
    border-color: #93C5FD !important;
}

/* ----- Office File Manager / Documents — Charcoal + Copper ----- */
body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-chip,
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-chip,
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-chip,
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-chip {
    background: #F5E6D3 !important;
    color: #A65E2E !important;
    border-color: #DDD6CE !important;
}

body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-btn-primary,
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-btn-primary,
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-btn-primary,
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-btn-primary {
    background: #B87333 !important;
    border-color: #A65E2E !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-btn-primary:hover:not(:disabled),
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-btn-primary:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-btn-primary:hover:not(:disabled) {
    background: #A65E2E !important;
}

body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-btn-secondary,
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-btn-secondary,
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-btn-secondary {
    color: #A65E2E !important;
    border-color: #DDD6CE !important;
}

body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-link-btn:not(.danger),
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-link-btn:not(.danger),
body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-td-link,
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-td-link,
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-td-link,
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-td-link {
    color: #A65E2E !important;
}

body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-file-table th,
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-file-table th,
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-file-table th,
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-file-table th {
    background: #F5E6D3 !important;
    color: #2A2A2A !important;
    border-bottom-color: #DDD6CE !important;
}

body:has(.workspace-shell.ix-charcoal-workspace) .ix-office-doc-popup .odm-cap-bar,
body:has(.theme-host.ix-app-theme-charcoal) .ix-office-doc-popup .odm-cap-bar,
body:has(.workspace-shell.ix-charcoal-workspace) .odm-page .odm-cap-bar,
body:has(.theme-host.ix-app-theme-charcoal) .odm-page .odm-cap-bar {
    background: #F5E6D3 !important;
    border-color: #DDD6CE !important;
}

/* Documents toolbar button — keep readable on themed FormRenderer bars */
body:has(.workspace-shell.ix-graphite-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.theme-host.ix-app-theme-graphite) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.workspace-shell.ix-navy-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.theme-host.ix-app-theme-navy) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.workspace-shell.ix-glass-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.theme-host.ix-app-theme-glass) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.workspace-shell.ix-platinum-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.theme-host.ix-app-theme-platinum) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.workspace-shell.ix-charcoal-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn,
body:has(.theme-host.ix-app-theme-charcoal) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn {
    border-color: rgba(255, 255, 255, .35) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-graphite-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-graphite) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.workspace-shell.ix-navy-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-navy) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.workspace-shell.ix-glass-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-glass) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.workspace-shell.ix-platinum-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-platinum) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.workspace-shell.ix-charcoal-workspace) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled),
body:has(.theme-host.ix-app-theme-charcoal) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .18) !important;
    border-color: rgba(255, 255, 255, .5) !important;
}

/* Documents toolbar button on brown FormRenderer bar */
body:has(.workspace-shell.ix-menu-theme) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn {
    border-color: rgba(255, 255, 255, .35) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .theme-form .ix-doc-host-toolbar-btn.ix-master-toolbtn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .18) !important;
    border-color: rgba(255, 255, 255, .5) !important;
}

/* ----- FormRenderer spreadsheet popup ----- */
body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-popup .dxbl-popup-body {
    background: #faf8f5 !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-card {
    background: #faf8f5 !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-context {
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-host {
    border-color: #cfc0ae !important;
    background: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-grid th {
    background: #e0d5c8 !important;
    border-color: #cfc0ae !important;
    color: #3d342c !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-grid td {
    border-color: #ebe3d8 !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-cell:focus {
    box-shadow: inset 0 0 0 2px #8b7355 !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-popup .ix-master-toolbtn.primary {
    background: #8b7355 !important;
    border-color: #6d5a45 !important;
    color: #fff !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-popup .ix-master-toolbtn.primary:hover:not(:disabled) {
    background: #6d5a45 !important;
    border-color: #5c4a38 !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-popup .ix-master-toolbtn:not(.primary) {
    background: #fff !important;
    border-color: #cfc0ae !important;
    color: #6d5a45 !important;
}

body:has(.workspace-shell.ix-menu-theme) .voucher-sheet-popup .ix-master-toolbtn:not(.primary):hover:not(:disabled) {
    background: #f7f3ef !important;
    border-color: #8b7355 !important;
}

/* Size dropdown in header (menu open) */
body:has(.workspace-shell.ix-menu-theme) .ix-theme-size-select:focus {
    border-color: #8b7355 !important;
    box-shadow: 0 0 0 2px rgba(139, 115, 85, .15) !important;
}
