/* Product workspace. Selection DOM and its layout are intentionally untouched. */
#dw-product-workspace.dw-pw {
  margin: 24px 0 20px;
  min-width: 0;
  color: #173654;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.dw-pw-tabs[role="tablist"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #dbe5ef;
}

.dw-pw-tabs[role="tablist"] > button.dw-pw-tab {
  box-sizing: border-box;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #52677d;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
}

.dw-pw-tab .dw-pw-label {
  display: block;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.dw-pw-tabs[role="tablist"] > button.dw-pw-tab:hover {
  color: #0054a6;
  background: #f7fafe;
}

.dw-pw-tabs[role="tablist"] > button.dw-pw-tab[aria-selected="true"] {
  color: #0054a6;
  background: #eff6fd;
  border-bottom-color: #0054a6;
  font-weight: 700;
}

.dw-pw-tabs[role="tablist"] > button.dw-pw-tab:focus-visible,
.dw-pw-shortcuts a:focus-visible {
  outline: 2px solid #328cce;
  outline-offset: -4px;
}

.dw-pw-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.dw-pw-panel[hidden] {
  display: none !important;
}

#allocation[data-dw-pw-hidden="1"] {
  display: none !important;
}

.dw-pw-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0;
  padding: 12px 4px;
  border-bottom: 1px solid #e6edf5;
  font-size: 13px;
  line-height: 1.7;
}

.dw-pw-shortcuts a {
  display: inline-block;
  padding: 3px 0;
  color: #0054a6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dw-pw-shortcuts a:hover {
  text-decoration: underline;
}

iframe.dw-pw-frame {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
}

/* These selectors apply only inside a knowledge document embedded in a panel. */
html.dw-pw-embed,
body.dw-pw-embed {
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0;
  background: #fff !important;
  overflow-x: hidden;
}

html.dw-pw-embed #header,
html.dw-pw-embed #header_h,
html.dw-pw-embed #condition,
html.dw-pw-embed #footer,
html.dw-pw-embed #copyright,
html.dw-pw-embed #goreg,
html.dw-pw-embed #service,
html.dw-pw-embed .dw-knowledge-access,
html.dw-pw-embed .dwk-nav,
body.dw-pw-embed #header,
body.dw-pw-embed #header_h,
body.dw-pw-embed #condition,
body.dw-pw-embed #footer,
body.dw-pw-embed #copyright,
body.dw-pw-embed #goreg,
body.dw-pw-embed #service,
body.dw-pw-embed .dw-knowledge-access,
body.dw-pw-embed .dwk-nav {
  display: none !important;
}

html.dw-pw-embed .dwk,
body.dw-pw-embed .dwk {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 28px 28px;
}

html.dw-pw-embed .dwk-hero,
body.dw-pw-embed .dwk-hero {
  gap: 28px;
  padding: 8px 0 24px;
}

html.dw-pw-embed .dwk-hero-aside,
body.dw-pw-embed .dwk-hero-aside {
  padding: 22px;
}

html.dw-pw-embed .dwk-article-head,
body.dw-pw-embed .dwk-article-head {
  padding: 8px 0 22px;
}

html.dw-pw-embed .dwk h1,
body.dw-pw-embed .dwk h1 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.4;
}

html.dw-pw-embed .dwk-back,
body.dw-pw-embed .dwk-back {
  margin-top: 0;
  margin-bottom: 16px;
}

html.dw-pw-embed .dwk-section,
body.dw-pw-embed .dwk-section {
  padding: 22px 0;
}

html.dw-pw-embed .dwk-result,
html.dw-pw-embed .dwk-toc,
body.dw-pw-embed .dwk-result,
body.dw-pw-embed .dwk-toc {
  position: static;
  top: auto;
}

@media (max-width: 900px) {
  html.dw-pw-embed .dwk-tool-layout,
  body.dw-pw-embed .dwk-tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .dw-pw-tabs[role="tablist"] > button.dw-pw-tab {
    min-height: 52px;
    padding: 10px 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  .dw-pw-shortcuts {
    gap: 4px 14px;
    padding: 10px 2px;
    font-size: 12px;
  }

  html.dw-pw-embed .dwk,
  body.dw-pw-embed .dwk {
    padding: 20px 16px 24px;
  }

  html.dw-pw-embed .dwk h1,
  body.dw-pw-embed .dwk h1 {
    font-size: 25px;
  }

  html.dw-pw-embed .dwk-hero,
  body.dw-pw-embed .dwk-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 4px 0 18px;
  }

  html.dw-pw-embed .dwk-article-head,
  body.dw-pw-embed .dwk-article-head {
    padding: 4px 0 18px;
  }
}
