/* Final backend navigation guard.
   Backend actions live in the left rail for every account. */
#backendView .backend-workbench-switch,
#backendView .hk-workbench-switch,
#backendView .backend-canvas-actions-hidden,
body.jonathan-workspace #backendView .backend-workbench-switch,
body.jonathan-workspace #backendView .hk-workbench-switch {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Vishnu/Akhil/Sreerag/Roza/Jonathan: one backend scope, one left action tab set. */
body.jonathan-workspace:not(.backend-dual-scope) #backendScopeSwitch,
body.jonathan-workspace:not(.backend-dual-scope) #hongkongSubnav {
  display: none !important;
}

body.jonathan-workspace:not(.backend-dual-scope) #backendSubnav:not([hidden]) {
  display: grid !important;
}

body.jonathan-workspace:not(.backend-dual-scope) #backendSubnav[hidden] {
  display: none !important;
}

/* Daive/Admin: first choose Dubai or Hong Kong, then show that scope's actions. */
body.jonathan-workspace.backend-dual-scope #backendScopeSwitch:not([hidden]) {
  display: grid !important;
}

body.jonathan-workspace.backend-dual-scope #backendSubnav.backend-scope-subnav:not([hidden]),
body.jonathan-workspace.backend-dual-scope #hongkongSubnav.backend-scope-subnav:not([hidden]) {
  display: grid !important;
}

body.jonathan-workspace.backend-dual-scope #backendSubnav[hidden],
body.jonathan-workspace.backend-dual-scope #hongkongSubnav[hidden] {
  display: none !important;
}

/* Front sidebar quick actions must match the readable manual-number button. */
#sideInventoryBtn.secondary-button,
#sideComboQueryBtn.secondary-button,
#sideComboAddBtn.secondary-button {
  border-color: #cce1e8 !important;
  background: #e8f3f7 !important;
  color: #0f4c5c !important;
  -webkit-text-fill-color: #0f4c5c !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}

#sideInventoryBtn.secondary-button:disabled,
#sideInventoryBtn.secondary-button[disabled],
#sideComboQueryBtn.secondary-button:disabled,
#sideComboQueryBtn.secondary-button[disabled],
#sideComboAddBtn.secondary-button:disabled,
#sideComboAddBtn.secondary-button[disabled] {
  border-color: #cce1e8 !important;
  background: #e8f3f7 !important;
  color: #0f5868 !important;
  -webkit-text-fill-color: #0f5868 !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}
