/* 服务费政策（台账后台「账务 › 配置 › 服务费政策」）。按《设计总纲》：字阶 13/16/20/24、间距 4 的倍数、圆角 8/12/16、只有浮层（提示条）带影、
   一个强调色（品牌蓝）、状态只用一种线索、尊重「减少动画」。图标：Lucide（ISC 许可，© Lucide Icons and Contributors），线宽 1.5。所有规则以 .fp 开头、且都带 html.sh-on（只在新外壳里出现）。 */
html.sh-on .fp{--surface:#fff;--line:#e4e7ec;--ink:#101828;--ink2:#475467;--blue:#0265c2;--blue-soft:#e8f1fb;--ok:#067647;--ok-bg:#ecfdf3;--warn:#b54708;--warn-bg:#fffaeb;--bad:#b42318;--bad-bg:#fef3f2;
  --ease:cubic-bezier(.2,0,0,1);max-width:960px;margin:0 auto;padding:24px;font-size:16px;line-height:24px;color:var(--ink)}
html.sh-on .fp *{box-sizing:border-box}
html.sh-on .fp :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
html.sh-on .fp .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html.sh-on .fp-ico{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* 结论带：一句话 + 三块的数（点哪个看哪个） */
html.sh-on .fp-head{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-end;justify-content:space-between;margin-bottom:24px}
html.sh-on .fp-head h1{margin:0;font-size:24px;line-height:32px;font-weight:600}
html.sh-on .fp-sentence{margin:4px 0 0;color:var(--ink2)}
html.sh-on .fp-sentence b{color:var(--ink);font-weight:600}
@media (max-width:900px){ html.sh-on .fp-head h1{font-size:20px;line-height:28px} }
html.sh-on .fp-stats{display:flex;gap:8px;flex-wrap:wrap}
html.sh-on .fp-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-end;margin-bottom:16px}
html.sh-on .fp-tip{margin:0 0 8px;font-size:13px;line-height:20px;color:var(--ink2)}

