/* Core customer work stays visible in the independently deployed CRM shell. */
.crm-body .module-rail__item{white-space:nowrap}
.crm-body .module-rail__item span{overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
html[lang="hy"] .crm-body .module-context-bar__links>a,
html[lang="hy"] .crm-body .module-context-bar__links>.crm-context-menu>summary{min-height:0;height:auto;padding-block:12px;white-space:nowrap;line-height:1.6}
.crm-workspace-paths{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin-block:0 18px}
.crm-workspace-paths>a{display:flex;align-items:center;gap:12px;min-width:0;padding:16px;border:1px solid #e0e6ef;border-radius:14px;background:#fff;color:#344054;box-shadow:0 3px 10px rgb(20 35 60 / 3%);transition:border-color .15s,box-shadow .15s}
.crm-workspace-paths>a:hover,.crm-workspace-paths>a:focus-visible{border-color:var(--org-accent);box-shadow:0 4px 16px var(--org-shadow)}
.crm-workspace-paths__icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:var(--org-accent-soft);color:var(--org-accent-hover);font-size:1.15rem}
.crm-workspace-paths>a>span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}
.crm-workspace-paths strong{font-size:.875rem;line-height:1.6;overflow-wrap:anywhere}
.crm-workspace-paths small{color:#737e90;font-size:.75rem;line-height:1.7;overflow-wrap:anywhere}
.crm-workspace-paths>a>i{color:#98a2b3;font-size:.875rem}
html[dir=ltr] .crm-workspace-paths>a>i{transform:scaleX(-1)}
@media(max-width:600px){.crm-workspace-paths{gap:8px}.crm-workspace-paths>a{padding:12px}}
@media(max-width:1100px){
  .crm-body .erp-shell.is-sidebar-open .erp-sidebar{z-index:4100}
  .crm-body .erp-shell.is-sidebar-open .erp-sidebar-backdrop{z-index:4050}
}

/* Section navigation is the single location for internal workspace links. */
.crm-body .module-context-bar{gap:12px;padding-inline:20px;align-items:stretch;isolation:isolate}
.crm-body .module-context-bar__module{flex:0 0 auto;min-width:150px;max-width:220px}
.crm-body .module-context-bar__module strong{overflow-wrap:anywhere}
.crm-body .module-context-bar__links{display:flex;flex-wrap:wrap;align-items:stretch;overflow:visible;min-width:0;gap:2px}
.crm-body .module-context-bar__links>a,.crm-body .module-context-bar__links>.crm-context-menu>summary{min-width:0;min-height:58px;height:auto;gap:7px;padding:10px 12px;white-space:nowrap;line-height:1.6;text-align:start}
.crm-body .module-context-bar__links>a:focus-visible,.crm-body .crm-context-menu>summary:focus-visible{outline:2px solid var(--org-accent);outline-offset:-4px;border-radius:8px}
.crm-body .crm-context-menu{position:relative;display:block;min-width:0}
.crm-body .crm-context-menu>summary{list-style:none}
.crm-body .crm-context-menu>summary::-webkit-details-marker{display:none}
.crm-body .crm-context-menu__panel{position:absolute;top:100%;inset-inline-start:0;right:auto;left:auto;width:330px;max-width:calc(100vw - 24px);max-height:min(620px,70vh);overflow-y:auto;border:1px solid var(--erp-line,#dfe5ed);border-radius:12px;background:#fff;box-shadow:0 14px 32px rgb(20 35 60 / 14%);padding:6px;z-index:4100}
.crm-body .crm-context-menu:not([open])>.crm-context-menu__panel{display:none}
.crm-body .crm-context-menu__grid{display:block;padding:0}
.crm-body .crm-context-menu__grid>section{padding:0}
.crm-body .crm-context-menu__grid a{display:flex;min-width:0;min-height:44px;gap:10px;padding:9px 11px;white-space:nowrap;border-radius:8px;font-weight:600}
.crm-body .crm-context-menu__grid a>i{flex:0 0 30px;width:30px;height:30px;font-size:.9rem}
.crm-body .crm-context-menu__grid a>i:last-child:not(:first-child){margin-inline-start:auto;background:transparent}
.crm-body .crm-context-menu__grid a>span{display:block;min-width:0}
.crm-body .crm-context-menu__grid b{display:block;overflow:visible;white-space:nowrap;text-overflow:clip;overflow-wrap:anywhere;font-size:.8125rem;line-height:1.7}
.crm-body .crm-context-menu__grid a.is-current{color:var(--org-accent-hover);background:var(--org-accent-soft)}
.crm-body .crm-section-toggle{display:none}
@media(max-width:1100px){
 .crm-body .module-context-bar{min-height:54px;padding-inline:12px;gap:8px}
 .crm-body .module-context-bar__module{min-width:0;max-width:44px;border:0;padding:0}
 .crm-body .module-context-bar__module>div{display:none}
 .crm-body .module-context-bar__module::before{display:none}
 .crm-body .crm-section-toggle{display:flex;flex:1;align-items:center;gap:9px;min-width:0;min-height:44px;margin-block:5px;padding:8px 12px;background:var(--org-accent-soft);color:var(--org-accent-hover);border:1px solid var(--erp-line,#dfe5ed);border-radius:9px;font:inherit;font-size:.8125rem;font-weight:750;text-align:start}
 .crm-body .crm-section-toggle>span{flex:1;overflow-wrap:anywhere}
 .crm-body .crm-section-toggle>i:last-child{font-size:.7rem}
 .crm-body .module-context-bar.nav-ready .module-context-bar__links{display:none}
 .crm-body .module-context-bar.nav-ready.is-section-open .module-context-bar__links{display:flex}
 .crm-body .module-context-bar__links{position:absolute;inset-inline:10px;top:calc(100% + 4px);max-height:calc(100dvh - 150px);overflow-y:auto;flex-direction:column;flex-wrap:nowrap;padding:6px;border:1px solid var(--erp-line,#dfe5ed);border-radius:12px;background:#fff;box-shadow:0 12px 28px rgb(20 35 60 / 14%)}
 .crm-body .module-context-bar__links>a,.crm-body .module-context-bar__links>.crm-context-menu>summary{min-height:44px;padding:10px 12px;border-radius:8px}
 .crm-body .crm-context-menu>summary>span{flex:1}
 .crm-body .crm-context-menu__panel{position:static!important;width:auto;max-width:none;max-height:none;overflow:visible;border:0;border-inline-start:2px solid var(--org-accent-soft);border-radius:0;box-shadow:none;margin-inline:17px 4px;padding:4px}
 .crm-body .module-context-bar__links a.is-current::after,.crm-body .crm-context-menu.is-current>summary::after{display:none}
 .crm-body .module-context-bar__back{margin-inline-start:0;min-height:40px}
}
@media(prefers-reduced-motion:reduce){.crm-body .crm-context-menu>summary>i{transition:none}}

/* A wrapped desktop row must size to its contents. A percentage height here
   makes later groups escape the section bar and cover the page heading. */
@media(min-width:1101px){
  .crm-body .module-context-bar .module-context-bar__links{align-content:flex-start}
  .crm-body .module-context-bar .module-context-bar__links>a,
  .crm-body .module-context-bar .module-context-bar__links>.crm-context-menu>summary{height:auto;min-height:63px}
}
