#ppRoot{max-width:1500px;margin:auto;padding:8px 0 38px;color:#243043}#ppRoot *{box-sizing:border-box}.pp-hero,.pp-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.pp-hero{padding:22px 4px}.pp-hero h1{margin:4px 0;font-size:27px}.pp-hero p,.pp-heading p{color:#64748b;margin:4px 0}.pp-hero small{letter-spacing:.12em;color:#a31636;font-weight:800}.pp-actions{display:flex;gap:8px;flex-wrap:wrap}.pp-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;margin:14px 0;box-shadow:0 6px 20px rgba(0,0,0,.03)}.pp-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.pp-form label,.pp-card label{font-size:12px;color:#475569;font-weight:700;display:flex;flex-direction:column;gap:6px}#ppRoot input,#ppRoot select,#ppRoot textarea{border:1px solid #cbd5e1;border-radius:8px;padding:9px;max-width:100%;background:#fff;color:#1e293b;font-size:13px}#ppRoot textarea{width:100%}.pp-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.pp-kpis article{background:#fff;padding:16px;border-radius:12px;border:1px solid #e2e8f0}.pp-kpis small{display:block;color:#64748b;margin-bottom:8px}.pp-kpis strong{display:block;font-size:20px}.pp-available{max-height:135px;overflow:auto;display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.pp-available button{border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:8px 10px;cursor:pointer;font-size:12px}.pp-available button:disabled{opacity:.4}.pp-scroll{overflow-x:auto;margin-top:14px}.pp-table{border-collapse:collapse;min-width:1400px;width:100%;font-size:12px}.pp-table th,.pp-table td{padding:9px;border-bottom:1px solid #e2e8f0;white-space:nowrap;text-align:left}.pp-table th{background:#f8fafc}.pp-table td small{display:block;max-width:230px;white-space:normal;color:#64748b}.pp-table input{width:88px}.pp-table [data-remove]{border:0;border-radius:8px;background:#fee2e2;color:#991b1b;cursor:pointer;padding:7px 10px}.pp-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a;padding:12px;border-radius:10px;font-size:13px}
/* Step44 spreadsheet-first layout */
#ppRoot{max-width:none;width:100%}#ppRoot .pp-tools{display:flex;gap:8px;align-items:end;flex-wrap:wrap}#ppRoot .pp-tools label{min-width:100px}#ppRoot .pp-tools input{max-width:170px}#ppRoot .pp-hint{font-size:12px;color:#64748b}#ppRoot .pp-scroll{max-height:65vh;overflow:auto;border:1px solid #e2e8f0;border-radius:10px}#ppRoot .pp-edit-grid{min-width:2060px}#ppRoot .pp-edit-grid th{position:sticky;top:0;z-index:2;box-shadow:0 1px #cbd5e1}#ppRoot .pp-edit-grid td{padding:5px 6px}#ppRoot .pp-edit-grid input{width:105px;padding:7px;font-size:12px}#ppRoot .pp-edit-grid td:nth-child(1) input{width:90px}#ppRoot .pp-edit-grid td:nth-child(2) input{width:240px}#ppRoot .pp-edit-grid td:last-child input{width:180px}#ppRoot .pp-row-active{background:#f0fdf4}#ppRoot .pp-edit-grid tbody tr:hover{background:#f1f5f9}

/* Step45: SKU-by-SKU promotional validity dates */
#ppRoot .pp-edit-grid{min-width:2370px}#ppRoot .pp-edit-grid input[type="date"]{width:145px;min-width:145px}#ppRoot .pp-edit-grid td:nth-child(4){border-right:2px solid #e2e8f0}

/* Step46: validation without rerendering or browser alert / scroll jump */
#ppRoot .pp-edit-grid input.pp-invalid{border-color:#dc2626;background:#fff1f2;outline-color:#dc2626}

/* Step47 */
#ppRoot .pp-select-cell{position:sticky;left:0;z-index:1;background:#fff;min-width:118px;box-shadow:2px 0 5px #e2e8f0}
#ppRoot .pp-select-cell input{width:17px;height:17px;vertical-align:middle;accent-color:#a31636;cursor:pointer}
#ppRoot .pp-select-cell span{font-size:11px;margin-left:6px;white-space:nowrap}
#ppRoot .pp-select-cell .pp-applied{color:#15803d;font-weight:800}
#ppRoot .pp-select-cell .pp-pending{color:#64748b}
#ppRoot .pp-edit-grid th:first-child{position:sticky;left:0;z-index:4}
#ppRoot .pp-tools button{white-space:nowrap}
#ppRoot .pp-tools .pp-main-apply{background:#a31636;color:#fff;border-color:#a31636;font-weight:800}

/* Step 48: product name legibility. Multiline editor avoids clipped single-line titles.
   Pin SKU and product names while horizontally navigating discount/date columns. */
