/* 批量查询 /multisearch — 对齐 Figma 1018:3581（URL 规范：multisearch） */

.app-content:has(.ms-page),
.app-content:has(.ms-loading-figma),
.app-content:has(.ms-rf) {
  padding: 0;
}

.multisearch-home {
  min-height: calc(100vh - var(--app-header-height, 60px));
  padding-bottom: 64px;
  box-sizing: border-box;
}

.ms-page {
  /* position: relative;
  min-height: calc(100vh - 160px);
  padding: 24px 24px 80px;
  background: #fafafa;
  overflow-x: hidden;
  box-sizing: border-box; */
}

.ms-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/assets/front/images/multisearch-loading/bg-texture.png") center top / cover no-repeat;
  opacity: 0.1;
}

.ms-page::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 400px;
  max-width: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  background: url("/assets/front/images/multisearch-loading/bg-hero.png") center top / cover no-repeat;
  opacity: 0.45;
}

.ms-inner {
  position: relative;
  z-index: 1;
  max-width: 1184px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0;
}

.ms-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ms-title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #14b8a6 0%, #0c8e81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ms-sub {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #293a4c;
  font-weight: 400;
}

/* 高级会员试用申请弹窗（app shell 不加载 page.css，样式在此自包含） */
#ms-member-trial-modal .modal-dialog-main {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

#ms-member-trial-modal .modal-content {
  padding: 0;
  width: 100%;
}

#ms-member-trial-modal .ms-member-trial-container,
#ms-member-trial-modal .set-service-container {
  width: 600px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 28px 30px 30px;
}

#ms-member-trial-modal .set-service-container-tit {
  font-size: 20px;
  font-weight: 600;
  color: #293a4c;
  line-height: 28px;
}

#ms-member-trial-modal .ms-member-trial-desc {
  margin: 12px 0 0;
  color: #5b6673;
  font-size: 14px;
  line-height: 24px;
}

#ms-member-trial-modal .set-service-form {
  margin-top: 20px;
}

#ms-member-trial-modal .set-service-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

#ms-member-trial-modal .set-service-item label {
  font-size: 16px;
  font-weight: 500;
  color: #293a4c;
  line-height: 22px;
}

#ms-member-trial-modal .set-service-item label b {
  color: #d53838;
  margin-left: 5px;
}

#ms-member-trial-modal .set-service-item select,
#ms-member-trial-modal .set-service-item input[type="text"],
#ms-member-trial-modal .set-service-item textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  background: #fff;
  border-radius: 2px;
  border: 1px solid #dee2e6;
  font-size: 14px;
  color: #293a4c;
}

#ms-member-trial-modal .set-service-item input[type="text"] {
  height: 42px;
  line-height: 40px;
  padding: 0 10px;
}

#ms-member-trial-modal .set-service-item textarea {
  height: 126px;
  padding: 10px;
  resize: none;
  line-height: 22px;
}

#ms-member-trial-modal .set-service-item-error {
  min-height: 20px;
  line-height: 20px;
  color: #d53838;
  font-size: 12px;
  font-weight: 500;
}

#ms-member-trial-modal .set-service-error input[type="text"],
#ms-member-trial-modal .set-service-error textarea {
  border-color: #d53838 !important;
}

#ms-member-trial-modal .set-service-item-btn {
  flex-direction: row;
  margin-top: 26px;
  margin-bottom: 0;
}

#ms-member-trial-modal .set-service-item-btn .set-service-submit,
#ms-member-trial-modal .set-service-item-btn .set-service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 42px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

#ms-member-trial-modal .set-service-item-btn .set-service-submit {
  background: #02bb91;
  color: #fff;
  border: none;
  margin-right: 20px;
}

#ms-member-trial-modal .set-service-item-btn .set-service-submit.is-disabled {
  opacity: 0.7;
  pointer-events: none;
}

#ms-member-trial-modal .set-service-item-btn .set-service-button {
  background: #fff;
  color: #02bb91;
  border: 1px solid #02bb91;
}

#ms-member-trial-modal .modal-close {
  z-index: 2;
}

.ms-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ms-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-step-num {
  width: 24px;
  height: 24px;
  border-radius: 40px;
  border: 1px solid #dfe7e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #5b5c60;
  box-sizing: border-box;
}

.ms-step-num.is-active {
  background: #fff;
  border-color: #dfe7e1;
  color: #5b5c60;
}

.ms-step-num.is-complete {
  background: #fff;
  border-color: #dfe7e1;
  color: #5b5c60;
}

