/* Mobile document forms: readable cards without horizontal table scrolling. */
@media(max-width:767px){
 #order-editor.order-workspace,dialog.document-edit-dialog.shipment-workspace{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);height:fit-content;min-height:0;padding:0 10px;border-radius:12px;overflow:auto;overscroll-behavior:contain}
 #order-editor.order-workspace>.dialog-header,.shipment-workspace>.dialog-header{position:relative;top:auto;gap:6px;padding:10px 40px 10px 0;flex-wrap:wrap;align-items:center}
 #order-editor.order-workspace>.dialog-header h2,.shipment-workspace>.dialog-header h2{font-size:16px;line-height:1.35;min-width:0;flex:1 1 100%;overflow-wrap:anywhere}
 #order-editor.order-workspace>.dialog-header>button:last-child,.shipment-workspace>.dialog-header>button:last-child{position:absolute;right:0;top:8px;width:36px;min-height:36px;padding:4px}
 #order-editor.order-workspace .workspace-posting{width:100%;gap:6px;flex-wrap:wrap;white-space:normal}
 #order-editor.order-workspace>.dialog-header>#edit-status,.shipment-workspace .shipment-notice{max-width:100%;flex-basis:100%;overflow-wrap:anywhere;font-size:12px}
 #order-editor.order-workspace .workspace-primary,.shipment-workspace .shipment-fields,.inventory-workspace .inventory-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
 #order-editor.order-workspace .workspace-primary>label:first-child,.shipment-workspace .shipment-fields>label:first-child{grid-column:1/-1}
 #order-editor.order-workspace .workspace-primary :is(input,select),.shipment-workspace .shipment-fields :is(input,select){font-size:16px!important;min-width:0;width:100%;min-height:40px;height:40px;padding:7px 8px}
 .shipment-workspace label{min-width:0;margin:0;font-size:12px}
 #order-editor.order-workspace .workspace-nav{gap:4px 10px}
 #order-editor.order-workspace .editor-pricebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;width:100%}
 #order-editor.order-workspace .editor-pricebar label{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0;font-size:11px;white-space:normal}
 #order-editor.order-workspace .editor-pricebar label:first-of-type{grid-column:1/-1}
 #order-editor.order-workspace .editor-pricebar :is(input,select){width:100%!important;min-width:0;font-size:16px;height:40px}
 .shipment-workspace .shipment-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0}
 .shipment-workspace .shipment-toolbar select{width:100%;max-width:none;min-width:0;font-size:16px;min-height:40px}
 .shipment-workspace .shipment-toolbar button{font-size:12px;min-height:40px;padding:7px 9px;white-space:normal}
 #order-editor.order-workspace .editor-lines,.shipment-workspace .shipment-table-wrap{overflow:visible;margin:0}
 #order-editor.order-workspace .editor-lines .editor-table,.shipment-workspace .shipment-edit-table{display:block;min-width:0;width:100%;background:transparent}
 #order-editor.order-workspace .editor-lines .editor-table thead,.shipment-workspace .shipment-edit-table thead{display:none}
 #order-editor.order-workspace .editor-lines .editor-table tbody,.shipment-workspace .shipment-edit-table tbody{display:block}
 #order-editor.order-workspace .editor-lines .editor-table tbody tr,.shipment-workspace .shipment-edit-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 8px;padding:10px;margin:0 0 8px;border:1px solid #dfe6ee;border-radius:10px;background:#fff}
 #order-editor.order-workspace .editor-lines .editor-table td,.shipment-workspace .shipment-edit-table td{display:block;position:static;grid-column:auto;grid-row:auto;order:10;width:auto!important;min-width:0!important;max-width:none!important;padding:0;border:0;background:transparent;white-space:normal;text-align:left;font-size:13px;overflow-wrap:anywhere}
 #order-editor.order-workspace .editor-lines .editor-table td:before,.shipment-workspace .shipment-edit-table td:before{display:block;content:attr(data-label);font-size:10px;font-weight:400;color:#718096;margin-bottom:3px;line-height:1.3}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="№"],.shipment-workspace .shipment-edit-table td[data-label="№"]{display:none}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Товар"],.shipment-workspace .shipment-edit-table td[data-label="Товар"]{order:0;grid-column:1/3;grid-row:1;min-width:0;width:auto;font-size:14px;line-height:1.35;border:0}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Товар"]:before,.shipment-workspace .shipment-edit-table td[data-label="Товар"]:before{display:none}
 #order-editor.order-workspace .editor-lines .editor-table td:has(>.editor-remove-icon),.shipment-workspace .shipment-edit-table td:last-child{order:1;grid-column:3;grid-row:1;text-align:right}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Кол-во"],.shipment-workspace .shipment-edit-table td[data-label="Кол-во"]{order:2}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Цена"],.shipment-workspace .shipment-edit-table td[data-label="Цена"]{order:3}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Сумма"],.shipment-workspace .shipment-edit-table td[data-label="Сумма"]{order:4;font-weight:700}
 #order-editor.order-workspace .editor-lines .editor-table td:is([data-label="Склад резерва"],[data-label="НДС"]),.shipment-workspace .shipment-edit-table td:is([data-label="Склад"],[data-label="НДС"]){grid-column:span 2}
 #order-editor.order-workspace .editor-lines .editor-table td input,.shipment-workspace .shipment-edit-table td input,#order-editor.order-workspace .editor-lines .editor-table td select,.shipment-workspace .shipment-edit-table td select{display:block;width:100%!important;max-width:100%;min-width:0;height:40px;min-height:40px;margin:0;padding:6px;font-size:16px;box-sizing:border-box;border:1px solid #dce3ed;border-radius:6px;background:#fff}
 #order-editor.order-workspace .workspace-footer,.shipment-workspace .shipment-footer{position:static;display:block;min-height:0;margin-top:8px;padding-top:8px}
 .shipment-workspace .shipment-total{font-size:18px;padding:0 0 8px}
 .shipment-workspace .shipment-footer>label,#order-editor.order-workspace #edit-total .workspace-comment{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:4px}
 .shipment-workspace .shipment-footer textarea,#order-editor.order-workspace .workspace-comment textarea{width:100%;font-size:16px;min-height:40px;margin:0}
 #order-editor.order-workspace .editor-actions{display:block;padding:8px 0;border-radius:0}
 #order-editor.order-workspace .editor-actions-left,#order-editor.order-workspace .editor-actions-right,.shipment-workspace .shipment-footer .document-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;margin:0;padding:6px 0}
 #order-editor.order-workspace .editor-actions button,.shipment-workspace .document-actions button{width:100%;min-width:0;min-height:42px;height:auto;margin:0!important;padding:7px 6px;font-size:12px;line-height:1.3;white-space:normal}
 #order-editor.order-workspace .workspace-extra .editor-extra-fields{grid-template-columns:1fr}
}

