/* 回报对比 card */
.returns-card{margin-top:22px;border:1px solid #dfe5e8;border-radius:10px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.returns-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 12px}
.returns-head h2{font-size:17px;font-weight:600;color:var(--ink)}
.returns-head p{font-size:11px;color:#8b97a1;margin-top:4px}
.returns-toolbar{display:flex;flex-wrap:wrap;gap:10px 18px;padding:10px 22px 14px;border-bottom:1px solid var(--line)}
.segment:disabled{opacity:.4}
.returns-wrap{max-height:640px;border-radius:0}
.returns-table{border-collapse:separate;border-spacing:0;font-size:11px;font-variant-numeric:tabular-nums;min-width:100%}
.returns-table th,.returns-table td{padding:7px 12px;border-bottom:1px solid #eef1f3;text-align:right;white-space:nowrap}
.returns-table thead th{background:#fff}
.returns-table th[scope=row],.returns-table .rv-corner{position:sticky;left:0;z-index:2;background:#f7f9fa;text-align:left;font-weight:500;color:#5d6e7b;min-width:96px}
.returns-table .rv-corner{z-index:3;vertical-align:bottom}
.returns-table .rv-plan{text-align:left;vertical-align:top;border-top:4px solid var(--rv-head,#193769);min-width:220px;max-width:300px;white-space:normal;padding-top:10px}
.rv-plan-name{display:block;font-size:12px;font-weight:600;color:var(--ink);line-height:1.45;margin-bottom:7px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.rv-plan select{width:100%;max-width:290px;height:30px;border:1px solid #d7e2df;border-radius:6px;background:#fff;color:#29434b;font-size:11px;padding:0 6px}
.rv-plan select:disabled{background:#f3f5f6;color:#9aa4ac}
.returns-table .rv-summary td{text-align:center;color:#3c5363;font-size:11px;white-space:normal;background:#fbfcfd}
.returns-table .rv-summary td small{display:block;color:#8b97a1;font-size:10px;margin-top:2px}
.returns-table .rv-sub th{font-size:10px;color:#8a9ba7;font-weight:500;background:#f9fbfc;text-align:right}
.returns-table .rv-sub th[scope=row]{background:#f7f9fa}
.returns-table tbody tr:hover td{background:#f6faf8}
.returns-table td.rv-irr{color:#46606e}
.returns-table td.rv-lead{color:#d0021b;font-weight:650}
.returns-notes{padding:12px 22px 16px;font-size:10px;line-height:1.85;color:#8a979f;background:#f9fbfc;border-top:1px solid var(--line)}
.returns-notes ul{margin:6px 0 0;padding-left:18px}
.returns-notes strong{color:#5d6e7b;font-weight:600}
/* single-plan IRR panel */
.irr-panel{border:1px solid #dfe6e8;border-radius:13px;background:#fff;box-shadow:var(--shadow);padding:18px 20px 14px}
.irr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px;flex-wrap:wrap}
.irr-head h3{font-size:14px;font-weight:600;color:var(--ink)}
.irr-head p{font-size:10px;color:#8c9a9e;margin-top:3px}
.irr-promo{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#8c9a9e;min-width:240px;max-width:360px}
.irr-promo select{height:32px;border:1px solid #d7e2df;border-radius:6px;background:#fff;color:#29434b;font-size:11px;padding:0 6px;width:100%}
.irr-table td small{display:block;font-size:9px;color:#9aa6ab;margin-top:1px}
.irr-table td.irr-rate{font-weight:600;color:#2b4757}
.irr-table td.irr-rate small{font-weight:400}
.irr-empty{font-size:11px;color:#a37d3d;background:#fcf6ea;border-radius:8px;padding:10px 12px}
.irr-foot{font-size:10px;color:#8a979f;line-height:1.8;margin-top:9px}
.cash-irr-note{font-size:10px;color:#a37d3d;padding:8px 20px}
/* 优惠库 */
.promo-actions{display:flex;flex-wrap:wrap;gap:8px}
.promo-search{height:32px;border:1px solid #d7e2df;border-radius:6px;padding:0 10px;min-width:220px;font-size:12px}
#promotions-section select{height:32px;border:1px solid #d7e2df;border-radius:6px;background:#fff;font-size:12px;padding:0 6px}
.promo-notice{font-size:11px;color:#a37d3d;background:#fcf6ea;padding:9px 22px;margin:0}
.promo-table td{vertical-align:top;font-size:11px;white-space:normal}
.promo-table th{white-space:nowrap}
.promo-table td small{display:block;color:#9aa6ab;font-size:10px;margin-top:2px}
.promo-table td strong{font-weight:600;color:var(--ink)}
.promo-lines{line-height:1.7;min-width:170px;font-variant-numeric:tabular-nums}
.promo-muted{color:#a6b0b6}
.promo-badge{display:inline-block;font-size:10px;line-height:1.5;padding:1px 7px;border-radius:4px;margin:0 4px 3px 0;white-space:nowrap}
.promo-badge.ok{color:#17735f;background:#e3f3ed}
.promo-badge.warn{color:#9a6b1e;background:#fbf0dc}
.promo-badge.bad{color:#a8402f;background:#fbe7e3}
.promo-badge.muted{color:#6d7d88;background:#edf1f3}
.promo-table .link-button{margin:0;font-size:11px}
.promo-dialog{width:min(780px,95vw);max-height:92vh;border:1px solid #dce5e4;border-radius:14px;padding:22px 24px;color:#29434b;box-shadow:0 20px 90px #1235}
.promo-dialog::backdrop{background:#132c3b66}
.promo-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}
.promo-dialog-head h2{font-size:18px;font-weight:600}
.promo-close{border:0;background:none;font-size:26px;line-height:1;cursor:pointer;color:#5d6e7b}
.promo-dialog-copy{font-size:12px;line-height:1.8;color:#74848a;margin:4px 0 14px}
.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin-bottom:12px}
.promo-dialog label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#4d6470}
.promo-dialog input:not([type=checkbox]),.promo-dialog select,.promo-dialog textarea{width:100%;border:1px solid #d7e2df;border-radius:6px;background:#fff;color:#29434b;font-size:12px;padding:8px 10px}
.promo-dialog input:not([type=checkbox]),.promo-dialog select{height:36px;padding:0 10px}
.promo-dialog textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans SC",monospace;line-height:1.6;resize:vertical}
.promo-wide{margin-bottom:10px}
.promo-hint{font-size:11px;color:#8b97a1;line-height:1.7;margin:-4px 0 12px}
.promo-checks{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 14px}
.promo-checks label{flex-direction:row;align-items:center;gap:7px}
.promo-error{color:#a44b32;font-size:12px;line-height:1.7;background:#fcefeb;border-radius:6px;padding:8px 10px;margin:8px 0 0}
.promo-dialog-actions{display:flex;align-items:center;gap:10px;margin-top:16px;flex-wrap:wrap}
.promo-spacer{flex:1}
.promo-dialog-actions button{padding:9px 16px;background:#158673;color:#fff;border:0;border-radius:6px;cursor:pointer;font-size:12px}
.promo-dialog-actions button.secondary{background:#fff;color:#3c5363;border:1px solid #d7e2df}
.promo-dialog-actions button.danger{background:#fff;color:#a44b32;border:1px solid #efcfc6}
.promo-dialog-actions button:disabled{opacity:.55;cursor:wait}
.promo-image-dialog{width:min(980px,96vw)}
.promo-image-pick{display:flex;align-items:center;gap:12px;font-size:12px;color:#74848a}
.promo-image-pick button{padding:8px 14px;background:#fff;color:#3c5363;border:1px solid #d7e2df;border-radius:6px;cursor:pointer}
.promo-image-preview{display:block;max-width:100%;max-height:340px;margin-top:12px;border:1px solid #e3e9eb;border-radius:8px;object-fit:contain}
.promo-problems{font-size:11px;color:#a37d3d;margin:0 0 10px;padding-left:18px;line-height:1.7}
.promo-image-dialog select{height:30px;font-size:11px}
@media(max-width:720px){.promo-grid{grid-template-columns:1fr}.returns-head{flex-direction:column}.irr-promo{min-width:0;width:100%}}
/* library table: text columns read left to right; short columns do not wrap */
.promo-table th,.promo-table td{text-align:left;padding:12px 14px}
.promo-table td:first-child,.promo-table th:first-child,.promo-table td:last-child{width:1%;white-space:nowrap}
.promo-table td:first-child .promo-badge{display:table;margin-bottom:4px}
.promo-table td:nth-child(3),.promo-table td:nth-child(6){white-space:nowrap}
.promo-table td:nth-child(6) small{white-space:normal;max-width:130px}
.promo-table td:nth-child(7){min-width:120px}