.ms-step-label {
  font-size: 14px;
  line-height: 22px;
  color: #293a4c;
  white-space: nowrap;
}

.ms-step-line {
  width: 48px;
  height: 2px;
  background: #dfe7e1;
  flex-shrink: 0;
}

.ms-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
  padding: 16px;
}

.ms-card--main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ms-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.ms-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ms-section-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-badge {
  width: 24px;
  height: 24px;
  border-radius: 40px;
  background: #0f9f88;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-section-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #293a4c;
}

.ms-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  color: #0f9f88;
  font-family: inherit;
}

.ms-link:hover {
  text-decoration: underline;
}

#ms-select-all:hover {
  color: #0f9f88;
  text-decoration: none;
}

#ms-clear-ta {
  color: #5b5c60;
}

#ms-clear-ta:hover {
  color: #5b5c60;
  text-decoration: none;
}

#ms-select-all:focus,
#ms-clear-ta:focus {
  outline: none;
}

.ms-dim-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ms-dim-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 当前 4 个可见维度：单行四等分（窄屏降为 2×2 / 单列） */
.ms-dim-row--four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ms-dim-row--four > .ms-dim-card {
  flex: unset;
  width: auto;
  min-width: 0;
}

@media (max-width: 960px) {
  .ms-dim-row--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ms-dim-row--four {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ms-dim-card {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #dfe7e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(30, 30, 30, 0.02);
  cursor: pointer;
  text-align: left;
  font: inherit;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

/* [hidden] 默认 display:none 会被本文件 .ms-dim-card { display:flex } 盖掉；绿色维度等下线项需显式隐藏 */
.ms-dim-card[hidden] {
  display: none !important;
}

.ms-dim-card:hover {
  border-color: #c5d5cf;
  box-shadow: 0 2px 8px rgba(4, 56, 49, 0.06);
}

/* Figma 1020:5691 — 选中：浅绿底 + 主色描边 + 右上角方形勾选 */
.ms-dim-card.is-checked {
  border-color: #0f9f88;
  background: #f0faf7;
  box-shadow: 0 1px 0 rgba(30, 30, 30, 0.02);
}

.ms-dim-card:has(.ms-checkbox:focus-visible) {
  outline: 2px solid rgba(15, 159, 136, 0.45);
  outline-offset: 2px;
}

.ms-dim-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 4px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b5c60;
}

.ms-dim-icon__glyph {
  display: block;
  width: 16px;
  height: 16px;
  background: #293a4c;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.ms-dim-icon__glyph--global {
  mask-image: url("/assets/front/images/multisearch/icon-dim-global.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-global.svg");
}

.ms-dim-icon__glyph--fcm {
  mask-image: url("/assets/front/images/multisearch/icon-dim-fcm.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-fcm.svg");
}

.ms-dim-icon__glyph--pfas {
  mask-image: url("/assets/front/images/multisearch/icon-dim-pfas.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-pfas.svg");
}

.ms-dim-icon__glyph--ghs {
  mask-image: url("/assets/front/images/multisearch/icon-dim-ghs.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-ghs.svg");
}

.ms-dim-body {
  flex: 1;
  min-width: 0;
}

.ms-dim-name {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: #293a4c;
}

.ms-dim-desc {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 20px;
  color: #9e9e9e;
}

.ms-dim-card__cb {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
}

.ms-dim-card .ms-checkbox {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.ms-dim-fakecb {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #dfe7e1;
  background: #fff url("/assets/front/images/multisearch/icon-checkbox.svg") center / 14px 14px no-repeat;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 0;
}

.ms-dim-card.is-checked .ms-dim-fakecb {
  background: #0f9f88;
  border-color: #0f9f88;
}

.ms-dim-card.is-checked .ms-dim-fakecb::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.ms-input-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 236px;
}

.ms-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f5f5f5;
  border-radius: 8px;
  height: 40px;
  box-sizing: border-box;
}

.ms-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: #293a4c;
  font-family: inherit;
  padding: 5px 16px;
}

.ms-tab.is-active {
  background: #fff;
  color: #0f9f88;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
}

.ms-tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ms-tab-icon {
  display: block;
  background: #5b5c60;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.ms-tab-icon--text {
  mask-image: url("/assets/front/images/multisearch/icon-input-text.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-input-text.svg");
}

.ms-tab-icon--file {
  mask-image: url("/assets/front/images/multisearch/icon-input-upload.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-input-upload.svg");
}

.ms-tab.is-active .ms-tab-icon {
  background: #0f9f88;
}

.ms-panel {
  display: none;
  flex: 1;
  min-height: 160px;
}

