/* CRM palette shared by ERP workspaces and dialogs. Color only; no layout changes.
   Sidebar, printed documents, semantic statuses and charts keep their own colors. */
html body[data-view] :is(#view, #modal, #notificationPanel) {
  --accent: #1769d2;
  --accent-dark: #1257b0;
  --accent-soft: #edf4ff;
  --ink: #18283d;
  --muted: #66758a;
  --line: #e5eaf0;
  --panel: #ffffff;
  --bg: #f7f9fc;
  --erp-primary: #1769d2;
  --erp-primary-hover: #1257b0;
  --erp-navy: #18314f;
  --erp-border: #e5eaf0;
}
html body[data-view] #view#view { background-color: #f7f9fc !important; color: #18283d; }
html body[data-view] :is(#view#view, #modal#modal) :is(.button, button[type="submit"], .primary-button, .crm-new-button):not(.ghost-button):not(.danger):not(.danger-button):not(.button-danger) {
  background-color: #1769d2 !important;
  background-image: none !important;
  border-color: #1769d2 !important;
  color: #ffffff !important;
}
html body[data-view] :is(#view#view, #modal#modal) :is(.button, button[type="submit"], .primary-button):not(.ghost-button):not(.danger):not(.danger-button):not(.button-danger):hover:not(:disabled) {
  background-color: #1257b0 !important;
  border-color: #1257b0 !important;
}
html body[data-view] :is(#view#view, #modal#modal) :is(.ghost-button, .secondary-button) {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #dce5ef !important;
  color: #18314f !important;
}
html body[data-view] :is(#view#view, #modal#modal) :is(.ghost-button, .secondary-button):hover:not(:disabled) {
  background-color: #edf4ff !important;
  border-color: #b8d2f5 !important;
  color: #1769d2 !important;
}
html body[data-view] :is(#view#view, #modal#modal) :is(.link-button, .export-button, .data-export-button) {
  color: #1769d2 !important;
}
html body[data-view] :is(#view#view, #modal#modal) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background-color: #ffffff;
  color: #18283d;
  border-color: #dce5ef !important;
  accent-color: #1769d2;
}
html body[data-view] :is(#view#view, #modal#modal) :is(input, select, textarea):focus {
  border-color: #1769d2 !important;
  outline-color: #1769d2;
}
html body[data-view] :is(#view#view, #modal#modal) :is(input[type="checkbox"], input[type="radio"]) { accent-color: #1769d2; }
html body[data-view] :is(#view#view, #modal#modal) :is(.card, .accounting-panel, .finance-register-card) {
  background-color: #ffffff !important;
  border-color: #e5eaf0 !important;
}
html body[data-view] #modal#modal .modal-dialog {
  background-color: #ffffff !important;
  border-color: #e5eaf0 !important;
  color: #18283d;
}
html body[data-view] #modal#modal .cmd-user-card > span {
  background: #1769d2 !important;
  color: #ffffff !important;
}
/* Sign out is account navigation, so use the standard CRM action palette. */
html body[data-view] #modal#modal[data-mode="account-menu"] .cmd-row-danger {
  background: #f4f8fd !important;
  border-color: #e5eaf0 !important;
  color: #18314f !important;
}
html body[data-view] #modal#modal[data-mode="account-menu"] .cmd-row-danger > span {
  background: #edf4ff !important;
  color: #1769d2 !important;
}
html body[data-view] #modal#modal[data-mode="account-menu"] .cmd-row-danger:hover { background: #edf4ff !important; }
html body[data-view] #modal#modal[data-mode="account-menu"] .cmd-row-danger > b { color: #18314f !important; }
html body[data-view] #modal#modal[data-mode="account-menu"] .cmd-row-danger > span svg { color: #1769d2 !important; stroke: currentColor !important; }
html body[data-view] .priority-alert.priority-alert-summary { border-color: #dce5ef !important; border-left-color: #1769d2 !important; background: #fff !important; color: #18283d !important; }
html body[data-view] .priority-alert-summary .priority-alert-icon { background: #edf4ff !important; color: #1769d2 !important; }
html body[data-view] .priority-alert-summary .priority-alert-copy > span { color: #1769d2 !important; }
html body[data-view] .priority-alert-summary .priority-summary-list button { background: #1769d2 !important; color: #fff !important; border-color: #1769d2 !important; }
html body[data-view] .priority-alert-summary .priority-alert-dismiss { background: #f4f8fd !important; color: #18314f !important; border-color: #dce5ef !important; }
