:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #202936;
  background: #eef1f4;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button:focus,
a:focus {
  outline: 0;
}

.report-demo-app {
  width: 100%;
  height: 100%;
}

.report-demo-header {
  position: relative;
  z-index: 20;
  display: grid;
  height: 64px;
  grid-template-columns: minmax(280px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid #dfe4ea;
  background: #fff;
}

.report-demo-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.report-demo-brand {
  flex: 0 0 auto;
  padding-right: 16px;
  border-right: 1px solid #dfe4ea;
  color: #202936;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.report-demo-current {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.report-demo-current strong {
  overflow: hidden;
  color: #303b49;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-demo-current span {
  color: #8a949f;
  font-size: 12px;
  white-space: nowrap;
}

.report-demo-top-nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  justify-content: center;
}

.report-demo-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.report-demo-category {
  position: relative;
  min-width: 104px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: #536171;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.report-demo-category::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: transparent;
  content: "";
}

.report-demo-category:hover,
.report-demo-nav-item.is-open .report-demo-category,
.report-demo-nav-item.is-active .report-demo-category {
  color: #df4747;
}

.report-demo-nav-item.is-active .report-demo-category::after {
  background: #df4747;
}

.report-demo-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% - 1px);
  left: 50%;
  display: none;
  width: 244px;
  max-height: min(480px, calc(100vh - 82px));
  padding: 7px;
  overflow-y: auto;
  transform: translateX(-50%);
  border: 1px solid #dfe4ea;
  border-radius: 0 0 5px 5px;
  background: #fff;
}

.report-demo-nav-item:hover .report-demo-dropdown,
.report-demo-nav-item.is-open .report-demo-dropdown {
  display: grid;
}

.report-demo-version {
  position: relative;
  width: 100%;
  min-height: 39px;
  padding: 8px 12px 8px 27px;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  background: transparent;
  color: #5f6c7b;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}

.report-demo-version:last-child {
  border-bottom: 0;
}

.report-demo-version::before {
  position: absolute;
  top: 16px;
  left: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8cfd7;
  content: "";
}

.report-demo-version:hover,
.report-demo-version.is-active {
  background: #fff6f6;
  color: #df4747;
}

.report-demo-version.is-active {
  font-weight: 600;
}

.report-demo-version.is-active::before {
  background: #df4747;
}

.report-demo-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.report-demo-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #d9dee5;
  border-radius: 4px;
  background: #fff;
  color: #536171;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.report-demo-actions a:first-child {
  border-color: #df4747;
  background: #df4747;
  color: #fff;
}

.report-demo-actions a:hover {
  border-color: #c93c3c;
  color: #c93c3c;
}

.report-demo-actions a:first-child:hover {
  border-color: #c93c3c;
  background: #c93c3c;
  color: #fff;
}

.report-demo-viewer {
  position: relative;
  width: 100%;
  height: calc(100% - 64px);
  overflow: hidden;
  background: #eef1f4;
}

.report-demo-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.report-demo-loading {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f5f7f9;
  color: #7d8793;
  font-size: 13px;
}

.report-demo-loading span {
  width: 28px;
  height: 28px;
  border: 2px solid #d8dde4;
  border-top-color: #df4747;
  border-radius: 50%;
  animation: report-demo-spin .8s linear infinite;
}

.report-demo-loading p {
  margin: 12px 0 0;
}

.report-demo-loading.is-hidden {
  display: none;
}

@keyframes report-demo-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .report-demo-header {
    grid-template-columns: minmax(220px, 1fr) auto minmax(170px, 1fr);
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .report-demo-current span {
    display: none;
  }

  .report-demo-category {
    min-width: 92px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .report-demo-header {
    height: 104px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 56px 48px;
    gap: 0 12px;
    padding: 0 12px;
  }

  .report-demo-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .report-demo-brand {
    font-size: 16px;
  }

  .report-demo-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .report-demo-actions a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .report-demo-top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% + 24px);
    height: 48px;
    margin-left: -12px;
    border-top: 1px solid #edf0f3;
  }

  .report-demo-nav-item {
    width: 25%;
    min-width: 0;
    flex: 0 0 25%;
  }

  .report-demo-category {
    width: 100%;
    min-width: 0;
    padding: 0 4px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
  }

  .report-demo-category::after {
    right: 8px;
    left: 8px;
  }

  .report-demo-dropdown {
    position: fixed;
    top: 103px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: min(420px, calc(100vh - 120px));
    transform: none;
    border-radius: 0 0 5px 5px;
  }

  .report-demo-nav-item:hover .report-demo-dropdown {
    display: none;
  }

  .report-demo-nav-item.is-open .report-demo-dropdown {
    display: grid;
  }

  .report-demo-viewer {
    height: calc(100% - 104px);
  }
}

@media (max-width: 520px) {
  .report-demo-heading {
    gap: 10px;
  }

  .report-demo-brand {
    padding-right: 10px;
    font-size: 15px;
  }

  .report-demo-current strong {
    max-width: 112px;
    font-size: 12px;
  }

  .report-demo-current {
    display: none;
  }

  .report-demo-actions a:last-child {
    display: none;
  }

  .report-demo-category {
    font-size: 11px;
  }
}