.ms-panel.is-active {
  display: flex;
  flex-direction: column;
}

.ms-ta-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe7e1;
  border-radius: 16px;
  padding: 13px 13px 8px;
  position: relative;
  min-height: 160px;
  background: #fff;
  overflow: hidden;
  outline: none;
}

.ms-ta-wrap:focus,
.ms-ta-wrap:focus-within {
  border-color: #dfe7e1 !important;
}

.ms-ta {
  flex: 1;
  width: 100%;
  border: 0 !important;
  resize: none;
  outline: none;
  font-size: 14px;
  line-height: 22px;
  color: #293a4c;
  font-family: inherit;
  background: transparent;
  min-height: 120px;
  box-sizing: border-box;
  padding: 0 12px 0 1px;
  border-color: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.ms-ta:focus,
.ms-ta:focus-visible,
.ms-ta:active {
  outline: none !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.ms-ta::placeholder {
  color: #9e9e9e;
}

.ms-ta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 14px;
  line-height: 22px;
  color: #5b5c60;
}

.ms-ta-count strong {
  color: #293a4c;
  font-weight: 400;
}

/* Figma 1020:5691 — 文件上传区 */
.ms-panel#ms-panel-file {
  position: relative;
}

.ms-panel#ms-panel-file.is-active {
  gap: 0;
}

.ms-file-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 180px;
  border: 1px dashed #e5e5e5;
  border-radius: 16px;
  padding: 13px;
  text-align: center;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ms-file-panel:hover {
  border-color: #e5e5e5;
}

.ms-file-panel.is-drag {
  border-color: #0f9f88;
  background: #f7fcfa;
  box-shadow: 0 4px 12px rgba(15, 159, 136, 0.12);
}

.ms-file-panel__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background: #f5f5f5;
}

.ms-file-panel__ic {
  display: block;
  width: 28px;
  height: 28px;
  background: url("/assets/front/images/multisearch/file-upload-line.svg") center / contain no-repeat;
}

.ms-file-panel.is-drag .ms-file-panel__ic {
  background-image: url("/assets/front/images/multisearch/file-upload-line.svg");
}

.ms-file-panel__txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ms-file-panel__title {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #293a4c;
}

.ms-file-panel__hint {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  color: #5b5c60;
}

.ms-file-panel__name {
  margin: 0;
  display: none;
  max-width: min(520px, 100%);
  min-height: 32px;
  padding: 5px 12px 5px 36px;
  border: 1px solid #d8eee9;
  border-radius: 8px;
  background: #f7fcfa;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #293a4c;
  word-break: break-all;
  position: relative;
  box-sizing: border-box;
}

.ms-file-panel__name::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: url("/assets/front/images/multisearch-result/file-excel-line.svg") center / contain no-repeat;
}

.ms-file-panel.has-file .ms-file-panel__name {
  display: block;
}

.ms-file-panel.has-file {
  display: grid;
  grid-template-columns: minmax(0, auto) 32px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-color: #d8eee9;
  background: #fff;
}

.ms-file-panel.has-file .ms-file-panel__icon-wrap {
  display: flex;
  background: #eefaf7;
  grid-column: 1 / -1;
  justify-self: center;
}

.ms-file-panel.has-file .ms-file-panel__txt {
  display: none;
}

.ms-file-panel.has-file .ms-file-panel__name,
.ms-file-panel.has-file .ms-file-panel__template {
  vertical-align: middle;
}

.ms-file-panel.has-file .ms-file-panel__name {
  grid-column: 1;
}

.ms-file-panel.has-file .ms-file-panel__template {
  grid-column: 2;
}

.ms-file-panel__template {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #0f9f88;
  text-decoration: none;
  white-space: nowrap;
}

.ms-file-panel__template:hover,
.ms-file-panel__template:focus {
  color: #0f9f88;
  text-decoration: none;
}

.ms-file-panel.has-file .ms-file-panel__template,
.ms-file-panel.has-file .ms-file-panel__template:hover,
.ms-file-panel.has-file .ms-file-panel__template:focus {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  border: 1px solid #d8eee9;
  border-radius: 8px;
  background: #f7fcfa;
  color: #5b5c60;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

.ms-file-panel.has-file .ms-file-panel__template::before {
  content: "";
  width: 14px;
  height: 14px;
  display: block;
  background: url("/assets/front/images/multisearch-result/close-circle-fill.svg") center / contain no-repeat;
}

.ms-file-panel.has-file .ms-file-panel__template:hover,
.ms-file-panel.has-file .ms-file-panel__template:focus {
  background: #eefaf7;
  border-color: #bde5dc;
}

.ms-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  /* 不参与布局、不露出原生「选择文件」外观；仍可通过 JS .trigger("click") 调起系统选文件 */
}