@media(max-width:767px){
 .shipment-workspace .shipment-fields>label:has(input[type="datetime-local"]){grid-column:1/-1}
 #order-editor.order-workspace .editor-lines .editor-table td:has(>.editor-remove-icon)>button,.shipment-workspace .shipment-edit-table td:last-child>button{width:36px;min-height:36px;padding:6px}
 #cart-dialog .cart-grid td:nth-child(3):before{display:block;content:"Цена";font-size:11px;color:#718096;margin-bottom:3px}
 #cart-dialog .cart-grid td:nth-child(5):before{display:block;content:"Сумма";font-size:11px;color:#718096;margin-bottom:3px}
 #cart-dialog .cart-grid td:nth-child(4):before{margin-bottom:3px}
}

@media(max-width:767px){
 #cart-body .cart-grid td:nth-child(2){display:none}
 #cart-body .cart-grid td:is(:nth-child(3),:nth-child(4),:nth-child(5)){grid-row:2}
 #cart-body .cart-grid td.cart-stock-line{grid-row:3}
 #cart-body .cart-stock-line select{width:100%;margin-bottom:4px}
 #cart-body .cart-delivery-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}
 #cart-body .cart-delivery-row>label{width:100%;min-width:0}
 #cart-body #cart-delivery{width:100%;max-width:none}
 #cart-body .cart-delivery-row>.cart-total{text-align:right;align-self:end;min-height:40px;display:flex;justify-content:flex-end;align-items:center}
}

