/* ============================================================
 * 批 V17 U5 财务页面（改法清单 #265；设计稿 rv/V17-designs「U5_财务流程」）：财务这几页自己的样式（public/js/pages-finu5.js）
 *   零件（数字条 / 筛选条 / 表格 / 标签 / 抽屉 / 字段区 …）的样式在 core-v17-ui.css，这里只放 U0 没有的：
 *   顶上「四个入口 + 页签」那张卡（只有财务用的一个零件）、账单与收款 / 备用金的列表、确认到账抽屉里的几块。
 *   类名一律 .f5- 开头，颜色只用 --u- 变量；每条规则都以 .f5- 的类（或「零件类 + .f5- 类」）起头，碰不到别的页。
 *   index.html 里这个文件排在 core-v17-u1.css、core-v17-ui.css 前面（用例 5507 ⑤、5538 ⑧ 认「U1 样式、公共零件样式、外壳样式、</head>」四行连着）：
 *   所以凡是和零件类名写在同一个元素上、又要盖掉零件同一条属性的规则，选择器都带上零件的类名（.u-note.f5-legacy、.u-ava.f5-ava、.u-link.f5-cl …），靠多一级类名赢，不靠先后
 * ============================================================ */

/* ---------- 顶上四个入口：一张卡，上排四格、下排是当前入口的页签；翻开的那一格和下面连成一片 ---------- */
.f5-entry { display: flex; flex-direction: column; margin-bottom: var(--u-space-4); background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); overflow: hidden; font-family: var(--u-font); font-size: var(--u-fs-body); line-height: var(--u-lh-body); color: var(--u-ink); }
.f5-groups { display: flex; }
.f5-g { display: flex; align-items: center; gap: var(--u-space-3); padding: 14px var(--u-space-4); box-sizing: border-box; min-width: 0; flex: 1 1 0; margin: 0; border: 0; border-right: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); border-radius: 0; background: var(--u-surface-head); color: var(--u-ink); font-family: inherit; text-align: left; cursor: pointer; }
.f5-g:last-child { border-right: 0; }
.f5-g.slim { flex: 0 0 auto; }
.f5-g:hover { background: var(--u-ground); }
.f5-g.on, .f5-g.on:hover { background: var(--u-surface); box-shadow: inset 0 2px 0 var(--u-brand); border-bottom-color: transparent; }
.f5-g:focus-visible { outline: 2px solid var(--u-brand); outline-offset: -2px; }
.f5-g-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--u-surface); color: var(--u-ink-2); box-shadow: inset 0 0 0 1px var(--u-line); }
.f5-g.on .f5-g-ic { background: var(--u-brand); color: var(--u-surface); box-shadow: none; }
.f5-g-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.f5-g-nm { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--u-ink); white-space: nowrap; }
.f5-g-st { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.f5-g-st.danger { color: var(--u-danger); }
.f5-g-st.warning { color: var(--u-warning); }
.f5-g-n { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.f5-g-v { font-size: 22px; line-height: 26px; font-weight: 600; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.f5-g.on .f5-g-v { color: var(--u-brand); }
.f5-g-k { font-size: 11px; line-height: 14px; color: var(--u-ink-3); white-space: nowrap; }
.f5-tabs { padding: 0 20px; }
.f5-row { display: flex; flex-wrap: wrap; gap: 0 28px; }
.f5-row[hidden] { display: none; }
.f5-tab { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 11px 2px; border: 0; border-radius: 0; background: none; font-family: inherit; font-size: 14px; line-height: 22px; color: var(--u-ink-2); white-space: nowrap; cursor: pointer; }
.f5-tab:hover { color: var(--u-ink); }
.f5-tab.active { color: var(--u-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--u-brand); }
.f5-tab:focus-visible { outline: 2px solid var(--u-brand); outline-offset: -2px; }
.f5-tab-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: var(--u-radius-pill); background: var(--u-brand-soft); color: var(--u-brand); font-size: 11px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.u-ic.f5-b17 { stroke-width: 1.7; }

/* ---------- 列表页（账单与收款、备用金）：数字条、筛选条、表格 ---------- */
.f5-page { min-width: 0; }
/* 数字条里一格放几行：金额按币种分行，不相加；两种以上币种时字小一档 */
.f5-ccy { display: block; white-space: nowrap; }
.f5-ccy.multi { font-size: var(--u-fs-title); line-height: var(--u-lh-title); }
.f5-zero { color: var(--u-ink-3); }
.f5-list { min-width: 0; }
.f5-list .u-toolbar { border-bottom: 1px solid var(--u-line); }
.f5-exp:empty { display: none; }
.f5-tblwrap { min-width: 0; }
.f5-tbl td .u-cell .s { flex-wrap: wrap; }
.f5-col-act { width: 168px; }
.f5-col-go { width: 44px; }
.f5-act { text-align: right; }
.u-tbl.f5-tbl > tbody > tr > td.f5-act { padding: 10px 12px 10px 0; }
.f5-acts { display: flex; align-items: center; justify-content: flex-end; gap: var(--u-space-1); }
.f5-waitfor { font-size: 12px; line-height: 18px; color: var(--u-ink-3); text-align: right; overflow-wrap: anywhere; }
.f5-nw { white-space: nowrap; }
.f5-wrap { min-width: 0; overflow-wrap: anywhere; }
.f5-cl { font-weight: 600; color: var(--u-ink); overflow-wrap: anywhere; }
.u-link.f5-cl { color: var(--u-ink); }
.u-link.f5-cl:hover { color: var(--u-brand); }
.f5-dim > td { color: var(--u-ink-3); }
.f5-dim .f5-cl, .f5-dim .u-t-strong { color: var(--u-ink-2); font-weight: 400; }
.f5-foot { padding: 10px var(--u-space-4); border-top: 1px solid var(--u-line); font-size: 13px; line-height: 20px; color: var(--u-ink-2); font-variant-numeric: tabular-nums; }
.u-note.f5-legacy { background: var(--u-ground); }
/* 「全部收款单」子视图：上面一行「← 回到待处理」，下面是原来那张表（老样式） */
.f5-back { display: flex; align-items: center; gap: var(--u-space-3); font-size: 14px; line-height: 22px; }
.f5-back-t { color: var(--u-ink-2); }
/* 备用金：人（头像 + 名字 + 岗位 · 主体）、最早一笔、筛选条里的勾选 */
.f5-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.f5-who > .u-cell { flex: 1 1 auto; }
.u-ava.f5-ava { width: 28px; height: 28px; }
.f5-oldest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-space-1) var(--u-space-2); }
.f5-days { font-size: 12px; line-height: 18px; color: var(--u-ink-3); white-space: nowrap; }
.f5-loans { font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.f5-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--u-ink-2); white-space: nowrap; cursor: pointer; }
.f5-check > input { width: 16px; height: 16px; margin: 0; }
/* 批 V18 V18-5：备用金五张卡能点——选中的格子在零件的下划线之外再铺一层浅品牌色（悬停也保持）；选了卡片时「只看还有余额的」灰掉；本月冲抵 / 退回那一行的小字（超期借款表用现成的 .f5-tbl 样式） */
.f5-adv-stat > .u-stat-i.on, .f5-adv-stat > .u-stat-i.on:hover { background: var(--u-brand-soft); }
.f5-check.off { color: var(--u-ink-3); cursor: not-allowed; }
.f5-check.off > input { cursor: not-allowed; }
.f5-mon { display: block; font-size: 12px; line-height: 18px; color: var(--u-brand); white-space: nowrap; }