.ms-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.ms-btn--ghost {
  background: #fff;
  border-color: #e5e5e5;
  color: #5b5c60;
  min-width: 82px;
}

.ms-btn--ghost:hover {
  border-color: #ccc;
}

.ms-btn--primary {
  background: #0f9f88;
  color: #fff;
  border-color: #0f9f88;
}

.ms-btn--primary:hover {
  background: #0d8a76;
  border-color: #0d8a76;
}

.ms-btn--primary svg {
  width: 14px;
  height: 14px;
}

.ms-card--history {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(30, 30, 30, 0.05);
  background: #fff;
}

.ms-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.ms-history-title {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #293a4c;
}

.ms-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.ms-history-list:empty {
  display: none;
}

.ms-history-row {
  padding: 8px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 0.15s;
  box-sizing: border-box;
  cursor: pointer;
}

.ms-history-row:hover {
  background: #f7f7f7;
}

.ms-history-row__main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ms-history-row__cas {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  color: #293a4c;
  cursor: inherit;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.ms-history-row__dims {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: #5b5c60;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-history-row__meta {
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 96px;
  justify-content: flex-end;
  position: relative;
  padding-right: 0;
  transition: padding-right 0.15s;
}

.ms-history-row:hover .ms-history-row__meta {
  padding-right: 36px;
}

.ms-history-row__time {
  margin: 0;
  font-size: 12px;
  line-height: 22px;
  color: #9e9e9e;
  white-space: nowrap;
  text-align: right;
}

.ms-history-row__close {
  position: absolute;
  right: 0;
  top: 42%;
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #9e9e9e;
  cursor: pointer;
  font-size: 24px;
  line-height: 22px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(8px, -50%);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}

.ms-history-row__close:hover {
  color: #9e9e9e;
}

.ms-history-row:hover .ms-history-row__close {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.ms-history-empty {
  margin: 0;
  min-height: 96px;
  padding: 36px 16px;
  border: 0;
  border-radius: 12px;
  background: #f7f7f7;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  color: #9e9e9e;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .ms-history-title {
    font-size: 24px;
    line-height: 32px;
  }

  .ms-history-row {
    min-height: auto;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 12px;
  }

  .ms-history-row__cas {
    font-size: 18px;
    line-height: 26px;
  }

  .ms-history-row__meta {
    flex-basis: auto;
    min-width: auto;
    gap: 8px;
  }

  .ms-history-row__time {
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
  }
}

/* ========== /multisearch/loading — Figma 1018-4384（像素级结构：双 640 卡片 + 背景层） ========== */

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

.ms-loading-figma {
  position: relative;
  min-height: calc(100vh - 160px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.ms-loading-figma__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ms-loading-figma__bg-solid {
  position: absolute;
  inset: 0;
  background: #fafafa;
}

.ms-loading-figma__bg-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.ms-loading-figma__bg-hero-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 399.844px;
  transform: translateX(-50%);
  pointer-events: none;
}

.ms-loading-figma__bg-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.ms-loading-figma__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px max(24px, calc((100vw - 1184px) / 2));
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(calc(100vh - 120px), calc(100dvh - 120px));
  overflow: hidden;
}

.ms-loading-figma__card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ms-loading-figma__card--progress {
  min-height: 214px;
  flex: 0 0 auto;
}

.ms-loading-figma__card--log {
  flex: 1 1 0%;
  min-height: 0;
  max-width: 640px;
  width: 100%;
  overflow: hidden;
}

.ms-loading-figma__progress-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  white-space: nowrap;
  line-height: 0;
}

.ms-loading-figma__progress-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #293a4c;
}

.ms-loading-figma__progress-pct {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #0f9f88;
  font-variant-numeric: tabular-nums;
}

.ms-loading-figma__bar {
  position: relative;
  width: 100%;
  height: 8px;
}

.ms-loading-figma__bar-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: #e5e5e5;
}

.ms-loading-figma__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 8px;
  max-width: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #14b8a6 0%, #0c8e81 100%);
  transition: width 0.35s ease;
}

.ms-loading-figma__stats {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.ms-loading-figma__stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f7f7f7;
  box-sizing: border-box;
}

.ms-loading-figma__stat-val {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #000;
  width: 100%;
}

.ms-loading-figma__stat-lab {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #5b5c60;
  width: 100%;
}

