.ov-sidebar-collapse {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid var(--ov-line);
  border-radius: 8px;
  background: #fff;
  color: #5d687d;
  display: grid;
  place-items: center;
  font: 800 19px/1 sans-serif;
  cursor: pointer;
  transition: .18s ease;
}
.ov-sidebar-collapse:hover { border-color: #cbdc25; background: #fbffe9; color: #263000; }
.ov-shell.ov-sidebar-collapsed .ov-sidebar { width: 78px; padding-inline: 10px; }
.ov-shell.ov-sidebar-collapsed .ov-brand { gap: 0; justify-content: center; }
.ov-shell.ov-sidebar-collapsed .ov-brand > strong,
.ov-shell.ov-sidebar-collapsed .ov-workspace > span:nth-child(2),
.ov-shell.ov-sidebar-collapsed .ov-chevron,
.ov-shell.ov-sidebar-collapsed .ov-nav a > span:not(.ov-nav-glyph),
.ov-shell.ov-sidebar-collapsed .ov-nav-badge,
.ov-shell.ov-sidebar-collapsed .ov-profile > span:nth-child(2),
.ov-shell.ov-sidebar-collapsed .ov-profile > button { display: none; }
.ov-shell.ov-sidebar-collapsed .ov-brand-mark { width: 38px; height: 38px; }
.ov-shell.ov-sidebar-collapsed .ov-sidebar-collapse {
  position: absolute;
  right: -15px;
  top: 25px;
  background: #dcf500;
  border-color: #c8dc00;
  transform: rotate(180deg);
  box-shadow: 0 5px 14px rgba(60,70,0,.16);
}
.ov-shell.ov-sidebar-collapsed .ov-workspace { justify-content: center; padding: 7px; }
.ov-shell.ov-sidebar-collapsed .ov-nav a { justify-content: center; padding: 0; }
.ov-shell.ov-sidebar-collapsed .ov-nav-glyph { margin: 0; }
.ov-shell.ov-sidebar-collapsed .ov-profile { justify-content: center; padding: 8px; }
.ov-shell.ov-sidebar-collapsed .ov-main,
.ov-shell.ov-sidebar-collapsed .ib-main { margin-left: 78px; }
.ov-shell.ov-sidebar-collapsed .ov-account-menu { left: 68px; top: 0; width: 220px; }

.ib-action-popover {
  position: fixed;
  z-index: 2147481000;
  width: 210px;
  max-height: 290px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(22,34,54,.18);
}
.ib-action-popover[hidden] { display: none; }
.ib-action-popover button {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #263248;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: start;
  font: 600 10px/1.4 "Noto Sans Arabic", sans-serif;
  cursor: pointer;
}
.ib-action-popover button:hover,
.ib-action-popover button.active { background: #f6fadf; }
.ib-action-popover img,
.ib-action-popover .ib-pop-avatar {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f5;
  display: grid;
  place-items: center;
}
.ib-action-popover small { margin-left: auto; color: #8994a7; }
.ib-toast {
  position: fixed;
  z-index: 2147482000;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%,20px);
  padding: 10px 15px;
  border-radius: 8px;
  background: #182131;
  color: #fff;
  font: 700 11px/1.4 "Noto Sans Arabic", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.ib-toast.show { opacity: 1; transform: translate(-50%,0); }
.ib-toast.error { background: #b4233c; }
.ib-mobile-back { display: none !important; }
.ib-header-actions button.active { background: #f8fbdc; border-color: #d8e938; color: #435000; }
.ib-assignee { border: 0; background: transparent; color: #748097; display: grid; gap: 3px; text-align: start; font: inherit; cursor: pointer; }
.ib-assignee small { font-size: 7px; }
.ib-assignee b { padding: 6px 8px; border: 1px solid var(--ib-line); border-radius: 8px; background: #fff; color: #273247; font-size: 8px; }
.ib-contact-actions a { height: 49px; border: 1px solid var(--ib-line); border-radius: 8px; background: #fff; color: inherit; text-decoration: none; font: 700 7px/1.2 inherit; display: grid; place-items: center; text-align: center; }
.ib-detail-card h3 > button { float: right; border: 0; background: transparent; color: #6850ef; font: 700 8px/1 inherit; cursor: pointer; }

html.dark .ov-sidebar-collapse { background: #111925; border-color: #2b3547; color: #d5dce7; }
html.dark .ib-action-popover { background: #111925; border-color: #2b3547; }
html.dark .ib-action-popover button { color: #e5ebf4; }
html.dark .ib-action-popover button:hover,
html.dark .ib-action-popover button.active { background: #1b2514; }
html.dark .ib-assignee b,
html.dark .ib-contact-actions a { background: #111925; border-color: #283247; color: #e8edf5; }
html[dir="rtl"] .ov-sidebar-collapse { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .ov-shell.ov-sidebar-collapsed .ov-sidebar-collapse { right: auto; left: -15px; transform: none; }
html[dir="rtl"] .ov-shell.ov-sidebar-collapsed .ov-main,
html[dir="rtl"] .ov-shell.ov-sidebar-collapsed .ib-main { margin-right: 78px; margin-left: 0; }
html[dir="rtl"] .ib-action-popover button { text-align: right; }
html[dir="rtl"] .ib-action-popover small { margin-left: 0; margin-right: auto; }

@media (max-width: 820px) {
  .ov-sidebar-collapse { display: none; }
  .ov-shell.ov-sidebar-collapsed .ov-sidebar { width: 258px; }
  .ov-shell.ov-sidebar-collapsed .ov-main,
  .ov-shell.ov-sidebar-collapsed .ib-main,
  html[dir="rtl"] .ov-shell.ov-sidebar-collapsed .ov-main,
  html[dir="rtl"] .ov-shell.ov-sidebar-collapsed .ib-main { margin: 0; }
  .ov-shell.ov-sidebar-collapsed .ov-brand > strong,
  .ov-shell.ov-sidebar-collapsed .ov-workspace > span:nth-child(2),
  .ov-shell.ov-sidebar-collapsed .ov-chevron,
  .ov-shell.ov-sidebar-collapsed .ov-nav a > span:not(.ov-nav-glyph),
  .ov-shell.ov-sidebar-collapsed .ov-nav-badge,
  .ov-shell.ov-sidebar-collapsed .ov-profile > span:nth-child(2),
  .ov-shell.ov-sidebar-collapsed .ov-profile > button { display: initial; }
  .ov-shell.ov-sidebar-collapsed .ov-nav a,
  .ov-shell.ov-sidebar-collapsed .ov-workspace,
  .ov-shell.ov-sidebar-collapsed .ov-profile { justify-content: flex-start; }
  .ib-mobile-back { display: grid !important; }
}

/* Live chat, API and SMS campaigns were taken away (2026-09-26, at the
   owner's word: none of 29 campaigns ever used them), and their addresses
   lead to WhatsApp campaigns (captain-routes.js GONE). The platform still
   lists them under Campaigns - one per connected channel - so their rows go. */
li:has(> a[href$="/campaigns/live_chat"]),
li:has(> a[href$="/campaigns/api"]),
li:has(> a[href$="/campaigns/sms"]) {
  display: none !important;
}
