/* Customer-funds layout only: cash, balance and bad debt remain visibly separate. */
.customer-funds-workspace{box-sizing:border-box;min-width:0;width:100%;max-width:1800px;margin:auto;padding:24px;color:#24384d}
.customer-funds-workspace>*,.customer-funds-detail>*{box-sizing:border-box;min-width:0;max-width:100%}
.customer-funds-workspace>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.customer-funds-workspace>header>div{min-width:0}.customer-funds-workspace>header>.el-button{flex-shrink:0}
.customer-funds-workspace h2{margin:0 0 8px;line-height:1.5}.customer-funds-workspace h3{margin:26px 0 12px;font-size:17px;line-height:1.6}
.customer-funds-workspace header p{color:#64748b;line-height:1.7;margin:0;overflow-wrap:anywhere}
.customer-funds-filters{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(160px,1fr));gap:16px;background:#fff;border:1px solid #dbe4ef;padding:18px;border-radius:12px;margin:16px 0}
.customer-funds-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0}
.customer-funds-toolbar{padding:14px 16px;background:#fff;border:1px solid #dbe4ef;border-radius:10px}
.customer-funds-field{display:flex;flex-direction:column;gap:8px;margin:12px 0;min-width:0;font-size:13px;line-height:1.6}
.customer-funds-filters .customer-funds-field{margin:0}.customer-funds-field .el-select{width:100%;min-width:0}
.customer-funds-field input,.customer-funds-field textarea{padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;color:#24384d;font:inherit;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.customer-funds-field textarea{resize:vertical;min-height:88px}.customer-funds-field input:focus,.customer-funds-field textarea:focus{outline:2px solid #409eff;outline-offset:1px}
.customer-funds-field input:disabled,.customer-funds-field textarea:disabled{background:#f5f7fa}
.customer-funds-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.customer-funds-summary article{border:1px solid #dbe4ef;background:#fff;border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:10px;color:#607990;min-width:0}
.customer-funds-summary article:last-child{background:#eaf3fc;border-color:#bdd7ed}.customer-funds-summary strong{font-size:25px;color:#225a88;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.customer-funds-summary small{font-size:12px;line-height:1.6;color:#64748b;overflow-wrap:anywhere}
.customer-funds-section-help{font-size:13px;line-height:1.75;color:#64748b;margin:8px 0;overflow-wrap:anywhere}
.customer-funds-guide{margin:12px 0 22px;border:1px solid #dbe4ef;border-radius:10px;background:#fff;padding:14px 16px;font-size:13px;line-height:1.75}
.customer-funds-guide summary{cursor:pointer;color:#225a88;font-weight:600}.customer-funds-guide summary:focus-visible{outline:2px solid #409eff;outline-offset:4px}
.customer-funds-guide dl{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,4fr);gap:10px 18px;margin:16px 0 2px}.customer-funds-guide dt{font-weight:600}.customer-funds-guide dd{margin:0;color:#64748b;overflow-wrap:anywhere}
@media(max-width:600px){.customer-funds-guide dl{grid-template-columns:1fr;gap:5px}.customer-funds-guide dd{margin-bottom:10px}.customer-funds-summary article{flex-wrap:wrap}.customer-funds-summary small{flex-basis:100%}}
.customer-funds-note{background:#eef6fd;border-left:3px solid #409eff;padding:12px 16px;color:#526b83;line-height:1.8;font-size:13px;overflow-wrap:anywhere}
.customer-funds-warning{background:#fff7ed;border:1px solid #fdba74;padding:12px 16px;color:#9a3412;border-radius:8px;line-height:1.8;overflow-wrap:anywhere}
.customer-funds-scroll{min-width:0;max-width:100%;overflow:auto;overscroll-behavior-x:contain;border:1px solid #dbe4ef;background:#fff;border-radius:10px;margin:14px 0 22px}
.customer-funds-scroll:focus-visible{outline:2px solid #409eff;outline-offset:2px}
.customer-funds-scroll table{border-collapse:collapse;width:100%;min-width:700px;font-size:13px;line-height:1.65}
.customer-funds-scroll th{padding:12px 14px;background:#edf3f9;color:#466079;font-weight:600;white-space:nowrap;text-align:left}
.customer-funds-scroll td{padding:12px 14px;border-top:1px solid #e4ebf2;min-width:96px;max-width:340px;overflow-wrap:anywhere;vertical-align:middle}
.customer-funds-scroll tbody tr:hover{background:#f7faff}.customer-funds-scroll small{display:block;color:#64748b;font-size:12px;margin-top:4px}
.customer-funds-scroll .customer-funds-money{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:normal;min-width:110px}
.customer-funds-scroll .customer-funds-stable{white-space:nowrap;overflow-wrap:normal}.customer-funds-scroll .customer-funds-cell-actions{min-width:110px}
.customer-funds-cell-actions>.el-button{margin:3px 8px 3px 0}.customer-funds-cell-actions>.el-button+.el-button{margin-left:0}
.customer-funds-empty{text-align:center;padding:28px!important;color:#64748b}
.customer-funds-detail{padding:20px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;margin:24px 0;line-height:1.7;overflow-wrap:anywhere}.customer-funds-detail h3{margin-top:0}
.customer-funds-actions .el-button+.el-button{margin-left:0}
.customer-funds-workspace .el-pagination,.customer-funds-dialog .el-pagination{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px;margin:14px 0;white-space:normal}
.customer-funds-wide{width:100%}
.customer-funds-dialog{display:flex;flex-direction:column;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin-top:24px!important;margin-bottom:24px;border-radius:12px;overflow:hidden}
.customer-funds-dialog .el-dialog__header{flex:0 0 auto;padding:20px 52px 16px 22px;border-bottom:1px solid #e4ebf2}.customer-funds-dialog .el-dialog__title{line-height:1.5;overflow-wrap:anywhere}.customer-funds-dialog .el-dialog__headerbtn{top:22px}
.customer-funds-dialog .el-dialog__body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px}
.customer-funds-dialog .el-dialog__footer{flex:0 0 auto;border-top:1px solid #e4ebf2;padding:14px 22px;background:#f8fafc}
.customer-funds-dialog .el-dialog__footer>div{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.customer-funds-dialog .el-dialog__footer .el-button+.el-button{margin-left:0}
@media(max-width:1150px){.customer-funds-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.customer-funds-workspace{padding:16px}.customer-funds-summary{gap:10px}.customer-funds-summary article{padding:14px}.customer-funds-summary strong{font-size:21px}}
@media(max-width:600px){.customer-funds-scroll::before{content:'左右滑动查看完整表格';position:sticky;left:0;display:block;padding:8px 12px;background:#f7faff;border-bottom:1px solid #e4ebf2;color:#607990;font-size:12px;line-height:1.5}}
@media(max-width:600px){.customer-funds-workspace{padding:12px}.customer-funds-workspace>header{flex-wrap:wrap;gap:12px}.customer-funds-workspace h2{font-size:22px}.customer-funds-filters{grid-template-columns:1fr;padding:14px}.customer-funds-summary{grid-template-columns:1fr}.customer-funds-summary article{flex-direction:row;align-items:center;justify-content:space-between}.customer-funds-summary strong{font-size:20px}.customer-funds-detail{padding:14px}.customer-funds-workspace .el-pagination{justify-content:center}.customer-funds-dialog .el-dialog__header,.customer-funds-dialog .el-dialog__body,.customer-funds-dialog .el-dialog__footer{padding-left:14px;padding-right:14px}.customer-funds-dialog .el-dialog__header{padding-right:48px}}