.ms-loading-figma__cancel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ms-loading-figma__btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 16px;
  border: 0;
  border-radius: 8px;
  background: #0f9f88;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.ms-loading-figma__btn-cancel:hover {
  background: #0d8a76;
}

.ms-loading-figma__log-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #293a4c;
  width: 100%;
  flex: 0 0 auto;
}

.ms-loading-figma__log-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ms-loading-figma__log-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  border-bottom: 1px solid #dfe7e1;
}

.ms-loading-figma__log-row:last-child {
  border-bottom: 0;
}

.ms-loading-figma__log-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  align-self: stretch;
}

.ms-loading-figma__log-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
}

.ms-loading-figma__log-icon--spin {
  animation: ms-spin 0.85s linear infinite;
}

.ms-loading-figma__log-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #293a4c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-loading-figma__log-time {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 9px 16px;
  align-self: stretch;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #5b5c60;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .ms-loading-figma__stack {
    padding: 40px 16px 80px;
    max-height: min(calc(100vh - 72px), calc(100dvh - 72px));
  }

  .ms-loading-figma__log-text {
    white-space: normal;
  }
}

/* ========== /multisearch/result — Figma 1020-5897 ========== */

/* 内联 SVG <use>：避免 PNG 404/未入库；颜色用 currentColor */
.ms-rf__sym {
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.ms-rf__sym--chev {
  color: #293a4c;
}

.ms-rf__sym--nav {
  color: #5b5c60;
}

.ms-rf__sym--muted {
  color: #5b5c60;
}

.ms-rf__sym--pill {
  flex-shrink: 0;
  color: #0f9f88;
}

.ms-rf__pill--miss .ms-rf__sym--pill {
  color: #5b5c60;
}

.ms-rf {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 160px);
  box-sizing: border-box;
}

/* 内容区与 Figma 一致：最大 1184px 居中；勿再用 (100vw-1184)/2 作左右 padding，
   否则在 border-box 下会从 max-width 内扣掉两侧留白，大屏只剩窄条。 */
.ms-rf__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 8px 0px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.ms-rf__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.ms-rf__head-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ms-rf__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #5b5c60;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.ms-rf__back:hover {
  border-color: #c5d5cf;
  background: #fbfcfc;
}

.ms-rf__card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 稿 1020:5897 结果表卡片：工具栏与表格间距 8px */
.ms-rf__card--table {
  gap: 8px;
}

.ms-rf__card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #293a4c;
}

.ms-rf__summary-wrap {
  display: flex;
  gap: 16px;
}

.ms-rf__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ms-rf__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 22px;
  box-sizing: border-box;
  font-weight: 400;
}

/* 稿：实心绿底 + 白字 + 白图标 */
.ms-rf__badge--found {
  background: #0f9f88;
  color: #fff;
  font-weight: 400;
}

/* 稿：深灰 #293a4c（非红）+ 白字 + 白图标 */
.ms-rf__badge--nf {
  background: #293a4c;
  color: #fff;
  font-weight: 400;
}

.ms-rf__badge-txt {
  white-space: nowrap;
}

.ms-rf__badge-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ms-rf__badge .ms-rf__icon {
  filter: brightness(0) invert(1);
}

.ms-rf__dim-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ms-rf__dim-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #dfe7e1;
  background: #fff;
  font-size: 14px;
  line-height: 22px;
  box-sizing: border-box;
}

.ms-rf__dim-pill-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ms-rf__dim-icon {
  width: 24px;
  height: 24px;
  background-color: #0f9f88;
  border-radius: 0;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 16px 16px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 16px 16px;
}

.ms-rf__dim-icon--globe {
  mask-image: url("/assets/front/images/multisearch/icon-dim-global.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-global.svg");
}

.ms-rf__dim-icon--book-open {
  mask-image: url("/assets/front/images/multisearch/icon-dim-fcm.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-fcm.svg");
}

.ms-rf__dim-icon--file-list {
  mask-image: url("/assets/front/images/multisearch/icon-dim-pfas.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-pfas.svg");
}

.ms-rf__dim-icon--apps {
  mask-image: url("/assets/front/images/multisearch/icon-dim-ghs.svg");
  -webkit-mask-image: url("/assets/front/images/multisearch/icon-dim-ghs.svg");
}