@media(max-width:767px){#order-editor.order-workspace .editor-lines .editor-table td:after{content:none}#order-editor.order-workspace .editor-lines .editor-table td:before{display:block}}

.workspace-posted-badge{display:none}
.workspace-mobile-menu,.workspace-settings-content{display:contents}
.workspace-mobile-menu>summary,#order-editor.order-workspace .editor-toolbar>.workspace-settings-button{display:none}
@media(max-width:767px){
 #order-editor.order-workspace>.dialog-header{display:flex;align-items:center;flex-wrap:wrap;padding:10px 78px 10px 0;min-height:52px;box-sizing:border-box}
 #order-editor.order-workspace>.dialog-header h2{display:flex;align-items:center;gap:7px;flex:1 1 auto;font-size:16px;line-height:1.3;margin:0;min-width:0}
 #order-editor.order-workspace .workspace-posted-badge{display:inline-block;flex:none;font-size:19px;color:#7b8794}
 #order-editor.order-workspace .workspace-posted-badge.is-posted{color:#198754}
 #order-editor.order-workspace .workspace-state,#order-editor.order-workspace .workspace-posting>span{display:none}
 #order-editor.order-workspace .workspace-posting{display:contents}
 #order-editor.order-workspace .workspace-mobile-menu{display:block;position:absolute;right:40px;top:8px;z-index:25}
 #order-editor.order-workspace .workspace-mobile-menu>summary{display:flex;align-items:center;justify-content:center;width:34px;height:36px;list-style:none;border:1px solid #dce3ed;border-radius:7px;background:#fff;font-size:20px;cursor:pointer}
 #order-editor.order-workspace .workspace-mobile-menu>summary::-webkit-details-marker{display:none}
 #order-editor.order-workspace .workspace-mobile-menu #edit-post-toggle{position:absolute;top:40px;right:0;min-width:180px;min-height:42px;background:#fff;box-shadow:0 4px 16px #24324722;z-index:26}
 #order-editor.order-workspace .workspace-primary>label:first-child{grid-column:auto}
 #order-editor.order-workspace .workspace-primary{margin:6px 0;gap:6px 8px}
 #order-editor.order-workspace .workspace-primary>label{font-size:11px}
 #order-editor.order-workspace .workspace-primary :is(input,select){height:38px;min-height:38px;padding:6px}
 #order-editor.order-workspace .workspace-nav{gap:4px;padding-bottom:4px}
 #order-editor.order-workspace .order-document-tabs{width:100%;justify-content:space-between;gap:4px}
 #order-editor.order-workspace .order-document-tabs button{font-size:12px;padding:7px 0;min-height:36px}
 #order-editor.order-workspace .workspace-payment{font-size:12px;gap:8px}
 #order-editor.order-workspace .workspace-payment button{min-height:36px}
 #order-editor.order-workspace .editor-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:6px}
 #order-editor.order-workspace .editor-toolbar>button:first-child{width:100%;min-height:40px;font-size:13px;padding:6px}
 #order-editor.order-workspace .editor-toolbar>.workspace-settings-button{
  display:block;position:relative;grid-column:2;grid-row:1;width:100%;min-width:0;min-height:40px;
  padding:6px 28px 6px 8px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#526174;font-size:12px
 }
 #order-editor.order-workspace .workspace-settings-button::after{
  content:'';position:absolute;right:10px;top:50%;width:16px;height:16px;
  transform:translateY(-50%);background:var(--editor-chevron) center/16px 16px no-repeat;pointer-events:none
 }
 #order-editor.order-workspace .editor-toolbar>.workspace-settings-button[aria-expanded="true"]{
  border-color:#83aff0;background:#eef5ff;color:#154c92
 }
 #order-editor.order-workspace .workspace-settings-button[aria-expanded="true"]::after{transform:translateY(-50%) rotate(180deg)}
 #order-editor.order-workspace .workspace-settings-content:not([hidden]){grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
 #order-editor.order-workspace .workspace-settings-content>.workspace-details-toggle{display:flex;align-items:center;gap:6px;font-size:12px;margin:0}
 #order-editor.order-workspace .workspace-settings-content input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0}
 #order-editor.order-workspace .editor-lines .editor-table tbody tr{gap:6px 8px;padding:9px}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Товар"]{font-size:14px}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Товар"]:before{display:none}
 #order-editor.order-workspace .editor-lines .editor-table td:has(>.editor-remove-icon):before{display:none}
}

