/* 人工页（U-08）。颜色只用 base.css 的变量；按 1280×720 一屏放下，列表和明细只在自己区里滚。 */
.board.labor {
  grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
}
.labor h3 { font-size: 13px; font-weight: 600; }
.labor .m { color: var(--muted); }
.labor .over { color: var(--loss); }
.labor .r { text-align: right; font-family: var(--num); font-size: 14px; }

/* ---------- 左：人员列表 ---------- */
.wl { border-right: 1px solid var(--line); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
.wl-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px 18px; }
.wl-h h3 span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.wl-h .sec { padding: 3px 9px; }
table.wl-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wl-t .c-nm { width: auto; } .wl-t .c-q { width: 62px; } .wl-t .c-m { width: 96px; } .wl-t .c-u { width: 126px; }
.wl-t thead th {
  position: sticky; top: 0; background: var(--sheet); z-index: 1;
  font-size: 12px; color: var(--muted); font-weight: 400; text-align: left; padding: 4px 8px;
  border-bottom: 1px solid var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-t thead th.r { font-family: var(--text); font-size: 12px; }
.wl-t thead th:first-child, .wl-t td:first-child { padding-left: 18px; }
.wl-t thead th:last-child, .wl-t td:last-child { padding-right: 14px; }
.wl-t tbody tr { border-bottom: 1px solid var(--line); cursor: pointer; }
.wl-t td { padding: 4px 8px; height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-t tbody tr:hover td { background: var(--hover); }
.wl-t tr.on td { background: var(--hover); }
.wl-t tr.on td:first-child { box-shadow: inset 3px 0 var(--ink); font-weight: 600; }
.wl-t td.u { font-weight: 600; }
.wl-t tr.zero td { color: var(--muted); }
.wl-t tr.zero td.u { font-weight: 400; }
.wl-t tr.off td.nm { color: var(--muted); }
.wl-t tr.fold { cursor: default; }
.wl-t tr.fold td { background: var(--sheet) !important; padding-top: 8px; }
.wl-f {
  border-top: 1px solid var(--line); padding: 7px 14px 8px 18px; display: flex; flex-direction: column; gap: 1px;
  font-size: 12px; color: var(--muted);
}
.wl-f b { font: 600 14px var(--num); color: var(--ink); }

/* ---------- 右：选中人员 ---------- */
.wd { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.wd-h {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 1px auto; column-gap: 24px; row-gap: 4px;
  align-items: end; padding: 12px 18px 8px;
}
.wd-h:empty { display: none; }
.wd-h .who-l { min-width: 0; align-self: start; }
.wd-h h2 { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-h h2 .offt { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.wd-h .who-l .m { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-h .k { display: flex; flex-direction: column; white-space: nowrap; }
.wd-h .l { font-size: 12px; color: var(--muted); }
.wd-h .n { font-family: var(--num); font-size: 26px; font-weight: 500; line-height: 1.1; }
.wd-h .n small { font-size: 17px; }
.wd-h .n.m { color: var(--muted); }
.wd-h .sep { width: 1px; align-self: stretch; background: var(--line); }
.wd-h .acts { grid-column: 1; grid-row: 2; display: flex; gap: 6px; }
.wd-h .acts .sec { padding: 2px 8px; font-size: 12px; }
.wd-h .per-l { grid-column: 2 / -1; grid-row: 2; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

.wd > .scroll { border-top: 1px solid var(--line); }
.wd-t .c-d { width: 84px; } .wd-t .c-k { width: 52px; } .wd-t .c-amt { width: 112px; }
.wd-t .c-who { width: 66px; } .wd-t .c-op { width: 104px; }
.wd-t td.tx { color: var(--ink); }
.wd-t tr.po td { background: var(--hover); }
.wd-t tr.po td:first-child { box-shadow: inset 3px 0 var(--ink); }
.wd-t tr.gone td { background: var(--sheet); color: var(--muted); }
.wd-t tr.gone td:first-child { box-shadow: none; }
.wd-t tr.gone td.amt { text-decoration: line-through; }
.wd-t tr.ed td { background: var(--wait-bg); }
.wd-t .gonec { color: var(--loss); font-weight: 600; }
.wd-t td.op { text-align: right; padding-right: 18px; }
.wd-t td.op .lnk { margin-left: 12px; font-size: 13px; }

/* 底部结钱表单 */
.pay { border-top: 1px solid var(--ink); padding: 9px 18px 6px; display: flex; flex-direction: column; gap: 6px; }
.pay[hidden] { display: none; }
.pay-h { display: flex; gap: 14px; align-items: baseline; font-size: 13px; }
.pay-h span { color: var(--muted); font-family: var(--num); font-size: 14px; }
.pay-row { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
.pay-row #pay-amt { font-family: var(--num); font-size: 15px; }
.pay-row .go { width: auto; gap: 18px; padding: 7px 12px; }
.pay-row .sec { padding: 6px 10px; }
.pay-row .sec[hidden] { display: none; }
.pay .err { min-height: 18px; font-size: 12px; }
.pay .okmsg { min-height: 0; }

/* 新增 / 改人员浮层 */
.wdlg { display: grid; gap: 10px; min-width: 360px; }
.wdlg .err { min-height: 0; font-size: 12px; }
.wdlg .err:empty { display: none; }
