/* ===================================================================
   Hide Canvas Inbox (Conversations) from navigation — UI mitigation
   -------------------------------------------------------------------
   Upload via: Account > Themes > edit theme > Upload CSS file.
   IMPORTANT: After uploading you MUST click "Save theme", then
   "Apply theme", then hard-refresh.

   What this does:
     - Hides the Inbox/Conversations link from the Canvas web UI nav.
     - Reduces visual access while JS handles redirect/removal.

   IMPORTANT:
   This CSS only hides UI elements. It does not disable Inbox,
   Conversations, messages, notifications, direct URLs, APIs, or mobile
   app access. True enforcement requires server-side permissions/product
   controls.
   =================================================================== */

/* -------------------------------------------------------------------
   Global navigation: hide the full list item when Inbox is present.
   This prevents a blank icon/space from remaining in the global nav.
   ------------------------------------------------------------------- */

li.ic-app-header__menu-list-item:has(#global_nav_conversations_link),
li.ic-app-header__menu-list-item:has(a[href="/conversations"]),
li.ic-app-header__menu-list-item:has(a[href^="/conversations/"]),
li.ic-app-header__menu-list-item:has(a[href*="/conversations"]) {
    display: none !important;
}

/* -------------------------------------------------------------------
   Direct link fallback.
   Covers cases where :has() is unsupported or the link appears outside
   the expected list item structure.
   ------------------------------------------------------------------- */

#global_nav_conversations_link,
a#global_nav_conversations_link,
a[href="/conversations"],
a[href^="/conversations/"],
a[href*="/conversations"] {
    display: none !important;
}

/* -------------------------------------------------------------------
   Canvas global nav containers.
   ------------------------------------------------------------------- */

#menu a[href="/conversations"],
#menu a[href^="/conversations/"],
#menu a[href*="/conversations"],
.ic-app-header__menu-list a[href="/conversations"],
.ic-app-header__menu-list a[href^="/conversations/"],
.ic-app-header__menu-list a[href*="/conversations"] {
    display: none !important;
}

/* -------------------------------------------------------------------
   Mobile / responsive slide-out menu.
   Hide direct links and parent list items when possible.
   ------------------------------------------------------------------- */

.ic-NavMenu__primary-list li:has(#global_nav_conversations_link),
.ic-NavMenu__primary-list li:has(a[href="/conversations"]),
.ic-NavMenu__primary-list li:has(a[href^="/conversations/"]),
.ic-NavMenu__primary-list li:has(a[href*="/conversations"]),
.ic-NavMenu li:has(a[href="/conversations"]),
.ic-NavMenu li:has(a[href^="/conversations/"]),
.ic-NavMenu li:has(a[href*="/conversations"]) {
    display: none !important;
}

.ic-NavMenu__primary-list #global_nav_conversations_link,
.ic-NavMenu__primary-list a[href="/conversations"],
.ic-NavMenu__primary-list a[href^="/conversations/"],
.ic-NavMenu__primary-list a[href*="/conversations"],
.ic-NavMenu a[href="/conversations"],
.ic-NavMenu a[href^="/conversations/"],
.ic-NavMenu a[href*="/conversations"] {
    display: none !important;
}
