@charset "UTF-8";.lead-body{background:var(--bg-page, #f8fafc);color:#0f172a;font-family:var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);min-height:100vh;overflow-x:hidden;overflow-y:auto}.lead-page{max-width:960px;margin:0 auto;padding:48px 20px 64px;min-height:auto;overflow-x:hidden}.lead-hero{text-align:center;margin-bottom:42px}.lead-hero h1{margin:0 0 12px;font-size:32px;font-weight:800;letter-spacing:-.2px}.lead-hero p{margin:0;font-size:18px;color:var(--text-secondary, #64748b);opacity:.9}.lead-card{background:var(--surface-card, #ffffff);border-radius:16px;padding:36px 32px;box-shadow:0 14px 32px #00000014;border:1px solid var(--border-subtle, #e5e7eb);overflow:visible}.lead-card h2{margin:0 0 22px;font-size:24px;font-weight:700}.lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 26px}.lead-grid-full{grid-column:1/3}.lead-label{display:block;font-size:14px;color:#334155;margin-bottom:6px;font-weight:600}.lead-input,.lead-textarea,.lead-select{width:100%;padding:11px 14px;border-radius:10px;border:1px solid var(--border-strong, #cbd5e1);background:#fff;font-size:15px;color:#0f172a;transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}.lead-input:focus,.lead-textarea:focus,.lead-select:focus{border-color:var(--brand-green, #10b981);box-shadow:0 0 0 3px #10b9811a;outline:none}.lead-textarea{min-height:110px;resize:vertical}.lead-pd{margin-top:6px;font-size:14px;color:#0f172a}.lead-submit{margin-top:24px;width:100%;padding:13px;border-radius:12px;border:none;background:#475569;color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:all .15s ease;box-sizing:border-box}.lead-submit:hover{background:#334155;transform:translateY(-1px)}.lead-submit:active{transform:translateY(0)}.lead-form-group{border:1px solid #e5e7eb;border-radius:12px;padding:14px;background:#f9fafb}.lead-form-group-title{font-weight:600;font-size:14px;color:#475569;margin-bottom:10px}.lead-form-group-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lead-form-group-label{font-size:13px;color:#64748b}.check-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#0f172a;cursor:pointer}.check-label input[type=checkbox]{width:18px;height:18px;margin:0;cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;border:2px solid #cbd5e1;border-radius:4px;background:#fff;position:relative;flex-shrink:0;transition:all .15s ease}.check-label input[type=checkbox]:hover{border-color:#94a3b8;background:#f8fafc}.check-label input[type=checkbox]:checked{background:#10b981;border-color:#10b981}.check-label input[type=checkbox]:checked:after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.check-label input[type=checkbox]:focus{outline:none;box-shadow:0 0 0 3px #10b9811a}.lead-checkbox-wrapper{display:flex;align-items:center;gap:10px;margin-top:4px}.lead-checkbox-group{display:flex;flex-direction:column;gap:8px}.lead-error{display:none;margin-top:6px;font-size:13px;color:#b91c1c}.lead-error.visible{display:block}.lead-success{display:none;margin-top:16px;padding:12px 14px;border-radius:10px;background:#f0fdf4;border:1px solid #bbf7d0;font-size:14px;color:#166534}.lead-success.visible{display:block}.lead-hint{margin-top:6px;font-size:13px;color:#64748b}@media (min-width: 769px){.lead-product-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:10px;margin-bottom:8px;align-items:center}.lead-add-btn{margin-top:12px;background:transparent;color:#475569;font-size:13px;font-weight:500;padding:8px 14px;width:auto;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;justify-content:center}.lead-add-btn:hover{background:#f8fafc;border-color:#cbd5e1;color:#334155}.lead-add-btn:active{background:#f1f5f9}}.lead-assortment-section{border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;background:#f9fafb;margin-bottom:12px}.lead-assortment-header{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.lead-assortment-title{font-weight:600;font-size:14px;color:#475569}.lead-assortment-toggle{font-size:12px;color:#6b7280}.lead-assortment-items{margin-top:10px}.lead-assortment-section.collapsed .lead-assortment-items,.lead-assortment-section.collapsed .lead-assortment-add-btn{display:none!important}.lead-assortment-section-title{font-size:18px;font-weight:600;margin:0 0 10px}.lead-assortment-section-description{font-size:13px;color:#64748b;margin:0 0 12px}.lead-loaders-conditions{margin-top:10px;display:none}.lead-loaders-conditions.visible{display:block}.lead-deferred-conditions{margin-top:10px;display:none}.lead-deferred-conditions.visible{display:block}@media (min-width: 769px){.lead-item-row{display:grid;gap:10px;margin-bottom:8px;align-items:center}.lead-item-row--flour{grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.8fr) auto}.lead-item-row--sugar{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,.8fr) auto}.lead-item-row--grocery{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,.9fr) auto}.lead-item-row--other{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1.3fr) auto}.lead-item-remove-btn{border:1px solid #e5e7eb;border-radius:999px;width:32px;height:32px;cursor:pointer;background:#fff;align-self:center;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;padding:0;transition:all .15s ease}.lead-item-remove-btn:hover{background:#f8fafc;border-color:#cbd5e1}.lead-assortment-add-btn{margin-top:10px;background:transparent;color:#475569;font-size:13px;font-weight:500;padding:8px 14px;width:auto;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;justify-content:center}.lead-assortment-add-btn:hover{background:#f8fafc;border-color:#cbd5e1;color:#334155}.lead-assortment-add-btn:active{background:#f1f5f9}}@media (max-width: 768px){.lead-body{min-height:auto;height:auto;overflow-y:auto}html{height:auto;overflow-y:auto}.lead-page{padding:24px 16px 32px;max-width:100%}.lead-hero{margin-bottom:24px}.lead-hero h1{font-size:24px;margin-bottom:8px}.lead-hero p{font-size:14px}.lead-card{padding:20px 16px;border-radius:12px}.lead-card h2{font-size:18px;margin-bottom:16px}.lead-grid{grid-template-columns:1fr!important;gap:12px}.lead-grid-full{grid-column:1}.lead-label{font-size:13px;margin-bottom:4px}.lead-input,.lead-textarea,.lead-select{padding:10px 12px;font-size:14px;border-radius:8px;height:44px;box-sizing:border-box}.lead-textarea{min-height:80px;height:auto}.lead-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}.lead-form-group{padding:12px 10px}.lead-form-group-title{font-size:13px;margin-bottom:8px}.lead-form-group-grid{grid-template-columns:1fr!important;gap:12px}.lead-form-group-label{font-size:12px}.lead-pd{font-size:12px;margin-top:4px}.lead-submit{margin-top:20px;padding:12px;font-size:15px;border-radius:10px;min-height:44px}.lead-add-btn,.lead-assortment-add-btn{margin-top:8px;font-size:13px;padding:10px 14px;width:auto!important;min-width:120px;min-height:40px}.check-label{font-size:13px}.lead-hint,.lead-error{font-size:12px;margin-top:4px}.lead-success{font-size:13px;padding:10px 12px;margin-top:12px}.lead-product-row{display:flex!important;flex-direction:column!important;gap:12px!important;margin-bottom:16px!important;padding:12px!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:8px!important;background:#fafafa!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}.lead-product-row .lead-input,.lead-product-row .lead-select{width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;box-sizing:border-box!important}.lead-product-row .lead-item-remove-btn{align-self:flex-start!important;order:999!important;margin-top:4px!important;width:36px!important;height:36px!important}.lead-item-row{display:flex!important;flex-direction:column!important;gap:12px!important;margin-bottom:16px!important;padding:12px!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:8px!important;background:#fafafa!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;flex-wrap:wrap!important}.lead-item-row .lead-input[data-role*=name],.lead-item-row .lead-input[placeholder*=Название]{order:1!important;width:100%!important;height:44px!important}.lead-item-row .lead-select[data-role*=type],.lead-item-row .lead-select[data-role*=flour-type],.lead-item-row .lead-select[data-role*=sugar-type]{order:2!important;width:100%!important;height:44px!important}.lead-item-row--flour>.lead-input[data-role*=name],.lead-item-row--flour>.lead-input[placeholder*=Название]{order:1!important;width:100%!important}.lead-item-row--flour>.lead-select[data-role*=type]{order:2!important;width:100%!important}.lead-item-row--flour>.lead-input[data-role*=price],.lead-item-row--flour>.lead-input[placeholder*=Цена]{order:3!important;width:calc(50% - 6px)!important;flex:0 0 calc(50% - 6px)!important;margin-right:6px!important;margin-left:0!important}.lead-item-row--flour>.lead-input[data-role*=min-lot],.lead-item-row--flour>.lead-input[placeholder*="Мин. партия"]{order:3!important;width:calc(50% - 6px)!important;flex:0 0 calc(50% - 6px)!important;margin-left:6px!important;margin-right:0!important}.lead-item-row--sugar>.lead-select[data-role*=type]{order:1!important;width:100%!important}.lead-item-row--sugar>.lead-input[data-role*=price]{order:2!important;width:calc(50% - 6px)!important;flex:0 0 calc(50% - 6px)!important;margin-right:6px!important;margin-left:0!important}.lead-item-row--sugar>.lead-input[data-role*=min-lot]{order:2!important;width:calc(50% - 6px)!important;flex:0 0 calc(50% - 6px)!important;margin-left:6px!important;margin-right:0!important}.lead-item-row--grocery>.lead-input[data-role*=name],.lead-item-row--grocery>.lead-input[placeholder*=Название]{order:1!important;width:100%!important;height:44px!important}.lead-item-row--grocery>.lead-input[data-role*=price],.lead-item-row--grocery>.lead-input[placeholder*=Цена]{order:2!important;width:100%!important;height:44px!important}.lead-item-row--grocery>.lead-input[data-role*=pack],.lead-item-row--grocery>.lead-input[placeholder*=Упаковка]{order:3!important;width:100%!important;height:44px!important}.lead-item-row--other>.lead-input[data-role*=name],.lead-item-row--other>.lead-input[placeholder*=Название]{order:1!important;width:100%!important;height:44px!important}.lead-item-row--other>.lead-input[data-role*=price],.lead-item-row--other>.lead-input[placeholder*=Цена]{order:2!important;width:100%!important;height:44px!important}.lead-item-row--other>.lead-input[data-role*=comment],.lead-item-row--other>.lead-input[placeholder*=Комментарий]{order:3!important;width:100%!important;height:44px!important}.lead-item-row .lead-input:not([data-role*=price]):not([data-role*=min-lot]):not([placeholder*=Цена]):not([placeholder*="Мин. партия"]),.lead-item-row .lead-select:not([data-role*=type]){width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;box-sizing:border-box!important;text-overflow:clip!important;overflow:visible!important;white-space:normal!important}.lead-item-row .lead-input::placeholder{font-size:14px!important;opacity:.7!important;color:#64748b!important;white-space:normal!important}.lead-item-row .lead-item-remove-btn{align-self:flex-start!important;order:999!important;margin-top:4px!important;width:36px!important;height:36px!important}.lead-item-row .lead-input[type=number],.lead-product-row .lead-input[type=number]{-moz-appearance:textfield!important}.lead-item-row .lead-input[type=number]::-webkit-outer-spin-button,.lead-item-row .lead-input[type=number]::-webkit-inner-spin-button,.lead-product-row .lead-input[type=number]::-webkit-outer-spin-button,.lead-product-row .lead-input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}.lead-assortment-section{padding:12px 10px!important;margin-bottom:10px!important}.lead-assortment-header{padding:0!important}.lead-assortment-title{font-size:14px!important}.lead-assortment-toggle{font-size:12px!important}.lead-assortment-items{margin-top:8px!important;display:flex!important;flex-direction:column!important;gap:10px!important}.lead-assortment-section-title{font-size:16px!important;margin-bottom:8px!important}.lead-assortment-section-description{font-size:12px!important;margin-bottom:10px!important}#products-list,#flour-items,#sugar-items,#grocery-items,#other-items{display:flex!important;flex-direction:column!important;gap:10px!important}.lead-product-row *,.lead-item-row *{min-width:0!important;max-width:100%!important;overflow:visible!important;box-sizing:border-box!important}}