.ms-rf__dim-icon--seedling {
  background-color: transparent;
  background-image: url("/assets/front/images/multisearch-result/seedling.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  mask-image: none;
  -webkit-mask-image: none;
}

.ms-rf__dim-pill-lab {
  white-space: nowrap;
  color: #5b5c60;
}

.ms-rf__dim-pill-num {
  margin-left: 2px;
  font-weight: 500;
  color: #293a4c;
  font-variant-numeric: tabular-nums;
}

.ms-rf__task {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: #9e9e9e;
}

.ms-rf__task-val {
  color: #5b5c60;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ms-rf__toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding: 8px 0 16px;
  box-sizing: border-box;
}

.ms-rf__toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ms-rf__filter-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.ms-rf__filter-select {
  box-sizing: border-box;
  height: 34px;
  min-width: 140px;
  padding: 5px 28px 5px 12px;
  border-radius: 8px;
  border: 1px solid #dde0e5;
  background: #fff url("/assets/front/images/multisearch-result/arrow-down-s-line-2.svg")
    no-repeat right 10px center;
  background-size: 14px 14px;
  color: #293a4c;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
}

.ms-rf__filter-select--disabled {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #edf1ee;
  background: #f7f7f7;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 400;
  cursor: not-allowed;
}

.ms-rf__select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #dde0e5;
  background: #fff;
  color: #293a4c;
  font-size: 14px;
  line-height: 22px;
  font-family: inherit;
  cursor: default;
  opacity: 0.85;
  white-space: nowrap;
  width: max-content;
  min-width: 100px;
  flex-shrink: 0;
}

.ms-rf__select > span {
  white-space: nowrap;
}

.ms-rf__exports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ms-rf__export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 5px 16px;
  border-radius: 8px;
  border: 1px solid #0f9f88;
  background: #fff;
  color: #0f9f88;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.ms-rf__export:hover {
  background: rgba(15, 159, 136, 0.06);
}

a.ms-rf__export {
  text-decoration: none;
  box-sizing: border-box;
}

.ms-rf__export--disabled {
  border-color: #dfe7e1;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

.ms-rf__export--disabled .ms-rf__icon {
  filter: grayscale(1);
  opacity: 0.45;
}

.ms-rf__table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 0;
  border: 0;
  background: #fff;
}

.ms-rf__table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 22px;
  color: #293a4c;
}

.ms-rf__th {
  text-align: left;
  padding: 13px 16px;
  font-weight: 500;
  color: #5b5c60;
  background: #f7f7f7;
  border-bottom: 1px solid #dfe7e1;
  white-space: nowrap;
}

.ms-rf__th--narrow {
  width: 112px;
  text-align: center;
}

.ms-rf__th--cas {
  width: 168px;
  min-width: 168px;
  box-sizing: border-box;
}

.ms-rf__th--act {
  width: 96px;
  text-align: center;
}

.ms-rf__td {
  padding: 13px 16px;
  border-bottom: 1px solid #dfe7e1;
  vertical-align: middle;
}

.ms-rf__td--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #293a4c;
}

/* 稿 1045:413 — CAS 列主色 */
.ms-rf__td--cas {
  width: 168px;
  min-width: 168px;
  max-width: 220px;
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #0f9f88;
  white-space: nowrap;
}

.ms-rf__td--name {
  min-width: 0;
}

.ms-rf__name-cn {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: #293a4c;
  word-break: break-word;
}

.ms-rf__name-en {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: #5b5c60;
  word-break: break-word;
}

.ms-rf__td--status {
  text-align: center;
  vertical-align: middle;
}

.ms-rf__td--op {
  width: 96px;
  box-sizing: border-box;
  text-align: center;
}

.ms-rf__table > tbody > tr.ms-rf__tr:hover {
  background: #f7f7f7;
}

.ms-rf__toggle-arr {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ms-rf__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: auto;
  min-width: 80px;
  height: 28px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.ms-rf__icon {
  display: block;
  flex-shrink: 0;
}

.ms-rf__icon--pill {
  width: 14px;
  height: 14px;
}

.ms-rf__icon--export {
  width: 16px;
  height: 16px;
}

.ms-rf__pill--found {
  border: 1px solid #e8fbf1;
  background: #e9faf5;
  color: #0f9f88;
}

.ms-rf__pill--miss {
  border: 1px solid transparent;
  background: #f7f7f7;
  color: #293a4c;
}

.ms-rf__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #0077d5;
  font-size: 14px;
  line-height: 22px;
  font-family: inherit;
  cursor: pointer;
}

.ms-rf__toggle:hover .ms-rf__toggle-lab {
  text-decoration: underline;
}

.ms-rf__toggle-arr {
  display: block;
  transition: transform 0.2s ease;
}

