.office-viewer-layout__watermark-surface,
.office-viewer-layout__viewport {
  width: 100%;
  height: 100%;
}
.office-viewer-layout__watermark-surface {
  background: var(--office-file-workspace-color);
}
.office-viewer-layout__viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.office-viewer-layout__content {
  box-sizing: border-box;
  min-width: 100%;
  min-height: 100%;
  transform-origin: top left;
}
.office-viewer-layout__content[data-content-scaling='managed'] {
  transform: scale(var(--office-viewer-layout-scale));
}
.office-viewer-layout__shell-root {
  display: grid;
  grid-template: 'toolbar toolbar' auto 'sidebar viewport' minmax(0, 1fr) 'status status' auto / fit-content(20rem) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.office-viewer-layout__shell-toolbar,
.office-viewer-layout__shell-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  min-width: 0;
  padding: 4px 8px;
}
.office-viewer-layout__shell-toolbar {
  grid-area: toolbar;
  border-bottom: 1px solid var(--office-file-border-color);
}
.office-viewer-layout__shell-status-bar {
  grid-area: status;
  border-top: 1px solid var(--office-file-border-color);
}
.office-viewer-layout__shell-viewport {
  grid-area: viewport;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.office-viewer-layout__shell-sidebar {
  grid-area: sidebar;
  min-width: 0;
  overflow: auto;
  border-right: 1px solid var(--office-file-border-color);
}
.office-viewer-layout__shell-file-info {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.office-viewer-layout__shell-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 640px) {
  .office-viewer-layout__shell-root {
    grid-template: 'toolbar' auto 'sidebar' auto 'viewport' minmax(0, 1fr) 'status' auto / minmax(0, 1fr);
  }
  .office-viewer-layout__shell-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--office-file-border-color);
  }
}
@media (prefers-reduced-motion: reduce) {
  .office-viewer-layout__shell-toolbar,
  .office-viewer-layout__shell-sidebar,
  .office-viewer-layout__shell-viewport,
  .office-viewer-layout__shell-status-bar {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