/* ---------- 抽屉里的几块（确认到账、登记收款、备用金明细） ---------- */
.f5-dh-cap { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--u-brand); }
.f5-dh-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-space-1) 10px; flex: 1 1 100%; }
.f5-dh-amt { flex: 1 1 100%; font-size: 28px; line-height: 36px; font-weight: 600; color: var(--u-ink); }
.f5-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.f5-sec-hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--u-space-1) var(--u-space-3); }
.f5-sec-hd > h3 { margin: 0; font-size: var(--u-fs-body-strong); line-height: var(--u-lh-body-strong); font-weight: 600; color: var(--u-ink); }
.f5-sec-r { font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.f5-file { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 10px var(--u-space-3); box-sizing: border-box; border: 1px solid var(--u-line); border-radius: var(--u-radius-md); background: var(--u-surface); color: var(--u-ink); font-family: inherit; text-align: left; cursor: pointer; }
.f5-file:hover { background: var(--u-surface-head); }
.f5-file:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; }
.f5-file-ic { display: inline-flex; color: var(--u-ink-3); }
.f5-file-nm { flex: 1; min-width: 0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.f5-file-go { font-size: 13px; font-weight: 500; color: var(--u-brand); white-space: nowrap; }
.f5-ok { display: flex; align-items: flex-start; gap: var(--u-space-2); padding: 10px var(--u-space-3); border-radius: var(--u-radius-md); background: var(--u-success-soft); font-size: 13px; line-height: 20px; color: var(--u-ink); }
.f5-ok > .u-ic { margin-top: 3px; color: var(--u-success); }
.u-note.f5-part { justify-content: flex-start; }
.f5-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-space-3) var(--u-space-4); }
/* 资金账户那一格是 FinBank.accountField 画的（老结构：label + select / input），在这里套上新控件的样子；input 那条照抄老输入框规则的那一串 :not 才压得住 */
.f5-acct { display: flex; flex-direction: column; gap: var(--u-space-1); min-width: 0; }
.f5-acct > label { display: block; margin: 0; font-size: 12px; line-height: 18px; color: var(--u-ink-2); }
.f5-acct > select, .f5-acct > select:hover, .f5-acct > input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.search-ipt), .f5-acct > input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.search-ipt):hover { height: 36px; padding: 0 10px; line-height: 22px; box-shadow: none; border: 1px solid var(--u-control); border-radius: var(--u-radius-md); font-size: 14px; font-family: inherit; color: var(--u-ink); background-color: var(--u-surface); width: 100%; min-width: 0; box-sizing: border-box; }
.f5-acct > select:focus, .f5-acct > input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.search-ipt):focus { outline: 2px solid var(--u-brand); outline-offset: 1px; border-color: var(--u-control); box-shadow: none; }
.f5-hint { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.f5-para { font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
/* 现金：钱是怎么到的（三步） */
.f5-steps { display: flex; flex-direction: column; }
.f5-step { display: flex; gap: var(--u-space-3); }
.f5-step-ic { display: flex; flex-direction: column; align-items: center; }
.f5-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; box-sizing: border-box; border-radius: var(--u-radius-pill); border: 2px solid var(--u-line-dot); }
.f5-dot.done { border: 0; background: var(--u-success-soft); color: var(--u-success); }
.f5-dot.now { border-color: var(--u-brand); }
.f5-step-ln { flex: 1; width: 2px; min-height: 14px; margin: var(--u-space-1) 0; background: var(--u-line); }
.f5-step:last-child .f5-step-ln { display: none; }
.f5-step-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--u-space-3); }
.f5-step:last-child .f5-step-tx { padding-bottom: 0; }
.f5-step-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--u-space-2); }
.f5-step-t { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--u-ink); }
.f5-step-tm { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.f5-step-s { font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
/* 抽屉底栏：上面一行说明，下面一行按钮（左「退回给顾问」，右「取消」「确认到账」） */
.u-drawer > .drawer-ft.f5-ft { flex-wrap: wrap; row-gap: 10px; padding-bottom: var(--u-space-4); }
.f5-ft-note { flex: 0 0 100%; font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.u-drawer > .drawer-ft > .sp.f5-ft-r { display: flex; gap: var(--u-space-2); }
/* 登记收款抽屉：里面是原来那张登记表（老样式），只把外面的留白对齐 */
.f5-reg { min-width: 0; }

@media (max-width: 767px) {
  .f5-groups { flex-wrap: wrap; }
  .f5-g, .f5-g.slim { flex: 1 1 50%; }
  .f5-g:nth-child(2n) { border-right: 0; }
  .f5-tabs { padding: 0 var(--u-space-3); }
  .f5-row { gap: 0 20px; }
  .u-card.f5-list, .u-card.pop.f5-list { overflow-x: auto; }
  .u-tbl.f5-tbl { min-width: 860px; }
  .f5-form { grid-template-columns: minmax(0, 1fr); }
}