@media(max-width:767px){
 #order-editor.order-workspace .editor-toolbar>button:first-child{grid-column:auto}
 #order-editor.order-workspace .workspace-primary>label:has(#edit-buyer){grid-column:auto}
 #order-editor.order-workspace .workspace-settings-content .editor-pricebar>label{grid-column:auto}
 #order-editor.order-workspace .workspace-settings-content .editor-pricebar>label:first-of-type{grid-column:1/-1}
}

#order-editor.order-workspace .editor-lines .editor-table td.order-line-shipment-footer{display:none}
@media(max-width:767px){
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Кол-во"]{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 4px
 }
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Кол-во"]::before{grid-column:1/-1}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Кол-во"]::after{
  content:attr(data-unit);font-size:12px;font-weight:400;color:#596779
 }
 #order-editor.order-workspace .editor-lines .editor-table td:is([data-label="Ед."],[data-label="Отгружено"],[data-label="Осталось отгрузить"]){display:none}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Резерв"]{order:5;grid-column:1}
 #order-editor.order-workspace .editor-lines .editor-table td[data-label="Склад резерва"]{order:6;grid-column:2/-1}
 #order-editor.order-workspace .editor-lines .editor-table td.order-line-shipment-footer{
  display:block;order:20;grid-column:1/-1;color:#657489;font:400 11px/1.4 'Segoe UI',sans-serif;text-align:left
 }
 #order-editor.order-workspace .editor-lines .editor-table td.order-line-shipment-footer::before,
 #order-editor.order-workspace.hide-order-shipments .editor-lines .editor-table td.order-line-shipment-footer{display:none}
}
@media(max-width:767px){
 #order-editor.order-workspace .editor-lines .editor-table td:is([data-label="Кол-во"],[data-label="Цена"],[data-label="Сумма"]){align-self:start}
 #order-editor.order-workspace .editor-lines .editor-table td.order-line-shipment-footer{justify-self:stretch;margin:0}
}

.workspace-settings-content[hidden]{display:none!important}

@media(max-width:767px){
 #order-editor.order-workspace .editor-pricebar :is(#edit-discount,#edit-markup){
  box-sizing:border-box;height:40px;min-height:40px;margin:0;padding:6px 8px;font-size:16px
 }
 #order-editor.order-workspace .editor-pricebar label:has(:is(#edit-discount,#edit-markup)){align-self:end;margin:0}
}

@media(max-width:767px){
 #order-editor.order-workspace .workspace-footer #edit-total{
  display:grid!important;grid-template-columns:minmax(0,1fr);gap:4px!important;color:#000
 }
 #order-editor .workspace-footer .workspace-totals-left{width:100%;gap:2px}
 #order-editor .workspace-totals-left>label{width:100%;margin:0}
 #order-editor .workspace-totals-left>label:first-child{display:flex;align-items:center;gap:8px}
 #order-editor.order-workspace .workspace-totals-left #edit-total-input{
  flex:1;min-width:0;max-width:none;width:100%!important;height:42px!important;
  font-size:22px!important;font-weight:700;text-align:right;padding:5px 8px!important
 }
 #order-editor.order-workspace #edit-total .editor-align-linear{flex:none!important;margin:0;padding:0}
 #order-editor .workspace-footer .workspace-due{grid-row:2;justify-self:end;margin:0;line-height:1.4}
 #order-editor.order-workspace .workspace-footer #edit-total .workspace-comment{
  grid-row:3;position:relative;display:grid!important;grid-template-columns:minmax(0,1fr);align-items:start!important;
  width:100%;min-width:0;max-width:none;gap:4px
 }
 #order-editor.order-workspace .workspace-footer .workspace-comment :is(.workspace-comment-preview,textarea){
  grid-area:2 / 1;min-width:0;width:100%;box-sizing:border-box;text-overflow:ellipsis
 }
 #order-editor.order-workspace .workspace-footer .workspace-comment>button:last-child{
  grid-area:2 / 1;position:relative;top:auto;right:auto;align-self:start;justify-self:end;margin:4px 4px 0 0
 }
 #order-editor.order-workspace .workspace-footer .editor-actions{display:grid!important;grid-template-columns:minmax(0,1fr)}
 #order-editor.order-workspace .workspace-footer :is(.editor-actions-left,.editor-actions-right){
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;padding:0
 }
 #order-editor.order-workspace .workspace-footer .editor-actions button{
  width:100%!important;height:auto!important;min-height:40px!important;line-height:1.25;font-size:13px!important
 }
 #order-editor .editor-actions-left .order-print-button{grid-column:1/-1}
 #order-editor .editor-actions-right:has(.document-delete-button:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

