/* ═══════════ Update 0.2 · ПЛОЧИТЕ М1–М5 (по концепциите, едно към едно) ═══════════ */
#rdMats{margin:0 0 14px}
#rdMats .d2Screen{margin:0;min-height:600px}
#rdMats .d2Modes{padding:0 0 10px}
body.rdMatsOn #page-price .card:has(#matTable){display:none}
.mtGrid{flex:1;padding:14px;display:flex;flex-wrap:wrap;gap:10px;align-content:flex-start;background:#eef1f6;overflow:auto}
.mtCard{width:186px;background:#fff;border:1px solid #d9dee6;border-radius:12px;padding:10px;box-sizing:border-box;cursor:pointer;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s;animation:d2In .35s cubic-bezier(.2,.8,.2,1) both;position:relative}
.mtCard:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(28,44,68,.12)}
.mtCard.on{outline:2px solid #e8b978}
.mtSw{display:inline-block;border-radius:7px;border:1px solid rgba(0,0,0,.12);vertical-align:middle;flex-shrink:0}
.mtCard .top{display:flex;gap:8px;align-items:center}
.mtCard .nm{font-size:11px;font-weight:800;color:#1a2233}
.mtCard .cd{font-size:9px;color:#5c6a7d}
.mtCard .meta{margin-top:8px;font-size:9.5px;color:#5c6a7d;line-height:1.6}
.mtCard .chips{margin-top:6px;display:flex;gap:4px;flex-wrap:wrap}
.mtChip{display:inline-block;background:#fff;color:#5c6a7d;border:1px solid #d9dee6;font-size:10px;font-weight:800;padding:3px 9px;border-radius:999px;cursor:pointer}
.mtChip.on{background:#1c2c44;color:#e8b978;border-color:#1c2c44}
.mtStar{position:absolute;top:8px;right:10px;font-size:13px;color:#cfd7e2;cursor:pointer} .mtStar.on{color:#e8b978}
.mtAdd{width:186px;border:1.5px dashed #d9dee6;border-radius:12px;padding:10px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#5c6a7d;font-size:10.5px;text-align:center;cursor:pointer;min-height:130px}
.mtAdd .plus{width:28px;height:28px;border-radius:99px;background:#1c2c44;color:#e8b978;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.mtTblWrap{flex:1;padding:10px 14px;box-sizing:border-box;overflow:auto}
.mtTblWrap .d2Tbl td{padding:6px 8px}
.mtTblWrap .d2Tbl td input{width:64px;border:1px solid transparent;border-radius:6px;padding:3px 5px;font-size:11px;color:#1a2233;background:transparent}
.mtTblWrap .d2Tbl td input:hover{border-color:#d9dee6;background:#fff}
.mtTblWrap .d2Tbl td input:focus{outline:none;border-color:#1c2c44;box-shadow:0 0 0 3px rgba(232,185,120,.3);background:#fff}
.mtTblWrap .d2Tbl td input.nm{width:130px;font-weight:700}
.mtSmall{display:flex;gap:10px;margin-top:12px}
.mtBox{flex:1;background:#fff;border:1px solid #d9dee6;border-radius:12px;padding:12px;font-size:10.5px;color:#1a2233;line-height:1.9;box-sizing:border-box}
.mtBox input[type=number]{width:44px;border:1px solid #d9dee6;border-radius:8px;padding:4px 6px;font-size:10.5px;text-align:center;margin:0 3px}
.mtBar{display:flex;align-items:center;gap:8px;margin-bottom:7px;font-size:10.5px;color:#1a2233}
.mtBar .lab{width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mtBar .tr{flex:1;height:10px;background:#eef2f7;border-radius:99px;overflow:hidden}
.mtBar .tr span{display:block;height:10px;border-radius:99px;background:linear-gradient(90deg,#e8b978,#b98a3e);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.mtBar .v{width:90px;text-align:right;color:#5c6a7d}
.mtBar:hover .lab{color:#b98a3e}
.mtKpis{display:flex;gap:10px;margin-top:14px}
.mtKpi{flex:1;background:#fff;border:1px solid #d9dee6;border-radius:12px;padding:10px;box-sizing:border-box}
.mtKpi .v{font-size:22px;font-weight:800;color:#1c2c44} .mtKpi .l{font-size:9.5px;color:#5c6a7d}
.mtCut{flex:1;padding:14px;box-sizing:border-box}
.mtCut svg{width:100%;max-width:470px;height:auto;background:#fafbfd;border-radius:10px}
.mtSw2{display:inline-block;width:28px;height:16px;border-radius:99px;background:#cfd7e2;position:relative;vertical-align:middle;margin-right:6px;cursor:pointer;transition:background .2s}
.mtSw2::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:99px;background:#fff;transition:transform .25s cubic-bezier(.2,.8,.2,1),background .2s}
.mtSw2.on{background:#1c2c44} .mtSw2.on::after{transform:translateX(12px);background:#e8b978}
.mtSide{width:320px;flex-shrink:0;border-left:1px solid #d9dee6;background:#f7f9fc;padding:12px;box-sizing:border-box;overflow:auto;font-size:10.5px;color:#1a2233;line-height:2.1}
.mtSide input[type=number]{width:50px;border:1px solid #d9dee6;border-radius:8px;padding:4px 6px;font-size:10.5px;text-align:center;margin:0 3px;background:#fff}
.mtSide table td, .mtSide table th{font-size:10.5px}
.mtSide table input{width:60px !important}
.mtCat{position:fixed;inset:0;background:rgba(16,27,45,.45);display:flex;align-items:center;justify-content:center;z-index:9000}
.mtCatBox{background:#fff;border-radius:16px;padding:20px 22px;width:560px;max-width:94vw;max-height:88vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:d2In .3s cubic-bezier(.2,.8,.2,1)}
.mtCatBox h4{font-size:14px;font-weight:800;color:#1c2c44;margin:0 0 10px}
.mtCatRow{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:9px;cursor:pointer;font-size:11.5px;color:#1a2233}
.mtCatRow:hover{background:#f4f6fa}
.mtCatRow .c{font-size:9.5px;color:#5c6a7d;margin-left:auto}
.mtBest{color:#b98a3e;font-weight:800}
