/* 销售管理 → 我的拜访（fieldwork.js，2026-12-02 由「拜访工作」改过来）。和销售总览同一套：一排四个数、白底卡片、一行一家。
   颜色只用 logo 的蓝；字一律深色，主次靠字号和粗细；没有的格子空着。 */
.fw-page .crm-actions { position:relative; align-items:center; gap:12px; }
.fw-export { height:38px; padding:0 16px; font-size:14px; }
.fw-export svg { width:16px; height:16px; stroke-width:1.8; }
.fw-export:disabled { cursor:progress; opacity:.75; }

/* 四个数：看一位销售时是筛选按钮 */
.fw-strip { padding:0; }
.fw-strip .so-stat { padding:26px 28px; }
.fw-pick { margin:0; border:0; border-radius:0; color:inherit; background:transparent; font:inherit; text-align:left; cursor:pointer; transition:background-color .18s ease, box-shadow .18s ease; }
.fw-pick:hover { background:#f8fbfd; }
.fw-pick:focus-visible { outline:2px solid var(--blue-line); outline-offset:-2px; }
.fw-pick.on { background:linear-gradient(180deg,#f5fbfe,#eaf6fc); box-shadow:inset 0 -3px 0 var(--blue); }
.so-stat + .fw-pick.on { box-shadow:inset 1px 0 0 #eef0f3, inset 0 -3px 0 var(--blue); }
.fw-pick .so-ico { transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease; }
.fw-pick:hover .so-ico { transform:translateY(-1px); }
.fw-pick.on .so-ico { color:#fff; background:linear-gradient(150deg,#2a9bd0,var(--blue)); box-shadow:0 6px 14px -6px rgb(18 116 165 / 55%); }

/* 拜访提示那一排带标题（和拜访情况那一排一样），四个数还是筛选按钮 */
.fw-strip.so-entries { padding-top:50px; }
.fw-strip.so-entries .so-stat { padding-top:18px; }
/* 拜访情况：上次打卡写的是时间，不是数；底下的店名长了截断 */
.so-entries .so-stat p b.fw-when { font-size:22px; line-height:36px; white-space:nowrap; }
.so-entries .so-stat > div { min-width:0; }
.so-entries .so-stat .so-vs { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.fw-note { margin:0 26px 14px; padding:10px 14px; border-radius:10px; color:var(--ink); background:#f5f9fc; font-size:14px; line-height:1.6; }
.fw-note a { margin-left:8px; color:var(--blue); }

/* 卡片头上的家数、「只看…」 */
.fw-count { margin-left:4px; color:var(--text); font-size:15px; font-weight:500; font-variant-numeric:tabular-nums; }
.fw-only { margin-left:auto; display:inline-flex; align-items:center; gap:12px; color:var(--text); font-size:14px; }
.fw-only[hidden] { display:none; }
.fw-only .cd-btn { height:30px; padding:0 12px; }
.fw-board [hidden] { display:none !important; }
.fw-none { margin:0; padding:30px 0 34px; color:var(--text-regular); font-size:15px; text-align:center; }

/* 每位销售 */
.workpage .ftable.fw-people table { min-width:960px; table-layout:fixed; }
.fw-people col.fw-c-name { width:17%; }
.fw-people col.fw-c-meter { width:19%; }
.fw-people col.fw-c-n { width:104px; }
.fw-people col.fw-c-money { width:130px; }
.fw-people col.fw-c-last { width:150px; }
.fw-people col.fw-c-go, .fw-stops col.fw-c-go { width:44px; }
.workpage .ftable.cd-table.fw-people td, .workpage .ftable.cd-table.fw-stops td { height:58px; font-variant-numeric:tabular-nums; }
.workpage .ftable.cd-table.fw-people th:first-child, .workpage .ftable.cd-table.fw-people td:first-child,
.workpage .ftable.cd-table.fw-stops th:first-child, .workpage .ftable.cd-table.fw-stops td:first-child { padding-left:26px; }
.workpage .ftable.cd-table.fw-people tr[data-href], .workpage .ftable.cd-table.fw-stops tr[data-href] { cursor:pointer; }

/* 该去的店 */
.workpage .ftable.fw-stops table { min-width:940px; table-layout:fixed; }
.fw-stops col.fw-c-shop { width:25%; }
.fw-stops col.fw-c-area { width:9%; }
.fw-stops col.fw-c-money { width:11%; }
.fw-stops col.fw-c-idle { width:11%; }
.fw-stops col.fw-c-day { width:92px; }
.fw-stops col.fw-c-log { width:92px; }
.workpage .ftable.cd-table.fw-stops td[data-tip] { cursor:default; transition:color .12s ease, background-color .12s ease; }
.workpage .ftable.cd-table.fw-stops td[data-tip]:hover { color:var(--blue); }
.workpage .ftable.cd-table.fw-stops td.fw-why { color:var(--text); }
.workpage .ftable.cd-table.fw-stops td.fw-log-col, .workpage .ftable.cd-table.fw-stops th.fw-log-col { padding:0 4px; text-align:right; overflow:visible; }
.fw-log { display:inline-flex; align-items:center; height:30px; padding:0 12px; border:1px solid #dfe1e6; border-radius:8px; color:var(--text-regular); background:#fff; font-size:13.5px; font-weight:500; text-decoration:none; white-space:nowrap; opacity:0; transform:translateX(-3px); transition:opacity .16s ease, transform .16s ease, border-color .14s ease, color .14s ease; }
.fw-stops tbody tr:hover .fw-log, .fw-stops tbody tr:focus-within .fw-log, .fw-log:focus-visible { opacity:1; transform:none; }
.fw-log:hover, .fw-log:focus-visible { border-color:var(--blue-line); color:var(--blue); outline:0; }
@media (hover:none) { .fw-log { opacity:1; transform:none; } }

/* 停在格子上浮出的依据 */
.float-card.fw-float { width:272px; padding:12px 14px; }
.fw-tip b { display:block; color:var(--ink); font-size:14.5px; font-weight:600; line-height:1.5; }
.fw-tip p { margin:4px 0 0; color:var(--text); font-size:13.5px; line-height:1.6; }
.fw-tip hr { margin:10px 0; border:0; border-top:1px solid #eef0f3; }
.fw-tip-k { display:inline-block; min-width:62px; color:var(--text-regular); }

/* 没有该去的店 */
.fw-empty { display:grid; justify-items:center; gap:6px; padding:30px 0 34px; text-align:center; }
.fw-empty b { color:var(--ink); font-size:16px; font-weight:600; }
.fw-empty span { color:var(--text-regular); font-size:14px; }
.so-page svg.fw-calm { width:120px; height:96px; margin-bottom:4px; overflow:visible; stroke-width:1.5; }
.fw-calm .fw-calm-shadow { fill:#eef3f6; stroke:none; animation:fw-shadow 3.4s ease-in-out infinite; transform-origin:60px 87px; }
.fw-calm .fw-calm-pin { fill:url(#fw-calm-g); stroke:#8ccbe6; }
.fw-calm .fw-calm-tick { stroke:var(--blue); stroke-width:3.2; stroke-dasharray:1; stroke-dashoffset:1; animation:fw-tick .7s .2s cubic-bezier(.4,0,.2,1) forwards; }
.fw-calm .fw-calm-bob { animation:fw-bob 3.4s ease-in-out infinite; }
.fw-calm .fw-calm-dot { fill:var(--accent); stroke:none; opacity:.75; animation:fw-twinkle 2.6s ease-in-out infinite; }
.fw-calm .fw-calm-dot.d2 { fill:#9fd3ea; animation-delay:1.1s; }
@keyframes fw-tick { to { stroke-dashoffset:0; } }
@keyframes fw-bob { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-4px); } }
@keyframes fw-shadow { 0%, 100% { transform:scaleX(1); opacity:1; } 50% { transform:scaleX(.86); opacity:.7; } }
@keyframes fw-twinkle { 0%, 100% { opacity:.25; } 50% { opacity:.85; } }

/* 底下两张：顺路新店、店名待核对。一行一家，和销售总览底下那两张一个写法。 */
.so-cols.one { grid-template-columns:minmax(0,1fr); }
.fw-rows { margin:0; padding:0; list-style:none; max-height:470px; overflow:auto; }
.fw-rows li { border-top:1px solid #f0f2f5; }
.fw-rows li:first-child { border-top:0; }
.fw-rows a { display:grid; align-items:center; gap:14px; min-height:47px; color:var(--text); font-size:14px; text-decoration:none; font-variant-numeric:tabular-nums; }
.fw-rows b { overflow:hidden; color:var(--ink); font-weight:600; text-overflow:ellipsis; white-space:nowrap; transition:color .12s ease; }
.fw-rows a:hover b, .fw-rows a:focus-visible b { color:var(--blue); }
.fw-rows a:focus-visible { outline:0; }
.fw-rows span, .fw-rows time { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fw-leads a { grid-template-columns:minmax(0,1fr) 74px 84px 16px; }
.fw-leads .fw-n, .fw-unsure time { text-align:right; }
.fw-rows .cd-go { display:inline-flex; color:#b8bcc4; transition:color .12s ease, transform .12s ease; }
.fw-rows .cd-go svg { width:16px; height:16px; }
.fw-rows a:hover .cd-go { color:var(--blue); transform:translateX(2px); }
.fw-unsure a { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) 64px; }
.so-cols.one .fw-unsure a { grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) 96px; }
.so-cols.one .fw-leads a { grid-template-columns:minmax(0,1fr) 120px 110px 16px; }
/* 最近去过：几点、哪家店、打卡备注、照片（点开看大图） */
.fw-recent a, .fw-recent li > div { display:grid; grid-template-columns:92px minmax(0,1fr) minmax(0,1.3fr) 36px; align-items:center; gap:14px; min-height:52px; color:var(--text); font-size:14px; text-decoration:none; font-variant-numeric:tabular-nums; }
.fw-recent .vr-ph { grid-column:4; }
.so-cols.one .fw-recent a, .so-cols.one .fw-recent li > div { grid-template-columns:120px minmax(0,1fr) minmax(0,2fr) 36px; }

/* 手机：表格换成一家一张，「记拜访」一直露着 */
.fw-m { display:none; margin:0; padding:0; list-style:none; }
.fw-m li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:14px; border-top:1px solid #f0f2f5; }
.fw-m li > a:first-child { display:grid; gap:5px; min-width:0; color:var(--text); text-decoration:none; }
.fw-m b { color:var(--ink); font-size:15.5px; font-weight:600; }
.fw-m-area { color:var(--text); font-size:14px; }
.fw-m .so-pm-facts { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:14px; }
.fw-m .so-pm-facts i { font-style:normal; }
.fw-m-log { display:inline-flex; align-items:center; height:34px; padding:0 14px; border:1px solid #dfe1e6; border-radius:9px; color:var(--blue); background:#fff; font-size:14px; text-decoration:none; white-space:nowrap; }

/* 导出：按钮下面浮出文件 */
.fw-pop { position:absolute; z-index:30; top:calc(100% + 10px); right:0; width:340px; padding:12px 14px 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 .18s ease, transform .18s ease; }
.fw-pop.on { opacity:1; transform:none; }
.fw-pop header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.fw-pop header > div { display:grid; gap:2px; }
.fw-pop header b { color:var(--ink); font-size:15px; font-weight:600; }
.fw-pop header span { color:var(--text); font-size:13.5px; }
.fw-pop-x { width:28px; height:28px; display:grid; place-items:center; border:0; border-radius:8px; color:var(--text-regular); background:transparent; cursor:pointer; }
.fw-pop-x:hover { color:var(--ink); background:#f3f4f6; }
.fw-pop-x svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.fw-pop .file-card { margin:0; }

/* 记拜访 */
.fw-log-page { display:grid; gap:16px; max-width:1000px; }
.fw-log-page .crm-head { min-height:0; margin-bottom:2px; align-items:center; }
.fw-log-page .crm-actions { padding-top:0; }
.fw-log-page .cd-btn { height:38px; padding:0 18px; font-size:14px; }
.fw-form { margin:0; padding:26px 28px 28px; }
.fw-report { display:grid; gap:20px; }
.fw-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.fw-field, .fw-draft-fields label { display:grid; gap:8px; min-width:0; color:var(--ink); font-size:14.5px; font-weight:500; }
.fw-field > span { color:var(--ink); }
.fw-report input, .fw-report textarea, .fw-report select:not(.xs-native) { 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; transition:border-color .14s ease, box-shadow .14s ease; }
.fw-report textarea { height:auto; min-height:128px; padding:10px 12px; line-height:1.65; resize:vertical; }
.fw-report input:focus, .fw-report textarea:focus { outline:0; border-color:var(--blue); box-shadow:0 0 0 3px rgb(18 116 165 / 12%); }
.fw-report input::placeholder, .fw-report textarea::placeholder { color:#9a9ca3; }
.fw-report .xs-trigger { height:40px; border-radius:10px; font-size:14.5px; font-weight:400; }
.fw-report output { color:var(--text); font-weight:400; }
.fw-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.fw-actions .cd-btn { height:38px; padding:0 18px; font-size:14px; }
.fw-actions .cd-btn.rec { border-color:#f1c27d; color:var(--accent-deep); background:var(--accent-soft); }
.fw-status { color:var(--text); font-size:14px; }
.fw-status:empty { display:none; }
.fw-wait { margin:0; color:var(--text); font-size:14px; }
.fw-draft { display:grid; gap:18px; padding-top:22px; border-top:1px solid #eef0f3; animation:so-rise .32s cubic-bezier(.2,.8,.2,1) both; }
.fw-draft h3, .fw-done h3 { margin:0; color:var(--ink); font-size:17px; font-weight:600; }
.fw-more { border:1px solid #eef0f3; border-radius:12px; padding:0 16px; }
.fw-more summary { padding:12px 0; color:var(--blue); font-size:14.5px; font-weight:500; cursor:pointer; }
.fw-more[open] summary { margin-bottom:4px; }
.fw-more[open] .fw-fields { padding-bottom:16px; }
.fw-done { display:flex; align-items:flex-start; gap:16px; animation:so-rise .32s cubic-bezier(.2,.8,.2,1) both; }
.fw-done > div { display:grid; gap:8px; }
.fw-done p { margin:0; color:var(--text); font-size:14.5px; }
.fw-done .fw-next { color:var(--ink); }
.fw-done .fw-actions { margin-top:8px; }
.fw-done-mark { flex:none; width:44px; height:44px; display:grid; place-items:center; border-radius:13px; color:#fff; background:linear-gradient(150deg,#2a9bd0,var(--blue)); box-shadow:0 8px 18px -8px rgb(18 116 165 / 60%); }
.fw-done-mark svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }

@media (prefers-reduced-motion: reduce) { .fw-calm *, .fw-pop, .fw-log, .fw-draft, .fw-done { animation:none !important; transition:none !important; } .fw-calm .fw-calm-tick { stroke-dashoffset:0; } }
@media (max-width:1439px) {
  .fw-strip .so-stat { padding:22px 20px; }
  .workpage .ftable.cd-table.fw-people th:first-child, .workpage .ftable.cd-table.fw-people td:first-child,
  .workpage .ftable.cd-table.fw-stops th:first-child, .workpage .ftable.cd-table.fw-stops td:first-child { padding-left:22px; }
}
@media (max-width:1100px) {
  .fw-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fw-strip .so-stat:nth-child(odd of .so-stat) { box-shadow:none; }
  .fw-strip .fw-pick.on:nth-child(odd of .so-stat) { box-shadow:inset 0 -3px 0 var(--blue); }
  .fw-strip .so-stat:nth-child(n+3 of .so-stat) { border-top:1px solid #eef0f3; }
}
@media (max-width:1000px) and (min-width:761px) { .workpage.cd-page .ftable.cd-table.fw-people, .workpage.cd-page .ftable.cd-table.fw-stops { display:block; overflow:auto; } }
@media (max-width:760px) {
  .fw-page .crm-actions { width:100%; justify-content:space-between; padding-top:4px; }
  .fw-export { height:36px; padding:0 12px; font-size:13.5px; }
  .fw-strip .so-stat { padding:16px 14px; }
  .fw-m { display:block; }
  .fw-only { gap:8px; font-size:13.5px; }
  .fw-pop { position:fixed; top:auto; right:12px; bottom:12px; left:12px; width:auto; }
  .fw-leads a { grid-template-columns:minmax(0,1fr) 84px 16px; } .fw-leads a > span:nth-of-type(1) { display:none; }
  .fw-unsure a, .so-cols.one .fw-unsure a { grid-template-columns:minmax(0,1fr) 64px; row-gap:2px; padding:8px 0; } .fw-unsure a > span { grid-column:1 / -1; grid-row:2; font-size:13.5px; }
  .fw-recent a, .fw-recent li > div, .so-cols.one .fw-recent a, .so-cols.one .fw-recent li > div { grid-template-columns:minmax(0,1fr) 36px; row-gap:2px; padding:8px 0; }
  .fw-recent time { grid-column:1; grid-row:1; } .fw-recent b { grid-column:1; grid-row:2; } .fw-recent a > span, .fw-recent li > div > span { grid-column:1 / -1; grid-row:3; font-size:13.5px; } .fw-recent .vr-ph { grid-column:2; grid-row:1 / span 2; }
  .fw-note { margin:0 14px 12px; }
  .so-entries .so-stat p b.fw-when { font-size:18px; line-height:34px; }
  .fw-form { padding:18px 16px 20px; }
  .fw-fields { grid-template-columns:minmax(0,1fr); }
}

/* ---------- 我的拜访第二版（2026-12-03 负责人：「太杂乱，不方便看……简约，大方、美观、便于查看和交互」）----------
 * 一位销售：上面一排拜访情况；「接下来去哪」卡片头上四个页签（全部、还欠账、该再跑一趟、很久没去，右边写几家），点一下只看这一类；
 * 「为什么去」一格里几样依据并排（欠款、多少天没拿货、多少天没人去），停上去看细的；认不准的店名收在最下面，点开才看。 */
.fw-next > header { flex-wrap: wrap; row-gap: 10px; }
.fw-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: #f3f5f8; }
.fw-tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; color: var(--text); background: transparent; font: inherit; font-size: 14px; cursor: pointer; transition: background .14s ease, color .14s ease, box-shadow .14s ease; }
.fw-tab b { min-width: 14px; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: left; }
.fw-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.fw-tab:focus-visible { outline: 2px solid var(--blue-line); outline-offset: 1px; }
.fw-tab.on { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(20, 21, 28, .1); font-weight: 600; }
.fw-tab.on b { color: var(--blue); }
.fw-pick.fw-tab.on { background: #fff; box-shadow: 0 1px 3px rgba(20, 21, 28, .1); }
.fw-pick.fw-tab:hover { background: rgba(255, 255, 255, .6); }
.fw-stops col.fw-c-shop { width: 28%; }
.fw-stops col.fw-c-area { width: 11%; }
.fw-stops col.fw-c-why { width: auto; }
.workpage .ftable.cd-table.fw-stops td.fw-why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-r { display: inline-block; color: var(--ink); font-size: 14px; cursor: default; transition: color .12s ease; }
.fw-r + .fw-r { margin-left: 12px; padding-left: 12px; border-left: 1px solid #e3e6eb; }
.fw-r.debt { font-weight: 600; }
.fw-r:hover { color: var(--blue); }
.workpage .ftable.cd-table.fw-stops td.fw-last { color: var(--text); }
.fw-unsure-box > summary { display: flex; align-items: baseline; gap: 14px; padding: 18px 24px; list-style: none; cursor: pointer; }
.fw-unsure-box > summary::-webkit-details-marker { display: none; }
.fw-unsure-box > summary h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.fw-unsure-box > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border: solid var(--text-regular); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translateY(-3px); transition: transform .18s ease; }
.fw-unsure-box[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.fw-sum-hint { color: var(--text-regular); font-size: 13.5px; }
.fw-unsure-why { margin: 0 24px 6px; color: var(--text); font-size: 13.5px; line-height: 1.7; }
.fw-unsure-box .fw-rows { padding-bottom: 10px; }
@media (max-width: 760px) {
  .fw-tabs { width: 100%; overflow-x: auto; }
  .fw-tab { flex: none; padding: 0 12px; }
  .fw-sum-hint { display: none; }
}

/* 2026-12-03 下午：页签按客户状态标准（约好的、待补货、停拿、待回访、长账龄），右边「客户状态标准」「问助手」 */
.fw-next-acts { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.fw-std { color: var(--text-regular); font-size: 14px; text-decoration: none; transition: color .12s ease; }
.fw-std:hover { color: var(--blue); }
.fw-next-acts .cd-btn { height: 34px; }
.fw-skipped { margin: 0 24px 4px; }
.fw-r.debt { font-weight: 600; }
@media (max-width: 760px) { .fw-next-acts { margin-left: 0; } }
