/* Боковое меню CX; фильтры разделов остаются частью рабочего экрана. */
body { --cx-nav-width: 232px; --cx-mobilebar-height: 0px; }
body.cx-nav-compact { --cx-nav-width: 76px; }
.view.active:not(#view-login) { padding-left: var(--cx-nav-width); min-width: 0; }
.view > nav.tnav { height: 0; min-height: 0; padding: 0; gap: 0; flex: 0 0 0; background: none; }
.cx-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 300; width: var(--cx-nav-width); display: flex; flex-direction: column; gap: 12px; padding: 18px 12px 12px; overflow-x: hidden; overflow-y: auto; background: var(--navy); color: #F4F6FF; border-right: 1px solid #303956; }
.cx-sidebar svg,.cx-mobilebar svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cx-nav-head { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-bottom: 9px; }
.cx-nav-brand { flex: 1; min-width: 0; white-space: nowrap; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.cx-nav-brand b { color: #A6B4FF; font-weight: 650; }
.cx-test-label { display: inline-block; align-self: start; border-radius: 6px; padding: 4px 8px; background: #FFE3A3; color: #493103; font-size: 12px; font-weight: 700; line-height: 1.25; }
.cx-test-label[hidden] { display: none; }
.lcard .cx-test-label { margin-bottom: 16px; }
.cx-sidebar .cx-test-label { text-align: center; max-width: 100%; }
body.cx-nav-compact .cx-sidebar .cx-test-label { align-self: stretch; padding-inline: 4px; }
.cx-brand-short { display: none; }
.cx-nav-collapse,.cx-menu-close { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; padding: 7px; background: transparent; color: #C5CEE7; cursor: pointer; }
.cx-nav-collapse:hover,.cx-menu-close:hover { background: #303A5D; color: #FFF; }
.cx-nav-links { display: flex; flex-direction: column; gap: 5px; }
.cx-nav-link,.cx-nav-action { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: #D1D9EE; font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.cx-nav-link:hover,.cx-nav-action:hover { color: #FFF; background: #293352; }
.cx-nav-link.on,.cx-nav-action[aria-current="page"] { color: #FFF; background: #394778; font-weight: 600; }
.cx-nav-label { min-width: 0; line-height: 1.4; }
.cx-nav-link .fb-badge { margin-left: auto; flex-shrink: 0; }
.cx-nav-account { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 14px; border-top: 1px solid #39415B; }
.cx-nav-role { padding: 8px 12px; color: #B8C3E1; font-size: 12px; }
.cx-nav-person { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 54px; padding: 10px 8px; border: 0; border-radius: 7px; background: transparent; color: #FFF; font: inherit; text-align: left; cursor: pointer; }
.cx-nav-person:hover { background: #293352; }
.cx-avatar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #394778; font-size: 12px; font-weight: 600; }
.cx-person-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.cx-person-info strong { font-size: 12px; font-weight: 600; }
.cx-person-info small { color: #B8C3E1; font-size: 11px; }
.cx-nav-logout { color: #B8C3E1; }
.cx-menu-close,.cx-mobilebar,.cx-nav-backdrop { display: none; }
.cx-sidebar button:focus-visible,.cx-sidebar a:focus-visible,.cx-mobilebar button:focus-visible { outline: 2px solid #B4C1FF; outline-offset: 2px; }
body.cx-nav-compact .cx-sidebar { padding-inline: 10px; }
body.cx-nav-compact .cx-nav-head { flex-direction: column; gap: 8px; }
body.cx-nav-compact .cx-brand-full,body.cx-nav-compact .cx-nav-label,body.cx-nav-compact .cx-person-info,body.cx-nav-compact .cx-nav-role { display: none; }
body.cx-nav-compact .cx-brand-short { display: inline; color: #A6B4FF; }
body.cx-nav-compact .cx-nav-collapse svg { transform: rotate(180deg); }
body.cx-nav-compact .cx-nav-link,body.cx-nav-compact .cx-nav-action,body.cx-nav-compact .cx-nav-person { justify-content: center; padding-inline: 8px; }
body.cx-nav-compact .cx-nav-link { position: relative; }
body.cx-nav-compact .cx-nav-link .fb-badge { position: absolute; top: 1px; right: -2px; margin: 0; }
#jivo-analytics-frame { height: calc(100dvh - var(--cx-mobilebar-height)) !important; }
body.cx-page-narrow #view-work > .app-layout,body.cx-page-narrow #view-nps > .app-layout { flex-direction: column; }
body.cx-page-narrow #view-work .cw,body.cx-page-narrow #view-nps .cw { flex-direction: column; overflow: visible; }
body.cx-page-narrow #view-work .sidebar,body.cx-page-narrow #view-nps .sidebar { width: auto; border-right: 0; border-bottom: 1px solid var(--border); }
body.cx-page-narrow #view-work .elist,body.cx-page-narrow #view-nps .elist { width: auto; min-width: 0; max-height: 50vh; border-right: 0; }
body.cx-page-narrow #view-work .apanel,body.cx-page-narrow #view-nps .apanel { overflow: visible; }
body.cx-page-narrow #view-quality .quality-dialog-layout { grid-template-columns: minmax(0,1fr); }
body.cx-page-narrow #view-quality .quality-dialog-timings { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--border); }
body.cx-page-small #bugs-body .bugs-sidebar { width: 200px; }
body.cx-page-small #bugs-body .bugs-list { flex: 1; width: auto; min-width: 0; }
body.cx-page-small #bugs-body .bugs-panel { display: none; }
body.cx-page-small #bugs-body.bugs-detail-open .bugs-sidebar,body.cx-page-small #bugs-body.bugs-detail-open .bugs-list { display: none; }
body.cx-page-small #bugs-body.bugs-detail-open .bugs-panel { display: flex; }
@media (max-width: 900px) {
  body,body.cx-nav-compact { --cx-nav-width: 0px; --cx-mobilebar-height: 56px; }
  .view.active:not(#view-login) { padding-left: 0; padding-top: var(--cx-mobilebar-height); }
  .cx-mobilebar { display: flex; align-items: center; gap: 12px; position: fixed; top: 0; left: 0; right: 0; z-index: 290; height: var(--cx-mobilebar-height); padding: 8px 14px; background: var(--navy); color: #FFF; font-weight: 600; font-size: 14px; }
  .cx-mobile-brand { margin-left: auto; color: #A6B4FF; font-weight: 700; }
  .cx-mobilebar .cx-test-label { align-self: center; flex-shrink: 0; margin-left: auto; }
  .cx-menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; border: 0; border-radius: 7px; background: #303A5D; color: #FFF; cursor: pointer; }
  .cx-sidebar,body.cx-nav-compact .cx-sidebar { width: min(292px,calc(100vw - 48px)); padding: 16px 12px; z-index: 710; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease,visibility .18s ease; }
  body.cx-nav-open { overflow: hidden; }
  body.cx-nav-open .view.active .cx-sidebar { transform: translateX(0); visibility: visible; }
  body.cx-nav-open .view.active .cx-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 700; border: 0; background: #10182F88; cursor: pointer; }
  .cx-menu-close { display: inline-flex; }
  .cx-nav-collapse { display: none; }
  body.cx-nav-compact .cx-nav-head { flex-direction: row; gap: 8px; }
  body.cx-nav-compact .cx-brand-full,body.cx-nav-compact .cx-nav-label,body.cx-nav-compact .cx-person-info,body.cx-nav-compact .cx-nav-role { display: initial; }
  body.cx-nav-compact .cx-brand-short { display: none; }
  body.cx-nav-compact .cx-nav-link,body.cx-nav-compact .cx-nav-action,body.cx-nav-compact .cx-nav-person { justify-content: flex-start; padding-inline: 12px; }
  body.cx-nav-compact .cx-person-info { display: flex; }
  body.cx-nav-compact .cx-nav-link .fb-badge { position: static; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .cx-sidebar { transition: none; } }

@media print { .view.active:not(#view-login) { padding-left: 0; padding-top: 0; } }
/* AI tools form one disclosure; QC stays a separate work area. */
.cx-ai-group{min-width:0}.cx-ai-chevron{margin-left:auto;display:inline-flex;color:#aab8dc}.cx-ai-chevron svg{width:16px;height:16px;flex-basis:16px;transition:transform .15s}.cx-ai-toggle[aria-expanded="true"] .cx-ai-chevron svg{transform:rotate(180deg)}.cx-ai-children{display:flex;flex-direction:column;gap:3px;margin:5px 0 5px 21px;padding-left:10px;border-left:1px solid #465375}.cx-ai-children[hidden]{display:none}.cx-ai-child{min-height:38px;padding:9px 10px;font-size:12px;gap:10px}.cx-ai-child svg{width:18px;height:18px;flex-basis:18px}.cx-ai-toggle.on{background:#303d65}.cx-ai-child.on{background:#43558d}body.cx-nav-compact .cx-ai-chevron{display:none}@media(max-width:900px){body.cx-nav-compact .cx-ai-chevron{display:inline-flex}.cx-ai-child{min-height:42px}}@media(prefers-reduced-motion:reduce){.cx-ai-chevron svg{transition:none}}
