/* Migo CRM v8.5.21.138 — v136 logic revert + Pipeline compact UI */
html{--migo-sidebar-canonical-width-v138:280px}
body.migo-shell-unified-v138 .sidebar-rail,
body.migo-shell-unified-v138 .sidebar-compact-rail,
body.migo-shell-unified-v138 .migo-sidebar-rail,
body.migo-shell-unified-v138 .migo-sidebar-compact,
body.migo-shell-unified-v138 .migo-sidebar-compact-tab,
body.migo-shell-unified-v138 .migo-sidebar-mini-rail,
body.migo-shell-unified-v138 [data-sidebar-rail],
body.migo-shell-unified-v138 [data-sidebar-compact-rail]{display:none!important}
body.migo-shell-unified-v138:not(.migo-sidebar-hidden) .migo-sidebar-unified-v138{
  width:var(--migo-sidebar-canonical-width-v138)!important;
  min-width:var(--migo-sidebar-canonical-width-v138)!important;
  max-width:var(--migo-sidebar-canonical-width-v138)!important;
  transform:none!important;
  visibility:visible!important;
  opacity:1!important
}
body.migo-shell-unified-v138.migo-sidebar-hidden .migo-sidebar-unified-v138{
  transform:translateX(-105%)!important;
  visibility:hidden!important;
  pointer-events:none!important
}
/* Never render the historical vertical text rail. Canonical hidden state uses #migoSidebarOpenButton. */
body.migo-shell-unified-v138 .migo-legacy-sidebar-rail-v138{display:none!important}

/* Update Center: can live inside any canonical header or as a safe fixed fallback. */
.migo-update-host-v138{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.migo-update-notice-v138{display:flex;align-items:center;gap:9px;min-height:36px;padding:5px 6px 5px 10px;border:1px solid #d6dfec;border-radius:10px;background:#fff;box-shadow:0 4px 18px rgba(15,31,57,.08);color:#17233c;font-size:12px;line-height:1.2;white-space:nowrap;z-index:2147483000}
.migo-update-notice-v138[hidden]{display:none!important}
.migo-update-count-v138{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#17233c;color:#fff;font-weight:800;font-size:11px}
.migo-update-copy-v138{display:flex;align-items:baseline;gap:5px;min-width:0}
.migo-update-copy-v138>span{font-weight:750;color:#17233c}
.migo-update-copy-v138>small{color:#748096;font-size:11px}
.migo-update-btn-v138{height:28px;padding:0 10px;border:0;border-radius:7px;background:#17233c;color:#fff;font:inherit;font-weight:750;cursor:pointer}
.migo-update-btn-v138:disabled{opacity:.65;cursor:wait}
#migoGlobalUpdateHostV135.is-fixed-v138{position:fixed;top:12px;right:16px;z-index:2147483000;pointer-events:none}
#migoGlobalUpdateHostV135.is-fixed-v138 .migo-update-notice-v138{pointer-events:auto}
@media(max-width:760px){
  .migo-update-copy-v138>small{display:none}
  .migo-update-notice-v138{gap:6px;padding-left:7px}
  #migoGlobalUpdateHostV135.is-fixed-v138{left:10px;right:10px;top:8px;justify-content:flex-end}
}

/* v138 — Pipeline compact mode uses the canonical fixed vertical SIDEBAR rail.
   PRESENTATION ONLY: no sidebar state/localStorage/open-close logic is changed. */
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden{
  padding-left:26px!important;
  box-sizing:border-box!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton{
  display:flex!important;
  position:fixed!important;
  inset:0 auto 0 0!important;
  top:0!important;
  left:0!important;
  right:auto!important;
  bottom:0!important;
  width:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:100vh!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-right:1px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:rgba(100,116,139,.46)!important;
  box-shadow:none!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  cursor:pointer!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  transform:none!important;
  font-size:0!important;
  line-height:1!important;
  z-index:2147482000!important;
  -webkit-tap-highlight-color:transparent!important;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease!important
}
body.crm-app.migo-pipeline-route-v3029:not(.migo-sidebar-hidden) #migoSidebarOpenButton{
  display:none!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton svg{
  display:none!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton::before{
  content:none!important;
  display:none!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton::after{
  content:'SIDEBAR'!important;
  display:block!important;
  writing-mode:vertical-rl!important;
  text-orientation:mixed!important;
  transform:rotate(180deg)!important;
  white-space:nowrap!important;
  font-family:inherit!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  user-select:none!important;
  pointer-events:none!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton:hover,
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton:focus-visible{
  background:#f3f7ee!important;
  color:#526552!important;
  border-right-color:#d9e3d5!important;
  box-shadow:5px 0 18px rgba(48,64,52,.08)!important;
  outline:none!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton:active{
  background:#e8f0e3!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden .topbar>div:first-child{
  padding-left:0!important
}
body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden .main-panel{
  margin-left:0!important;
  max-width:none!important
}
@media(max-width:640px){
  body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden{padding-left:22px!important}
  body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton{
    width:22px!important;min-width:22px!important;max-width:22px!important
  }
  body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton::after{
    font-size:8px!important;letter-spacing:.14em!important
  }
}
@media(prefers-reduced-motion:reduce){
  body.crm-app.migo-pipeline-route-v3029.migo-sidebar-hidden #migoSidebarOpenButton{transition:none!important}
}
