*{box-sizing:border-box}html{scrollbar-gutter:stable;overflow:clip scroll}html,body{color:#0f172a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;background:#f1f5f9;margin:0;padding:0;font-family:Segoe UI,system-ui,Roboto,sans-serif;font-size:14px}body{overflow:visible}#root{min-height:100vh}h1,h2,h3,h4,p{margin:0}button{font-family:inherit}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.crm-section-picker{width:100%;min-width:0;margin-bottom:8px;display:block}.crm-section-picker>span{color:#64748b;margin-bottom:5px;font-size:12px;font-weight:600;display:block}.crm-section-picker select{color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;width:100%;min-width:0;min-height:44px;padding:10px 12px;font:600 16px Segoe UI,system-ui,sans-serif}@media (pointer:coarse){[data-view-mode=mobile] button{touch-action:manipulation;min-width:44px;min-height:44px}[data-view-mode=mobile] input:not([type=checkbox]):not([type=radio]):not([type=hidden]),[data-view-mode=mobile] select,[data-view-mode=mobile] textarea{min-height:44px;font-size:16px!important}}.document-template-editor{padding-bottom:20px;font-size:13px;line-height:1.5}.document-template-editor .dt-help{color:#64748b;margin:0 0 14px}.document-template-editor label{color:#64748b;font-size:12px;font-weight:600;display:block}.document-template-editor input:not([type=checkbox]),.document-template-editor select,.document-template-editor textarea{box-sizing:border-box;color:#0f172a;width:100%;min-width:0;font:inherit;background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-height:40px;margin-top:5px;padding:9px 12px;font-size:13px;display:block}.document-template-editor textarea{resize:vertical}.document-template-editor input:focus-visible,.document-template-editor textarea:focus-visible,.document-template-editor select:focus-visible{outline-offset:2px;outline:2px solid #f97316}.document-template-editor input[type=checkbox]{accent-color:#f97316;margin-right:8px}.document-template-editor input[type=file]{font-size:12px;overflow:hidden}.document-template-editor input::file-selector-button{color:#c2410c;cursor:pointer;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;margin-right:8px;padding:6px 9px}.document-template-editor .dt-toolbar>label{flex:150px;min-width:0}.document-template-editor details{border:1px solid #e2e8f0;border-radius:10px;margin-top:10px;padding:0 12px}.document-template-editor summary{cursor:pointer;color:#475569;min-height:44px;padding:12px 0;font-weight:700}.document-template-editor details[open]{padding-bottom:12px}.document-template-editor details[open]>summary{color:#c2410c;border-bottom:1px solid #e2e8f0;margin-bottom:10px}.document-template-editor summary:focus-visible{outline-offset:2px;border-radius:6px;outline:2px solid #f97316}.document-template-editor details label{margin:10px 0}.document-template-editor h3{margin:0 0 8px;font-size:16px}.document-template-editor .dt-paper{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only;background:#e2e8f0;border:1px solid #cbd5e1;border-radius:8px;width:100%;height:650px;display:block}.document-template-editor .dt-selection{color:#9a3412;background:#fff7ed;border-left:3px solid #f97316;border-radius:6px;margin:12px 0;padding:8px 12px;font-weight:600}.document-template-editor button[aria-label^=Выше\ ],.document-template-editor button[aria-label^=Ниже\ ]{color:#c2410c;min-width:40px;min-height:40px;font:inherit;cursor:pointer;background:0 0;border:1px solid #f97316;border-radius:8px;font-weight:700}.document-template-editor button[aria-label]:disabled{opacity:.45;cursor:not-allowed}.document-template-editor .dt-column-row{grid-template-columns:minmax(100px,1fr) minmax(100px,1fr);align-items:center;gap:10px;display:grid}@media (width<=600px){.document-template-editor .dt-toolbar>label{flex-basis:100%}.document-template-editor .dt-paper{height:520px}}.price-channel-scroll{border:1px solid #e2e8f0;border-radius:10px;max-height:52vh;margin-top:10px;overflow:auto}.price-channel-table{border-collapse:collapse;width:100%;min-width:790px;font-size:13px}.price-channel-table.transit{min-width:1080px}.price-channel-table th{z-index:1;color:#92400e;text-align:left;white-space:nowrap;background:#fff7ed;padding:8px 10px;font-weight:700;position:sticky;top:0}.price-channel-table td{vertical-align:middle;border-top:1px solid #f1f5f9;padding:7px 10px}.price-channel-table tr[data-dirty=true]{background:#fffbeb}.price-channel-table .price-name{min-width:190px;font-weight:700}.price-channel-table small{color:#64748b;font-size:11px;font-weight:400;line-height:1.5;display:block}.price-channel-table .price-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.price-channel-table input{color:#0f172a;width:110px;font:inherit;text-align:right;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:6px 8px}.price-channel-table input:focus{outline-offset:1px;outline:2px solid #fed7aa}.price-channel-table .price-actions{min-width:160px}.price-channel-table .price-actions>div{flex-wrap:wrap;gap:5px;margin-top:5px;display:flex}.price-channel-table .price-conditions{min-width:180px;line-height:1.5}.price-channel-scroll:focus-visible{outline-offset:2px;outline:2px solid #3b82f6}@media (width<=600px){.price-channel-table .price-name{z-index:1;background:#fff;min-width:150px;max-width:150px;position:sticky;left:0}.price-channel-table th:first-child{z-index:2;left:0}.price-channel-table tr[data-dirty=true] .price-name{background:#fffbeb}}
