/* Detail-page report dialog. Scripts continue to own visibility and selection. */
#tagReportObj.report-detail-ui,
#tagReportObj.report-detail-ui * {
  box-sizing: border-box;
}

#tagReportObj.report-detail-ui {
  width: 552px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  margin: 0;
  color: #333;
  text-align: left;
  text-indent: 0;
  font: 400 14px/1.5 "Microsoft YaHei", "微软雅黑", sans-serif;
  letter-spacing: 0;
}

#tagReportObj.report-detail-ui > .report_box {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: none;
}

#tagReportObj.report-detail-ui .report_box > .header {
  position: relative;
  flex: 0 0 45px;
  height: 45px;
  margin: 0 20px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #ededed;
  background: transparent;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 44px;
  text-align: left;
}

#tagReportObj.report-detail-ui .report_box > .header > .report_close {
  position: absolute;
  right: -4px;
  top: 10px;
  float: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 0;
  font-style: normal;
  line-height: 24px;
  opacity: 1;
  text-shadow: none;
  cursor: pointer;
}

#tagReportObj.report-detail-ui .report_box > .header > .report_close::before,
#tagReportObj.report-detail-ui .report_box > .header > .report_close::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}

#tagReportObj.report-detail-ui .report_box > .header > .report_close::after {
  transform: rotate(-45deg);
}

#tagReportObj.report-detail-ui .wrong_info {
  flex: 0 0 auto;
  margin: 10px 20px 0;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 20px;
}

#tagReportObj.report-detail-ui .report_type_box {
  flex: 0 0 auto;
  margin: 10px 20px 7px;
  padding: 0;
}

#tagReportObj.report-detail-ui .report_type_box > .tit,
#tagReportObj.report-detail-ui .report_box > .tit {
  flex: 0 0 auto;
  height: 24px;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

#tagReportObj.report-detail-ui .report_type_box > .tit font {
  margin: 0 4px 0 0;
  color: #e03333;
}

#tagReportObj.report-detail-ui .report_type {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 74px;
  grid-auto-rows: minmax(20px, auto);
  row-gap: 8px;
  column-gap: 0;
  min-height: 0;
  max-height: none;
  margin: 5px 0 0;
  padding: 0;
  overflow: visible;
}

#tagReportObj.report-detail-ui .report_type > span {
  display: inline-flex;
  align-items: flex-start;
  min-width: 0;
  min-height: 20px;
  height: auto;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
}

#tagReportObj.report-detail-ui .report_type > span > i {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 3px 4px 0 0;
  padding: 0;
  border: 1px solid #e3e3e3;
  border-radius: 2px;
  background: #fff;
  vertical-align: middle;
}

#tagReportObj.report-detail-ui .report_type > span.active > i {
  border-color: #0a5de7;
  background: #0a5de7;
}

#tagReportObj.report-detail-ui .report_type > span.active > i::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2.5px;
  width: 8px;
  height: 4.5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

#tagReportObj.report-detail-ui .report_box > .tit {
  margin: 10px 20px 6px;
}

/* Match the collection tree viewport; extra folders scroll within this area. */
#tagReportObj.report-detail-ui .report_tree {
  flex: 0 1 185px;
  height: 185px !important;
  min-height: 40px;
  max-height: 185px;
  margin: 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#tagReportObj.report-detail-ui .report_list {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 0 0 6px;
  padding: 0 9px 0 10px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 38px;
}

#tagReportObj.report-detail-ui .report_list:last-child {
  margin-bottom: 0;
}

#tagReportObj.report-detail-ui .report_list.active {
  border-color: #0a5de7;
  background: rgba(10, 93, 231, 0.06);
}

