/* CODSHIPX AI CRM R73-R11-R5
   Managed-staff visibility sync only.
   Server-side authorization remains authoritative. */

html[data-cx-r73-staff-managed="1"] [data-cx-r41-auth-badge="1"] {
  display: none !important;
}

html[data-cx-r73-staff-managed="1"][data-cx-r73-ai-center="0"] .codi-fab,
html[data-cx-r73-staff-managed="1"][data-cx-r73-ai-center="0"] .codi-mini,
html[data-cx-r73-staff-managed="1"][data-cx-r73-ai-center="0"] .codi-dock-button {
  display: none !important;
}

html[data-cx-r73-staff-managed="1"][data-cx-r73-codshipx-orders="0"]
  [data-nav="CodshipX Orders"] {
  display: none !important;
}

html[data-cx-r73-staff-managed="1"][data-cx-r73-usage="0"] .rail-footer > .usage-card {
  display: none !important;
}

/* R73-R12 mandatory dashboard / Codi opt-in */
/* Staff without ai_center must not see Command-dashboard Codi surfaces.
   Staff without CRM may use Dashboard but not CRM-only dashboard actions. */
html[data-cx-r73-staff-managed="1"][data-cx-r73-ai-center="0"] .command-page .codi-orbit,
html[data-cx-r73-staff-managed="1"][data-cx-r73-ai-center="0"] .command-page .cx-v2-codi-status,
html[data-cx-r73-staff-managed="1"][data-cx-r73-ai-center="0"] .command-page .codi-wide {
  display: none !important;
}

html[data-cx-r73-staff-managed="1"][data-cx-r73-crm="0"] .command-page .hero-actions > .button.primary,
html[data-cx-r73-staff-managed="1"][data-cx-r73-crm="0"] .command-page .revenue-panel .quiet-button,
html[data-cx-r73-staff-managed="1"][data-cx-r73-crm="0"] .command-page .cx-v2-pipeline-awaits .button,
html[data-cx-r73-staff-managed="1"][data-cx-r73-crm="0"] .command-page .codi-brief .brief-list,
html[data-cx-r73-staff-managed="1"][data-cx-r73-crm="0"] .command-page .pipeline-panel .quiet-button,
html[data-cx-r73-staff-managed="1"][data-cx-r73-crm="0"] .command-page .priority-panel .text-link {
  display: none !important;
}

