.profit-page{max-width:1440px;margin:auto;color:#193d37}.profit-hero{padding:30px 34px;border-radius:18px;background:#173f38;color:#fff;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.profit-hero h1{font-size:30px;margin:10px 0}.profit-hero p{color:#d2e4de;line-height:1.6}.profit-eyebrow{font-size:12px;letter-spacing:1.5px;opacity:.8}.profit-hero-mark{font-size:76px;color:#a0c8a4;padding:0 25px}.profit-panel{padding:25px;background:white;border:1px solid #dfe7e2;border-radius:16px;margin-bottom:22px}.profit-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.profit-section-title h2{font-size:21px;margin:8px 0}.profit-muted{color:#6b7b77;line-height:1.8;font-size:13px}.profit-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:20px 0}.profit-upload input{display:none}.profit-upload span{font-size:12px;color:#72817d}.profit-empty{text-align:center;padding:35px;color:#7b8c84;border:1px dashed #bacdc3;border-radius:10px;background:#f7faf8}.profit-source{border:1px solid #dce5df;border-radius:10px;margin:12px 0;background:#fbfcfb}.profit-source>summary{padding:15px;cursor:pointer;line-height:1.8;overflow-wrap:anywhere}.profit-source>summary span{color:#6b7b77}.profit-source-body{padding:0 18px 18px}.profit-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin:16px 0}.profit-fields label{font-size:12px;display:flex;flex-direction:column;gap:7px;color:#586e63}.profit-fields input,.profit-fields select{width:100%;padding:10px;border:1px solid #cddad2;border-radius:7px;background:white;color:#253e33;font-size:13px;min-width:0}.profit-mapping{max-height:420px;overflow:auto;padding:8px}.profit-check{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.6}.profit-check input{margin-top:4px}.profit-scroll{overflow:auto;margin-top:16px;max-height:650px}.profit-scroll table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.profit-scroll th{text-align:left;background:#edf3ef;color:#53685c;font-size:12px;position:sticky;top:0;z-index:1}.profit-scroll td,.profit-scroll th{padding:13px;border-bottom:1px solid #e3eae5}.profit-scroll tbody tr:nth-child(even){background:#f8faf8}.profit-scroll small{display:block;color:#7d8a80;margin-top:5px}.profit-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.profit-cards article{background:white;border:1px solid #d9e5db;border-radius:14px;padding:24px}.profit-card-head{display:flex;justify-content:space-between;gap:8px}.profit-card-head span{font-size:12px;color:#6e8272}.profit-total{font-size:30px;font-weight:700;margin:25px 0 4px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.profit-cards small{color:#829085}.profit-cards dl{border-top:1px solid #e4ebe5;margin-top:22px;padding-top:12px}.profit-cards dl div{display:flex;justify-content:space-between;font-size:13px;margin:12px 0}.profit-cards dt{color:#6c7c71}.profit-cards dd{margin:0}.profit-note{background:#f4f3e8;border:1px solid #e7e3cb;border-radius:8px;padding:13px 16px;line-height:1.7;font-size:13px;margin:15px 0;color:#75653f;overflow-wrap:anywhere}.profit-note summary{cursor:pointer}.profit-pending,.profit-error{color:#a34329!important}.profit-error{padding:15px;background:#fff0e9;margin-top:16px;border-radius:8px}.profit-pool{padding:18px 0;font-size:13px;line-height:1.8}.profit-pool summary{cursor:pointer;font-weight:600}.profit-detail{background:white;border:1px solid #dce5df;border-radius:12px;padding:18px;margin-bottom:18px}.profit-detail>summary{font-weight:600;cursor:pointer}.profit-amount{font-weight:700;font-variant-numeric:tabular-nums}.profit-status{min-width:240px;max-width:440px;white-space:normal;line-height:1.7;overflow-wrap:anywhere}.profit-status details{color:#748277;font-size:12px}.profit-regions{display:flex;flex-wrap:wrap;gap:16px;background:#eaf2ec;border-radius:10px;padding:20px;font-size:13px;margin-bottom:20px}.profit-regions>b{width:100%}.profit-regions span{background:white;padding:10px;border-radius:6px}#profit-result{scroll-margin-top:20px}.profit-page .btn.primary{background:#235744;border-color:#235744;color:white}.profit-page button:disabled{opacity:.5;cursor:wait}@media(max-width:750px){.profit-hero{padding:22px}.profit-hero h1{font-size:24px}.profit-hero-mark{display:none}.profit-panel{padding:17px}.profit-cards{grid-template-columns:1fr}.profit-total{margin-top:16px}.profit-fields{grid-template-columns:1fr}.profit-section-title{align-items:flex-start}.profit-source-body{padding:0 10px 12px}}
.profit-tabs{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.profit-tabs .btn{min-width:120px}
.profit-actions{display:flex;gap:6px;flex-wrap:wrap;white-space:normal}
.profit-actions .btn.sm{padding:4px 10px;font-size:12px}
.profit-inactive{opacity:.55}
.profit-store-edit td{background:#f4f8f5;white-space:normal}
.profit-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}


.profit-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 8px}
.profit-stats>div{background:#eef5f0;border:1px solid #d5e4da;border-radius:12px;padding:16px 18px}
.profit-stats b{display:block;font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums;color:#1d4a3f;letter-spacing:-0.5px}
.profit-stats span{display:block;margin-top:8px;font-size:13px;color:#35584c;font-weight:600}
.profit-stats small{display:block;margin-top:4px;font-size:12px;color:#6b7b77}
@media(max-width:750px){.profit-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.profit-store-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 4px}
.profit-store-search{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#586e63;min-width:min(100%,280px);flex:1}
.profit-store-search input{padding:10px 12px;border:1px solid #cddad2;border-radius:8px;background:#fff;color:#253e33;font-size:14px}

.profit-store-head{align-items:flex-end}
.profit-store-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.profit-store-search-input{min-width:min(100%,260px);width:280px;padding:9px 12px;border:1px solid #cddad2;border-radius:8px;background:#fff;color:#253e33;font-size:13px}
.profit-store-search-input:focus{outline:2px solid #23574433;border-color:#235744}

/* 比例模式：分润 / 返点 */
.profit-rate-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin:16px 0}
.profit-rate-item{background:#fff;border:1px solid #d5e2da;border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.profit-rate-item.is-rebate{border-color:#e2c58c;background:#fffaf0}
.profit-rate-name{font-weight:600;font-size:14px;color:#1d4a3f}
.profit-rate-controls{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:10px}
.profit-rate-controls label{font-size:12px;display:flex;flex-direction:column;gap:6px;color:#586e63}
.profit-rate-controls input,.profit-rate-controls select{width:100%;padding:9px 10px;border:1px solid #cddad2;border-radius:7px;background:#fff;color:#253e33;font-size:13px;min-width:0}
.profit-mode-tag{display:block;margin-top:4px;font-size:11px;color:#4f7465}
.profit-mode-tag.is-rebate{color:#9a6a12}

/* 门店编辑：只显示已关联 + 添加合伙人 */
.profit-add-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 4px}
.profit-add-select{min-width:min(100%,260px);padding:9px 12px;border:1px solid #cddad2;border-radius:8px;background:#fff;color:#253e33;font-size:13px}
.profit-rate-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px}

/* 合伙人分区：区域醒目展开 / 门店默认折叠 */
.profit-partner-group{margin-top:14px;border:1px solid #d5e2da;border-radius:12px;background:#fbfcfb;overflow:hidden}
.profit-partner-regional{border-color:#9fc0ae;background:#f3faf5;box-shadow:0 1px 0 #d7e8dd}
.profit-partner-regional .profit-partner-group-head{background:#e7f3ec}
.profit-partner-store{border-color:#d7ddd9;background:#f7f8f7}
.profit-partner-store.is-collapsed{background:#f4f5f4}
.profit-partner-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 16px;border:0;background:transparent;text-align:left;cursor:pointer;color:#1d4a3f;font:inherit}
.profit-partner-group-head.is-static{cursor:default}
.profit-partner-group-head h3{margin:0;font-size:15px;font-weight:700;color:#1d4a3f}
.profit-partner-group-hint{font-size:12px;color:#6b7b77;white-space:nowrap}
.profit-partner-store .profit-partner-group-head:hover{background:#eef1ef}
.profit-partner-store-summary{margin:0;padding:10px 16px 14px;font-size:13px;color:#6b7b77}
.profit-partner-group .profit-scroll{margin-top:0;border-top:1px solid #e3eae5;max-height:420px}
