.smart-view{display:flex;flex-direction:column;gap:14px}.smart-batchbar,.smart-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;background:#fff;border:1px solid #e3e8ef}.smart-batchbar select{min-width:210px}.smart-batchbar span,.smart-actions span{color:#586174;margin-right:auto}.smart-config{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(150px,1fr));gap:14px;align-items:end;padding:16px}.smart-config h3,.smart-config p{margin:0}.smart-config p{color:#687285;font-size:13px;margin-top:5px}.smart-config label,.smart-form label{display:grid;gap:6px;font-size:13px;color:#475066}.smart-config input,.smart-config select,.smart-form input,.smart-form select{width:100%;min-height:38px;border:1px solid #ccd4df;border-radius:5px;padding:7px 9px;background:#fff}.smart-product{display:flex;align-items:center;gap:10px;min-width:260px}.smart-product img{width:50px;height:58px;object-fit:cover;border-radius:4px;background:#eef1f5}.smart-product strong,.smart-product small{display:block;max-width:330px}.smart-product small{color:#7b8495;margin-top:4px}.smart-status{display:inline-flex;padding:3px 8px;border-radius:4px;background:#eef2f6;color:#596477}.smart-status.good{background:#e5f7ec;color:#147342}.smart-status.bad{background:#ffebeb;color:#b42318}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:12px}.template-item{background:#fff;border:1px solid #dfe5ed;border-radius:6px;padding:16px}.template-item header{display:flex;justify-content:space-between;gap:12px}.template-item h3{margin:0 0 5px}.template-item p{margin:10px 0;color:#5d6677;line-height:1.7}.template-item footer{display:flex;gap:8px;justify-content:flex-end}.template-default{font-size:12px;color:#147342;background:#e5f7ec;padding:3px 7px;border-radius:4px}.smart-dialog{width:min(850px,calc(100vw - 30px));border:0;border-radius:7px;padding:0}.smart-dialog form{padding:20px}.smart-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0}.smart-form .checkline{display:flex;align-items:center;gap:8px}.smart-form .checkline input{width:auto}.record-error{max-width:320px;color:#b42318;white-space:normal}.record-stage{font-weight:600}.btn.danger{background:#fff;border-color:#f0b8b8;color:#b42318}@media(max-width:1050px){.smart-config{grid-template-columns:repeat(2,minmax(0,1fr))}.smart-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.smart-config,.smart-form{grid-template-columns:1fr}.smart-batchbar>*{flex:1 1 160px}}
.smart-form .smart-wide{grid-column:1/-1}.category-picker{position:relative;display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:6px}.category-picker>input{min-width:0}.category-picker>button{border:1px solid #b9c8d8;border-radius:7px;background:#f7fafc;color:#176b5b;padding:0 14px;cursor:pointer}.category-selected{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 11px;border:1px solid #d7e2ea;border-radius:7px;background:#f7fbfa;font-size:13px}.category-selected span{color:#607080;font-size:12px}.category-results{grid-column:1/-1;max-height:300px;overflow:auto;border:1px solid #d7e2ea;border-radius:8px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.14);padding:7px}.category-results section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px}.category-results h4{grid-column:1/-1;margin:0 0 3px;color:#176b5b;font-size:13px;border-bottom:1px solid #edf1f4;padding-bottom:6px}.category-results button{text-align:left;border:1px solid transparent;border-radius:6px;background:#fff;padding:7px 9px;cursor:pointer}.category-results button:hover{border-color:#91c8bc;background:#edf8f5}.category-results button strong,.category-results button span{display:block}.category-results button span{font-size:11px;color:#6b7785;margin-top:2px}.category-empty{padding:16px;color:#667482;text-align:center}.category-empty.bad{color:#b42318}.smart-form label small{display:block;margin-top:5px;color:#758291;font-size:11px}@media(max-width:760px){.category-results section{grid-template-columns:1fr}.category-selected{align-items:flex-start;flex-direction:column}}
