/* ============================================================
 * 批 V19（2026-11-18）V19-13b 项目 360「财务」页签（public/js/o360-fin2.js；稿 rv/V19-designs「V19-13b_项目360_财务页签」.f2-* 那一段）
 *   账单期次一张卡在最上面、八个数一行六格放在表头上（≤ 1400 两行三列、手机两列）；没内容的几节合一张卡、一节一行；「更多」收着的一行。
 *   账单表（新表格 .u-tbl，外面一层 .f2-tw 横向滚）：按钮在最后一列靠右，放不下两个按钮上下排；
 *   这张表不是 .tbl，app.css 那段「操作列钉在右边」和 U.stickActs 都不找它——不钉、不出右边那道阴影（审核方 #434 ★5）。
 *   只管 #od-tab-body 里的这几块；手机上「一期一张卡」照 V19-7 的 mcards（core-v19-mobile.css）。
 * ============================================================ */
.f2-card { border: 1px solid var(--u-line); border-radius: 12px; background: var(--u-surface); margin-bottom: 16px; }   /* 不 overflow: hidden——标题行「更多」和表里「⋯」的菜单要能伸出卡片 */
.f2-hd { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px; box-sizing: border-box; flex-wrap: wrap; }
.f2-hd h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--u-ink); }
.f2-hd .c { font-size: 12px; color: var(--u-ink-3); font-variant-numeric: tabular-nums; margin-right: 4px; }
.f2-hd .r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f2-hd .f2-link { color: var(--u-brand); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; white-space: nowrap; }
.f2-more-menu:not(:has(.u-more-menu button)) { display: none; }   /* 菜单里一项都没有（导出也没权限）就不出「更多」 */
.f2-more-menu .u-more-menu > span:empty { display: none; }
.f2-more-menu .u-more-menu > span > .k-exp { display: flex; width: 100%; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: var(--u-radius-sm); background: none; font: inherit; font-size: 14px; line-height: 22px; color: var(--u-ink); cursor: pointer; height: auto; box-shadow: none; }
.f2-more-menu .u-more-menu > span > .k-exp:hover { background: var(--u-neutral-soft); }
.f2-more-menu .u-more-menu > span > .k-exp > span[aria-hidden] { display: none; }   /* 导出按钮自带的 ⤓ 字符在菜单里不出 */
/* 六格 */
.f2-sum { display: grid; grid-template-columns: .9fr 1.1fr 1.2fr .9fr 1.35fr 1.55fr; border-top: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); background: #fbfcfe; }
.f2-sum > .f2-c { padding: 12px 16px; border-right: 1px solid var(--u-line); min-width: 0; }
.f2-sum > .f2-c:last-child { border-right: 0; }
.f2-sum .f2-c.go, .f2-sum .f2-adv[data-go] { cursor: pointer; }
.f2-sum .k { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.f2-sum .v { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--u-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.f2-sum .v small { font-size: 13px; font-weight: 500; }
.f2-sum .v.brand { color: var(--u-brand); }
.f2-sum .v.ok { font-size: 14px; color: var(--u-success); }
.f2-sum .v.none { color: var(--u-ink-3); font-weight: 400; }
.f2-sum .v.bad { color: var(--u-danger); }
.f2-sum .s { font-size: 12px; line-height: 18px; color: var(--u-ink-3); overflow-wrap: anywhere; }
.f2-sum .s .bad, .f2-sum .s .red { color: var(--u-danger); }
.f2-sum .s .warn { color: var(--u-warning); }
.f2-sum .bar { height: 4px; border-radius: 99px; background: var(--u-neutral-soft); margin: 4px 0 2px; overflow: hidden; }
.f2-sum .bar i { display: block; height: 100%; background: var(--u-success); }
/* 账单表 */
#o3-bill .f2-tw { overflow-x: auto; }
#o3-bill .o3-grp-sum { float: right; margin-left: 16px; }
#o3-bill .o3-cond { color: var(--u-ink-2); }   /* 分组合计靠右（稿）；手机上 core-v19-mobile.css 照旧整行 */
#o3-bill .o3-bills th { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--u-ink-3); }
#o3-bill .o3-bills > tbody > tr[data-bill] > td { padding-top: 12px; padding-bottom: 12px; }
#o3-bill .o3-bills > tbody > tr.o3-grp > td { background: var(--u-ground); }
#o3-bill .o3-bills td.o3-acts { text-align: right; white-space: normal; }
#o3-bill .o3-bills td.o3-acts .o3-claim { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#o3-bill .o3-bills td.o3-acts .u-row-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 240px; }   /* 放不下两个按钮上下排（俄文 1366） */
#o3-bill .o3-bills td.o3-acts .u-btn { white-space: nowrap; }
#o3-bill .f2-empty { padding: 16px; }
#o3-bill .f2-empty-a { margin-top: 8px; }
/* 没内容的几节：一节一行 */
.f2-line { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 56px; padding: 8px 16px; box-sizing: border-box; border-bottom: 1px solid var(--u-line); }
.f2-line:last-child { border-bottom: 0; }
.f2-line h4 { margin: 0; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--u-ink); }
.f2-line .t { font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.f2-line .t span { color: var(--u-ink-3); }
.f2-line .a { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1400px) {
  .f2-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f2-sum > .f2-c:nth-child(3) { border-right: 0; }
  .f2-sum > .f2-c:nth-child(-n+3) { border-bottom: 1px solid var(--u-line); }
}
@media (max-width: 600px) {
  .f2-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f2-sum > .f2-c { border-right: 0; border-bottom: 1px solid var(--u-line); }
  .f2-sum > .f2-c:nth-child(odd) { border-right: 1px solid var(--u-line); }
  .f2-sum > .f2-c:nth-last-child(-n+2) { border-bottom: 0; }
  .f2-hd .r { margin-left: 0; flex: 1 1 100%; }
  #o3-bill .o3-grp-sum { float: none; margin-left: 0; }
  .f2-line { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .f2-line h4 { grid-column: 1; }
  .f2-line .t { grid-column: 1 / -1; grid-row: 2; }
  .f2-line .a { grid-column: 2; grid-row: 1; }
}
/* 「更多」收着的一行（o360-layout.js moreHtml：合同与原件 · 成本 · 退款 / 折扣 / 坏账）：实线细边圆角 12、高 44；箭头是 U.ic，展开转过来 */
.o3v-more { margin-top: 0; }
.o3v-more-bar { min-height: 44px; padding: 0 16px; border: 1px solid var(--u-line); border-radius: 12px; background: var(--u-surface); font-size: 14px; color: var(--u-ink); }
.o3v-more-bar > b { font-weight: 600; }
.o3v-more-bar .o3v-more-cnt { font-size: 13px; color: var(--u-ink-3); }
.o3v-more-bar .o3v-caret { display: inline-flex; color: var(--u-ink-3); }
.o3v-more.open .o3v-caret .u-ic { transform: rotate(180deg); }
/* 收费计划组折起来的「还有 N 期未触发」：前面的 ▸ / ▾ 字符换成一个画出来的小箭头（文字是点开时 textContent 换的，里面不放图标） */
#o3-bill .o3-bp-fold-a { display: inline-flex; align-items: center; gap: 8px; color: var(--u-brand); }
#o3-bill .o3-bp-fold-a::before, #o3-bill .o3-bp-fold-a[aria-expanded="true"]::before { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
#o3-bill .o3-bp-fold-a[aria-expanded="true"]::before { transform: rotate(45deg); }
