/* 客户与倍数页（U-06）。颜色只用 base.css 的变量；样式都挂在 .cust 下面，免得和别的页打架。
   1280×720 一屏放下：客户列表、倍数记录、最近收入各自在自己的区里滚。 */
.board.cust { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: 470px minmax(0, 1fr); }
.cust h2 { font-size: 15px; font-weight: 600; }
.cust h2 span { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.cust .scroll { overflow-y: auto; min-height: 0; }
.cust .m { color: var(--muted); }
.cust .empty { padding: 26px 18px; color: var(--muted); font-size: 14px; }
.cust .pad { padding: 18px; }

/* 表格 */
.cust table { width: 100%; border-collapse: collapse; }
.cust th {
  font-weight: 400; font-size: 12px; color: var(--muted); text-align: left; padding: 4px 8px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--sheet); z-index: 1; white-space: nowrap;
}
.cust td { padding: 4px 8px; height: 30px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust td:first-child, .cust th:first-child { padding-left: 18px; }
.cust td:last-child, .cust th:last-child { padding-right: 18px; }
.cust .r { text-align: right; }
.cust td.r { font-family: var(--num); font-size: 14px; }

/* ---------- 左边：客户列表 ---------- */
.cust .cl { border-right: 1px solid var(--line); display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.cust .cl-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 8px; }
.cust .ct { table-layout: fixed; }
.cust .ct .c-cur { width: 58px; } .cust .ct .c-mult { width: 76px; } .cust .ct .c-pts { width: 90px; } .cust .ct .c-inc { width: 118px; }
.cust .ct tr[data-id] { cursor: pointer; }
.cust .ct tr[data-id]:hover td { background: var(--hover); }
.cust .ct tr.on td { background: var(--hover); }
.cust .ct tr.on td.nm { font-weight: 600; box-shadow: inset 3px 0 var(--ink); }
.cust .ct tr.off td { color: var(--muted); }
.cust .fold td { height: 30px; }
.cust .fold button { background: none; border: 0; color: var(--act); cursor: pointer; padding: 0; font-size: 12px; }

/* ---------- 右边：选中的客户 ---------- */
.cust .cd { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.cust .cd-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 18px 6px; }
.cust .cd-h .ttl { display: flex; flex-direction: column; min-width: 0; }
.cust .cd-h h2 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust .cd-h .ttl .m { font-size: 12px; }
.cust .offtag { color: var(--loss); font-weight: 600; }
.cust .acts { display: flex; gap: 6px; flex: none; }
.cust .cd-k { display: flex; gap: 40px; padding: 6px 18px 12px; }
.cust .cd-k > div { display: flex; flex-direction: column; white-space: nowrap; }
.cust .cd-k .l, .cust .cd-k .sub { font-size: 12px; color: var(--muted); }
.cust .cd-k .n { font-family: var(--num); font-size: 26px; font-weight: 500; line-height: 1.15; }
.cust .msg { margin: 0 18px 8px; font-size: 13px; }
.cust .msg.ok { color: var(--gain); }
.cust .msg.bad { color: var(--loss); }

.cust .cd-b { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); border-top: 1px solid var(--line); }
.cust .blk { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; }
.cust .blk + .blk { border-left: 1px solid var(--line); }
.cust .blk h3 { font-size: 13px; padding: 8px 18px 6px; white-space: nowrap; }
.cust .blk h3 span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.cust .mt tr.now td { font-weight: 600; }
.cust .mt tr.now b { font-size: 12px; font-weight: 400; color: var(--gain); margin-left: 4px; }
.cust .it tr.wait td { background: var(--wait-bg); }
.cust .it tr.wait td:first-child { box-shadow: inset 3px 0 var(--wait); }
.cust .waitc { color: var(--wait); font-weight: 600; font-size: 12px; }

/* ---------- 表单：在页面里展开，不弹框 ---------- */
.cust .strip { margin: 0 18px 10px; padding: 10px 12px; background: var(--hover); border-left: 3px solid var(--ink); }
.cust .strip.ask { background: var(--wait-bg); border-left-color: var(--wait); }
.cust .strip .row { display: flex; gap: 10px; align-items: flex-start; }
.cust .strip .f { width: 150px; }
.cust .strip .f-name { width: 170px; }
.cust .strip .f-note { flex: 1; min-width: 100px; }
.cust .strip .f-cur { width: 130px; }
.cust .strip .q { font-weight: 600; font-size: 14px; }
.cust .strip p + p { margin-top: 3px; }
.cust .strip p.m b { color: var(--ink); font-family: var(--num); font-size: 14px; }
.cust .pvw { max-height: 128px; margin: 8px 0; background: var(--sheet); border: 1px solid var(--line); }
.cust .pv td { height: 26px; }
.cust .pv th { background: var(--sheet); }
.cust .f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cust .lab { font-size: 12px; color: var(--muted); }
.cust .ferr { color: var(--loss); font-size: 12px; }
.cust .ferr:empty { display: none; }
.cust .strip .err, .cust .nf .err { min-height: 0; font-size: 12px; }
.cust .strip .err:empty, .cust .nf .err:empty { display: none; }
.cust .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cust .fb { display: flex; gap: 6px; padding-top: 18px; flex: none; }
.cust .strip.ask .fb { padding-top: 0; }
.cust .fb .go { width: auto; gap: 14px; padding: 6px 12px; }
.cust .fb .sec { padding: 5px 10px; }
.cust .go.danger { background: var(--loss); }
.cust .seg button { min-height: 31px; }
.cust .seg button:disabled { color: var(--muted); cursor: not-allowed; }
.cust .seg button.on:disabled { background: var(--muted); color: var(--sheet); }

/* 新客户：占满右边 */
.cust .nf { padding: 14px 18px; width: 480px; display: flex; flex-direction: column; gap: 10px; }
.cust .nf .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cust .nf .hint { margin-top: -4px; }
.cust .nf .fb { padding-top: 4px; }
