/* Document editors share the fixed CRM navigation with the other pages. */
.doc-shell:has(.crm-sidebar) {
  --crm-nav-width: 238px;
  padding-inline-start: var(--crm-nav-width);
  transition: padding-inline-start .4s cubic-bezier(.22,.8,.24,1);
  container-type: inline-size;
}
.doc-shell:has(.crm-sidebar[data-collapsed="true"]) { --crm-nav-width: 78px; }
.doc-shell .doc-preview { min-width: 0; }
@container (max-width: 1150px) {
  .doc-shell .doc-split { grid-template-columns: minmax(0,1fr); }
  .doc-shell .doc-side { border-left: 0; border-top: 1px solid #d9d0c1; }
}
@media (max-width: 820px) {
  .doc-shell:has(.crm-sidebar),
  .doc-shell:has(.crm-sidebar[data-collapsed="true"]) {
    padding-inline-start: 0;
    --crm-nav-width: 245px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .doc-shell:has(.crm-sidebar) { transition: none; }
}
@media print {
  .doc-shell:has(.crm-sidebar) { padding: 0 !important; background: white !important; }
  .doc-shell .crm-sidebar, .doc-shell .crm-sidebar-scrim, .doc-shell .crm-app-topbar { display: none !important; }
}
