/* ===== 客户价格弹窗 · 青蓝紫炫彩浅色（含输入框溢出修复） ===== */
.customer-price-button{border:1px solid rgba(var(--admin-accent-2-rgb),.35)!important;background:rgba(var(--admin-accent-2-rgb),.10)!important;color:var(--brand-violet-deep)!important}
.customer-price-dialog{width:min(920px,94vw);background:#fff;border-radius:var(--ui-radius,12px);box-shadow:0 30px 90px rgba(var(--brand-indigo-rgb),.18)}
.customer-price-dialog .title-icon{background:linear-gradient(135deg,var(--admin-accent),var(--admin-accent-2));color:#fff;box-shadow:0 8px 20px rgba(var(--admin-accent-rgb),.28)}
.customer-price-dialog .dialog-title h2{color:var(--admin-text)}
.customer-price-dialog .dialog-title p{color:var(--admin-text-muted)}

.customer-price-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px}
.customer-price-form-panel,.customer-price-list-panel{border:1px solid rgba(var(--admin-accent-2-rgb),.22);border-radius:var(--ui-radius,12px);background:linear-gradient(160deg,rgba(255,255,255,.96),rgba(248,246,255,.92));box-shadow:0 10px 30px rgba(var(--brand-indigo-rgb),.08);padding:18px;position:relative;overflow:hidden}
.customer-price-form-panel:after,.customer-price-list-panel:after{content:"";position:absolute;right:-42px;top:-42px;width:150px;height:150px;border-radius:var(--ui-radius,12px);background:radial-gradient(circle,rgba(var(--admin-accent-rgb),.16),transparent 70%);pointer-events:none}
.customer-price-form-panel h3,.customer-price-list-panel h3{display:flex;align-items:center;gap:8px;margin:0 0 14px;color:var(--admin-text);font-size:var(--fs-xl);font-weight:700}
.customer-price-form-panel h3:before,.customer-price-list-panel h3:before{content:"";width:8px;height:18px;border-radius:var(--ui-radius,12px);background:linear-gradient(180deg,var(--admin-accent),var(--admin-accent-2))}

.customer-price-form-panel .form-grid{grid-template-columns:1fr 1fr;gap:13px 14px}
.customer-price-form-panel .form-grid>label{min-width:0;color:var(--admin-text);font-weight:600}
.customer-price-form-panel input,.customer-price-form-panel select{width:100%;min-width:0;max-width:100%;margin-top:7px;border:1px solid rgba(120,130,255,.22);background:#fff;color:var(--admin-text);padding:9px 11px;transition:border-color .15s,box-shadow .15s}
.customer-price-form-panel select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-price-form-panel input:focus,.customer-price-form-panel select:focus{border-color:var(--admin-accent);box-shadow:0 0 0 3px rgba(var(--admin-accent-rgb),.14);outline:none}
.customer-price-standard{grid-column:1/-1;padding:10px 12px;border-radius:var(--ui-radius,12px);background:linear-gradient(135deg,rgba(var(--admin-accent-rgb),.1),rgba(var(--admin-accent-2-rgb),.1));border:1px solid rgba(var(--admin-accent-2-rgb),.16);color:var(--admin-text-muted);font-size:var(--fs-base)}
.customer-price-form-panel .btn{grid-column:1/-1;border:0;background:linear-gradient(135deg,var(--admin-accent),var(--admin-accent-2));color:#fff;border-radius:var(--ui-radius,12px);box-shadow:0 8px 20px rgba(var(--admin-accent-rgb),.3);font-weight:700}
.customer-price-form-panel .btn:hover{box-shadow:0 12px 28px rgba(var(--admin-accent-2-rgb),.4);filter:brightness(1.03)}

.customer-price-list{display:grid;gap:8px;max-height:420px;overflow:auto}
.customer-price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:12px;border:1px solid rgba(var(--admin-accent-2-rgb),.16);border-radius:var(--ui-radius,12px);background:#fff;transition:border-color .15s,box-shadow .15s}
.customer-price-row:hover{border-color:rgba(var(--admin-accent-rgb),.4);box-shadow:0 6px 16px rgba(var(--admin-accent-rgb),.12)}
.customer-price-row>div:first-child{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.customer-price-row>div:first-child span,.customer-price-row>div:first-child small{padding:3px 8px;border-radius:var(--ui-radius,12px);background:linear-gradient(135deg,rgba(var(--admin-accent-rgb),.10),rgba(var(--admin-accent-2-rgb),.10));color:var(--admin-text-muted);font-size:var(--fs-xs);font-weight:600}
.customer-price-row>div:first-child b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-md);color:var(--admin-text)}
.customer-price-row>strong{color:var(--brand-violet-deep);font-size:var(--fs-lg)}
.customer-price-row>small{color:var(--admin-text-muted);font-size:var(--fs-xs)}
.customer-price-row>div:last-child{display:flex;justify-content:flex-end;gap:5px}
.customer-price-row button{border:1px solid rgba(var(--admin-accent-rgb),.3);border-radius:var(--ui-radius,12px);background:rgba(var(--admin-accent-rgb),.10);color:var(--admin-accent-ink);padding:5px 10px;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.customer-price-row button:hover{background:rgba(var(--admin-accent-rgb),.16)}
.customer-price-row button.danger{border-color:rgba(var(--brand-rose-rgb),.32);background:rgba(var(--brand-rose-rgb),.10);color:var(--brand-rose-deep)}
.customer-price-row button.danger:hover{background:rgba(var(--brand-rose-rgb),.16)}
.customer-price-empty{padding:50px 20px;text-align:center;color:var(--admin-text-muted);font-size:var(--fs-base)}

/* 阶梯档位编辑器：炫彩 + 防溢出 */
#customer-price-tier-editor{grid-column:1/-1;min-width:0;margin-top:7px;padding:12px;border:1px solid rgba(var(--admin-accent-2-rgb),.2);border-radius:var(--ui-radius,12px);background:linear-gradient(160deg,#fbfaff,#f4f1ff)}
#customer-price-tier-editor .tier-editor-title{color:var(--admin-text-muted);font-weight:600}
#customer-price-tier-editor .tier-row{min-width:0}
#customer-price-tier-editor .tier-row input{min-width:0;border:1px solid rgba(120,130,255,.22);border-radius:var(--ui-radius,12px);background:#fff;color:var(--admin-text)}
#customer-price-tier-editor .tier-row input:focus{border-color:var(--admin-accent);box-shadow:0 0 0 3px rgba(var(--admin-accent-rgb),.14);outline:none}
#customer-price-tier-editor .tier-del{border:1px solid rgba(var(--brand-rose-rgb),.3);background:rgba(var(--brand-rose-rgb),.10);color:var(--brand-rose-deep);border-radius:var(--ui-radius,12px)}
#customer-price-tier-editor .btn.ghost{border:1px dashed rgba(var(--admin-accent-2-rgb),.45);background:#fff;color:var(--brand-violet-deep);border-radius:var(--ui-radius,12px);font-weight:600}
#customer-price-tier-editor .btn.ghost:hover{background:rgba(var(--admin-accent-2-rgb),.10)}

@media(max-width:820px){.customer-price-layout{grid-template-columns:1fr}.customer-price-form-panel .form-grid{grid-template-columns:1fr}}