#tagReportObj.report-detail-ui .report_list > i {
  display: block;
  position: static;
  flex: 0 0 14px;
  width: 14px;
  height: 12px;
  margin: 0 7px 0 0;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12'%3E%3Cdefs%3E%3ClinearGradient id='f' gradientUnits='userSpaceOnUse' x1='0' y1='3.5' x2='0' y2='10.5'%3E%3Cstop stop-color='%23FFD647'/%3E%3Cstop offset='.2143' stop-color='%23FFD33F'/%3E%3Cstop offset='.5' stop-color='%23FFCA32'/%3E%3Cstop offset='.7857' stop-color='%23FFBF2A'/%3E%3Cstop offset='1' stop-color='%23FFBA29'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='%23FFCF39' stroke='%23EDA515' stroke-width='.4' d='M.5 2V1.4C.5.8 1 .4 1.6.4h4l1.3 1H12.6c.6 0 .9.4.9 1V11H.5z'/%3E%3Crect x='.5' y='2.5' width='13' height='9' rx='.7' fill='url(%23f)' stroke='%23EE9D0D' stroke-width='.4'/%3E%3Cpath d='M1 3h12' stroke='%23FDEE9C'/%3E%3C/svg%3E");
}

#tagReportObj.report-detail-ui .report_list > i::before {
  content: none;
}

#tagReportObj.report-detail-ui .report_list > .report_filename {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tagReportObj.report-detail-ui .report_list.active > .report_filename {
  color: #0a5de7;
}

#tagReportObj.report-detail-ui .report_list > .report_filename > font {
  margin: 0 0 0 7px;
  color: #999;
  font-size: 13px;
  font-weight: 400;
}

#tagReportObj.report-detail-ui .report_list > span.fr {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  float: none;
  height: 20px;
  margin: 0 0 0 8px;
  padding: 0;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

#tagReportObj.report-detail-ui .report_list a {
  margin: 0;
  padding: 0;
  color: #0a5de7;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

#tagReportObj.report-detail-ui .report_list .report_del {
  margin-left: 7px;
  padding-left: 6px;
  border-left: 1px solid #e3e3e3;
  color: #e03333;
}

/* Keep the 40px row slot while drawing one collection-style 28px editor. */
#tagReportObj.report-detail-ui .report_list.report-row-editing {
  position: relative;
  padding: 0 9px;
  border: 0;
  background: transparent;
  transition: none;
}

#tagReportObj.report-detail-ui .report-row-editing::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 28px;
  border: 1px solid #0a5de7;
  border-radius: 4px;
  background: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}

#tagReportObj.report-detail-ui .report-row-editing > i {
  position: relative;
  margin-right: 5px;
}

#tagReportObj.report-detail-ui .report_list > .report_filename.report-name-editing {
  position: relative;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  line-height: 26px;
  overflow: visible;
  text-overflow: clip;
}

#tagReportObj.report-detail-ui .report-name-editing > input.report-name-input {
  display: block;
  width: 100%;
  height: 26px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  box-shadow: none;
}

#tagReportObj.report-detail-ui input.report-name-input::placeholder {
  color: #999;
  opacity: 1;
}

#tagReportObj.report-detail-ui .report-row-editing > span.fr {
  display: none;
}

#tagReportObj.report-detail-ui #addReportBtn {
  position: relative;
  flex: 0 0 32px;
  align-self: flex-start;
  width: 106px;
  height: 32px;
  margin: 24px 20px 0;
  padding: 6.5px 8px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  text-align: left;
  text-indent: 19px;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: none;
}

#tagReportObj.report-detail-ui #addReportBtn::before {
  content: "";
  position: absolute;
  left: 10.5px;
  top: calc(50% - 4.5px);
  width: 9px;
  height: 9px;
  background: linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 9px no-repeat;
  pointer-events: none;
}

#tagReportObj.report-detail-ui #addReportBtn:hover {
  border-color: #0a5de7;
  background: rgba(10, 93, 231, 0.06);
  color: #0a5de7;
}

#tagReportObj.report-detail-ui .report_box > .footer {
  display: flex;
  position: static;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
  height: 45px;
  margin: 12px 20px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #ededed;
  background: transparent;
  text-align: right;
}

#tagReportObj.report-detail-ui .footer > .btn {
  flex: 0 0 80px;
  width: 80px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #0a5de7;
  border-radius: 4px;
  background: #0a5de7;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
  text-shadow: none;
  box-shadow: none;
}

#tagReportObj.report-detail-ui .footer > .report_close {
  border-color: #d1d1d1;
  background: #fff;
  color: #616161;
}

#tagReportObj.report-detail-ui #saveReportBtn {
  border-color: #0a5de7;
  background: #0a5de7;
  color: #fff;
}

@media (max-width: 583px) {
  #tagReportObj.report-detail-ui .report_type {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  }
}
