.crm-shell-frame{ display:none; isolation:isolate; }
.crm-shell-frame, .crm-shell-frame *{ box-sizing:border-box; }
@media (min-width: 1180px){
  :root{ --crm-shell-collapsed-w: 88px; }
  body.crm-admin-page,
  body.crm-report-page{
    padding-left: calc(var(--crm-shell-w) + 26px) !important;
    padding-top: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 30px !important;
    transition: padding-left .34s cubic-bezier(.22,1,.36,1) !important;
  }
  .crm-shell-frame{ display:block; }
  .crm-shell-frame .crm-sidebar{
    position: fixed;
    inset: 18px auto 18px 18px;
    width: var(--crm-shell-w);
    display:flex; flex-direction:column; gap:16px;
    padding:18px;
    border:1px solid var(--crm-border);
    border-radius:26px;
    background:color-mix(in srgb, var(--crm-surface) 94%, var(--crm-bg) 6%);
    box-shadow:var(--crm-shadow-md);
    z-index:1500;
    overflow-x:hidden;
    overflow-y:auto;
    scrollbar-width:thin;
    transition: width .34s cubic-bezier(.22,1,.36,1), padding .34s cubic-bezier(.22,1,.36,1), border-radius .34s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
    will-change: width, padding;
  }
  .crm-shell-frame .crm-sidebar-toggle{
    position: fixed;
    top: 40px;
    left: calc(18px + var(--crm-shell-w) - 42px);
    z-index: 1501;
    transform:none;
    transition:left .34s cubic-bezier(.22,1,.36,1), transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  }
  .crm-admin-page .topbar,
  .crm-admin-page .bottom-actions,
  .crm-admin-page .drawer,
  .crm-admin-page .drawer-backdrop,
  .crm-report-page .topbar,
  .crm-report-page .bottom-actions,
  .crm-report-page .drawer,
  .crm-report-page .drawer-backdrop{ display:none !important; }
  .crm-admin-page .wrap,
  .crm-report-page .wrap{ width:100% !important; max-width:var(--crm-page-max) !important; margin:0 auto !important; padding:0 10px 0 0 !important; }
  body.crm-admin-page.crm-sidebar-collapsed,
  body.crm-report-page.crm-sidebar-collapsed{ padding-left: calc(var(--crm-shell-collapsed-w) + 34px) !important; }
  body.crm-sidebar-collapsed .crm-sidebar{ width:var(--crm-shell-collapsed-w); padding-inline:12px; }
  body.crm-sidebar-collapsed .crm-shell-frame .crm-sidebar-toggle{ left: calc(18px + var(--crm-shell-collapsed-w) - 42px); }
  body.crm-sidebar-collapsed .crm-sidebar__head{ justify-content:center !important; }
  body.crm-sidebar-collapsed .crm-brand{ width:100% !important; justify-content:center !important; gap:0 !important; }
  body.crm-sidebar-collapsed .crm-brand__logo{ width:54px !important; height:54px !important; border-radius:16px !important; }
  body.crm-sidebar-collapsed .crm-brand__text,
  body.crm-sidebar-collapsed .crm-profile__body,
  body.crm-sidebar-collapsed .crm-nav__label{ opacity:0 !important; visibility:hidden !important; max-width:0 !important; margin:0 !important; transform:translateX(-8px) !important; pointer-events:none !important; }
  body.crm-sidebar-collapsed .crm-sidebar__section,
  body.crm-sidebar-collapsed .crm-sidebar__footer-actions{ opacity:0 !important; visibility:hidden !important; max-height:0 !important; margin:0 !important; padding-top:0 !important; padding-bottom:0 !important; border:0 !important; transform:translateY(8px) !important; pointer-events:none !important; overflow:hidden !important; }
  body.crm-sidebar-collapsed .crm-sidebar__footer{ gap:10px !important; }
  body.crm-sidebar-collapsed .crm-nav{ justify-items:center !important; }
  body.crm-sidebar-collapsed .crm-nav__item{ justify-content:center !important; width:56px !important; min-width:56px !important; padding-inline:0 !important; }
  body.crm-sidebar-collapsed .crm-nav__icon{ margin-right:0 !important; }
  body.crm-sidebar-collapsed .crm-profile{ justify-content:center !important; padding-inline:0 !important; }
}
@media (min-width:1180px) and (max-width:1440px){
  :root{ --crm-shell-w: 262px; }
  .crm-shell-frame .crm-sidebar{ gap:14px; padding:16px; }
}
@media (min-width:1180px) and (max-height:820px){
  .crm-shell-frame .crm-sidebar{ gap:12px; padding-block:14px; }
}
@media (max-width:1179px){ .crm-shell-frame{ display:none !important; } }