#ppRoot .pp-edit-grid{min-width:2740px}
#ppRoot .pp-edit-grid td:nth-child(2),#ppRoot .pp-edit-grid th:nth-child(2){position:sticky;left:118px;z-index:3;background:#fff;min-width:122px;width:122px;box-shadow:1px 0 #e2e8f0}
#ppRoot .pp-edit-grid td:nth-child(3),#ppRoot .pp-edit-grid th:nth-child(3){position:sticky;left:240px;z-index:3;background:#fff;min-width:410px;width:410px;max-width:410px;box-shadow:3px 0 6px rgba(15,23,42,.09)}
#ppRoot .pp-edit-grid th:nth-child(2),#ppRoot .pp-edit-grid th:nth-child(3){z-index:5;background:#edf2f8}
#ppRoot .pp-edit-grid td:nth-child(2) input{width:105px;font-size:13px;font-weight:700}
#ppRoot .pp-edit-grid td:nth-child(3) textarea{display:block;width:100%;min-height:66px;max-height:155px;resize:vertical;white-space:normal;overflow-wrap:anywhere;line-height:1.45;font-size:14px;font-weight:650;color:#132238;background:#f8fbff;border:1px solid #b8c8dc;padding:8px 10px}
#ppRoot .pp-edit-grid tbody tr{height:82px}
#ppRoot .pp-edit-grid tbody tr:hover td:nth-child(2),#ppRoot .pp-edit-grid tbody tr:hover td:nth-child(3){background:#f1f5f9}
#ppRoot .pp-edit-grid tbody tr.pp-row-active td:nth-child(2),#ppRoot .pp-edit-grid tbody tr.pp-row-active td:nth-child(3){background:#f0fdf4}
#ppRoot .pp-edit-grid .pp-select-cell{min-width:118px;width:118px}
#ppRoot .pp-edit-grid th:nth-child(2),#ppRoot .pp-edit-grid th:nth-child(3){white-space:normal}

/* Step 50: lifecycle visibility and duplicate action */
#ppRoot .pp-edit-grid{min-width:2890px}
#ppRoot .pp-edit-grid td:nth-child(2),#ppRoot .pp-edit-grid th:nth-child(2){position:static;min-width:150px;width:150px;background:#fff;box-shadow:none}
#ppRoot .pp-edit-grid td:nth-child(3),#ppRoot .pp-edit-grid th:nth-child(3){left:118px;min-width:122px;width:122px;max-width:122px}
#ppRoot .pp-edit-grid td:nth-child(4),#ppRoot .pp-edit-grid th:nth-child(4){position:sticky;left:240px;z-index:3;background:#fff;min-width:410px;width:410px;max-width:410px;box-shadow:3px 0 6px rgba(15,23,42,.09)}
#ppRoot .pp-edit-grid th:nth-child(3),#ppRoot .pp-edit-grid th:nth-child(4){z-index:5;background:#edf2f8}
#ppRoot .pp-edit-grid td:nth-child(3) input{width:105px;font-size:13px;font-weight:700}
#ppRoot .pp-edit-grid td:nth-child(4) textarea{display:block;width:100%;min-height:66px;resize:vertical;white-space:normal;overflow-wrap:anywhere;line-height:1.45;font-size:14px;font-weight:650;color:#132238;background:#f8fbff;border:1px solid #b8c8dc;padding:8px 10px}
#ppRoot .pp-edit-grid td:nth-child(5){border-right:0}
#ppRoot .pp-period-cell span{display:block;font-size:12px;font-weight:800;margin:3px 0 8px}
#ppRoot .pp-period-upcoming{color:#1d4ed8}#ppRoot .pp-period-active{color:#15803d}#ppRoot .pp-period-expired{color:#64748b}#ppRoot .pp-period-invalid-dates{color:#b91c1c}#ppRoot .pp-period-unscheduled{color:#a16207}
#ppRoot .pp-duplicate{background:#f1f5f9;color:#243043;border:1px solid #cbd5e1;border-radius:7px;padding:7px;white-space:nowrap;cursor:pointer;font-size:11px;font-weight:750}
#ppRoot .pp-edit-grid tbody tr:hover td:nth-child(3),#ppRoot .pp-edit-grid tbody tr:hover td:nth-child(4){background:#f1f5f9}
#ppRoot .pp-edit-grid tbody tr.pp-row-active td:nth-child(3),#ppRoot .pp-edit-grid tbody tr.pp-row-active td:nth-child(4){background:#f0fdf4}

/* Step 51 autosave indicator */
.pp-autosave{display:inline-flex;align-items:center;font-size:12px;font-weight:700;color:#0f766e;padding:8px 10px;background:#ecfdf5;border-radius:8px}

/* Step 52 workflow/navigation */
#ppRoot .pp-workspace-guide{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:12px;font-weight:650;color:#475569}
#ppRoot .pp-workspace-guide span{display:inline-flex;align-items:center;gap:7px}
#ppRoot .pp-workspace-guide b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;background:#a31636;color:#fff;border-radius:50%}
#ppRoot .pp-filterbar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;background:#f1f5f9;border-radius:10px;padding:12px;margin:12px 0 14px}
#ppRoot .pp-filterbar label{min-width:145px}#ppRoot .pp-filterbar input{width:165px}#ppRoot .pp-filter-count{padding:10px;font-size:12px;font-weight:700;color:#334155}
#ppRoot .pp-heading{align-items:flex-start}#ppRoot .pp-heading>div:first-child{max-width:680px}
#ppRoot .pp-tools{width:100%;padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:10px}
#ppRoot .pp-kpis{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}#ppRoot .pp-kpis article{padding:12px}#ppRoot .pp-kpis strong{font-size:18px}
