/* ===== 桌面端财务页：① 明细表列宽收缩（一行多排几列信息更密）② 按钮文字垂直居中 ===== */

/* ---------- ① 明细表紧凑：内边距收紧 + 关键列定宽 ---------- */
#fin-wrap table th,
#fin-wrap table td {
  padding: 9px 10px !important;      /* 原 14~18px，左右各收 4~8px */
  line-height: 1.4 !important;
}
#fin-wrap table thead th { padding: 10px 10px !important; font-size: 12.5px !important; }

/* 日期 / 分类 / 金额 / 操作 收窄，摘要吃剩余空间 */
#fin-wrap table th:nth-child(1), #fin-wrap table td:nth-child(1) { width: 112px !important; white-space: nowrap !important; }
#fin-wrap table th:nth-child(2), #fin-wrap table td:nth-child(2) { width: 104px !important; white-space: nowrap !important; }
#fin-wrap table th:nth-child(3), #fin-wrap table td:nth-child(3) { width: auto !important; }
#fin-wrap table th:nth-child(4), #fin-wrap table td:nth-child(4) { width: 116px !important; text-align: right !important; white-space: nowrap !important; }
#fin-wrap table th:nth-child(5), #fin-wrap table td:nth-child(5) { width: 116px !important; text-align: right !important; white-space: nowrap !important; }
#fin-wrap table th:nth-child(6), #fin-wrap table td:nth-child(6) { width: 132px !important; text-align: right !important; white-space: nowrap !important; }
#fin-wrap table th:nth-child(7), #fin-wrap table td:nth-child(7) { width: 104px !important; white-space: nowrap !important; text-align: center !important; }

/* 金额用等宽数字，列宽更稳 */
#fin-wrap table td { font-variant-numeric: tabular-nums !important; }
/* 行高收紧，一屏多看几笔 */
#fin-wrap table tbody tr { height: 40px; }
#fin-wrap table td { font-size: 13px !important; }

/* ---------- ② 财务所有按钮：文字垂直居中 ---------- */
#fin-wrap .btn,
#fin-wrap button,
#fin-wrap a.btn,
.fin-links .btn,
.fin-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;          /* 关键：normal 行高 + 固定高度会让字偏上 */
  vertical-align: middle !important;
}

/* 行内「编辑 / 删」：更小、居中、间距均匀 */
#fin-wrap .hz-fbtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 9px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  border-radius: 7px !important;
  box-sizing: border-box !important;
  margin: 0 2px !important;
}

/* 手机端保留原来的紧凑规格（mobile_fin_compact.css 已定义，这里不覆盖列宽） */
@media (max-width: 680px) {
  #fin-wrap table th:nth-child(1), #fin-wrap table td:nth-child(1),
  #fin-wrap table th:nth-child(2), #fin-wrap table td:nth-child(2),
  #fin-wrap table th:nth-child(4), #fin-wrap table td:nth-child(4),
  #fin-wrap table th:nth-child(5), #fin-wrap table td:nth-child(5),
  #fin-wrap table th:nth-child(6), #fin-wrap table td:nth-child(6),
  #fin-wrap table th:nth-child(7), #fin-wrap table td:nth-child(7) {
    width: auto !important;
  }
  #fin-wrap table th, #fin-wrap table td { padding: 5px 6px !important; }
}

/* ---------- ③ 赛事看板表格（名次/组别/姓名/签到/总杆/净杆/获奖/应收/已收/状态）也一起收紧 ---------- */
#hz-bd table th,
#hz-bd table td {
  padding: 7px 8px !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
}
#hz-bd table thead th { padding: 8px 8px !important; font-size: 12px !important; }
#hz-bd table td input,
#hz-bd table td select {
  height: 26px !important;
  font-size: 12px !important;
  padding: 0 5px !important;
  box-sizing: border-box !important;
}
/* 数字列窄一点、等宽、右对齐 */
#hz-bd table th:nth-child(1), #hz-bd table td:nth-child(1),
#hz-bd table th:nth-child(2), #hz-bd table td:nth-child(2) { width: 52px !important; text-align: center !important; }
#hz-bd table th:nth-child(4), #hz-bd table td:nth-child(4) { width: 54px !important; text-align: center !important; }
#hz-bd table th:nth-child(5), #hz-bd table td:nth-child(5),
#hz-bd table th:nth-child(6), #hz-bd table td:nth-child(6),
#hz-bd table th:nth-child(7), #hz-bd table td:nth-child(7) { width: 74px !important; text-align: center !important; }
#hz-bd table th:nth-child(8), #hz-bd table td:nth-child(8),
#hz-bd table th:nth-child(9), #hz-bd table td:nth-child(9),
#hz-bd table th:nth-child(10), #hz-bd table td:nth-child(10) { width: 86px !important; text-align: center !important; }
#hz-bd table td { font-variant-numeric: tabular-nums !important; }
#hz-bd table tbody tr { height: 36px; }

/* 看板里的按钮也统一垂直居中 */
#hz-bd .btn, #hz-bd button, #hz-bd a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* ---------- ④ 超长摘要不再把行高拉爆：单行省略 + 悬停看全文（title 由脚本补） ---------- */
#fin-wrap table td:nth-child(3) {
  max-width: 460px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 680px) {
  #fin-wrap table td:nth-child(3) { max-width: 124px !important; }
}
