.prototype-ui .template-register{min-width:0}.prototype-ui .template-table{table-layout:auto}.prototype-ui .template-table td{white-space:nowrap}.prototype-ui .template-table tbody td{padding-top:3px;padding-bottom:3px}.prototype-ui .template-table td:first-child{white-space:normal;min-width:200px;max-width:420px}.prototype-ui .template-table tbody tr{cursor:pointer}.prototype-ui .template-table tbody tr:hover td{background:var(--bg)}.prototype-ui .template-row-button{width:100%;min-height:44px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;padding:0;display:flex}.prototype-ui .template-row-button strong{font-size:12px;font-weight:600;line-height:1.45;display:block}.prototype-ui .template-table .muted{color:var(--muted)}.prototype-ui .template-table :is(th,td):last-child{width:24px;padding-left:0;padding-right:14px}.prototype-ui .template-register .kontur-register-footer{flex-wrap:wrap}.prototype-ui .template-description{white-space:pre-wrap}.prototype-ui .template-context .offer-editor-summary dd{max-width:60%}.prototype-ui .template-context-actions{gap:9px;display:grid}.prototype-ui .template-context-actions .button{justify-content:center;width:100%}.prototype-ui .template-context-note{color:var(--muted);margin:12px 0 0;font-size:11px;line-height:1.6}.prototype-ui .template-calculation{gap:10px;display:grid}.prototype-ui .template-calculation p{color:var(--muted);margin:0;font-size:11px;line-height:1.6}.prototype-ui .template-preview-table .title-cell small{-webkit-line-clamp:unset;max-width:none;display:block}.prototype-ui .template-preview-table .title-cell .template-group{color:var(--link);margin-bottom:3px;font-size:10px;font-weight:600;display:block}.prototype-ui .template-preview-table .template-source{color:var(--muted);margin-top:5px;font-size:10px;line-height:1.45;display:block}.prototype-ui .template-overview{gap:18px;display:grid}.prototype-ui .template-overview>p{color:var(--muted);white-space:pre-wrap;margin:0;font-size:12px;line-height:1.7}.prototype-ui .template-overview h3{margin:0 0 8px;font-size:13px}.prototype-ui dialog.kontur-sheet .template-preview-table .col-quantity{width:52px}.prototype-ui dialog.kontur-sheet .template-preview-table .col-unit{width:64px}.prototype-ui dialog.kontur-sheet .template-preview-table .col-price{width:104px}.prototype-ui .template-editor-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.prototype-ui .template-editor-empty{border-top:1px solid var(--line)}.prototype-ui .template-editor-table .index-cell{vertical-align:top;padding-top:21px}.prototype-ui .template-editor-table tbody td{vertical-align:top}.prototype-ui .template-editor-table tr.is-active td{background:var(--tint)}.prototype-ui .template-editor-table .chevron-cell .icon-button{margin-left:auto}.prototype-ui .template-editor-table .chevron-cell .icon-button[aria-expanded=true]{border-color:var(--blue);color:var(--link)}.prototype-ui .template-editor-details{gap:14px;display:grid}.prototype-ui .template-editor-details h2:focus{outline:none}.prototype-ui .template-editor-details .workspace-field{gap:6px}.prototype-ui .template-editor-details .row{flex-wrap:wrap;gap:8px}.prototype-ui .template-editor-check{min-height:44px;color:var(--ink);cursor:pointer;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;display:flex}.prototype-ui .template-editor-check input{width:18px;height:18px;accent-color:var(--blue);margin:1px 0 0}.prototype-ui .template-editor-remote .workspace-panel-body{padding-top:0}.prototype-ui .template-price-field{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.prototype-ui .template-price-field input{flex:1 1 0;min-width:0}.prototype-ui .template-price-currency{color:var(--muted);text-align:left;flex:0 0 28px;font-size:10px;font-weight:600}.prototype-ui .template-price-field .offer-editor-field-error{flex:100%}.prototype-ui :is(.template-editor-layout,.template-transfer) [aria-invalid=true]{border-color:var(--red)}.prototype-ui .template-editor-layout .offer-editor-panel-head+.workspace-panel-body{padding-top:0}@media (width>=661px){.prototype-ui .template-editor-table .col-quantity{width:68px}.prototype-ui .template-editor-table .col-unit{width:96px}.prototype-ui .template-editor-table .col-price{width:136px}.prototype-ui .template-editor-table .col-action{width:56px}.prototype-ui .template-preview-table .col-price{width:128px}}.prototype-ui dialog.template-transfer-drawer{width:680px}.prototype-ui .template-transfer{gap:16px;margin-bottom:25px;display:grid}.prototype-ui .template-transfer:empty{display:none}.prototype-ui .template-transfer .kontur-sheet-section{margin:0}.prototype-ui .template-transfer p.workspace-field-note{margin:0 0 16px}.prototype-ui dialog .template-transfer-table th{color:var(--ink);background:0 0;font-size:11px;font-weight:600}.prototype-ui .template-transfer-choices{flex-wrap:wrap;gap:18px;display:flex}.prototype-ui .template-transfer-choices fieldset{border:0;min-width:0;margin:0;padding:0}.prototype-ui .template-transfer-choices legend{color:var(--muted);margin-bottom:8px;padding:0;font-size:12px}.prototype-ui .template-choice-segments{border:1px solid var(--line);background:var(--rail);border-radius:8px;flex-wrap:wrap;gap:4px;padding:3px;display:inline-flex}.prototype-ui .template-choice-segments label{min-height:34px;color:var(--muted);cursor:pointer;border-radius:6px;align-items:center;padding:0 12px;font-size:11px;font-weight:600;display:inline-flex;position:relative}.prototype-ui .template-choice-segments input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.prototype-ui .template-choice-segments label:has(input:checked){background:var(--card);color:var(--ink);box-shadow:var(--shadow)}.prototype-ui .template-choice-segments label:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}.prototype-ui .template-choice-segments label:has(input:disabled){cursor:default;opacity:.6}.prototype-ui .template-transfer-table :is(th,td){vertical-align:top;padding:11px 8px}.prototype-ui .template-transfer-table tr>:first-child{padding-left:0}.prototype-ui .template-transfer-table tr>:last-child{padding-right:0}.prototype-ui .template-transfer-table td strong{font-weight:600;display:block}.prototype-ui .template-transfer-table td small{white-space:normal}.prototype-ui .template-transfer-table label.template-transfer-select{align-items:flex-start;gap:10px;min-height:0;display:flex}.prototype-ui .template-transfer-table label.template-transfer-select input{margin-top:2px}.prototype-ui .template-transfer-table :is(input:not([type=checkbox]),select){box-sizing:border-box;border:1px solid var(--line);background:var(--card);width:100%;min-width:0;min-height:36px;color:var(--ink);font:inherit;border-radius:7px;padding:7px 9px;font-size:12px}.prototype-ui .template-transfer-table .template-transfer-flags{gap:6px;min-width:120px;display:grid}.prototype-ui .template-transfer-table .template-transfer-flags>span{color:var(--ink);font-size:12px;line-height:1.5;display:block}.prototype-ui .template-transfer-table .number{white-space:nowrap}.prototype-ui .template-transfer-history .link-row{border-top:1px solid var(--line);min-height:44px;color:var(--ink);cursor:pointer;background:0 0;padding:11px 0}@media (width<=660px),(pointer:coarse){.prototype-ui.kontur-workspace:has(.template-register) :is(.button,.icon-button,.text-button):not(dialog *){min-height:44px}.prototype-ui.kontur-workspace:has(.template-register) .icon-button:not(dialog *){min-width:44px}.prototype-ui .template-choice-segments label,.prototype-ui .template-transfer-table :is(input:not([type=checkbox]),select),.prototype-ui dialog.kontur-sheet .template-transfer-history .link-row{min-height:44px}}@media (width<=660px){.prototype-ui.kontur-workspace:has(.template-editor-layout,.template-detail-layout) .page-heading .row{flex-wrap:wrap}.prototype-ui.kontur-workspace:has(.template-editor-layout,.template-detail-layout) .page-heading .button{white-space:normal;text-align:left;max-width:100%}.prototype-ui .template-table .template-col-optional{display:none}.prototype-ui .template-table td:first-child{min-width:0;max-width:none}.prototype-ui .template-editor-fields{grid-template-columns:minmax(0,1fr)}.prototype-ui .template-editor-table .title-cell{flex:calc(100% - 72px)}.prototype-ui .template-editor-table tbody .chevron-cell{order:1;width:58px;padding:9px 14px 0 0}.prototype-ui .template-editor-table tbody td[data-field]{order:2}.prototype-ui .template-transfer-table,.prototype-ui .template-transfer-table tbody{display:block}.prototype-ui .template-transfer-table thead{display:none}.prototype-ui .template-transfer-table tbody tr{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px 0;display:grid}.prototype-ui .template-transfer-table tbody td{border-bottom:0;padding:0;display:block}.prototype-ui .template-transfer-table tbody td:first-child{grid-column:1/-1}.prototype-ui .template-transfer-table tbody td.number{text-align:left}.prototype-ui .template-transfer-table tbody tr:has(.template-transfer-select) td.number{padding-left:28px}.prototype-ui .template-transfer-table .template-transfer-flags{min-width:0}.prototype-ui dialog.template-transfer-drawer{width:100%}}@media (width<=1120px){.prototype-ui .template-detail-layout .template-context{order:-1;position:static}}.prototype-ui .template-preview-table td.amount .template-price-note{color:var(--muted);white-space:normal;margin-top:2px;font-size:10px;font-weight:400;display:block}