#modal:has(.excel-import){width:min(960px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.excel-import{min-width:0}.excel-import h3{margin:20px 0 12px}.excel-import .form-grid{gap:14px}.excel-import input[type=file]{width:100%;min-width:0;padding:12px;background:#f4f7f6;border:1px dashed #9eb9b0;border-radius:8px;white-space:normal}
.excel-profiles{border:1px solid #b8cec4;background:#f3f8f5;border-radius:10px;padding:14px;margin-bottom:18px}.excel-profiles h3{margin-top:0}.excel-profile-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.excel-profile-actions .field{flex:1 1 240px;min-width:0}.excel-profile-actions button{min-height:44px}.excel-profile-note{font-size:13px;line-height:1.5;padding:8px 12px;background:#fff9e9;border-left:3px solid #d5ae57;margin-top:12px}.excel-profile-note p{margin:6px 0}
@media(max-width:600px){.excel-profile-actions .field{flex-basis:100%}.excel-profile-actions button{flex:1 1 auto}.excel-profiles{padding:10px}}
.excel-source,.excel-defaults,.excel-warnings{margin:18px 0;padding:14px;border:1px solid #d5e2db;border-radius:10px;background:#f8faf8}.excel-import summary{cursor:pointer;font-weight:600}.excel-defaults .form-grid{margin-top:14px}.excel-scroll{max-width:100%;overflow:auto;border:1px solid #dbe4de;border-radius:8px;margin-top:16px;max-height:420px}.excel-scroll table{border-collapse:collapse;width:100%;font-size:13px;min-width:640px}.excel-scroll th{background:#edf3ef;text-align:left;position:sticky;top:0}.excel-scroll td,.excel-scroll th{border:1px solid #dbe4de;padding:9px 10px;vertical-align:top}.excel-scroll td{max-width:320px;overflow-wrap:anywhere}.excel-scroll small{display:block;color:#61746d;margin-top:4px}.excel-scroll .num{white-space:nowrap;text-align:right}.excel-source .excel-scroll{max-height:270px}.excel-source td{min-width:110px}
.excel-import .stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0}.excel-errors{border-left:4px solid #b83d32;background:#fff3ef;padding:8px 16px;margin:12px 0}.excel-errors ul,.excel-warnings ul{padding-left:20px;line-height:1.6;max-height:210px;overflow:auto}.excel-warnings{background:#fff9e9;border-color:#e8d59b}.excel-pages{display:flex;gap:8px;align-items:center;margin:12px 0 20px}.excel-pages span{margin-right:auto;font-size:13px}.excel-pages button{min-width:44px;min-height:44px}
#modal:has(.excel-import) .modal-foot{flex-wrap:wrap}#modal:has(.excel-import) .modal-foot .left{margin-right:auto}
@media(max-width:600px){.excel-import .form-grid{grid-template-columns:1fr}.excel-source,.excel-defaults,.excel-warnings{padding:10px}.excel-import .stats{gap:8px}.excel-import .stat{padding:12px}.excel-import .stat strong{font-size:20px}#modal:has(.excel-import) .modal-foot{gap:8px;padding:12px}#modal:has(.excel-import) .modal-foot button{min-height:44px;padding:9px 12px}#modal:has(.excel-import) .modal-foot .primary{flex:1 1 100%}}
@media(max-width:600px){
  .price-preview table,.price-preview tbody{display:block;min-width:0;width:100%}
  .price-preview thead{display:none}
  .price-preview tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;border-bottom:1px solid #b8cec4;gap:4px 12px}
  .price-preview td{display:block;border:0;padding:0;max-width:none;min-width:0}
  .price-preview td:nth-child(-n+3){grid-column:1/-1}
  .price-preview td:first-child{display:flex;gap:8px;color:#61746d;font-size:12px}
  .price-preview td:first-child small{display:inline;margin:0}
  .price-preview td:nth-child(2){font-size:14px;line-height:1.45}
  .price-preview td:nth-child(3){font-size:12px;color:#61746d;margin-bottom:8px}
  .price-preview td:nth-child(3)::before{content:'Единица: '}
  .price-preview .num{text-align:left;font-weight:700;white-space:normal}
  .price-preview .num::before{display:block;color:#61746d;font-size:11px;font-weight:400;margin-bottom:3px}
  .price-preview td:nth-child(4)::before{content:'Прежняя цена'}
  .price-preview td:nth-child(5)::before{content:'Цена из файла'}
  .excel-import:has(.price-preview) .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .excel-import:has(.price-preview) .stat{padding:10px 8px}
  .excel-import:has(.price-preview) .stat span{font-size:11px}
}