#order-editor .order-exchange-problem{
 display:flex;align-items:center;justify-content:space-between;gap:12px 20px;
 margin:8px 0;padding:12px;border:1px solid #f1c7c7;border-radius:8px;background:#fff5f4
}
#order-editor .order-exchange-explanation{flex:1;min-width:0;overflow-wrap:anywhere}
#order-editor .order-exchange-problem .order-exchange-badge{
 display:block;margin:0;padding:0;background:transparent;color:#8f2528;
 font-size:14px;font-weight:600;white-space:normal
}
#order-editor .order-exchange-problem #edit-status{
 max-width:none;margin:4px 0 0;padding:0;border:0;background:transparent;color:#49383a;font-size:13px;line-height:1.45
}
#order-editor .order-exchange-problem #edit-status:empty{display:none}
#order-editor .order-exchange-problem .order-exchange-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(40%,360px);gap:8px;margin:0
}
#order-editor .order-exchange-actions button{
 width:100%;min-width:0;min-height:42px;height:auto;margin:0;padding:7px 9px;border:1px solid #bbc7d5;
 border-radius:6px;background:white;color:#314156;white-space:normal;line-height:1.3;font-size:13px
}
#order-editor .order-exchange-actions button:first-child{background:#0d6efd;border-color:#0d6efd;color:white}
@media(max-width:800px){
 #order-editor .order-exchange-problem{display:block;padding:10px}
 #order-editor .order-exchange-problem .order-exchange-actions{width:100%;margin-top:9px}
}

