* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color: #1282d6;
  --bs-link-color: var(--color);
  --bs-link-hover-color: var(--color);
}

/* 自定义整个滚动条 */
::-webkit-scrollbar {
  /* 设置滚动条的宽度 */
  width: 8px;
  height: 8px;
  border-radius: 5px;
}

/* 自定义滚动条轨道 */
::-webkit-scrollbar-track {
  /* 设置轨道的背景颜色 */
  background: #f1f1f1;
}

/* 自定义滚动条的滑块（thumb） */
::-webkit-scrollbar-thumb {
  /*滚动条的圆角*/
  border-radius: 5px;
  /* 设置滑块的背景颜色 */
  background: #aaa;
}

/* 当滑块悬停或活动时自定义滚动条的滑块 */
::-webkit-scrollbar-thumb:hover {
  /* 设置滑块在悬停状态下的背景颜色 */
  background: #555;
}


.theme-bg {
  background-color: var(--color) !important;
  color: #fff;
}

.btn-primary {
  --bs-btn-bg: var(--color);
  --bs-btn-border-color: var(--color);
  --bs-btn-hover-bg: var(--color);
  --bs-btn-hover-border-color: var(--color);
  --bs-btn-active-bg: var(--color);
  --bs-btn-active-border-color: var(--color);
}

.btn-outline-primary {
  --bs-btn-color: var(--color);
  --bs-btn-border-color: var(--color);
  --bs-btn-hover-bg: var(--color);
  --bs-btn-hover-border-color: var(--color);
  --bs-btn-active-bg: var(--color);
  --bs-btn-active-border-color: var(--color);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--color);
}

.page-link {
  --bs-pagination-active-bg: var(--color);
  --bs-pagination-active-border-color: var(--color);
  --bs-pagination-hover-color: var(--color);
}

a {
  color: var(--color);
}

.text-primary {
  color: var(--color) !important;
}

.text-orange {
  color: #ff9801;
}

.form-control::placeholder {
  color: var(--bs-gray-400);
  font-size: 0.85rem;
}

.textbox.datebox .textbox-text {
  cursor: pointer;
}

.textbox.datebox .combo-arrow:hover {
  background-color: #fff;
}

.detail-content {
  width: 100%;
  padding: 10px 10px 20px;
  background-color: #f9f9f9;
  box-shadow: inset 0 0 1px 0px #dcdcdc;
}

.detail-label {
  display: inline-block;
  vertical-align: top;
  width: 7em;
  text-align: right;
  color: #000;
}

.detail-label::after {
  content: "：";
}

.detail-value {
  display: inline-block;
  vertical-align: top;
  width: calc(100% - 7em);
  word-break: break-all;
  color: #666;
}

.text-sm {
  font-size: 90%;
}

html {
  font-size: 14px;
}

html,
body {
  height: 100%;
}

.btn-circle,
.btn.btn-circle {
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}

.cursor-pointer {
  cursor: pointer;
}

.page-body {
  min-height: 100%;
  padding: 15px;
}

.nav-rounded .nav-link {
  border: 1px solid var(--color);
  cursor: pointer;
}

.nav-rounded .nav-link:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.nav-rounded .nav-link:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.nav-rounded .nav-link+.nav-link {
  border-left: none;
}

.nav-rounded .nav-link.active {
  background-color: var(--color);
  color: #fff;
}

.search-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.search-content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.search-label-item {
  margin-right: 20px;
  margin-bottom: 10px;
}

.search-item {
  width: 150px;
  margin-right: 10px;
  margin-bottom: 5px;
}

.search-item-m {
  width: 120px;
}

.search-item-s {
  width: 90px;
}

.search-item-xs {
  width: 60px;
}

.search-item-label {
  margin-right: 10px;
}

.search-label-content .search-item {
  margin: 0;
}

.search-content-btn {
  flex-shrink: 0;
}

.dropdown-wrapper {
  position: relative;
  color: var(--bs-body-color);
  width: 120px;
}

.dropdown-wrapper-header {
  width: 120px;
}

.dropdown-wrapper:hover .dropdown-list {
  display: block;
}

.dropdown-list {
  display: none;
  position: absolute;
  z-index: 100;
  background-color: #fff;
  border: 1px solid #eee;
  padding: 0;
  width: 100%;
  border-radius: 5px;
}

.dropdown-list-item {
  list-style: none;
  cursor: pointer;
  padding: 10px 20px;
}

.dropdown-list-item:hover {
  background-color: #eee;
}

/* 表格内可操作的文字 */
.handle-text {
  cursor: pointer;
}

.handle-text+.handle-text {
  margin-left: 1.5em;
}

.handle-text>span {
  margin-left: 3px;
}

.col-form-label {
  text-align: right;
}

/* 表单必填项 */
.validate-required {
  position: relative;
}

.validate-required::before {
  position: absolute;
  left: 0;
  top: 0.6rem;
  content: " * ";
  color: red;
}

.row>* .input-group.validate-required::before {
  left: calc(-0.5*var(--bs-gutter-x));
}

.validatebox-invalid {
  border-color: var(--bs-danger);
}

