/* pages-d.css —— D 组专属样式
 * 覆盖页面：第三方派单管理（#/dispatch）、第三方服务工作台（#/portal）、
 *           统筹金额池（#/pool）、非车险核保工作台（#/underwrite）
 * 类名统一前缀 .pg-d-，不修改共享样式。
 */

/* =============================================================== 通用 */
.pg-d-pick-box {
  border: 1px dashed var(--line);
  background: linear-gradient(180deg, #f8fbff 0%, var(--brand-3) 180%);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.pg-d-pick-box .num { font-variant-numeric: tabular-nums; }
.pg-d-pick-box .grid { gap: 8px; }

.pg-d-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pg-d-acts .grow { min-width: 8px; }
.pg-d-acts .btn svg { width: 15px; height: 15px; }

.pg-d-files { display: flex; flex-direction: column; gap: 6px; }
.pg-d-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
}
.pg-d-file svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

/* =============================================================== 派单页 */
.pg-d-pick-box .form-item { margin: 0; }

/* =============================================================== 第三方工作台 */
.pg-d-msgcard { border-left: 3px solid var(--brand-2); }
.pg-d-msgitem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
}
.pg-d-msgitem:last-child { border-bottom: 0; }
.pg-d-msgico {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-3);
  color: var(--brand);
}
.pg-d-msgico svg { width: 15px; height: 15px; }
.pg-d-msgcontent {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.pg-d-orghead { display: flex; align-items: flex-start; gap: 14px; }
.pg-d-orghead .grow { min-width: 0; }
.pg-d-orgscore {
  width: 200px;
  flex: none;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.pg-d-orgscore .progress { margin: 8px 0 4px; }

.pg-d-tabs { padding: 0 12px; }
.pg-d-req {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.pg-d-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pg-d-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 8px 10px;
}
.pg-d-slot-name { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.pg-d-slot-file {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================================== 统筹池 */
.pg-d-pool-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 2px 12px;
}
.pg-d-pool-summary .kv { margin: 0; }
/* 四个筛选器并排时让下拉文案完整显示，避免「全部业务员 / 全部期间」被截断 */
.pg-d-pool-acts { flex-wrap: nowrap; }
.pg-d-pool-acts .searchbox .input { width: 196px; }
.pg-d-pool-acts .select { width: auto; min-width: 96px; }
@media (max-width: 1280px) {
  .pg-d-pool-acts { flex-wrap: wrap; justify-content: flex-end; }
  .pg-d-pool-acts .searchbox .input { width: 160px; }
}

/* =============================================================== 核保工作台 */
.pg-d-uw-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.pg-d-queue { position: sticky; top: 12px; }
.pg-d-queue-body { max-height: 720px; overflow-y: auto; }
.pg-d-qitem {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background .15s ease;
}
.pg-d-qitem:hover { background: var(--line-2); }
.pg-d-qitem:last-child { border-bottom: 0; }
.pg-d-qitem.active {
  background: var(--brand-3);
  border-left-color: var(--brand-2);
}
.pg-d-qitem .strong { font-size: 14px; }
.pg-d-detail { min-height: 440px; }
.pg-d-dhead-main { min-width: 0; }
.pg-d-dhead-main h3 { margin: 0; }
.pg-d-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pg-d-aibox {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}
.pg-d-aibox .progress { margin: 0; }

/* =============================================================== 响应式 */
@media (max-width: 1180px) {
  .pg-d-uw-layout { grid-template-columns: 1fr; }
  .pg-d-queue { position: static; }
  .pg-d-queue-body { max-height: 340px; }
}
@media (max-width: 900px) {
  .pg-d-orghead { flex-wrap: wrap; }
  .pg-d-orgscore { width: 100%; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
}
@media (max-width: 720px) {
  .pg-d-slots { grid-template-columns: 1fr; }
  .pg-d-acts { gap: 6px; }
}

/* ===== 需求① 审批流转 / 需求④ 多险种清单（Lead 追加） ===== */
.pg-d-appr { display: flex; flex-direction: column; gap: 10px; }
.pg-d-appr-i { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r, 8px); background: #fff; }
.pg-d-appr-i > .dot { flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--muted, #99a); }
.pg-d-appr-i.is-ok > .dot { background: #18a058; }
.pg-d-appr-i.is-pending > .dot { background: #e8912d; box-shadow: 0 0 0 3px rgba(232,145,45,.18); }
.pg-d-appr-i.is-bad > .dot { background: #d03050; }
.pg-d-appr-i .ap-main { flex: 1; min-width: 0; }
.pg-d-appr-i .ap-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pg-d-appr-i .ap-hd b { font-size: 13.5px; }
.pg-d-appr-i .ap-note { margin-top: 5px; font-size: 12.5px; color: var(--ink-2, #475); line-height: 1.6; white-space: pre-wrap; }
.pg-d-appr-i .ap-acts { margin-top: 8px; display: flex; gap: 8px; }

.pg-d-lines { display: flex; flex-direction: column; gap: 8px; }
.pg-d-line { border: 1px solid var(--line); border-radius: var(--r, 8px); overflow: hidden; }
.pg-d-line .ln-hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f6f8fb; font-size: 13px; }
.pg-d-line-no { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand, #1256a6); color: #fff; font-size: 11px; }
.pg-d-brand { font-size: 11.5px; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; }
.pg-d-line .ln-body { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; }
.pg-d-lkv { font-size: 12px; color: var(--ink-2, #475); }
.pg-d-lkv i { font-style: normal; color: var(--muted); margin-right: 4px; }
.pg-d-lines-sum { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #eef3fb; border-radius: 8px; font-size: 13px; }
.pg-d-lines-sum .num { font-size: 16px; }