/* IB 客户资金审核 · 页面精修皮肤
   整份以 body[data-layout-page="ib-fund-reviews"] 作用域覆盖 client-fund-reviews.css
   与 ib-fund-reviews.css，link 放在所有样式表最后。
   只调排版尺度与密度，不动结构与配色语义；本页支持深色主题，
   所以这里一律不写死颜色，只改字号 / 字重 / 间距 / 控件高度。 */

/* ---------- 版心与页头 ---------- */

body[data-layout-page="ib-fund-reviews"] .client-fund-review-page {
  padding: clamp(20px, 2.1vw, 30px) clamp(18px, 2.4vw, 38px) 64px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-review-heading {
  gap: 16px;
  margin-bottom: 14px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-review-heading h1 {
  font-size: 23px;
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: -0.01em;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-review-heading > div > p {
  max-width: 640px;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 450;
}

/* ---------- 类型页签 ---------- */

body[data-layout-page="ib-fund-reviews"] .client-fund-review-tabs {
  padding: 4px;
  gap: 3px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-review-tabs button {
  min-width: 96px;
  height: 30px;
  gap: 6px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 650;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-review-tabs button span {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
}

/* ---------- 筛选区 ---------- */

body[data-layout-page="ib-fund-reviews"] .client-fund-filter-panel {
  padding: 12px 14px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-filter-grid {
  gap: 10px 12px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-field {
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-field > span {
  font-size: 11.5px;
  font-weight: 600;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-field input,
body[data-layout-page="ib-fund-reviews"] .client-fund-field select,
body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter .fund-account-range-input-wrap {
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

/* 日期区间不能钉死高度：≤420px 时共享样式会把它从三列压成一列、两个日期框竖排，
   写死 34px 会把第二个框挤出盒子、盖到下面的重置/查询上。让内部输入框定高度即可。 */
body[data-layout-page="ib-fund-reviews"] .client-fund-date-range {
  min-height: 34px;
  padding: 0;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-date-range input {
  height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-date-range i {
  font-size: 11px;
  font-weight: 600;
}

body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter .fund-account-range-input-wrap {
  padding: 0 0 0 10px;
}

body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter .fund-account-range-input-wrap input {
  height: 32px;
  font-size: 13px;
  font-weight: 500;
}

body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter .fund-account-range-toggle {
  width: 30px;
  height: 32px;
}

body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter .fund-account-range-selection-scope {
  height: 19px;
  padding: 0 7px;
  font-size: 10.5px;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter .fund-account-range-option,
body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter .fund-account-range-scope-option {
  font-size: 12.5px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-filter-actions {
  gap: 8px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-button {
  min-width: 76px;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
}

/* ---------- 表格 ---------- */

body[data-layout-page="ib-fund-reviews"] .client-fund-table-card {
  margin: 0 14px 14px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-table {
  font-variant-numeric: tabular-nums;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-table th,
body[data-layout-page="ib-fund-reviews"] .client-fund-table td {
  padding: 8px 12px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-table th {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-table td {
  font-size: 12.5px;
  font-weight: 450;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-account-cell strong,
body[data-layout-page="ib-fund-reviews"] .ib-fund-customer-cell strong,
body[data-layout-page="ib-fund-reviews"] .client-fund-amount {
  font-weight: 650;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-account-cell small,
body[data-layout-page="ib-fund-reviews"] .ib-fund-customer-cell small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 450;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-status {
  min-height: 19px;
  padding: 0 7px;
  font-size: 10.5px;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-view-button {
  font-size: 12.5px;
  font-weight: 650;
}

/* 金额列右对齐：td 认 data-label / .client-fund-amount，
   th 没有标识只能按列序，入金/出金是 9 列（第 6、7 列），内部转账是 8 列且没有手续费（第 5 列），
   列序由控制器写在 body[data-review-type] 上。 */
body[data-layout-page="ib-fund-reviews"] .client-fund-table td.client-fund-amount,
body[data-layout-page="ib-fund-reviews"] .client-fund-table td[data-label="手续费"],
body[data-layout-page="ib-fund-reviews"]:is([data-review-type="deposit"], [data-review-type="withdraw"]) .client-fund-table th:nth-child(6),
body[data-layout-page="ib-fund-reviews"]:is([data-review-type="deposit"], [data-review-type="withdraw"]) .client-fund-table th:nth-child(7),
body[data-layout-page="ib-fund-reviews"][data-review-type="transfer"] .client-fund-table th:nth-child(5) {
  text-align: right;
}

/* ---------- 空态与页脚 ---------- */

body[data-layout-page="ib-fund-reviews"] .client-fund-empty {
  min-height: 160px;
  gap: 5px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-empty strong {
  font-size: 13.5px;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-empty span {
  font-size: 11.5px;
  font-weight: 450;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-table-footer {
  min-height: 44px;
  gap: 12px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 500;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-footer-tools {
  gap: 10px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-table-footer select {
  width: 70px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-pager button {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 审核详情弹窗 ---------- */

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-header {
  gap: 14px;
  padding: 14px 18px 12px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-header > div > span:first-child {
  font-size: 10.5px;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-title-row {
  gap: 8px;
  margin-top: 4px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-title-row h2 {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-header p {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 450;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-close {
  min-width: 56px;
  height: 30px;
  font-size: 12px;
  font-weight: 650;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-body {
  gap: 16px;
  padding: 16px 18px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-section > header {
  gap: 12px;
  margin-bottom: 9px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-section h3 {
  font-size: 13.5px;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-section header p {
  font-size: 11px;
  font-weight: 450;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-detail-grid > div {
  gap: 3px;
  padding: 9px 12px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-detail-grid dt {
  font-size: 10.5px;
  font-weight: 600;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-detail-grid dd {
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-timeline li {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 13px;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-timeline-index {
  width: 22px;
  height: 22px;
  border-width: 2px;
  font-size: 10px;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-timeline-content strong {
  font-size: 12.5px;
  font-weight: 700;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-timeline-content p {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 450;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-timeline-content time {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 450;
}

body[data-layout-page="ib-fund-reviews"] .client-fund-modal-footer {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
}

/* ---------- 筛选栅格改用容器查询 ---------- */

/* ib-fund-reviews.css 的 4 列是按视口断点定的，没扣掉侧栏：主列放得下 5 列时
   仍排 4 列，8 个筛选格（提交时间占 2 格）正好排满两行，重置/查询被挤到第三行独占一行。
   改成按筛选区自身宽度判断，够宽就排 5 列，操作按钮收回第二行行尾。 */
body[data-layout-page="ib-fund-reviews"] .client-fund-filter-panel {
  container-type: inline-size;
  container-name: ib-fund-filters;
  /* inline-size 容器自带 layout containment，会新建层叠上下文；
     不抬 z-index 的话账户范围的浮层会被后面的表格卡盖住。 */
  position: relative;
  z-index: 5;
}

@container ib-fund-filters (min-width: 880px) {
  body[data-layout-page="ib-fund-reviews"] .ib-fund-filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  /* 第二行正好是 账户范围(2) + 提交时间(2) + 操作(1)：
     账户范围让它占两格，组合框里「伞下」胶囊 + 搜索框才不至于挤成三个字。 */
  body[data-layout-page="ib-fund-reviews"] .ib-fund-account-range-filter {
    grid-column: span 2;
  }

  body[data-layout-page="ib-fund-reviews"] .ib-fund-filter-actions {
    grid-column: 5;
  }
}