.ms-rf__toggle.is-open .ms-rf__toggle-arr {
  transform: rotate(180deg);
}

.ms-rf__detail[hidden] {
  display: none !important;
}

.ms-rf__detail-cell {
  padding: 0;
  border-bottom: 1px solid #dfe7e1;
  vertical-align: top;
  background: #fafafa;
}

.ms-rf__detail-inner {
  padding: 16px;
  font-size: 14px;
  color: #5b5c60;
}

.ms-rf__detail-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.ms-rf__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 0.5px solid #dfe7e1;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.ms-rf__panel-h {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #293a4c;
}

/* 稿 1045:623 — 名录块标题左侧图标容器（4px padding） */
.ms-rf__panel-h-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

/* 稿 1045:613 — 物质概要卡片（无「物质信息」标题行） */
.ms-rf__substance-card--figma613 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 12px;
  border: 0.5px solid #dfe7e1;
  background: #fff;
}

.ms-rf__substance-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #293a4c;
  word-break: break-word;
}

.ms-rf__substance-alias {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #5b5c60;
  word-break: break-word;
}

.ms-rf__substance-meta {
  display: flex;
  gap: 20px;
  width: 100%;
}

.ms-rf__substance-meta-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 24px;
}

.ms-rf__substance-k {
  flex: 0 0 auto;
  font-weight: 500;
  color: #293a4c;
}

.ms-rf__substance-v {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  color: #5b5c60;
  word-break: break-word;
}

.ms-rf__kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ms-rf__kv-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  line-height: 22px;
}

.ms-rf__kv-row--block {
  flex-direction: column;
  gap: 4px;
}

.ms-rf__kv-k {
  flex: 0 0 120px;
  color: #5b5c60;
}

.ms-rf__kv-v {
  flex: 1 1 auto;
  min-width: 0;
  color: #293a4c;
  word-break: break-word;
}

.ms-rf__mini-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ms-rf__mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 22px;
}

.ms-rf__mini-table th {
  text-align: left;
  padding: 9px 16px;
  font-weight: 500;
  color: #5b5c60;
  border-bottom: 1px solid #0f9f88;
}

.ms-rf__mini-table td {
  padding: 9px 16px;
  border-bottom: 1px solid #edf1ee;
  color: #293a4c;
}

.ms-rf__mini-table tbody tr:nth-child(even) {
  background: #f5f8fb;
}

.ms-rf__mini-tr--alt {
  background: #f5f8fb;
}

.ms-rf__mini-th--w {
  width: 112px;
}

.ms-rf__mini-ok,
.ms-rf__mini-no {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.ms-rf__mini-ok .ms-rf__sym,
.ms-rf__mini-no .ms-rf__sym {
  flex-shrink: 0;
}

.ms-rf__mini-ok {
  color: #0f9f88;
}

.ms-rf__mini-no {
  color: #f55;
}

/* GHS 危害分类迷你表（Figma 1045:737） */
.ms-rf__mini-table--ghs .ms-rf__ghs-th--name {
  min-width: 200px;
  width: 28%;
}

.ms-rf__mini-table--ghs .ms-rf__ghs-th--class {
  min-width: 160px;
  width: 26%;
}

.ms-rf__mini-table--ghs .ms-rf__ghs-th--code {
  min-width: 112px;
  width: 14%;
}

.ms-rf__mini-table--ghs .ms-rf__ghs-th--signal {
  min-width: 96px;
  width: 12%;
}

.ms-rf__mini-table--ghs .ms-rf__ghs-th--mand {
  min-width: 88px;
  width: 12%;
}

.ms-rf__ghs-name-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 8px;
}

.ms-rf__ghs-td--name {
  vertical-align: middle;
}

.ms-rf__ghs-pill {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #0077d5;
  background: #e5f1fe;
  color: #0077d5;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
}

.ms-rf__ghs-subname {
  font-size: 14px;
  line-height: 22px;
  color: #293a4c;
  vertical-align: middle;
}

.ms-rf__ghs-td--stack {
  vertical-align: top;
}

.ms-rf__ghs-stack-line {
  padding: 2px 0;
  min-height: 22px;
}

.ms-rf__ghs-stack-line + .ms-rf__ghs-stack-line {
  border-top: 1px solid #edf1ee;
  margin-top: 4px;
  padding-top: 6px;
}

.ms-rf__ghs-signal {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}

.ms-rf__ghs-signal--danger {
  background: #e53935;
  color: #fff;
}

.ms-rf__ghs-signal--warning {
  background: #fb8c00;
  color: #fff;
}

