/* Orders: shared cards, list lookup and read-only roll selection. */
.core-work-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #dde3ec;border-radius:14px;background:#fff;color:#18243a;box-shadow:0 24px 80px #14244730;font:14px/1.5 Inter,Arial,sans-serif;overflow:auto;overscroll-behavior:contain}
.core-work-dialog::backdrop{background:#14243865;backdrop-filter:blur(2px)}
.core-work-dialog *{box-sizing:border-box}.core-work-wide{width:min(1080px,calc(100vw - 40px))}
.core-work-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 24px;border-bottom:1px solid #edf0f5;position:sticky;top:0;background:#fff;z-index:2}
.core-work-head h2{font-size:17px;font-weight:650;line-height:1.35;margin:0;overflow-wrap:anywhere}
button.core-work-close,button.core-work-close:hover,button.core-work-close:active{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;min-height:0;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#748197;cursor:pointer}
button.core-work-close:hover{color:#17243a}.core-work-dialog svg,.core-work-collection-trigger svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.core-work-close svg{width:22px;height:22px}
.core-work-body{padding:24px;min-width:0}.core-work-body p{margin:8px 0 14px}
.core-work-product{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:start}
.core-work-product img,.core-work-noimage{width:160px;height:160px;object-fit:contain;border:1px solid #edf0f5;border-radius:10px;background:#fafbfc}
.core-work-noimage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#8a94a5;font-size:12px;text-align:center;padding:8px}.core-work-noimage svg{width:28px;height:28px}
.core-work-eyebrow{font-size:12px;font-weight:550;letter-spacing:.02em;color:#6c788c;margin-bottom:6px}
.core-work-product h3{font-size:22px;line-height:1.25;letter-spacing:-.025em;margin:0 0 8px;overflow-wrap:anywhere}
.core-work-spec{color:#6b7688;font-size:13px;line-height:1.6}.core-work-stage{display:flex;gap:10px;align-items:center;color:#6b7688;font-size:12px}
.core-work-state{display:inline-block;background:#f0f3f8;color:#35445d;border-radius:5px;padding:3px 7px;font-size:12px;font-weight:600;white-space:normal}
.core-work-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;margin:18px 0 0}.core-work-facts>div{min-width:0}.core-work-facts dt{color:#7c8799;font-size:11px;margin-bottom:3px}.core-work-facts dd{margin:0;overflow-wrap:anywhere;font-size:13px;font-weight:550;white-space:pre-wrap}
.core-work-comment{display:flex;align-items:flex-start;gap:10px;border-left:2px solid #dbe1eb;padding:10px 12px;margin-top:20px;background:#fafbfc;border-radius:0 6px 6px 0}.core-work-comment svg{color:#7a8598;margin-top:2px}.core-work-comment small{color:#7b8597;font-size:11px}.core-work-comment p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.core-work-rolls{display:flex;align-items:center;gap:18px;margin-top:18px;padding-top:16px;border-top:1px solid #edf0f5}.core-work-rolls>span{display:flex;align-items:center;gap:7px;color:#768298;font-size:12px}.core-work-rolls>div{display:flex;gap:6px;flex-wrap:wrap}.core-work-rolls .core-work-btn{padding:5px 8px;min-height:30px;background:#f6f8fb;border-color:transparent;font-size:12px}
.core-work-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.core-work-card-actions{margin:18px 0 24px}
.core-work-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #dfe4ed;background:#fff;border-radius:6px;color:#33425c;text-decoration:none;font:550 12px/1.4 Inter,Arial,sans-serif;cursor:pointer;white-space:normal;text-align:center}.core-work-btn:hover{background:#f6f8fb;border-color:#cad3e1;color:#18243a;text-decoration:none}.core-work-primary{background:#6055e8;color:white;border-color:#6055e8}.core-work-primary:hover{background:#5146d0;color:#fff;border-color:#5146d0}.core-work-btn:disabled{opacity:.45;cursor:default}
:is(a,button).core-work-ref,:is(a,button).core-work-ref:visited,:is(a,button).core-work-ref:hover{appearance:none;border:0;background:none;box-shadow:none;color:inherit!important;padding:0;font:inherit;text-decoration:none!important;cursor:pointer;overflow-wrap:anywhere}
.core-work-tabs{display:flex;gap:24px;border-bottom:1px solid #e8ecf2;margin-bottom:16px}.core-work-tabs button{display:flex;align-items:center;gap:7px;border:0;border-bottom:2px solid transparent;padding:0 0 12px;background:none;box-shadow:none;color:#7a8598;font:550 13px/1.4 Inter,Arial,sans-serif;cursor:pointer}.core-work-tabs button[aria-selected=true]{color:#27374e;border-bottom-color:#6055e8}.core-work-tabs button>span{font-size:11px;padding:1px 6px;border-radius:4px;background:#f0f2f7}
[data-work-history-body]{font-size:13px;overflow-wrap:anywhere;max-width:100%}[data-work-history-body]>*{max-width:100%}.core-work-note-history{margin-top:18px;padding-top:12px;border-top:1px solid #edf0f5}.core-work-note-history summary{cursor:pointer;font-weight:550;color:#657289}.core-work-note-history small{display:block;color:#8a94a5;font-size:11px}
.core-work-muted{color:#7a8598;font-size:12px}.core-work-note{display:inline-block;margin:5px 0;padding:4px 7px;border:1px solid #edd9a4;border-radius:5px;background:#fff9e9;color:#876521;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;max-width:100%}.core-work-note[data-note-code=package]{background:#fff2f2;color:#a34751;border-color:#f1d4d8}.core-work-note[data-note-code=hold]{background:#f4f0fc;color:#77539f;border-color:#e0d6f1}
.core-work-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.core-work-slots>div{padding:12px;border:1px solid #e8ecf2;border-radius:7px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}.core-work-slots strong{font-size:18px}
.core-work-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:550;min-width:0}.core-work-dialog textarea,.core-work-dialog select{width:100%;padding:10px 12px;border:1px solid #dce2eb;border-radius:7px;font:13px/1.6 Inter,Arial,sans-serif;background:#fafbfc;color:#172033;resize:vertical;min-height:40px}.core-work-dialog textarea:focus,.core-work-dialog select:focus{outline:2px solid #e2defc;border-color:#9b92ec;background:white}
.core-work-dialog input[type=checkbox]{appearance:auto!important;position:static!important;width:15px!important;height:15px!important;margin:0!important;opacity:1!important;accent-color:#6055e8}.core-work-mark-form{display:grid;gap:14px}.core-work-targets{max-height:190px;overflow:auto;padding:10px 12px;background:#f6f8fb;border-radius:7px;margin:14px 0}.core-work-targets>div{display:flex;gap:12px;flex-wrap:wrap;padding:3px 0}
.core-work-lookup{padding:16px 18px;background:#f7f9fc;border:1px solid #e8edf4;border-radius:9px}.core-work-lookup textarea{background:#fff}.core-work-lookup .core-work-actions{margin:12px 0 0}.core-work-result-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:22px 0 10px}.core-work-result-heading h3{font-size:15px;margin:0}
.core-work-token-results{display:flex;gap:6px;flex-wrap:wrap}.core-work-token-results>div{border-radius:5px;background:#f2f5f8;color:#64718a;padding:5px 8px;max-width:100%;overflow-wrap:anywhere;font-size:11px}.core-work-token-results strong,.core-work-token-results span{display:inline;font-size:11px}.core-work-token-results span:before{content:' · '}.core-work-token-results .is-missing{background:#fff2ef;color:#ac5848}.core-work-token-results .is-repeat{background:#faf6e9;color:#96772f}
.core-work-table-scroll{overflow:auto;max-height:50dvh;border:1px solid #e8ecf3;border-radius:8px}.core-work-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;margin:0}.core-work-table th{background:#f8f9fc;color:#8490a3;font-size:11px;font-weight:550;position:sticky;top:0;z-index:1}.core-work-table td,.core-work-table th{padding:12px;border-bottom:1px solid #edf0f5;vertical-align:middle;min-width:100px;max-width:270px;overflow-wrap:anywhere}.core-work-table tr:last-child td{border-bottom:0}.core-work-table td:first-child:has(input),.core-work-table th:first-child:has(input){min-width:36px;width:36px;padding-right:0}.core-work-table td strong{font-weight:600}.core-work-table small{display:block;color:#8390a3;margin-top:4px;font-size:11px}.core-work-table tbody tr:hover{background:#fafbfe}.core-work-table tbody tr:has(input:checked){background:#f7f5ff}
.core-work-selection-totals{display:flex;gap:32px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #edf0f5}.core-work-selection-totals small{display:block;color:#8791a2;font-size:11px;margin-bottom:3px}.core-work-selection-totals strong{font-size:22px;letter-spacing:-.025em}.core-work-empty{text-align:center;color:#8a94a5;padding:36px 12px}.core-work-empty svg{width:28px;height:28px}.core-work-empty h3{font-size:15px;color:#48566e;margin:12px 0 5px}.core-work-empty p{font-size:13px}
.core-work-error{padding:10px 12px;border:1px solid #f0d5d5;border-radius:7px;background:#fff5f5;color:#a34b4b;font-size:13px;overflow-wrap:anywhere}
.core-work-dialog button:focus-visible,.core-work-dialog a:focus-visible,.core-work-ref:focus-visible,[data-workflow-selection]:focus-visible{outline:2px solid #786af5;outline-offset:3px}
[data-workflow-note-host]{display:block;max-width:260px;white-space:normal}.core-work-dialog [hidden]{display:none!important}.core-work-collection-trigger{display:inline-flex;gap:6px;align-items:center;white-space:nowrap;flex-shrink:0}.orders-filter .core-work-collection-trigger{height:34px;min-height:34px;padding:6px 10px!important}
[data-workflow-selection]{cursor:pointer}
.orders-context-menu{max-height:calc(100dvh - 24px);overflow-y:auto}.core-work-context-options{padding-left:12px!important;font-size:12px!important}.core-work-context-group summary{padding:9px 10px;border-radius:8px;color:#1e293b;font-size:13px;font-weight:820;cursor:pointer}.core-work-context-group[open]{background:#f6f5ff;border-radius:8px}
@media(max-width:600px){.core-work-dialog,.core-work-wide{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:10px}.core-work-head{padding:15px 16px}.core-work-body{padding:16px}.core-work-product{grid-template-columns:100px minmax(0,1fr);gap:14px}.core-work-product img,.core-work-noimage{width:100px;height:125px}.core-work-product h3{font-size:17px}.core-work-spec{font-size:12px}.core-work-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.core-work-slots{grid-template-columns:1fr}.core-work-card-actions{gap:6px}.core-work-card-actions .core-work-btn{font-size:11px;padding:7px 9px}.core-work-table td,.core-work-table th{padding:10px;min-width:100px}.core-work-lookup{padding:12px}.core-work-result-heading{align-items:flex-start;flex-direction:column;gap:4px}.core-work-selection-totals{gap:24px}.core-work-selection-totals strong{font-size:20px}.core-work-rolls{align-items:flex-start;gap:10px}.core-work-tabs{gap:18px}}

/* Указание и обычный комментарий занимают одну строку таблицы. */
.core-work-comment-line{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;white-space:nowrap}
.core-work-comment-line .core-work-inline-note{appearance:none;display:inline-block;flex:0 1 auto;max-width:100%;margin:0;padding:2px 6px;font:inherit;font-size:10px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;cursor:pointer;box-shadow:none}
.core-work-plain-comment{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.core-work-mark-form .core-select{width:100%;min-width:0}
.core-work-dialog>.core-ui-portal-root{position:fixed;inset:0;pointer-events:none;z-index:10}
.core-work-dialog .core-ui-portal-root>.core-select-menu{pointer-events:auto}

/* Карточка SKU: технические данные и остатки, без дублирования истории заказа. */
.core-product-card{width:min(960px,calc(100vw - 40px))}
.core-product-card .core-work-product{grid-template-columns:148px minmax(0,1fr);gap:22px}
.core-product-card .core-work-product img,.core-product-card .core-work-noimage{width:148px;height:148px}
.core-product-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#738097}
.core-product-card .core-work-card-actions{margin:12px 0 0;gap:8px}
.core-product-section{border-top:1px solid #e7ebf1;padding-top:20px;margin-top:22px;min-width:0}
.core-product-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.core-product-heading h3{font-size:15px;line-height:1.4;font-weight:650;margin:0;color:#26364e}
.core-product-heading>span{font-size:11px;color:#8791a2}
.core-product-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 20px;margin:0}
.core-product-fields>div{min-width:0}.core-product-fields dt{font-size:11px;color:#8490a2;margin-bottom:4px}.core-product-fields dd{margin:0;font-size:14px;font-weight:550;overflow-wrap:anywhere}
.core-product-field-wide{grid-column:span 2}
.core-product-light{display:flex;flex-direction:column;gap:5px;margin-top:16px;padding:11px 13px;border-left:3px solid #cdd5e1;background:#f7f9fb;border-radius:0 6px 6px 0}
.core-product-light strong{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}.core-product-light>span{font-size:11px;color:#79869a}.core-product-light.is-light{background:#f1f7ff;border-color:#69a0e8}.core-product-light.is-light strong{color:#326db8}
.core-product-ink-totals{display:flex;gap:48px}.core-product-ink-totals span,.core-product-market-values span{display:block;font-size:11px;color:#7e8a9e;margin-bottom:5px}.core-product-ink-totals strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.core-product-channels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}
.core-product-channel{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #edf0f4;padding-bottom:9px;font-size:12px}.core-product-channel>span{display:flex;gap:6px;align-items:center;color:#7e899c}.core-product-channel i{width:7px;height:7px;border-radius:50%;background:#2b3546}.core-product-channel .is-c{background:#21a8d2}.core-product-channel .is-m{background:#c95892}.core-product-channel .is-y{background:#e2b73a}.core-product-channel strong{font-weight:550}
p.core-product-source{font-size:11px;color:#8793a4;margin:12px 0 0}
.core-product-measurements{font-size:12px;margin-top:14px}.core-product-measurements summary{cursor:pointer;color:#68778e}.core-product-measurements>div{display:grid;grid-template-columns:140px minmax(0,1fr) 120px;gap:14px;padding:10px 0;border-bottom:1px solid #edf0f4;overflow-wrap:anywhere}.core-product-measurements small{display:block;color:#8692a4;margin-top:3px;font-weight:400}
.core-product-markets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.core-product-markets article{border:1px solid #e6ebf2;border-radius:8px;padding:15px;min-width:0}.core-product-markets h4{font-size:13px;margin:0 0 12px}.core-product-market-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.core-product-market-values strong{font-size:21px;font-weight:600;letter-spacing:-.02em}.core-product-markets p{font-size:12px;margin:12px 0 3px}.core-product-markets small{display:block;font-size:10px;color:#8792a3}.core-product-markets .core-product-stale{color:#967229;margin-top:5px}
.core-product-stock-table>div{display:grid;grid-template-columns:minmax(0,1fr) 120px 140px;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f4;font-size:13px;overflow-wrap:anywhere}.core-product-stock-table strong{font-weight:550}.core-product-stock-table .core-product-stock-head{font-size:11px;color:#8490a2;padding-top:0}.core-product-subtitle{font-size:12px;margin:18px 0 10px;color:#6b7990;font-weight:550}
.core-product-card .core-work-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.core-product-card .core-work-slots strong{font-size:16px}.core-product-card .core-work-slots span,.core-product-card .core-work-slots button,.core-product-card .core-work-slots small{font-size:11px}
@media(max-width:600px){.core-product-card{width:calc(100vw - 20px)}.core-product-card .core-work-product{grid-template-columns:88px minmax(0,1fr);gap:14px}.core-product-card .core-work-product img,.core-product-card .core-work-noimage{width:88px;height:110px}.core-product-heading{flex-wrap:wrap;gap:4px}.core-product-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.core-product-field-wide{grid-column:1/-1}.core-product-ink-totals{gap:25px}.core-product-ink-totals strong{font-size:20px}.core-product-channels{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.core-product-markets{grid-template-columns:1fr}.core-product-stock-table>div{grid-template-columns:minmax(0,1fr) 65px 88px;gap:8px;font-size:12px}.core-product-measurements>div{grid-template-columns:minmax(0,1fr) 95px;gap:8px}.core-product-measurements>div>span:nth-child(2){grid-column:1/-1;grid-row:2}.core-product-card .core-work-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.core-product-context{font-size:11px}.core-product-section{margin-top:18px;padding-top:16px}}
