/* Price-plan detail polish: compact SPU cards, fixed SKU columns, quiet operation chrome. */
.mps-plan-product-cards { display: grid; gap: 12px; }
.mps-detail-card { overflow: hidden; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); }
.mps-detail-card + .mps-detail-card { margin-top: 12px; }
.mps-product-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e6edf5; background: #f8fafc; }
.mps-product-image { width: 48px; height: 48px; border: 1px solid #e2e8f0; border-radius: 8px; object-fit: contain; background: #fff; }
.mps-product-image-placeholder { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #eaf1f8; color: #64748b; font-size: 11px; }
.mps-product-name { display: -webkit-box; overflow: hidden; color: #0f172a; font-size: 14px; font-weight: 700; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mps-product-meta { overflow: hidden; margin-top: 4px; color: #64748b; font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.mps-product-count { align-self: start; border: 1px solid #d9e4ef; border-radius: 999px; padding: 3px 8px; color: #52677d; font-size: 12px; white-space: nowrap; }
.mps-variant-table { min-width: 1120px; }
.mps-variant-grid { display: grid; grid-template-columns: 32px 160px 250px 250px 120px 170px 84px; column-gap: 12px; align-items: center; }
.mps-variant-heading { border-bottom: 1px solid #e6edf5; padding: 8px 16px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.mps-variant-row { padding: 11px 16px; border-bottom: 1px solid #edf2f7; color: #334155; font-size: 13px; }
.mps-variant-row:last-child { border-bottom: 0; }
.mps-variant-row:hover { background: #fbfdff; }
.mps-variant-spec { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mps-variant-identifiers { min-width: 0; color: #64748b; font-size: 12px; line-height: 18px; }
.mps-variant-identifiers span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mps-variant-identifiers strong { color: #475569; font-weight: 600; }
.mps-price-stack { display: flex; flex-wrap: wrap; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.mps-price-stack span { color: #64748b; font-size: 12px; white-space: nowrap; }
.mps-price-stack strong { color: #1e293b; font-weight: 700; }
.mps-status-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.mps-status-chip { border-radius: 999px; padding: 3px 7px; background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mps-status-chip.is-active { background: #e8f3ff; color: #1467b8; }
.mps-status-chip.is-warning { background: #fff5df; color: #ad6300; }
.mps-profit { font-variant-numeric: tabular-nums; }
.mps-profit strong { display: block; color: #166534; font-weight: 750; }
.mps-profit.is-loss strong { color: #b91c1c; }
.mps-profit small { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }
.mps-edit-button { justify-self: end; border: 1px solid #b9d4ef; border-radius: 6px; padding: 6px 10px; background: #fff; color: #1769aa; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mps-edit-button:hover { border-color: #3182ce; background: #f0f7ff; }
.mps-empty { padding: 36px 16px; color: #64748b; font-size: 13px; text-align: center; }
.mps-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #e6edf5; color: #64748b; font-size: 12px; }
.mps-pagination button { border: 1px solid #d6e0ea; border-radius: 6px; padding: 5px 10px; background: #fff; color: #334155; font-weight: 700; }
.mps-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.mps-editor-mask { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(15 23 42 / 44%); }
.mps-editor { width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid #d7e1eb; border-radius: 12px; background: #fff; box-shadow: 0 20px 55px rgb(15 23 42 / 24%); }
.mps-editor-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px 20px 14px; border-bottom: 1px solid #e7edf4; }
.mps-editor-head h2 { color: #0f172a; font-size: 16px; font-weight: 750; }
.mps-editor-head p { margin-top: 4px; color: #64748b; font-size: 12px; line-height: 18px; }
.mps-editor-close { width: 28px; height: 28px; border-radius: 6px; color: #64748b; font-size: 20px; line-height: 1; }
.mps-editor-content { padding: 18px 20px 20px; }
.mps-editor-summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid #e2eaf2; border-radius: 8px; background: #f8fafc; }
.mps-editor-summary strong { overflow: hidden; color: #1e293b; font-size: 13px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.mps-editor-summary span { overflow: hidden; color: #64748b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mps-editor-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mps-editor-form label { color: #334155; font-size: 12px; font-weight: 700; }
.mps-editor-form input { width: 100%; margin-top: 6px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 7px 8px; color: #0f172a; font-size: 13px; font-variant-numeric: tabular-nums; }
.mps-editor-flags { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; color: #334155; font-size: 13px; }
.mps-editor-help { margin-top: 10px; color: #64748b; font-size: 12px; line-height: 18px; }
.mps-scenarios { margin-top: 18px; border: 1px solid #dae6f1; border-radius: 9px; overflow: hidden; }
.mps-scenarios-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f4f8fc; }
.mps-scenarios-head strong { color: #174a78; font-size: 13px; }
.mps-scenarios-head span { color: #718096; font-size: 11px; }
.mps-scenario-list { display: grid; gap: 0; }
.mps-scenario { display: grid; grid-template-columns: minmax(170px, 1.15fr) minmax(145px, 1fr) minmax(115px, .75fr) minmax(160px, 1fr); gap: 12px; padding: 11px 12px; border-top: 1px solid #e8eef5; font-variant-numeric: tabular-nums; }
.mps-scenario:first-child { border-top: 0; }
.mps-scenario b { display: block; color: #1e293b; font-size: 13px; }
.mps-scenario span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; line-height: 16px; }
.mps-scenario-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mps-scenario-tag { border-radius: 999px; padding: 2px 6px; background: #eaf3ff; color: #1769aa; font-size: 10px; font-weight: 750; white-space: nowrap; }
.mps-scenario-empty { padding: 13px 12px; color: #64748b; font-size: 12px; line-height: 18px; }
.mps-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 760px) { .mps-product-head { grid-template-columns: 42px minmax(0, 1fr); padding: 10px 12px; } .mps-product-image,.mps-product-image-placeholder { width: 42px; height: 42px; } .mps-product-count { display: none; } .mps-editor-mask { padding: 10px; } .mps-editor-content,.mps-editor-head { padding: 14px; } .mps-editor-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mps-scenario { grid-template-columns: 1fr 1fr; } }
