.rp-page{display:grid;gap:18px;color:#172018}
.rp-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border:1px solid #d9dfd5;border-radius:25px;background:linear-gradient(120deg,#fff,#f5f9e7)}
.rp-hero h2{margin:4px 0 7px;font-size:34px}
.rp-hero p{max-width:760px;margin:0;color:#6e776e;line-height:1.5}
.rp-upload{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:13px;background:#172018;color:#fff;font-weight:900;cursor:pointer}
.rp-upload input{display:none}
.rp-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.rp-kpis article{display:grid;gap:4px;padding:18px;border:1px solid #dde2da;border-radius:18px;background:#fff}
.rp-kpis span,.rp-kpis small{color:#778078}
.rp-kpis b{font-size:28px}
.rp-kpis .danger{border-color:#efc3ba;background:#fff4f1}
.rp-controls{display:flex;gap:10px;padding:14px;border:1px solid #dde2da;border-radius:17px;background:#fff}
.rp-controls input{flex:1}
.rp-controls input,.rp-controls select{min-height:42px;padding:0 12px;border:1px solid #ccd5c9;border-radius:11px;background:#fff;font:inherit}
.rp-issue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.rp-issue{padding:18px;border:1px solid #d9dfd5;border-radius:19px;background:#fff}
.rp-issue.urgent{border-color:#d88676;background:#fff5f1}
.rp-issue.high{border-color:#e3bf79;background:#fffaf0}
.rp-issue header,.rp-production-card>header{display:flex;justify-content:space-between;gap:14px}
.rp-issue header span{color:#677f29;font-size:11px;font-weight:900;text-transform:uppercase}
.rp-issue h3,.rp-production-card h3{margin:4px 0}
.rp-issue header>b{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#e3f568;font-size:19px}
.rp-priority{display:flex;justify-content:space-between;margin:14px 0;padding:9px 11px;border-radius:11px;background:#f3f5f1;color:#6f786f;font-size:12px}
.rp-priority strong{color:#26331d}
.rp-issue p{line-height:1.45}
.rp-issue blockquote{margin:9px 0;padding:10px;border-left:3px solid #b8ca6b;background:#f7f8f5;color:#5f675f;font-size:12px}
.rp-empty{grid-column:1/-1;display:grid;place-items:center;gap:7px;min-height:170px;padding:30px;border:1px dashed #c9d1c5;border-radius:20px;background:#fff;color:#727b72;text-align:center}
.rp-empty b{color:#172018;font-size:20px}
.rp-production-note{display:flex;gap:14px;padding:15px 18px;border:1px solid #dce5b9;border-radius:15px;background:#f8fce9}
.rp-production-note span{color:#667064}
.rp-production-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.rp-production-card{display:grid;gap:16px;padding:22px;border:1px solid #d7ded3;border-radius:23px;background:#fff;box-shadow:0 10px 30px #1720180b}
.rp-production-card>header>div>span{color:#75842d;font-size:11px;font-weight:900;text-transform:uppercase}
.rp-production-card>header>b{align-self:start;padding:7px 10px;border-radius:999px;background:#eef3e9;color:#435637}
.rp-production-card>header>b.danger{background:#ffe7e1;color:#9e392b}
.rp-product-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.rp-product-facts span{display:grid;gap:4px;min-width:0;padding:10px;border-radius:11px;background:#f4f6f2}
.rp-product-facts small{color:#778078}
.rp-product-facts b{overflow-wrap:anywhere}
.rp-production-card h4{margin:0 0 9px}
.rp-size-table{overflow:auto;border:1px solid #e0e5dd;border-radius:12px}
.rp-size-table table{width:100%;border-collapse:collapse;font-size:12px}
.rp-size-table th,.rp-size-table td{padding:8px;border-bottom:1px solid #edf0eb;text-align:left}
.rp-size-table th{background:#f4f6f2;color:#697268}
.rp-inline-empty{padding:12px;border-radius:11px;background:#f5f7f4;color:#788078}
.rp-problem-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.rp-problem-list li{display:grid;gap:3px;padding:10px 12px;border-left:4px solid #c4cf9b;border-radius:9px;background:#f7f8f5}
.rp-problem-list li.urgent{border-color:#cf604c;background:#fff2ef}
.rp-problem-list li.high{border-color:#dba94f;background:#fff8e8}
.rp-problem-list span{color:#687068;font-size:12px}
.rp-note{display:grid;gap:6px}
.rp-note>span{font-weight:900}
.rp-note textarea{min-height:95px;padding:12px;border:1px solid #cbd4c8;border-radius:12px;resize:vertical;font:inherit;line-height:1.45}
.rp-note small{color:#798179}
.rp-column-add{display:flex;gap:8px}
.rp-column-add input{min-width:220px;padding:0 12px;border:1px solid #cbd4c8;border-radius:11px;font:inherit}
.rp-data-meta{display:flex;justify-content:space-between;padding:13px 16px;border:1px solid #dde2da;border-radius:14px;background:#fff;color:#707970}
.rp-data-meta b{color:#172018}
.rp-data-table{max-height:68vh;overflow:auto;border:1px solid #d8dfd4;border-radius:18px;background:#fff}
.rp-data-table table{min-width:1500px;width:100%;border-collapse:separate;border-spacing:0}
.rp-data-table th,.rp-data-table td{min-width:150px;padding:8px;border-right:1px solid #e6eae4;border-bottom:1px solid #e6eae4;text-align:left}
.rp-data-table thead th{position:sticky;top:0;z-index:3;background:#eff3eb}
.rp-data-table th.sticky{position:sticky;left:0;z-index:2;min-width:190px;background:#f7f9f5}
.rp-data-table thead th.sticky{z-index:4;background:#e9efe2}
.rp-data-table th small{display:block;margin-top:3px;color:#7b847a;font-weight:400}
.rp-data-table thead th:not(.sticky){padding-right:28px}
.rp-data-table thead th button{float:right;width:23px;height:23px;border:0;border-radius:50%;background:#dce3d7;color:#53614d;cursor:pointer}
.rp-data-table td input{width:100%;min-height:37px;box-sizing:border-box;padding:7px 9px;border:1px solid transparent;border-radius:8px;background:transparent;font:inherit}
.rp-data-table td input:hover,.rp-data-table td input:focus{border-color:#9eb45a;background:#fff;outline:none}
.rp-data-hint{margin:0;color:#727b72;font-size:12px}
.rp-data-table td.rp-missing{background:#fff0ee}
.rp-data-table td.rp-missing input{border-color:#de7d73}
.rp-model-divider th{position:static!important;padding:9px 14px!important;background:#e8f2d5!important;font-weight:900}
.rp-data-meta label{display:flex;align-items:center;gap:7px}
.rp-column-add .rp-upload{white-space:nowrap}
.rp-palette-research{display:grid;gap:9px;max-height:180px;overflow:auto;padding:16px;border:1px solid #d8dfcd;border-radius:16px;background:#fbfcf7}
.rp-palette-research h3,.rp-palette-research p{margin:0}
.rp-palette-research p{color:#697268}
.rp-palette-research article{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:11px;border:1px solid #e3e8db;border-radius:11px;background:#fff}
.rp-palette-research article b{min-width:120px}
.rp-palette-research article span,.rp-palette-research article small{padding:5px 8px;border-radius:7px;background:#f2f5ec;color:#485447}
.rp-source-controls{display:grid;gap:12px;padding:18px;border:1px solid #d8e4b6;border-radius:18px;background:#fbfdf5}
.rp-source-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.rp-source-heading h3,.rp-source-heading p{margin:0}
.rp-source-heading p{margin-top:5px;color:#647063;font-size:13px}
.rp-source-heading>b{flex:0 0 auto;color:#4f7022}
.rp-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rp-source-card button{display:grid;gap:5px;width:100%;min-height:95px;padding:15px;border:1px solid #b9d275;border-radius:13px;background:#fff;text-align:left;cursor:pointer}
.rp-source-card button:hover,.rp-source-card button:focus-visible{border-color:#6f9622;background:#f5fbdc;outline:2px solid #d7ee96}
.rp-source-card b{font-size:15px}
.rp-source-card span{overflow:hidden;color:#526c30;text-overflow:ellipsis;white-space:nowrap}
.rp-source-card small{color:#778078}
.rp-source-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.rp-source-actions button{padding:10px 14px;border:1px solid #d6dfcc;border-radius:11px;background:#fff;font-weight:800;cursor:pointer}
.rp-source-actions button:hover{border-color:#78992d;background:#f4f9e7}
.rp-source-actions span{margin-left:auto;color:#647063;font-size:12px}
.rp-sales-head{background:#eaf2d6!important}
.rp-sales-value{min-width:112px!important;background:#f8fbf1;font-variant-numeric:tabular-nums;font-weight:800;white-space:nowrap}
.rp-sales-empty{color:#8a9386;font-weight:400}
.rp-data-table th.sticky b{overflow-wrap:anywhere}
.rp-data-table th.sticky input[data-rp-assign-wb]{width:100%;margin-top:6px;padding:6px;border:1px solid #d38373;border-radius:7px;background:#fff;font:inherit;font-size:11px}
.rp-data-table thead th button[data-rp-remove-column]{display:none!important}
.rp-data-table thead th{vertical-align:top;min-width:180px;padding:8px 10px!important}
.rp-data-table thead th.sticky{min-width:215px}
.rp-head-controls{display:flex;align-items:center;gap:5px;margin-bottom:9px}
.rp-head-controls .rp-sort{float:none;width:26px;height:26px;flex:0 0 26px;border:1px solid #cbd8bf;border-radius:7px;background:#fff;font-size:16px;line-height:1;cursor:pointer}
.rp-head-controls input{box-sizing:border-box;width:100%;min-width:65px;height:27px;padding:3px 6px;border:1px solid #cbd8bf;border-radius:7px;background:#fff;font:inherit;font-size:11px}
.rp-head-controls input:focus{outline:2px solid #a4c64f}
.rp-drag-handle{display:grid;place-items:center;flex:0 0 22px;width:22px;height:26px;border:1px solid #cbd8bf;border-radius:7px;background:#f8faf4;color:#50673d;cursor:grab;user-select:none}
.rp-drag-handle:active{cursor:grabbing}
.rp-product-photo-cell,.rp-photo-head{min-width:92px!important;width:92px}
.rp-product-photo-cell img{display:block;width:54px;height:54px;object-fit:cover;border-radius:8px;background:#f0f2ed}
.rp-product-photo-cell span{color:#9da59b}
.rp-data-table tbody tr[hidden]{display:none}
.rp-group-hint{margin:12px 2px}
.rp-group-master td:not(.rp-sales-value){box-shadow:inset 0 0 0 1px #d7e6ae}
.rp-pattern-chooser{position:absolute;z-index:30;top:100%;left:0;min-width:240px;max-height:320px;overflow:auto;padding:5px;border:1px solid #c9d8b1;border-radius:10px;background:#fff;box-shadow:0 10px 25px #1c291a30}
.rp-data-table td:has(.rp-pattern-chooser){position:relative}
.rp-pattern-chooser button{display:flex;align-items:center;gap:8px;width:100%;padding:5px;border:0;border-radius:7px;background:#fff;text-align:left;cursor:pointer}
.rp-pattern-chooser button:hover{background:#edf5dc}
.rp-pattern-chooser b,.rp-pattern-chooser small{display:block}
.rp-pattern-chooser small{color:#6c7568}
.rp-pattern-thumb{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;overflow:hidden;border-radius:6px;background:#edf0ea}
.rp-pattern-thumb img{width:100%;height:100%;object-fit:cover}
.rp-pattern-chooser p{margin:8px;font-size:12px;color:#717a6c}
