/* Same workspace, search and field settings as shipment creation. */
#page-otgruzka.sh-ui #sh-edit-panel{padding:20px;border:1px solid var(--sh-line);border-radius:12px;background:var(--bg2);min-width:0}
#sh-edit-panel .sh-edit-sheet{width:100%!important;max-width:none!important}
#sh-edit-panel .sh-edit-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--sh-line)}
#sh-edit-panel .sh-edit-body{display:flex;flex-direction:column;gap:18px;padding-top:18px}
#sh-edit-panel .sh-edit-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#sh-edit-panel .sh-edit-fields>*,#sh-edit-panel .sh-edit-body>div{min-width:0}
#sh-edit-panel label,#sh-edit-panel .sh-edit-fields>div>div:first-child{font-size:13px!important;text-transform:none!important;letter-spacing:0!important;color:var(--sh-muted)!important}
#sh-edit-panel :is(input:not([type=checkbox]),select,textarea){width:100%;box-sizing:border-box;background:var(--bg3);border:1px solid var(--sh-line);border-radius:7px;color:var(--text);padding:9px 10px;font:14px var(--font);min-width:0}
#sh-edit-panel input[readonly]{color:var(--text2)}
#sh-edit-panel :disabled{opacity:.55;cursor:not-allowed}
#sh-edit-panel .sh-ui-search{position:relative;margin:4px 0 0}
#sh-edit-panel .sh-ui-search>label{display:block;margin-bottom:7px}
#sh-edit-panel #sh-edit-q{min-height:48px;padding:14px;font-size:16px}
#sh-edit-panel .create-pos-toolbar{margin:18px 0 10px;display:flex;align-items:center}
#sh-edit-panel .sh-edit-dropdown{position:absolute;left:0;right:0;top:100%;z-index:1000;max-height:min(460px,55vh);overflow:auto;background:var(--bg2);border:1px solid var(--sh-line);border-radius:10px;box-shadow:0 12px 30px #0003}
#sh-edit-panel .sh-edit-agent{position:relative}
#sh-edit-agent-drop button{display:block;width:100%;text-align:left;padding:10px 12px;background:var(--bg2);border:0;color:var(--text);cursor:pointer}
#sh-edit-agent-drop button:hover{background:var(--sh-hover)}
#sh-edit-panel .sh-edit-table{border:1px solid var(--border);border-radius:8px}
#sh-edit-panel table{table-layout:fixed;min-width:100%;border-collapse:collapse}
#sh-edit-panel th{background:var(--bg3)!important;font-weight:500;color:var(--sh-muted)!important;text-transform:none!important;padding:12px 10px!important}
#sh-edit-panel td{padding:10px 8px;vertical-align:top;border-top:1px solid var(--border);overflow-wrap:anywhere}
#sh-edit-panel td:first-child{color:var(--text3);text-align:center}
#sh-edit-panel td[data-col=stock]{font-size:12px;line-height:1.55;color:var(--sh-muted)}
#sh-edit-panel td:is([data-col=qty],[data-col=price],[data-col=sum],[data-col=costtoday]){text-align:right;font-variant-numeric:tabular-nums}
#sh-edit-panel td:is([data-col=qty],[data-col=price]) input{text-align:right}
#sh-edit-panel .sh-edit-product{line-height:1.5}
#sh-edit-panel small{font-size:12px;color:var(--sh-muted)}
#sh-edit-panel .sh-edit-replace{display:block;border:0;background:none;color:var(--blue);padding:6px 0;font-size:12px;cursor:pointer}
#sh-edit-panel .sh-edit-serial-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}
#sh-edit-panel .sh-edit-warning{font-size:12px;color:var(--amber);line-height:1.5}
#sh-edit-panel .sh-edit-total{display:flex;justify-content:flex-end;align-items:baseline;gap:16px;flex-wrap:wrap;margin-top:14px;font-size:13px;color:var(--text2)}
#sh-edit-panel .sh-edit-total strong{font-size:18px;color:var(--text)}
#sh-edit-panel .sh-edit-footer{position:sticky;bottom:0;z-index:5;background:var(--bg2);border-top:1px solid var(--sh-line);display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 0;margin-top:18px}
#sh-edit-panel #sh-e-save{min-width:180px;min-height:44px}
#sh-edit-panel #sh-e-err{color:var(--red)!important;overflow-wrap:anywhere}
.sh-ui-nav{flex-wrap:wrap}
@media(max-width:900px){#sh-edit-panel .sh-edit-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){#page-otgruzka.sh-ui #sh-edit-panel{padding:12px}#sh-edit-panel .sh-edit-fields{grid-template-columns:minmax(0,1fr)}#sh-edit-panel .sh-edit-footer{position:static}#sh-edit-panel .sh-edit-heading{gap:10px}}

#sh-edit-panel .sh-edit-product{white-space:normal!important;overflow-wrap:anywhere}
#sh-edit-panel td{white-space:normal!important}
#sh-edit-panel .sh-edit-body>div>div:first-child:not(.sh-ui-search):not(.create-pos-toolbar){text-transform:none!important}
#sh-edit-panel .sh-edit-related{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:13px;font-weight:400}
#sh-edit-panel .sh-edit-related a{color:var(--blue);text-decoration:none;padding:4px 8px;border:1px solid var(--border2);border-radius:6px}
#sh-edit-loading{padding:12px 16px;color:var(--text2);font-size:14px}

#sh-edit-panel button.sh-edit-product{display:block;width:100%;text-align:left;padding:0;border:0;background:none;font:inherit;color:var(--text);cursor:pointer}
#sh-edit-panel button.sh-edit-product:hover{color:var(--blue)}
.sh-edit-posting-issues{border:1px solid var(--amber,#d6a143);border-radius:9px;background:var(--bg3);padding:12px 14px;margin-bottom:14px;font-size:13px;line-height:1.5}
.sh-edit-posting-issues[hidden]{display:none}.sh-edit-posting-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:9px 0}.sh-edit-posting-row span{flex:1 1 250px}.sh-edit-posting-issues small{display:block;color:var(--text2)}
#sh-edit-panel textarea.sh-edit-serial-missing{border-color:var(--amber,#d6a143);box-shadow:inset 3px 0 var(--amber,#d6a143)}
