/* 只作用于公报阅读工作区，不改变公报内容、数据来源或导出样式。 */
.artifact-editor-drawer:has(.rw-report-view) {
  background: #191919;
  border-color: #353535;
  box-shadow: none;
}
.artifact-editor-drawer:has(.rw-report-view) > .artifact-drawer-heading { display: contents; }
.artifact-editor-drawer:has(.rw-report-view) > .artifact-drawer-heading > strong { display: none; }
.artifact-editor-drawer:has(.rw-report-view) > .artifact-drawer-heading > div {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 8px;
  display: flex;
  gap: 2px;
}
.artifact-editor-drawer:has(.rw-report-view) > .artifact-drawer-heading button.rw-original-icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 28px;
  height: 34px;
  min-height: 0;
  padding: 6px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #b8b8b8;
  font-size: 0;
}
.artifact-editor-drawer:has(.rw-report-view) > .artifact-drawer-heading button.rw-original-icon:hover { background: #333; color: #fff; }
.artifact-editor-drawer:has(.rw-report-view) > .artifact-drawer-heading button.rw-original-icon::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: var(--rw-icon) center / contain no-repeat;
}
.artifact-editor-content:has(.rw-report-view) {
  display: flex;
  overflow: hidden;
  padding: 0;
}
.artifact-editor-content:has(.rw-report-view) #quickReportRoot {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #191919;
  box-shadow: none;
}
.rw-report-view.zj-report-workspace {
  container: report-reader / inline-size;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #191919;
  color: #dedede;
  font: 12px/1.5 system-ui, sans-serif;
}
.rw-report-view .rw-topbar.zj-report-tools {
  position: relative;
  top: auto;
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  min-height: 60px;
  margin: 0;
  padding: 11px 70px 11px 12px;
  border: 0;
  background: #191919;
  color: #dedede;
}
.rw-report-view .rw-topbar button,
.rw-report-view .rw-topbar input,
.rw-report-view .rw-sidebar button {
  box-sizing: border-box;
  border: 0;
  outline: none;
  box-shadow: none;
  font: inherit;
}
.rw-report-view .rw-topbar button,
.rw-report-view .rw-sidebar button {
  cursor: pointer;
  color: inherit;
}
.rw-report-view button:focus-visible,
.rw-report-view input:focus-visible,
.rw-report-view select:focus-visible {
  outline: 2px solid #9abcf5;
  outline-offset: 2px;
}
.rw-report-view .rw-file {
  display: flex;
  flex: 1 1 180px;
  align-items: center;
  gap: 7px;
  min-width: 72px;
  max-width: 340px;
  height: 36px;
  padding: 0 10px;
  border-radius: 20px;
  background: #2d2d2d;
}
.rw-report-view .rw-file input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 30px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ececec;
  text-overflow: ellipsis;
}
.rw-report-view .rw-file input:focus { text-overflow: clip; }
.rw-icon-svg { display: block; flex: none; width: 17px; height: 17px; }
.rw-report-view .rw-icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 34px;
  min-height: 0;
  padding: 7px;
  border-radius: 17px;
  background: transparent;
  color: #c5c5c5;
}
.rw-report-view .rw-icon-button:hover { background: #333; color: #fff; }
.rw-report-view .rw-icon-button[hidden] { display: none; }
.rw-report-view .rw-file .rw-file-menu-button {
  width: 19px;
  height: 28px;
  padding: 2px;
}
.rw-report-view .rw-request-edit {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 20px;
  background: #2d2d2d;
  color: #e0e0e0;
  white-space: nowrap;
}
.rw-report-view .rw-request-edit:hover { background: #3a3a3a; }
.rw-report-view .rw-topbar-spacer { flex: 1 1 0; min-width: 0; }
.rw-report-view .rw-zoom {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 58px;
  height: 36px;
  padding: 0 9px;
  border-radius: 20px;
  background: #2d2d2d;
  color: #e0e0e0;
}
.rw-report-view .rw-zoom select {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}
.rw-report-view .rw-zoom select option { background: #fff; color: #333; }
.rw-report-view .rw-zoom .rw-icon-svg { width: 12px; height: 12px; }
.rw-report-view .rw-download { background: #2d2d2d; }
.rw-report-view .rw-topbar button.rw-original-icon {
  position: relative;
  font-size: 0;
}
.rw-report-view .rw-original-icon::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background: currentColor;
  mask: var(--rw-icon) center / contain no-repeat;
}
.rw-report-view .rw-reader-layout {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.rw-report-view .rw-sidebar {
  display: flex;
  flex: 0 0 clamp(112px, 25%, 178px);
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 12px 0 12px 12px;
  overflow: hidden;
  border: 1px solid #383838;
  border-radius: 18px;
  background: #292929;
}
.rw-report-view.rw-thumbnails-hidden .rw-sidebar { display: none; }
.rw-report-view .rw-sidebar-heading {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 49px;
  padding: 6px 10px 6px 14px;
  color: #a5a5a5;
}
.rw-report-view .rw-thumbnail-list {
  flex: 1;
  min-height: 0;
  padding: 0 6px 10px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}
.rw-report-view .rw-thumbnail {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 5px;
  width: 100%;
  margin: 0 0 5px;
  padding: 10px 8px 10px 5px;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}
.rw-report-view .rw-thumbnail:hover { background: #323232; }
.rw-report-view .rw-thumbnail[aria-current="page"] { background: #383f47; }
.rw-report-view .rw-thumbnail-number { padding-top: 3px; color: #a4a4a4; text-align: center; }
.rw-report-view .rw-thumbnail[aria-current="page"] .rw-thumbnail-number { color: #91c1f5; }
.rw-report-view .rw-thumbnail-surface {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 0 1px #ffffff12;
  pointer-events: none;
}
.rw-report-view .rw-reader-layout > .zj-report-pages {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 28px 20px 36px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
  scroll-behavior: auto;
  background: #191919;
}
.rw-report-view .zj-report-pages > .zj-book { max-width: none; margin: auto; }
.rw-report-view .zj-report-pages .zj-page {
  margin-bottom: 24px;
  scroll-margin-top: 0;
  box-shadow: 0 0 0 1px #ffffff12;
}
.rw-report-view .rw-menu {
  position: fixed;
  z-index: 40;
  box-sizing: border-box;
  width: 218px;
  max-width: calc(100vw - 20px);
  max-height: min(470px, calc(100dvh - 80px));
  margin: 0;
  padding: 6px;
  overflow: auto;
  border: 1px solid #454545;
  border-radius: 13px;
  background: #292929;
  color: #e0e0e0;
  box-shadow: 0 12px 36px #0005;
  font: 12px/1.5 system-ui, sans-serif;
}
.rw-report-view .rw-menu::backdrop { background: transparent; }
.rw-report-view .rw-menu button,
.rw-report-view .rw-menu label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.rw-report-view .rw-menu button { cursor: pointer; }
.rw-report-view .rw-menu button:hover { background: #3b3b3b; }
.rw-report-view .rw-menu label { border-top: 1px solid #444; border-radius: 0; margin-top: 4px; padding-top: 10px; }
.rw-report-view .rw-menu select { min-width: 80px; padding: 3px; border: 1px solid #555; border-radius: 5px; background: #333; color: #eee; font: inherit; }
@container report-reader (max-width: 480px) {
  .rw-report-view .rw-topbar.zj-report-tools { gap: 5px; min-height: 54px; padding: 9px 68px 9px 8px; }
  .rw-report-view .rw-file { gap: 5px; min-width: 60px; padding: 0 8px; }
  .rw-report-view .rw-request-edit { width: 32px; padding: 7px; }
  .rw-report-view .rw-request-edit span { display: none; }
  .rw-report-view .rw-topbar-spacer { display: none; }
  .rw-report-view .rw-icon-button { width: 28px; padding: 6px; }
  .rw-report-view .rw-zoom { min-width: 53px; padding: 0 6px; }
  .rw-report-view .rw-sidebar { flex-basis: 112px; margin-left: 8px; }
  .rw-report-view .rw-thumbnail { grid-template-columns: 14px minmax(0, 1fr); gap: 3px; padding-right: 5px; }
  .rw-report-view .rw-reader-layout > .zj-report-pages { padding: 16px 12px 24px; }
}
