/* ===== 接单详情（补充样式） ===== */

/* ---- 金额 + 工单切换条 ---- */
.order-switch-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.amount-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: #3f6df2;
  color: #fff;
  border-radius: 8px;
  padding: 6px 18px;
}

.amount-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.amount-label {
  font-size: 12px;
  opacity: 0.9;
}

.order-chip {
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 4px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
}

.order-chip .chip-no {
  font-size: 14px;
  color: var(--ink);
}

.order-chip .chip-status {
  font-size: 12px;
  color: #5b8cff;
}

.order-chip.is-active {
  border-color: var(--primary);
  background: #f2f7ff;
}

.order-chip.is-active .chip-no {
  color: var(--primary);
  font-weight: 600;
}

/* ---- 流程步骤 ---- */
.steps-bar {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px 12px;
  margin-bottom: 14px;
}

.step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 96px;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8eef7;
  color: #8a97a8;
  font-size: 12px;
  text-align: center;
  line-height: 22px;
  font-weight: 600;
}

.step-name {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.step-state {
  font-size: 12px;
  color: #8a97a8;
}

.step-time {
  font-size: 11px;
  color: #a3adbd;
}

/* 已完成步骤：蓝圈白字 + 绿勾状态 */
.step.is-done .step-circle {
  background: var(--primary);
  color: #fff;
}

.step.is-done .step-state {
  color: #1a9c52;
}

.step.is-done .step-state::before {
  content: "✔ ";
  font-size: 11px;
}

/* 当前步骤（待确认出函）：蓝色高亮 */
.step.is-current .step-circle {
  background: #fff;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.step.is-current .step-name {
  color: var(--primary);
}

.step.is-current .step-state {
  color: var(--primary);
}

/* 等待中状态：橙色时钟图标（第6步待确认 / 第7步待出函） */
.step-state.is-waiting {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.step-state.is-waiting::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: #f59e0b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 第6步内的确认出函按钮 */
.step-confirm-btn {
  appearance: none;
  margin-top: 4px;
  padding: 6px 18px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.step-confirm-btn:hover {
  opacity: 0.9;
}

.step-line {
  flex: 1 1 auto;
  height: 2px;
  margin-top: 10px;
  background: #dce4f2;
  min-width: 20px;
}

/* ---- 小按钮 ---- */
.mini-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.mini-btn svg {
  width: 13px;
  height: 13px;
}

.mini-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.review-times {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-secondary);
  background: #f5f7fa;
  border-radius: 4px;
  padding: 3px 10px;
}

.side-btn.is-on {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* ---- 保函信息标签：统一精致化（覆盖默认 pill） ---- */
.info-body .pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.7;
  border: 1px solid transparent;
}

/* 普通标签：中性灰 */
.info-body .pill:not(.tag-high):not(.tag-rare) {
  background: #f4f6f9;
  color: #62708a;
  border-color: #e6ebf2;
}

/* 最高资质：暖橙 */
.info-body .tag-high {
  background: #fdf6e6;
  color: #b07a16;
  border-color: #f5e3bd;
  font-weight: 600;
}

/* 非市政 / 非涉外 / 非特殊：清蓝 */
.info-body .tag-rare {
  background: #edf3ff;
  color: #3a6de0;
  border-color: #d6e4ff;
}

/* 保函要素棕色标签：略收圆角、加深边框质感 */
.info-body .tag {
  padding: 2px 9px;
  font-size: 11px;
  border-radius: 4px;
}

/* 保函信息棕色标签：文字白色 */
.info-body .tag-brown {
  color: #fff;
}

/* ---- 第五步：下载保函文本按钮 ---- */
.step-download-btn {
  appearance: none;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: #fff;
  color: var(--primary);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.step-download-btn::before {
  content: "";
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 20h14' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 20h14' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.step-download-btn:hover {
  background: var(--primary-light);
}

/* ---- 审批意见 ---- */
.opinion-box {
  padding: 0 4px;
}

.opinion-content {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink);
}

.opinion-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.sub-title {
  margin: 16px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 9px;
  border-left: 3px solid var(--primary);
}

.history-empty {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}

.history-empty-icon {
  font-size: 30px;
  opacity: 0.25;
}

/* ---- 价格计算器 ---- */
.calc-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.dot-warn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5484d;
  flex: 0 0 auto;
}

.calc-latest {
  margin-left: auto;
  color: #a3adbd;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.calc-table th,
.calc-table td {
  border: 1px solid var(--border);
  padding: 7px 12px;
  text-align: center;
}

.calc-table th {
  width: 42%;
  background: #f7f9fc;
  color: var(--ink-secondary);
  font-weight: 500;
}

.calc-table .td-static {
  color: var(--ink);
}

.calc-input {
  appearance: none;
  height: 28px;
  padding: 0 24px 0 10px;
  margin: 2px 6px 2px 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12px' height='12px' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
}

.rate-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 3px;
  background: #fdf3e0;
  color: #b27a2a;
  font-size: 11px;
  vertical-align: middle;
}

.rate-badge.is-blue {
  background: #eef3ff;
  color: #4a74d8;
}

.rate-badge.is-rare {
  background: #f0eefb;
  color: #6c5ce7;
}

.rate-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.calc-rate {
  width: 130px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 13px;
  text-align: right;
  color: var(--ink);
}

.calc-rate:focus {
  outline: none;
  border-color: var(--primary);
}

.rate-unit {
  color: var(--muted);
  font-size: 12px;
}

.quote-row th {
  background: #f7f9fc;
}

.quote-row b {
  color: var(--primary);
  font-size: 14px;
}

.calc-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.btn-primary-sm {
  appearance: none;
  padding: 7px 18px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary-sm:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ---- 历史报价记录 ---- */
.quote-history {
  position: relative;
  display: flex;
  gap: 10px;
  padding-left: 6px;
}

.qh-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
}

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

.qh-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--ink-secondary);
  flex-wrap: wrap;
}

.qh-role {
  padding: 0 6px;
  border-radius: 3px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
}

.qh-time {
  color: #a3adbd;
}

.qh-line a {
  color: var(--primary);
}

.qh-content {
  margin: 0;
  font-size: 12px;
  color: var(--ink);
}

.qh-more {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}