.validate-message {
  font-size: 0.8rem;
}

.tooltip-default {
  --bs-tooltip-bg: #fafafa;
  --bs-tooltip-color: #000;
}

.tooltip-default .tooltip-inner {
  box-shadow: 0 0 4px #ccc;
}

.tooltip-info {
  --bs-tooltip-bg: var(--bs-info);
}

.tooltip-align-start .tooltip-inner {
  text-align: left;
}

.tooltip-primary {
  --bs-tooltip-bg: var(--bs-primary);
}

.tooltip-warning {
  --bs-tooltip-bg: var(--bs-warning);
}

.tooltip-danger {
  --bs-tooltip-bg: var(--bs-danger);
}

.tooltip-success {
  --bs-tooltip-bg: var(--bs-success);
}

.report-icon {
  --font: 83, 144, 232;
  display: inline-block;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  text-align: center;
  line-height: 2.5em;
  background-color: rgba(var(--font), 0.2);
  color: rgb(var(--font));
  font-size: 1.5em;
  /* margin-right: 10%; */
}

.report-icon-green {
  --font: 77, 189, 29;
}

.report-icon-orange {
  --font: 253, 171, 62;
}

.report-icon-red {
  --font: 255, 66, 66;
}

.report-chart {
  width: 100%;
  height: calc(20rem + 5vh);
}

.divider-horizontal {
  display: table;
  border-spacing: 1rem 0;
  width: 100%;
  min-width: 100%;
  height: 1px;
  margin-bottom: 1em;
  white-space: nowrap;
}

.divider-horizontal::before,
.divider-horizontal::after {
  position: relative;
  top: 50%;
  display: table-cell;
  width: 3%;
  border-top: 1px solid #e8e8e8;
  transform: translateY(50%);
  content: "";
}

.divider-horizontal::after {
  width: 90%;
}

.process-wrapper {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
}

.process-wrapper::before {
  position: absolute;
  top: 0.3rem;
  left: 1px;
  content: " ";
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.process-wrapper::after {
  content: " ";
  position: absolute;
  top: 1.5em;
  bottom: 0.2em;
  left: 0;
  width: 0.4em;
  border-right: 1px dashed #ddd;
}

.process-wrapper.active::before,
.process-wrapper.active::after {
  border-color: var(--color);
}

.process-wrapper:last-child:after {
  border: none;
}

.card-canvas {
  width: 100%;
  height: 250px;
}

.full-iframe {
  width: 100%;
  height: 99%;
}


.info-label {
  text-align: right;
}

.info-label::after {
  content: "\ff1a";
}

.cursor-pointer {
  cursor: pointer;
}

.tab-header {
  padding-bottom: 5px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.tab-item {
  flex-shrink: 0;
  padding: 0.5em;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  cursor: pointer;
}

.tab-item+.tab-item {
  margin-left: 1em;
}

.tab-item.active {
  color: var(--color);
  border-bottom: 1px solid var(--color);
}

[data-bs-toggle="tooltip"][onclick] {
  cursor: pointer;
}

.editor-footer {
  border: 1px solid #c9d8db;
  border-top: 0;
  padding: 0 5px;
  height: 2em;
  line-height: 2em;
  text-align: right;
  color: #a9a9a9;
  font-size: 12px;
}

.month-box {
  display: flex;
  margin-top: 11px;
}

.month-box>span {
  flex: 1;
  height: 10px;
  cursor: pointer;
  border-left: 1px solid #ddd;
}

.report-box {
  height: 350px;
  overflow-y: auto;
  border-radius: 5px;
}

.report-box.chart-box {
  padding: 8px;
  overflow: hidden;
}

.report-box .table {
  margin-bottom: 0;
}

.report-box .table-subtitle {
  font-size: 90%;
}

.report-box thead>tr:first-child>th {
  background-color: #f9f9f9;
}

.preview-popover {
  --bs-popover-max-width: 900px;
}

.preview-popover img {
  width: 100%;
}

.compare-num {
  margin-right: 1em;
}

.print-content {
  width: 70%;
  min-width: 160mm;
  margin: auto;
  font-size: 14px;
}


.page-break,
.print-section+.print-section {
  page-break-before: always;
}

.print-section+.print-section {
  margin-top: 3em;
}


.print-content .table-title {
  line-height: 2;
  text-align: center;
}

.print-section>table {
  word-break: break-all;
  margin-top: 1em;
}

.print-section>table table {
  margin-bottom: 0;
}

.print-section tr.table-info-tr {
  border-bottom-color: #fff;
}

.table-info-tr td {
  border-top-color: #fff;
  border-bottom-color: #fff;
  padding-top: 5px;
  padding-bottom: 5px;
}

.table-info-tr td:first-child {
  border-left-color: inherit !important;
  border-right-color: #fff;
}

.table-info-tr td:last-child {
  border-left-color: #fff;
  border-right-color: inherit;
}

.tips-text {
  color: #f68c8c;
  font-size: 80%;
}

@media print {
  .print-content {
    width: 180mm;
  }

  .print-content .table-title {
    padding-top: 1em;
    line-height: 4;
  }
}