.cashbook{--cb-ink:#15253d;--cb-muted:#7b8798;--cb-line:#e8ecf1;color:var(--cb-ink)}
.cashbook button,.cb-drawer button{font:inherit;cursor:pointer;border:1px solid #e2e7ed;background:#fff;border-radius:6px;padding:9px 13px;color:#263b53}.cashbook button:hover,.cb-drawer button:hover{background:#f1f5fa}.cashbook input,.cashbook select,.cb-drawer input,.cb-drawer select,.cb-drawer textarea{font:inherit;color:#263b53;border:1px solid #dfe5ed;background:white;border-radius:6px;padding:10px 12px;min-width:0;box-sizing:border-box}.cashbook input:focus,.cb-drawer input:focus,.cb-drawer select:focus,.cb-drawer textarea:focus{outline:2px solid #bcccf0;outline-offset:1px}.cb-toolbar{display:flex;gap:10px;align-items:center;margin:24px 0}.cb-search{flex:1;max-width:360px;margin-right:auto}.cashbook .cb-primary,.cb-drawer .cb-primary{background:#285bd3;border-color:#285bd3;color:white}.cashbook .cb-primary:hover,.cb-drawer .cb-primary:hover{background:#224fbb}.cb-summary{display:flex;gap:40px;padding:22px 0 30px;border-bottom:1px solid #e2e7ed;margin-bottom:24px}.cb-summary>div{min-width:150px}.cb-summary span{display:block;color:#718096;font-size:13px;margin-bottom:10px}.cb-summary strong{font-size:27px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.cb-summary small{font-size:11px;color:#8a95a4}.cb-summary .cb-task{margin-left:auto;display:flex;flex-direction:column;gap:10px;align-items:flex-end;justify-content:center}.cb-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.cb-tablepanel,.cb-side{background:#fff;border:1px solid #e5e9ef;border-radius:10px;overflow:hidden}.cb-tablepanel header,.cb-side header{padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px}.cb-tablepanel h2,.cb-side h2{font-size:16px;margin:0}.cb-side header span{font-size:12px;color:#8190a2}.cb-scroll{overflow:auto}.cb-tablepanel table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}.cb-tablepanel th{background:#fafbfc;color:#7a8798;font-weight:500;text-align:left;padding:12px 18px;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}.cb-tablepanel td{padding:14px 18px;border-bottom:1px solid #f0f2f5}.cb-tablepanel small,.cb-customer small,.cb-accountrow small{display:block;color:#8a94a3;font-size:12px;margin-top:5px}.cb-tablepanel .cb-day td{font-size:11px;letter-spacing:.3px;background:#f8f9fb;color:#8390a1;padding:8px 18px}.cb-num{text-align:right!important;font-variant-numeric:tabular-nums}.cb-income{color:#277563}.cashbook .cb-link,.cb-drawer .cb-link{border:0;background:transparent;padding:0;text-align:left;font-weight:550}.cashbook .cb-status{font-size:12px;padding:5px 8px;background:#f7f9fc;border:0;color:#63758d}.cb-tablepanel footer{font-size:12px;color:#8490a1;padding:15px 20px}.cb-customer{margin:0 20px;padding:20px 0;border-top:1px solid #edf0f4}.cb-customer strong{float:right;font-size:14px;font-variant-numeric:tabular-nums}.cashbook .cb-text{border:0;color:#285bd3;padding:10px 0 0;font-size:12px}.cb-note{color:#7c899a;font-size:12px;line-height:1.85}.cb-side>.cb-note{padding:0 20px}.cb-side>button{margin:10px 20px 22px}.cb-empty{padding:36px!important;color:#8490a1;line-height:1.8;text-align:center}.cb-drawer{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:540px;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #e3e8ef;padding:0;background:white;color:#15253d;box-shadow:-10px 0 50px #15253d12;font:14px -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif}.cb-drawer::backdrop{background:#15253d38}.cb-drawer>header{padding:26px 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0f4}.cb-drawer header small{font-size:10px;letter-spacing:1px;color:#8794a5}.cb-drawer h2{font-size:22px;margin:8px 0 0}.cb-drawer h3{font-size:15px}.cb-drawerbody{padding:26px 30px}.cb-field{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;font-size:13px}.cb-field span{font-weight:500}.cb-field small{display:block;font-size:12px;color:#8592a3;margin-top:4px;line-height:1.65}.cb-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cb-full{width:100%;padding:13px!important}.cb-error{color:#b34843;font-size:13px;min-height:18px}.cb-orderlist{max-height:240px;overflow:auto;border:1px solid #e8edf3;border-radius:6px;margin-bottom:20px}.cb-orderlist>label{display:flex;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #f0f2f5;font-size:13px}.cb-orderlist>label[hidden]{display:none}.cb-orderlist small{display:block;color:#8a94a4;font-size:11px;margin-top:5px}.cb-detailamount{font-size:30px;font-weight:550;margin:4px 0 22px}.cb-drawer hr{border:0;border-top:1px solid #e8edf3;margin:24px 0}.cb-lead{display:flex;justify-content:space-between;align-items:center;font-size:17px}.cb-lead strong{font-size:25px}.cb-accountrow{padding:18px 0;border-bottom:1px solid #edf0f4}.cb-accountrow strong,.cb-accountrow>span{float:right;font-size:13px}.cb-drawer button:disabled{opacity:.5;cursor:wait}.cb-drawer button:focus-visible,.cashbook button:focus-visible{outline:2px solid #285bd3;outline-offset:2px}
@media(min-width:1450px){.cb-layout{grid-template-columns:minmax(0,1fr) 300px}.cb-tablepanel td{padding:16px 22px}}
@media(max-width:1100px){.cb-layout{grid-template-columns:minmax(0,1fr)}.cb-summary{gap:24px;flex-wrap:wrap}.cb-summary .cb-task{margin-left:0}.cb-side{display:block}.cb-customer{display:inline-block;min-width:230px}.cb-toolbar{flex-wrap:wrap}.cb-search{min-width:180px}}
@media(max-width:600px){.cb-toolbar{gap:8px}.cb-search{order:5;max-width:none;width:100%;flex-basis:100%;margin:0}.cb-summary{gap:20px}.cb-summary>div{min-width:120px}.cb-summary strong{font-size:23px}.cb-drawerbody,.cb-drawer>header{padding:22px}.cb-tablepanel table{min-width:640px}.cb-two{gap:10px}.cb-customer{display:block}.cb-layout{gap:16px}}
.cashbook [hidden]{display:none!important}
/* 与旧 v2.css 的全局 header/dialog 规则隔离。 */
.cb-drawer{border-radius:0}.cb-drawer>header{height:auto;min-height:94px;color:#15253d}.cb-drawer>header>div{display:block}.cb-drawerbody p{margin:12px 0}.cb-tablepanel>header,.cb-side>header{height:auto;min-height:70px;color:#15253d}.cb-side{align-self:start}

/* 业务金额与现金分区，延用现有白底表格规范。 */
.cashbook .cb-business{margin-bottom:28px;min-width:0}.cashbook .cb-business header span{font-size:12px;color:#7b8696}.cashbook .cb-business-summary,.cashbook .cb-business-note{padding:0 22px;margin:4px 0 16px;line-height:1.8}.cashbook .cb-business-summary{font-size:14px}.cashbook .cb-business table td:nth-child(2){white-space:normal;min-width:140px;max-width:340px;overflow-wrap:anywhere}.cashbook .cb-section-title{font-size:18px;margin:24px 0 8px}.cashbook .cb-toolbar{flex-wrap:wrap}.cashbook .cb-business header{flex-wrap:wrap}.cashbook .cb-business footer{overflow-wrap:anywhere}

.cashbook .cb-business .cb-scroll{max-height:560px}.cashbook .cb-business thead th{position:sticky;top:0;z-index:1}

/* 客户汇总默认收起，长明细不再占满主页面。 */
.cb-business-group{border-top:1px solid #e6eaf0}.cb-business-group>summary{cursor:pointer;padding:14px 18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.cb-business-group>summary::before{content:"＋";color:#285bd3}.cb-business-group[open]>summary::before{content:"−"}.cb-business-group>summary>span:last-child{margin-left:auto;font-variant-numeric:tabular-nums}.cb-business-group>summary>span{font-size:13px;color:#536174}