.ms-rf__ghs-signal--plain {
  background: #edf1ee;
  color: #293a4c;
}

.ms-rf__ghs-mand-yes {
  color: #0f9f88;
  font-weight: 500;
}

.ms-rf__ghs-mand-no {
  color: #5b5c60;
  font-weight: 500;
}

.ms-rf__card--materialize {
  margin-bottom: 16px;
}

.ms-rf__materialize-hint {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 22px;
  color: #5b5c60;
}

.ms-rf__materialize-bar {
  height: 8px;
  border-radius: 4px;
  background: #edf1ee;
  overflow: hidden;
  margin-bottom: 8px;
}

.ms-rf__materialize-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6 0%, #0f9f88 100%);
  transition: width 0.2s ease;
}

.ms-rf__materialize-pct {
  margin: 0;
  font-size: 14px;
  color: #293a4c;
}

.ms-rf__td--op-empty {
  text-align: center;
  color: #c4c6cc;
  font-size: 14px;
}

.ms-rf__tr--filter-empty .ms-rf__td {
  text-align: center;
  color: #5b5c60;
  padding: 28px 16px;
}

.ms-rf__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid #edf1ee;
}

.ms-rf__pager-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ms-rf__pager-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ms-rf__pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #dde0e5;
  background: #fff;
  color: #0f9f88;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}

a.ms-rf__pager-num:hover {
  background: rgba(15, 159, 136, 0.08);
  border-color: #0f9f88;
}

.ms-rf__pager-num--current {
  border-color: #0f9f88;
  background: rgba(15, 159, 136, 0.12);
  color: #0b7f6d;
  cursor: default;
}

.ms-rf__pager-sum {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #5b5c60;
}

.ms-rf__pager-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-rf__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #0f9f88;
  background: #fff;
  color: #0f9f88;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

a.ms-rf__pager-btn:hover {
  background: rgba(15, 159, 136, 0.08);
}

.ms-rf__pager-btn--disabled {
  border-color: #dfe7e1;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

.ms-rf__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— 未登录：批量查询入口登录门 —— */
.ms-page--login-gate .ms-inner {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}

.ms-login-gate {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.ms-login-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.ms-login-gate__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}

.ms-login-gate__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #293a4c;
}

.ms-login-gate__desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 22px;
  color: #5b5c60;
}

.ms-login-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-login-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
  cursor: pointer;
}

.ms-login-gate__btn--primary {
  border: 1px solid #0f9f88;
  background: #0f9f88;
  color: #fff;
}

.ms-login-gate__btn--primary:hover {
  background: #0d8a76;
  border-color: #0d8a76;
  color: #fff;
}

.ms-login-gate__btn--ghost {
  border: 1px solid #dde0e5;
  background: #fff;
  color: #293a4c;
}

.ms-login-gate__btn--ghost:hover {
  background: #f7f7f7;
}

@media (max-width: 768px) {
  .ms-step-line {
    display: none;
  }

  .ms-dim-row:not(.ms-dim-row--four) {
    flex-direction: column;
  }

  .ms-rf__wrap {
    padding: 16px 16px 64px;
  }
}

/* —— Figma 967:1924 Toast（批量查询全局提示，替代原生 alert）—— */
.ms-toast-root {
  position: fixed;
  left: 50%;
  top: max(88px, env(safe-area-inset-top, 0px) + 72px);
  bottom: auto;
  transform: translateX(-50%);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: calc(100vw - 32px);
  max-width: 560px;
  pointer-events: none;
  box-sizing: border-box;
}

.ms-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 13px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ms-toast--in {
  opacity: 1;
  transform: translateY(0);
}

.ms-toast--out {
  opacity: 0;
  transform: translateY(6px);
}

.ms-toast__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-toast__svg {
  display: block;
}

.ms-toast__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #374665;
  word-break: break-word;
}

/* CAS 文本框：自动增高 + 错误行底纹层 */
.ms-ta-host {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  max-height: min(70vh, 2600px);
  overflow: hidden;
  border-radius: 8px;
}

.ms-ta-corner {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  background: url("/assets/front/images/multisearch/icon-textarea-corner.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
}

.ms-ta-err-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.ms-ta-err-strip {
  position: absolute;
  left: 0;
  right: 0;
  box-sizing: border-box;
  background: rgba(229, 72, 77, 0.12);
  border-left: 3px solid #e5484d;
}

.ms-ta.ms-ta--autogrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  min-height: 120px;
  max-height: min(70vh, 2600px);
  overflow-y: auto;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  resize: none;
  background: transparent;
}