/* Shared header and exchange feedback for warehouse documents. */
.shipment-workspace .stock-posted-mark{color:#748293;font-size:.95em;white-space:nowrap}
.shipment-workspace .stock-posted-mark[data-posted="true"]{color:#148448}
.shipment-workspace .stock-document-menu{position:relative;flex:none}
.stock-document-menu summary{
 display:grid;place-items:center;list-style:none;width:36px;height:36px;
 border:1px solid #cdd7e4;border-radius:7px;background:white;color:#233447;cursor:pointer;font-weight:700
}
.stock-document-menu summary::-webkit-details-marker{display:none}
.stock-document-menu[open] summary{background:#edf4ff;color:#075cca}
.stock-document-menu>button{
 position:absolute;top:calc(100% + 4px);right:0;z-index:2;width:max-content;max-width:70vw;
 min-height:42px;margin:0;padding:8px 14px;border:1px solid #ced8e4;border-radius:7px;
 color:#26384a;background:white;box-shadow:0 4px 16px #22314826
}
.shipment-workspace .stock-document-feedback{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 padding:9px 12px;margin:8px 0;border-radius:7px;color:#334155;background:#f1f5f9
}
.stock-document-feedback:has(>.shipment-notice:empty):not(:has(button)){display:none}
.shipment-workspace .stock-document-feedback .shipment-notice{
 max-width:none;min-width:0;flex:1;margin:0;padding:0;color:inherit;background:none;
 overflow-wrap:anywhere;font-size:13px;line-height:1.4
}
.stock-document-feedback[data-state="error"]{background:#fff2f1;color:#912b2b}
.stock-document-feedback[data-state="done"]{background:#eaf6ed;color:#176438}
.stock-exchange-actions{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;max-width:55%}
.shipment-workspace .stock-exchange-actions button{
 width:100%;height:auto;min-height:40px;min-width:0;margin:0;padding:6px 10px;line-height:1.25;
 font-size:13px;white-space:normal;background:white;border:1px solid #becbd9;color:#304050
}
.shipment-edit-table td[data-label="Товар"] small{display:block;margin-top:3px;color:#738194;font-weight:400}

@media(max-width:767px){
 .shipment-workspace>.dialog-header{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;
  position:relative;z-index:6;padding:9px 0;align-items:center
 }
 .shipment-workspace>.dialog-header h2{min-width:0;font-weight:700;line-height:1.3}
 .shipment-workspace>.dialog-header>button:last-child{position:static;grid-column:3;margin:0}
 .shipment-workspace .stock-document-feedback{display:block}
 .shipment-workspace .stock-document-feedback:has(>.shipment-notice:empty):not(:has(button)){display:none}
 .stock-exchange-actions{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;margin-top:8px}
 .stock-exchange-actions>button:only-child,.stock-exchange-actions>button:first-child:nth-last-child(3){grid-column:1/-1}
 .shipment-workspace .shipment-fields{gap:7px 8px}
 .shipment-workspace .shipment-fields:not(.inventory-fields){grid-template-columns:minmax(0,1fr)}
 .inventory-workspace .inventory-fields>label:first-child,.inventory-workspace .inventory-fields>label:has(input[type="datetime-local"]){grid-column:auto}
 .inventory-workspace .inventory-fields>label:last-child:nth-child(odd){grid-column:1/-1}
 .inventory-workspace[data-kind="receipt"] .inventory-fields>label:is(:first-child,:has(input[type="datetime-local"])){grid-column:1/-1}
 .shipment-workspace .shipment-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 .shipment-toolbar>select,.shipment-toolbar>button:first-child,.shipment-toolbar>.shipment-reserves-toggle{grid-column:1/-1}
 .shipment-workspace .shipment-toolbar button{width:100%}
 .shipment-workspace .shipment-edit-table tbody tr{position:relative;align-items:start}
 .shipment-workspace .shipment-edit-table td[data-label="Товар"]{
  grid-column:1/-1;box-sizing:border-box;max-width:none;padding-right:40px
 }
 .shipment-workspace .shipment-edit-table td:last-child{position:absolute;top:5px;right:5px;grid-area:auto}
 .shipment-workspace .shipment-edit-table td[data-label="Ед."]{display:none}
 .shipment-workspace .shipment-edit-table td[data-label="Кол-во"]{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:3px
 }
 .shipment-workspace .shipment-edit-table td[data-label="Кол-во"]::before{grid-column:1/-1}
 .shipment-workspace .shipment-edit-table td[data-label="Кол-во"]::after{content:attr(data-unit);color:#58687b;font-size:11px}
 .shipment-workspace .shipment-edit-table td[data-label="Сумма"] strong{display:flex;align-items:center;min-height:40px}
 .shipment-workspace .shipment-edit-table td[data-label="Скидка / наценка, %"]{order:5}
 .shipment-workspace .shipment-edit-table td:is([data-label="Склад"],[data-label="НДС"]){order:6}
 .shipment-workspace .shipment-edit-table td:is([data-label="Из резерва заказа"],[data-label="Без резерва"]){grid-column:span 1;color:#566578}
 .shipment-workspace.hide-shipment-reserves .shipment-edit-table :is([data-label="Из резерва заказа"],[data-label="Без резерва"]){display:none}
 .inventory-workspace[data-kind="transfer"] .shipment-edit-table td[data-label="Товар"]{max-width:none;padding-right:40px}
 .inventory-workspace[data-kind="transfer"] .shipment-edit-table td[data-label="Кол-во"]{grid-column:span 2;max-width:160px}
 .shipment-workspace .shipment-total{display:block;text-align:right;color:#212529;font-size:20px;line-height:1.3}
 .shipment-workspace .shipment-footer>label{align-items:stretch;color:#46566a}
 .shipment-workspace .shipment-footer textarea{box-sizing:border-box;flex:none;height:40px}
 .shipment-workspace .shipment-footer .document-actions{margin-top:8px}
 .shipment-workspace .shipment-footer .shipment-transfer{grid-column:1/-1}
 .shipment-workspace .shipment-footer .shipment-close{grid-column:2}
 .shipment-workspace .shipment-footer .document-delete-button{order:95}
 .shipment-workspace .shipment-footer .document-actions button[hidden]{display:none}
}

.invoice-list>.shipment-list-title{margin:12px 0 8px;font-size:1.1rem;line-height:1.35;color:#28323d}
