.visit-original,.template-head {margin:0 0 18px}
.visit-form a {color:#1274a5}
.visit-original {white-space:pre-wrap;overflow-wrap:anywhere}
.visit-form {border-top:1px solid #e8eaed;margin-top:20px;padding-top:16px}
.visit-form output {background:#f5f6f8;padding:8px;color:#586173;border-radius:7px}
.visit-original {color:var(--text);font-size:14.5px;line-height:1.7}

/* 拜访记录（visit-collection.js，2026-12-02 重做）：排布照金蝶成交客户列表——上面筛选区、中间「共多少条」、下面一行一条。
   一行只占一行高，放不下的门店名和内容停在格子上看全文；一页 50 条。 */
.vr-range-box { display:block; min-width:0; }
.cd-filter .vr-range { height:36px; border-radius:9px; border-color:#dcdfe5; }
.vr-pop { position:fixed; z-index:90; width:336px; padding:14px; border:1px solid #e6e8ec; border-radius:14px; background:#fff; box-shadow:0 16px 36px -12px rgb(20 21 28 / 22%); opacity:0; transform:translateY(-4px); transition:opacity .16s ease, transform .16s ease; }
.vr-pop.on { opacity:1; transform:none; }
.vr-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.vr-presets button { height:34px; border:1px solid #e3e6eb; border-radius:9px; color:var(--text); background:#fff; font:inherit; font-size:14px; cursor:pointer; transition:border-color .14s ease, color .14s ease, background-color .14s ease; }
.vr-presets button:hover, .vr-presets button:focus-visible { border-color:var(--blue-line); color:var(--blue); outline:0; }
.vr-presets button.on { border-color:var(--blue); color:#fff; background:var(--blue); }
.vr-custom { display:flex; align-items:center; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid #eef0f3; }
.vr-custom span, .vr-custom i { flex:none; color:var(--text); font-size:14px; font-style:normal; }
.vr-custom input { flex:1; min-width:0; height:34px; padding:0 8px; border:1px solid #dcdfe5; border-radius:9px; color:var(--text); background:#fff; font:inherit; font-size:13.5px; }
.vr-custom input:focus { outline:0; border-color:var(--blue); box-shadow:0 0 0 3px rgb(18 116 165 / 12%); }
.vr-acts { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
.vr-acts .cd-btn { min-width:64px; justify-content:center; }
@media (max-width:760px) { .vr-pop { left:12px !important; right:12px; width:auto; } }
.float-card.vr-float { width:auto; max-width:380px; }
.vr-tip-text { margin:0 !important; color:var(--ink) !important; font-size:14px !important; line-height:1.7 !important; white-space:pre-wrap; overflow-wrap:anywhere; }
/* 列表本身的样子在文件最后「拜访记录第五版」那一段。 */

/* 右边滑出的这次拜访：外框沿用客户预览的抽屉（customer-directory.css 的 .cpv-*） */
.vr-drawer:focus { outline:0; }
.vr-dhead { align-items:flex-start; }
.vr-dtitle { min-width:0; }
.vr-dtitle .cpv-title { overflow-wrap:anywhere; }
.vr-dtitle p { margin:6px 0 0; color:var(--text); font-size:14px; }
.vr-dnav { flex:none; display:flex; align-items:center; gap:4px; }
.vr-dstep { width:34px; height:34px; display:grid; place-items:center; padding:0; border:0; border-radius:8px; color:var(--text-regular); background:none; cursor:pointer; }
.vr-dstep:hover:not(:disabled), .vr-dstep:focus-visible { outline:0; color:var(--ink); background:var(--fill); }
.vr-dstep:disabled { opacity:.3; cursor:default; }
.vr-dstep svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.vr-dtag { color:var(--blue); font-weight:500; }
.vr-dfields { display:grid; grid-template-columns:minmax(0,1fr); gap:0; margin:0; border:1px solid #eceef1; border-radius:12px; overflow:hidden; }
.vr-dfields > div { display:grid; grid-template-columns:132px minmax(0,1fr); gap:12px; padding:10px 14px; border-top:1px solid #f0f1f4; }
.vr-dfields > div:first-child { border-top:0; }
.vr-dfields dt { color:var(--text); font-size:14px; }
.vr-dfields dd { margin:0; color:var(--ink); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.vr-dmiss { margin:10px 0 0; color:var(--ink); font-size:14px; }
@media (max-width:760px) {
  .vr-dfields > div { grid-template-columns:minmax(0,1fr); gap:2px; }
}

/* 打卡照片（拜访记录里的存根，2026-12-02）：列表上一张小图，停上去看大一点的，点开看原图；明细页一排小图。 */
.vr-ph { position:relative; display:inline-block; width:36px; height:36px; padding:0; border:0; border-radius:8px; background:#eef1f5; vertical-align:middle; }
button.vr-ph { cursor:zoom-in; box-shadow:0 0 0 1px rgb(20 21 28 / 6%); transition:transform .16s ease, box-shadow .16s ease; }
button.vr-ph:hover, button.vr-ph:focus-visible { outline:0; transform:scale(1.06); box-shadow:0 0 0 2px var(--blue-line), 0 6px 14px -6px rgb(20 21 28 / 35%); }
.vr-ph img { display:block; width:36px; height:36px; border-radius:8px; object-fit:cover; }
.vr-ph b { position:absolute; right:-6px; bottom:-6px; min-width:18px; height:18px; padding:0 4px; border:2px solid #fff; border-radius:9px; color:#fff; background:var(--blue); font-size:11px; font-weight:600; line-height:14px; box-sizing:border-box; }
.vr-ph.wait { display:inline-grid; place-items:center; background:transparent; }
.vr-ph.wait svg { width:20px; height:20px; fill:none; stroke:var(--text); stroke-width:1.6; stroke-linejoin:round; }
.float-card .fw-tip.vr-ph-tip { display:grid; gap:8px; }
.vr-ph-big { display:block; width:240px; max-height:320px; border-radius:10px; object-fit:cover; background:#eef1f5; }
.float-card .fw-tip.vr-ph-tip p { margin:0; color:var(--ink); font-size:13.5px; }
/* 别处列出来的打卡也放当次的照片：客户详情的进出门打卡、人员详情的高德打卡、高德同步的打卡明细（visit-collection.js 的 visitShotThumb）。 */
.cp-table th.cp-ph, .cp-table td.cp-ph { width:56px; text-align:center; }
td.sy-ph { text-align:center; }
.fw-export-box { position:relative; display:inline-flex; }
.fw-export-short { display:none; }
@media (max-width:760px) { .fw-export-long { display:none; } .fw-export-short { display:inline; } }
.vp-grid { display:flex; flex-wrap:wrap; gap:12px; margin:0 0 18px; }
.vp-tile { width:132px; height:176px; padding:0; border:0; border-radius:12px; background:#eef1f5; cursor:zoom-in; overflow:hidden; box-shadow:0 0 0 1px rgb(20 21 28 / 6%); transition:transform .18s ease, box-shadow .18s ease; }
.vp-tile:hover, .vp-tile:focus-visible { outline:0; transform:translateY(-2px); box-shadow:0 0 0 2px var(--blue-line), 0 12px 24px -12px rgb(20 21 28 / 40%); }
.vp-tile img { display:block; width:100%; height:100%; object-fit:cover; }
.vp-wait { margin:0 0 18px; color:var(--ink); font-size:14px; }
/* 门店的门头照（2026-12-02 负责人：「同步到门店信息里。把前端做好看点」）：客户详情身份卡左边那一格、门店标记客户列表店名前面。 */
.cdp-avatar.cdp-photo { position:relative; padding:0; border:0; border-radius:18px; background:#eef2f6; cursor:zoom-in; overflow:visible;
  box-shadow:0 10px 22px -12px rgb(20 21 28 / 45%), 0 0 0 1px rgb(20 21 28 / 6%); transition:transform .18s ease, box-shadow .18s ease; }
.cdp-avatar.cdp-photo:hover, .cdp-avatar.cdp-photo:focus-visible { outline:0; transform:translateY(-1px) scale(1.03); box-shadow:0 14px 26px -12px rgb(20 21 28 / 50%), 0 0 0 2px var(--blue-line); }
.cdp-avatar.cdp-photo img { display:block; width:60px; height:60px; border-radius:18px; object-fit:cover; }
.cdp-tier { position:absolute; right:-7px; bottom:-7px; min-width:24px; height:24px; padding:0 6px; display:grid; place-items:center; border:2px solid #fff; border-radius:12px; font-size:12.5px; font-weight:700; line-height:1; box-sizing:border-box; }
.cdp-tier.t-A { color:#fff; background:linear-gradient(145deg,#1b8ac2,#0f6791); }
.cdp-tier.t-B { color:#0f6791; background:#d8effa; }
.cdp-tier.t-C { color:#55606c; background:#e9edf1; }
.cdp-tier.t-D, .cdp-tier.t-N { color:#8a8f99; background:#f4f5f7; }
.cdp-photo-n { position:absolute; left:-6px; top:-6px; min-width:20px; height:20px; padding:0 5px; display:grid; place-items:center; border:2px solid #fff; border-radius:10px; color:#fff; background:var(--blue); font-size:11px; font-style:normal; font-weight:600; box-sizing:border-box; }
.workpage .ftable.cd-table td.cd-name a.cd-with-ph { display:flex; align-items:center; gap:12px; }
.cd-shop-ph { flex:none; width:40px; height:40px; display:grid; place-items:center; border-radius:10px; overflow:hidden; color:#7fb6d3; background:linear-gradient(145deg,#f1f8fc,#e3f1f8); box-shadow:inset 0 0 0 1px rgb(18 116 165 / 8%); }
.cd-shop-ph img { width:100%; height:100%; object-fit:cover; }
.cd-shop-ph svg { width:19px; height:19px; }
.cd-card header .cd-shop-ph { width:44px; height:44px; }
.cd-card header .cd-shop-ph + b { flex:1; min-width:0; }
@media (prefers-reduced-motion: reduce) { .cdp-avatar.cdp-photo { transition:none; } }

/* 客户详情「门店照片」页签（2026-12-02）：上面门店标记上的，下面打卡时拍的（一次打卡一行：日期、几点、谁，后面一排照片）。 */
.cp-photos > .cpp-grid { margin:0; padding:2px 28px 26px; }
.cdp .cp-photos .cp-none { color:var(--ink); font-size:14px; } /* 说明用正文的深色，不用灰字 */
.cpp-grid .vp-tile { width:168px; height:224px; border-radius:14px; }
.cpp-visits { margin:0; padding:0 28px 12px; list-style:none; }
.cpp-visits .cpp-grid { margin:0; }
.cpp-visits li { display:grid; grid-template-columns:200px minmax(0,1fr); gap:20px; align-items:start; padding:16px 0; border-top:1px solid #f0f1f4; }
.cpp-visits li:first-child { border-top:0; padding-top:6px; }
.cpp-visits .cpp-grid .vp-tile { width:120px; height:160px; }
.cpp-when { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; padding-top:6px; color:var(--text); font-size:14px; font-variant-numeric:tabular-nums; }
.cpp-when b { color:var(--ink); font-size:15px; font-weight:600; }
.cpp-when span:nth-of-type(2) { color:var(--ink); }
.cpp-note { margin:0; padding:0 28px 22px; color:var(--ink); font-size:14px; }
@media (max-width:760px) {
  .cp-photos > .cpp-grid { padding:2px 16px 20px; } .cpp-visits { padding:0 16px 8px; } .cpp-note { padding:0 16px 18px; }
  .cpp-visits li { grid-template-columns:minmax(0,1fr); gap:10px; }
  .cpp-grid .vp-tile, .cpp-visits .cpp-grid .vp-tile { width:calc(50% - 6px); height:auto; aspect-ratio:3 / 4; }
}
/* 看大图：照素材库的样子，深色底、左右切换。 */
.vp-mask { position:fixed; inset:0; z-index:400; display:flex; background:rgba(12, 13, 17, .92); animation:vp-fade .16s ease both; }
.vp-viewer { display:flex; flex-direction:column; width:100%; height:100%; color:#fff; }
.vp-viewer > header { flex:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; }
.vp-title { min-width:0; display:grid; gap:3px; }
.vp-title b { overflow:hidden; font-size:15px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.vp-title small { color:rgba(255, 255, 255, .78); font-size:13.5px; font-variant-numeric:tabular-nums; }
.vp-title small i { margin-left:14px; font-style:normal; }
.vp-x { flex:none; width:38px; height:38px; display:grid; place-items:center; border:0; border-radius:10px; color:#fff; background:none; cursor:pointer; }
.vp-x:hover, .vp-x:focus-visible { outline:0; background:rgba(255, 255, 255, .14); }
.vp-x svg, .vp-nav svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.vp-stage { position:relative; flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:8px 76px 28px; }
.vp-stage img { max-width:100%; max-height:100%; border-radius:10px; object-fit:contain; box-shadow:0 20px 60px rgba(0, 0, 0, .45); animation:vp-fade .18s ease both; }
.vp-nav { position:absolute; top:50%; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:50%; color:#fff; background:rgba(255, 255, 255, .1); cursor:pointer; transform:translateY(-50%); transition:background .16s ease; }
.vp-nav.prev { left:16px; }
.vp-nav.next { right:16px; }
.vp-nav:hover:not(:disabled), .vp-nav:focus-visible { outline:0; background:rgba(255, 255, 255, .22); }
.vp-nav:disabled { opacity:.25; cursor:default; }
@keyframes vp-fade { from { opacity:0; } to { opacity:1; } }
@media (max-width:760px) {
  .vp-stage { padding:4px 8px 20px; }
  .vp-nav { width:40px; height:40px; background:rgba(0, 0, 0, .42); }
  .vp-nav.prev { left:8px; } .vp-nav.next { right:8px; }
  .vp-tile { width:calc(50% - 6px); height:auto; aspect-ratio:3 / 4; }
}
@media (prefers-reduced-motion: reduce) { .vp-mask, .vp-stage img { animation:none; } button.vr-ph, .vp-tile { transition:none; } }

/* 采集明细（一条拜访点进来） */
.visit-detail { padding:24px 28px 26px; }
.visit-detail > h3, .visit-form h3 { margin:0 0 8px; color:var(--ink); font-size:17px; font-weight:600; }
.visit-detail h4 { margin:0 0 6px; color:var(--ink); font-size:14.5px; font-weight:600; }
.visit-meta { margin:0 0 18px; color:var(--text); font-size:14px; }
.visit-form .fw-fields label { display:grid; gap:8px; min-width:0; color:var(--ink); font-size:14.5px; font-weight:500; }
.visit-form .fw-fields input { width:100%; min-width:0; height:40px; padding:0 12px; border:1px solid #d8dde5; border-radius:10px; color:var(--text); background:#fff; font:inherit; font-size:14.5px; font-weight:400; }
.visit-form .fw-fields input:focus { outline:0; border-color:var(--blue); box-shadow:0 0 0 3px rgb(18 116 165 / 12%); }
.visit-form .fw-actions { margin-top:20px; }
@media (max-width:760px) { .visit-detail { padding:18px 16px 20px; } }
.edit-status {font-size:13px;color:#80542d;margin:4px 0}
.edit-status:empty {display:none}
.template-head {display:flex;align-items:center;gap:12px}
.template-head h3 {margin:0}
.template-head small,.memory-list small {color:#6a7382}
.template-row {display:grid;grid-template-columns:minmax(200px,1fr) 100px minmax(180px,1fr) 54px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #f0f1f4}
.template-remove {grid-column:4;border:0;background:transparent;color:#646b75;cursor:pointer}
.template-row input,.template-row select,.memory-dialog :is(input,select,textarea),.visit-form select,.fw-fields select {border:1px solid #d9dee5;border-radius:8px;padding:8px 10px;font:inherit;color:inherit;background:white;max-width:100%;min-width:0}
.memory-dialog {margin:0 0 0 auto;position:fixed;inset:0;width:550px;max-width:90vw;height:100vh;max-height:100vh;box-sizing:border-box;border:0;border-left:1px solid #e3e6eb;background:white;overflow:auto;padding:24px;color:#1d2129}
.memory-dialog::backdrop {background:rgba(22,30,42,.22)}
.memory-dialog header,.memory-dialog nav,.memory-dialog footer,.memory-search,.memory-ops {display:flex;align-items:center;gap:8px}
.memory-dialog header {justify-content:space-between}
.memory-dialog h2 {font-size:21px;margin:0}
.memory-dialog nav {border-bottom:1px solid #e8eaec;padding:18px 0 12px;margin-bottom:18px}
.memory-dialog [aria-pressed=true] {color:#106792;background:#e0f7ff;border-color:#a0e3fa}
.memory-fields {display:grid;grid-template-columns:1fr 1fr;gap:14px}
.memory-fields .wide {grid-column:1/-1}
.memory-dialog label {display:grid;gap:6px;color:#414858;font-size:13px}
.memory-dialog textarea {resize:vertical}
.memory-dialog footer {justify-content:flex-end;margin:16px 0 4px}
.memory-list {list-style:none;padding:0;margin:8px 0}
.memory-list li {padding:14px 0;border-bottom:1px solid #e8eaef}
.memory-list p {white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 9px}
.memory-ops .tool-btn {font-size:12px;min-height:26px;padding:2px 9px}
.memory-editor {padding:16px;margin:14px 0;background:#f7f8fa;border-radius:12px}
.memory-editor label {margin:8px 0}
.memory-search input {flex:1}
.visit-fact-count {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#646c7a}
.visit-facts {margin-top:14px}
.visit-facts dd {overflow-wrap:anywhere}
.visit-facts a {color:#1b678e}
.visit-pending {margin-top:12px;color:#646c7a;font-size:13px}
.visit-pending summary {cursor:pointer}
.visit-pending ul {padding-left:20px;line-height:1.8}

/* 短期记忆（人格与记忆面板的第三页） */
.short-intro {margin:0 0 12px;line-height:1.7;font-size:13px}
.short-day {margin:18px 0 6px}
.short-day h3 {display:flex;align-items:baseline;gap:8px;margin:0;font-size:15px;color:#1c2633}
.short-day h3 small {font-weight:400;font-size:12px;color:#8a93a1}
.short-log {margin:8px 0 0;border:1px solid #e8eaef;border-radius:10px;padding:8px 12px;background:#fafbfc}
.short-log summary {cursor:pointer;font-size:13px;color:#566072}
.short-log .memory-list li {padding:10px 0;display:flex;gap:10px;justify-content:space-between;align-items:flex-start}
.short-log .memory-list li:last-child {border-bottom:0}
.short-did {display:block;margin-top:4px;color:#6a7382;font-size:13px}

/* ---------- 拜访记录：右边滑出的这次拜访（2026-12-03 负责人：「高端、简约、清晰、美观、易于交互」）----------
 * 店名、谁哪天；时间卡；打卡像时间线；照片；采集（去客户档案录）；底下固定两颗大按钮。第五版起这里的字也都是深色。 */
.vr-d2 { width: min(520px, 100vw); }
.vr-d2 .vr-dhead { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 18px 16px 26px; border-bottom: 1px solid #eef0f3; }
.vr-d2 .vr-dtitle h2 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.vr-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0 0; color: var(--text); font-size: 14px; }
.vr-dwho { display: inline-flex; align-items: center; color: var(--ink); font-weight: 600; }
.vr-d2 .vr-dbody { padding: 18px 26px 26px; }
.vr-dsum { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #e6edf3; border-radius: 14px; background: #fbfdfe; }
.vr-dt { display: grid; gap: 4px; }
.vr-dt b { color: var(--ink); font-size: 24px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vr-dt span { color: var(--text); font-size: 13.5px; }
.vr-dline { flex: 0 0 34px; height: 2px; margin-bottom: 18px; border-radius: 1px; background: linear-gradient(90deg, var(--blue-line), var(--blue)); }
.vr-dstay-n { display: grid; justify-items: end; gap: 4px; margin-left: auto; text-align: right; }
.vr-dstay-n span { color: var(--text); font-size: 13.5px; }
.vr-dstay-n b { color: var(--ink); font-size: 16px; font-weight: 600; }
.vr-dsec { margin-top: 26px; }
.vr-dsec h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 600; }
.vr-dsec h3 span { color: var(--text); font-size: 14px; font-weight: 400; }
.vr-tl { margin: 0; padding: 0; list-style: none; }
.vr-tl li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 22px; padding: 0 0 18px; }
.vr-tl li:last-child { padding-bottom: 0; }
.vr-tl li::before { content: ""; position: absolute; left: 59px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.vr-tl li::after { content: ""; position: absolute; left: 63px; top: 21px; bottom: 3px; width: 1px; background: #dce5ec; }
.vr-tl li:last-child::after { display: none; }
.vr-tl time { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 22px; font-variant-numeric: tabular-nums; }
.vr-tl li > div { min-width: 0; padding-left: 8px; }
.vr-tl-head { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; font-size: 14px; line-height: 22px; }
.vr-tl-addr { color: var(--text); overflow-wrap: anywhere; }
.vr-tl-note { margin: 4px 0 0; color: var(--ink); font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.vr-tl-note.none { color: var(--text); }
.vr-d2 .vr-dtag { color: var(--blue); font-weight: 600; }
.vr-dphotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vr-dph { display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #eef1f5; cursor: zoom-in; }
.vr-dph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.vr-dph:hover img, .vr-dph:focus-visible img { transform: scale(1.05); }
.vr-dph:focus-visible { outline: 2px solid var(--blue-line); outline-offset: 2px; }
.vr-dempty { margin: 0; color: var(--text); font-size: 14px; }
.vr-d2 .vr-dmiss { margin: 10px 0 0; color: var(--ink); font-size: 14px; line-height: 1.6; }
.vr-dgo { display: inline-flex; align-items: center; gap: 4px; height: 38px; margin-top: 14px; padding: 0 12px 0 16px; border: 1px solid var(--blue-line); border-radius: 10px; color: var(--blue); background: #f6fbfe; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .12s ease; }
.vr-dgo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vr-dgo:hover, .vr-dgo:focus-visible { outline: 0; background: var(--blue-soft); }
.vr-dfoot { flex: none; display: flex; gap: 12px; padding: 14px 26px 18px; border-top: 1px solid #eef0f3; background: #fff; }
.vr-dbtn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid #dfe2e7; border-radius: 12px; color: var(--ink); background: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .12s ease, color .12s ease, background .12s ease, box-shadow .12s ease; }
.vr-dbtn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vr-dbtn:hover, .vr-dbtn:focus-visible { outline: 0; border-color: var(--blue-line); color: var(--blue); background: #f6fbfe; }
.vr-dbtn.primary { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 6px 16px -8px rgba(18, 116, 165, .55); }
.vr-dbtn.primary:hover, .vr-dbtn.primary:focus-visible { border-color: var(--blue-hover); color: #fff; background: var(--blue-hover); }
@media (max-width: 760px) {
  .vr-d2 .vr-dhead { padding: 16px 10px 12px 16px; }
  .vr-d2 .vr-dbody { padding: 14px 16px 20px; }
  .vr-dt b { font-size: 21px; }
  .vr-dfoot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .vr-dbtn { height: 44px; font-size: 14.5px; }
}

/* ---------- 拜访记录第六版（2026-12-03 傍晚，负责人：「这个拜访记录的前端，能不能跟客户档案那边对齐下，这个太难看了」）----------
 * 照金蝶成交客户、门店标记客户两张列表：同一块灰底筛选区（pages.js 的 cdFilter）、同一条工具栏、同一张带表头的表（.ftable.cd-table）、
 * 同一种手机卡片（.cd-card）和门店前那一小格照片（.cd-shop-ph）。这里只补拜访记录自己的几样：各栏宽度、每天一条分组带、照片张数角标、拜访内容两行。
 * 第五版（不要表头、一行五样挨着排）负责人看了说太难看，样式已拿掉。 */
.workpage .ftable.cd-table.vr-table table { table-layout: fixed; min-width: 900px; }
.vr-table col.vr-c-time { width: 136px; }
.vr-table col.vr-c-who { width: 96px; }
.vr-table col.vr-c-shop { width: 27%; }
.vr-table col.vr-c-area { width: 104px; }
.vr-table col.vr-c-go { width: 44px; }
.workpage .ftable.cd-table.vr-table td.vr-time { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.workpage .ftable.cd-table.vr-table td.vr-text { white-space: normal; }
.workpage .ftable.cd-table td.cd-name .cd-with-ph { display: flex; align-items: center; gap: 12px; }
.workpage .ftable.cd-table.vr-table td.vr-shop.none { color: var(--text); font-size: 14px; font-weight: 400; }
.vr-shot { position: relative; padding: 0; border: 0; overflow: visible; cursor: zoom-in; }
.vr-shot img { border-radius: 10px; }
.vr-shot b { position: absolute; right: -6px; bottom: -6px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 600; line-height: 14px; box-sizing: border-box; }
.vr-shot:hover, .vr-shot:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--blue-line); }
/* 每天一条分组带：浅底，日期加粗，后面周几、今天，细竖线隔开这一天几次拜访。 */
.workpage .ftable.cd-table.vr-table tr.vr-day td { height: 42px; padding-top: 0; padding-bottom: 0; background: #fafbfc; cursor: default; }
.workpage .ftable.cd-table.vr-table tbody tr.vr-day:hover td { background: #fafbfc; }
.vr-day-d { color: var(--ink); font-size: 15px; font-weight: 650; }
.vr-day-w { margin-left: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
.vr-day-n { display: inline-block; margin-left: 14px; padding-left: 14px; border-left: 1px solid #d6d9de; color: var(--text); font-size: 13.5px; line-height: 13px; font-variant-numeric: tabular-nums; }
/* 右边滑出详情时，列表里那一行标出来。 */
.workpage .ftable.cd-table.vr-table tr[data-v].on td { background: #eef6fb; }
.workpage .ftable.cd-table.vr-table tr[data-v].on td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.vr-shop-chip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 手机卡片：每天一个小标题，卡片和客户档案的一样。 */
.vr-cday { display: flex; flex-wrap: wrap; align-items: baseline; margin: 18px 2px 8px; font-weight: 400; }
.vr-cday:first-child { margin-top: 4px; }
.vr-card { cursor: pointer; }
.vr-card header b.none { color: var(--text); font-weight: 500; }
@media (max-width: 1366px) { .vr-table col.vr-c-shop { width: 25%; } .vr-table col.vr-c-time { width: 128px; } .vr-table col.vr-c-area { width: 96px; } }