html.sh-on .fp-list{display:flex;flex-direction:column;gap:8px}
html.sh-on .fp-row{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;transition:border-color .2s var(--ease)}
html.sh-on .fp-row:hover{border-color:#c9d1dc}
html.sh-on .fp-line{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:16px}
/* 勾选框：点击区 32（手机 44）整块可点，画出来的框 20×20；真 input 透明铺满点击区（键盘/读屏照常） */
html.sh-on .fp-ck{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none}
html.sh-on .fp-ck input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
html.sh-on .fp-ck input:disabled{cursor:not-allowed}
html.sh-on .fp-box{pointer-events:none;position:relative;width:20px;height:20px;border:1.5px solid #98a2b3;border-radius:8px;background:var(--surface);transition:background-color .15s var(--ease),border-color .15s var(--ease)}
html.sh-on .fp-ck input:checked+.fp-box{background:var(--blue);border-color:var(--blue)}
html.sh-on .fp-ck input:checked+.fp-box::after{content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
html.sh-on .fp-ck input:focus-visible+.fp-box{outline:2px solid var(--blue);outline-offset:2px}
html.sh-on .fp-ck input:disabled+.fp-box{opacity:.5}
html.sh-on .fp input,html.sh-on .fp select,html.sh-on .fp textarea,html.sh-on .fp button{margin:0}
html.sh-on .fp-main{min-width:0;flex:1}
html.sh-on .fp-main .t{display:block;font-weight:600;overflow-wrap:anywhere}
html.sh-on .fp-main .s{margin-top:4px;color:var(--ink2);font-size:13px;line-height:20px}
html.sh-on .fp-main .c{margin-top:4px;font-size:13px;line-height:20px;color:var(--ink2)}
html.sh-on .fp-acts{display:flex;gap:8px;flex:none;flex-wrap:wrap;justify-content:flex-end}
html.sh-on .fp-chip{display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;font-size:13px;line-height:20px;font-weight:600;background:#eef1f5;color:var(--ink2);white-space:nowrap}
html.sh-on .fp-chip.ok{background:var(--ok-bg);color:var(--ok)}
html.sh-on .fp-chip.warn,html.sh-on .fp-chip.cand{background:var(--warn-bg);color:var(--warn)}
html.sh-on .fp-ev{margin:8px 0 0}
html.sh-on .fp-ev blockquote{margin:0 0 8px;padding:8px 12px;border-left:2px solid var(--line);background:#f7f8fa;border-radius:0 8px 8px 0;font-size:13px;line-height:20px;color:var(--ink)}
html.sh-on .fp-ev cite{display:block;margin-top:4px;font-style:normal;color:var(--ink2)}

/* 批量条：勾选后出现在列表底部（贴底） */
html.sh-on .fp-batch{position:sticky;bottom:8px;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:12px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
html.sh-on .fp-batch select,html.sh-on .fp-batch input[type=text]{height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit;color:var(--ink)}
html.sh-on .fp-batch input[type=text]{flex:1;min-width:200px}
html.sh-on .fp-batch .err{flex:0 0 100%;min-height:0}

/* 操作空间：点按钮后在这一行/这块下面就地展开，不弹窗 */
html.sh-on .fp-space{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s var(--ease)}
html.sh-on .fp-space.on{grid-template-rows:1fr}
html.sh-on .fp-space>.fp-form{min-height:0;overflow:hidden;margin:0 16px;padding:0;border-top:1px solid transparent}
html.sh-on .fp-space.on>.fp-form{padding:16px 0;border-top-color:var(--line)}
html.sh-on .fp-space-s{margin-top:12px;border:1px solid transparent;border-radius:12px;background:var(--surface)}
html.sh-on .fp-space-s.on{border-color:var(--line)}
html.sh-on .fp-form label{display:block;margin:12px 0 8px;font-size:13px;line-height:20px;font-weight:600;color:var(--ink2)}
html.sh-on .fp-form label:first-child{margin-top:0}
html.sh-on .fp-form label small{display:block;font-weight:400}
html.sh-on .fp-form input,html.sh-on .fp-form select,html.sh-on .fp-form textarea{width:100%;max-width:360px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit;color:var(--ink)}
html.sh-on .fp-form textarea{max-width:none;min-height:64px;resize:vertical}
html.sh-on .fp-ctl{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end}
html.sh-on .fp-ctl>span{display:block;min-width:0}
html.sh-on .fp-ctl input{max-width:160px}
html.sh-on .fp-form .err,html.sh-on .fp .err{min-height:20px;margin:4px 0 8px;font-size:13px;line-height:20px;color:var(--bad)}
html.sh-on .fp-form .row{display:flex;justify-content:flex-end;gap:8px}

html.sh-on .fp-btn{height:40px;padding:0 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit;font-weight:600;color:var(--ink);cursor:pointer;white-space:nowrap;transition:background-color .15s var(--ease),border-color .15s var(--ease)}
html.sh-on .fp-btn:hover{background:#f4f6f9}
html.sh-on .fp-btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
html.sh-on .fp-btn.primary:hover{background:#014f9b;border-color:#014f9b}
html.sh-on .fp-btn.blue{border-color:var(--blue-soft);background:var(--blue-soft);color:var(--blue)}
html.sh-on .fp-btn.blue:hover{background:#d6e7f8;border-color:#d6e7f8}
html.sh-on .fp-btn:disabled{opacity:.5;cursor:not-allowed}
html.sh-on .fp-link{padding:0;border:0;background:none;font:inherit;font-size:13px;line-height:20px;font-weight:600;color:var(--blue);cursor:pointer}
html.sh-on .fp-link:hover{text-decoration:underline}
html.sh-on .fp-stat{min-width:96px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font:inherit;text-align:left;color:var(--ink);cursor:pointer}
html.sh-on .fp-stat .n{display:block;font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums}
html.sh-on .fp-stat .l{display:block;font-size:13px;line-height:20px;color:var(--ink2)}
html.sh-on .fp-stat[aria-pressed="true"]{background:var(--blue-soft);border-color:var(--blue-soft)}
html.sh-on .fp-stat[aria-pressed="true"] .n{color:var(--blue)}

/* 费率方案 */
html.sh-on .fp-schemes{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
html.sh-on .fp-scheme{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:200px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font:inherit;text-align:left;color:var(--ink);cursor:pointer}
html.sh-on .fp-scheme .t{font-weight:600}
html.sh-on .fp-scheme .s{font-size:13px;line-height:20px;color:var(--ink2)}
html.sh-on .fp-scheme[aria-pressed="true"]{background:var(--blue-soft);border-color:var(--blue-soft)}
html.sh-on .fp-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
html.sh-on #extApp .fp-card h3{margin:0 0 12px;font-size:20px;line-height:28px;font-weight:600}
html.sh-on .fp-table{width:100%;border-collapse:collapse;margin-bottom:12px;font-size:16px;line-height:24px}
html.sh-on .fp-table th{padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;line-height:20px;font-weight:600;color:var(--ink2);text-align:left}
html.sh-on .fp-table td{padding:8px 12px;border-bottom:1px solid #f0f2f5}
html.sh-on .fp-table .n{text-align:right;font-variant-numeric:tabular-nums}

/* 改动记录（折叠区，默认收起） */
html.sh-on .fp-fold{margin-top:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
html.sh-on .fp-fold-h{display:flex;width:100%;justify-content:space-between;align-items:center;padding:12px 16px;border:0;background:none;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
html.sh-on .fp-fold-h span{font-size:13px;line-height:20px;font-weight:400;color:var(--ink2)}
html.sh-on .fp-fold-b{padding:0 16px 16px}
html.sh-on .fp-log{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:20px}
html.sh-on .fp-log .when{color:var(--ink2);margin-right:4px}

/* 空态 / 加载态 / 出错态 / 无权限态 */
html.sh-on .fp-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:48px 24px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--ink2)}
html.sh-on .fp-empty .fp-ico{width:40px;height:40px;stroke-width:1.25}
html.sh-on .fp-empty b{color:var(--ink);font-size:20px;line-height:28px;font-weight:600}
html.sh-on .fp-empty span{max-width:480px}
html.sh-on .fp-skel{display:flex;flex-direction:column;gap:8px}
html.sh-on .fp-skel i{display:block;height:72px;border-radius:12px;background:#eceff3;animation:fp-pulse 1.4s ease-in-out infinite}
@keyframes fp-pulse{50%{opacity:.5}}

html.sh-on .fp-toast{position:fixed;left:50%;bottom:24px;z-index:60;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 16px;border-radius:12px;background:var(--ink);color:#fff;box-shadow:0 8px 24px rgba(16,24,40,.16);animation:fp-toast .25s var(--ease)}
@keyframes fp-toast{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

@media (max-width:760px){
  html.sh-on .fp{padding:16px}
  html.sh-on .fp-line{flex-wrap:wrap}
  html.sh-on .fp-acts{width:100%;justify-content:stretch}
  html.sh-on .fp-acts .fp-btn{flex:1}
  html.sh-on .fp-btn,html.sh-on .fp-stat,html.sh-on .fp-link,html.sh-on .fp-fold-h,html.sh-on .fp-scheme{min-height:44px}
  html.sh-on .fp-link{display:inline-flex;align-items:center}
  html.sh-on .fp-ck{width:44px;height:44px}
  html.sh-on .fp-stats{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  html.sh-on .fp-stat{min-width:0}
  html.sh-on .fp-form input,html.sh-on .fp-form select{max-width:none}
  html.sh-on .fp-ctl input{max-width:none}
}
@media (prefers-reduced-motion:reduce){html.sh-on .fp *,html.sh-on .fp-toast{animation:none!important;transition:none!important}}

/* 壳（skin.css）给 #extApp 里所有 button 统一加了 40 高 / 16 内边距 / 1px 线 / 白底：统计卡、方案卡、链接按钮、折叠头不能吃这套（同 data_gaps.css 的做法）。 */
html.sh-on #extApp .fp button.fp-stat{height:auto;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:16px;font-weight:400;line-height:24px}
html.sh-on #extApp .fp button.fp-stat:hover:not(:disabled){border-color:#c9d1dc;background:var(--surface)}
html.sh-on #extApp .fp button.fp-stat[aria-pressed="true"]{background:var(--blue-soft);border-color:var(--blue-soft)}
html.sh-on #extApp .fp button.fp-scheme{height:auto;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-weight:400}
html.sh-on #extApp .fp button.fp-scheme:hover:not(:disabled){background:var(--surface);border-color:#c9d1dc}
html.sh-on #extApp .fp button.fp-scheme[aria-pressed="true"]{background:var(--blue-soft);border-color:var(--blue-soft)}
html.sh-on #extApp .fp button.fp-link{height:auto;padding:0;border:0;background:none;color:var(--blue);font-size:13px;line-height:20px;font-weight:600}
html.sh-on #extApp .fp button.fp-link:hover:not(:disabled){background:none;border-color:transparent}
html.sh-on #extApp .fp button.fp-fold-h{height:auto;padding:12px 16px;border:0;background:none;color:var(--ink);font-size:16px;font-weight:600}
html.sh-on #extApp .fp button.fp-fold-h:hover:not(:disabled){background:none}
html.sh-on #extApp .fp button.fp-btn.blue{background:#fff;border-color:#b6cdea;color:var(--blue)}
html.sh-on #extApp .fp button.fp-btn.blue:hover:not(:disabled){background:var(--blue-soft);border-color:#b6cdea}
@media (max-width:760px){html.sh-on #extApp .fp button.fp-link{min-height:44px;min-width:44px;justify-content:center}html.sh-on #extApp .fp button.fp-stat{padding:8px 12px}}
@media (min-width:901px){ html.sh-on #extApp .fp{margin-left:0;padding-left:0;padding-right:0} }
