/* Page compositions use shared controls without redefining their dimensions. */
/* Orders, movements and counts share the same product/option skeleton. */
.movement-product-table{--ui-product-column-width:120px;width:calc(var(--ui-product-column-width) + var(--ui-options-width) + var(--ui-remove-column-width));min-width:calc(var(--ui-product-column-width) + var(--ui-options-width) + var(--ui-remove-column-width));table-layout:fixed}
.movement-product-table:not(:has(.movement-remove-col)){width:calc(var(--ui-product-column-width) + var(--ui-options-width));min-width:calc(var(--ui-product-column-width) + var(--ui-options-width))}
.movement-product-table .movement-product-col{width:var(--ui-product-column-width)}
.movement-product-table .movement-options-col{width:var(--ui-options-width)}
.movement-product-table .movement-remove-col{width:var(--ui-remove-column-width)}
.movement-product-table.ui-data-table>thead>tr>th,.movement-product-table.ui-data-table>tbody>tr>td{padding:6px 5px;vertical-align:top}
:is(.order-option-table,.movement-option-table){width:calc(var(--ui-option-select-width) + var(--ui-option-color-width) + var(--ui-option-size-width) + var(--ui-option-quantity-width));min-width:calc(var(--ui-option-select-width) + var(--ui-option-color-width) + var(--ui-option-size-width) + var(--ui-option-quantity-width));table-layout:fixed}
.order-option-table[data-option-selectable=false]{--ui-option-select-width:0px}
:is(.order-option-table,.movement-option-table)>:is(thead,tbody)>tr>:is(th,td){box-sizing:border-box;padding:var(--ui-option-cell-padding-block) var(--ui-option-cell-padding-inline);font-size:12px;vertical-align:middle}
:is(.order-option-table,.movement-option-table) [data-column-key=selected],.movement-option-table .movement-check-col{width:var(--ui-option-select-width)}
:is(.order-option-table,.movement-option-table) [data-column-key=color],.movement-option-table .movement-color-col{width:var(--ui-option-color-width);white-space:normal;overflow-wrap:anywhere}
:is(.order-option-table,.movement-option-table) [data-column-key=size],.movement-option-table .movement-size-col{width:var(--ui-option-size-width);white-space:normal;overflow-wrap:anywhere}
:is(.order-option-table,.movement-option-table) [data-column-key=quantity],.movement-option-table .movement-quantity-col{width:var(--ui-option-quantity-width)}
/* Base product prices stay adjacent and bounded, including on desktop. */
.product-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;column-gap:10px;row-gap:5px;align-items:start;width:clamp(268px,48vw,362px);max-width:100%;justify-content:start}
.product-price-fields>.product-price-field{display:grid;grid-row:span 2;grid-template-rows:subgrid;align-content:normal;min-width:0;max-width:176px;row-gap:5px}
.product-price-fields .ui-money-control{width:100%;min-width:min(124px,100%);max-width:176px}
.product-deletion-dialog { width:min(680px,calc(100vw - 32px)); }
.product-deletion-content { display:grid; gap:14px; align-content:start; font-size:13px; }
.product-deletion-identity { display:grid; gap:3px; }
.product-deletion-identity strong { font-size:17px; overflow-wrap:anywhere; }
.product-deletion-identity span,.product-deletion-item-copy span,.product-deletion-list small { color:#626278; }
.product-deletion-list-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.product-deletion-list-heading h3,.product-deletion-changes h3 { margin:0; font-size:13px; }
.product-deletion-list-heading button { min-height:30px; }
.product-deletion-sections { display:grid; gap:8px; }
.product-deletion-section { border:1px solid #e3e2ee; border-radius:10px; overflow:hidden; }
.product-deletion-section>summary { display:grid; grid-template-columns:minmax(0,1fr) auto 12px; align-items:center; gap:10px;
  padding:12px 14px; min-height:45px; list-style:none; cursor:pointer; }
.product-deletion-section>summary::-webkit-details-marker { display:none; }
.product-deletion-section>summary span { color:#53536c; text-align:right; }
.product-deletion-section>summary i { width:7px; height:7px; border:solid #727087; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.product-deletion-section[open]>summary { background:#f7f6fc; }
.product-deletion-section[open]>summary i { transform:rotate(225deg); }
.product-deletion-section-body>p { padding:12px 14px; margin:0; color:#626278; }
.product-deletion-list,.product-deletion-changes ul { list-style:none; padding:0; margin:0; }
.product-deletion-list>li,.product-deletion-changes li { padding:10px 14px; border-top:1px solid #eeedf4; }
.product-deletion-row,.product-deletion-stock-list li,.product-deletion-changes li { display:flex; justify-content:space-between; align-items:center; gap:8px 14px; }
.product-deletion-item { display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:8px; min-width:0; }
.product-deletion-item input { margin:2px 0 0; }
.product-deletion-item-copy { display:flex; flex-wrap:wrap; gap:2px 8px; overflow-wrap:anywhere; }
.product-deletion-row-actions { display:flex; gap:6px; flex:none; }
.product-deletion-row-actions :is(button,select) { min-height:30px; padding:4px 8px; font-size:12px; }
.product-deletion-mode { color:#41415a; background:#fff; border:1px solid #e0dfee; border-radius:7px; }
.product-deletion-stock-list li>div,.product-deletion-changes li>div:first-child { display:grid; gap:3px; overflow-wrap:anywhere; }
.product-deletion-stock-list li>div span,.product-deletion-changes li>div:first-child span,.product-deletion-changes li small { color:#626278; }
.product-deletion-help { margin:0; padding:10px 12px; border-radius:8px; background:#f6f5fb; color:#55556e; line-height:1.6; }
.product-deletion-changes { display:grid; gap:6px; }
.product-deletion-changes ul { border:1px solid #e3e2ee; border-radius:9px; overflow:hidden; }
.product-deletion-changes li:first-child { border-top:0; }
.product-deletion-changes li small { display:block; }
.product-deletion-compare { white-space:nowrap; font-variant-numeric:tabular-nums; }
.product-deletion-compare b { color:#922b44; }
.product-deletion-issues { margin:0; padding:10px 12px 10px 28px; color:#992d46; background:#fdf2f4; border-radius:8px; }
.product-deletion-footer-row { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.product-deletion-selection { color:#6750a2; font-size:12px; font-weight:700; }
.product-deletion-danger.primary-button { background:#a5324b; border-color:#a5324b; color:#fff; }
.product-deletion-danger.primary-button:enabled:hover { background:#8d263d; border-color:#8d263d; }
.product-deletion-danger.primary-button:disabled { opacity:.5; }
.product-deletion-content [hidden] { display:none; }
@media (max-width:600px) {
  .product-deletion-content { gap:11px; }
  .product-deletion-section>summary { padding:10px 11px; }
  .product-deletion-section>summary span { font-size:12px; }
  .product-deletion-list>li,.product-deletion-changes li { padding:9px 10px; }
  .product-deletion-row { flex-wrap:wrap; }
  .product-deletion-row-actions { margin-left:auto; }
  .product-deletion-footer-row { align-items:flex-end; flex-direction:column; }
  .product-deletion-footer-row .partner-dialog-actions { flex-wrap:wrap; }
  .product-deletion-footer .partner-dialog-actions button { min-width:unset; padding-inline:9px; }
  .product-deletion-impact-dot { display:none; }
  .product-deletion-changes li>div:last-child { text-align:right; }
}
.product-inactive-note{display:block;color:#676272;font-size:11px}
.product-price-heading{display:flex;align-items:center;gap:3px;min-height:20px;flex-wrap:nowrap;white-space:nowrap;font-size:11px}
.product-price-heading>span{flex:none}
.product-price-heading>.ui-vat-check{flex:none;gap:2px}
.extra-sale-table{width:max-content;min-width:0;table-layout:auto}
.extra-sale-table :is(th,td){padding:6px 5px;vertical-align:middle;white-space:nowrap}
.extra-sale-table .product-price-heading{display:none}
.extra-sale-table .is-disabled .ui-money-control,.extra-sale-table .is-disabled [data-column-key=price-name]{opacity:.5}
.extra-sale-table [data-extra-sale-row][hidden]{display:none}
.product-option-fields:not(:has([data-variant-row])) .product-bulk-location,.product-option-fields:not(:has([data-variant-row]))>.table-wrap{display:none}
.product-option-empty{display:none;margin:4px 0;font-size:12px;color:#797382}
.product-option-fields:not(:has([data-variant-row])) .product-option-empty{display:block}
.review-panel.is-empty-review :is(.review-summary,.review-controls,.review-interaction-hint,.review-footer,.review-heading .task-tag,.save-menu){display:none}
@media(max-width:640px){
 .movement-product-table,.movement-product-table:not(:has(.movement-remove-col)){display:block;width:100%;min-width:0;table-layout:auto}
 .movement-product-table>colgroup,.movement-product-table>thead{display:none}
 .movement-product-table>tbody{display:block}
 .movement-product-table>tbody>tr{display:block;border-bottom:1px solid #e3e1eb;padding:8px 0}
 .movement-product-table.ui-data-table>tbody>tr>td{display:block;width:100%;min-width:0;box-sizing:border-box;border:0;overflow-x:auto}
 .movement-product-table>tbody>tr>td:last-child:has(>button){text-align:right}
 .extra-sale-table{width:100%;table-layout:fixed}
 .extra-sale-table :is(th,td){padding:5px 3px;white-space:normal;overflow-wrap:anywhere;font-size:11px}
 .extra-sale-table [data-column-key=enabled]{width:28px}
 .extra-sale-table .ui-money-control{width:100%;min-width:0}
}
.product-name-stack{display:flex;flex-direction:column;min-width:0}
.product-option-labels{max-width:var(--ui-name-max-width,16em);white-space:normal;overflow-wrap:anywhere}
:is(.partner-name-line,.order-partner-line,.movement-kind-line){align-items:center;min-width:0}
.product-table td:has(.product-name-line){vertical-align:middle}
/* Product variant columns have semantic keys; code visibility never depends on position. */
.product-dialog .product-options .product-variant-table{
 --variant-quantity-width:0px;--variant-location-width:0px;--variant-codes-width:0px;
 width:calc(44px + 88px + 64px + var(--variant-quantity-width) + var(--variant-location-width) + var(--variant-codes-width));
 min-width:calc(44px + 88px + 64px + var(--variant-quantity-width) + var(--variant-location-width) + var(--variant-codes-width));table-layout:fixed
}
.product-dialog .product-options .product-variant-table:has([data-current-stock]){--variant-quantity-width:88px}
.product-dialog .product-options .product-variant-table:has([data-stock-allocation]:not([hidden])){--variant-quantity-width:190px}
.product-dialog .product-options .product-variant-table:has([data-initial-quantity]){--variant-quantity-width:calc(var(--ui-quantity-width) + 2 * var(--ui-option-cell-padding-inline));--variant-location-width:128px}
.product-dialog .product-options.show-codes .product-variant-table{--variant-codes-width:336px}
.product-dialog .product-options .product-variant-table :is(th,td){box-sizing:border-box;padding:var(--ui-option-cell-padding-block) var(--ui-option-cell-padding-inline);font-size:12px;vertical-align:middle;overflow-wrap:anywhere}
.product-variant-table [data-column-key=enabled]{width:44px}
.product-variant-table [data-column-key=color]{width:88px}
.product-variant-table [data-column-key=size]{width:64px}
.product-variant-table :is([data-column-key=color-code],[data-column-key=size-code]){width:80px}
.product-variant-table [data-column-key=sku]{width:176px;min-width:0}
.product-variant-table [data-column-key=quantity]{width:var(--variant-quantity-width)}
.product-variant-table [data-column-key=location]{width:var(--variant-location-width)}
.product-options:not(.show-codes) .product-variant-table :is([data-column-key=color-code],[data-column-key=size-code],[data-column-key=sku]),.product-variant-table .product-option-spacer{display:none}
.product-dialog .product-options .product-variant-table input:not([type=checkbox]):not([type=hidden]):not(.ui-quantity-input){box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:6px 7px;font-size:12px}
.product-dialog .product-options .product-variant-table label{font-size:12px}
.product-dialog .product-options .product-variant-table .ui-compact-name{max-width:100%;overflow-wrap:anywhere}
.product-dialog .product-options .product-variant-table .product-option-name{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.4;text-align:inherit}
.product-dialog .product-options .product-variant-table input.ui-quantity-input{display:inline-block}
.product-dialog .product-initial-location-controls{display:flex;justify-content:center;align-items:center}
/* Compact summaries keep spare width outside the columns. */
.ui-data-table.ui-option-summary{width:max-content;min-width:0;max-width:none;table-layout:auto}
.ui-data-table.ui-option-summary>thead>tr>th,.ui-data-table.ui-option-summary>tbody>tr>td{width:auto;min-width:0;padding:4px 6px;font-size:12px;vertical-align:middle;white-space:nowrap;font-variant-numeric:tabular-nums}
/* Stock changes fill their card; equations wrap within the three columns. */
.movement-detail-stock{padding:0;overflow:hidden}
.movement-detail-stock>.movement-detail-section-heading{margin:0;padding:14px 16px 0}
.movement-detail-stock .movement-impact-hint{padding-inline:16px}
.movement-detail-stock .table-wrap{width:100%;max-width:100%;box-sizing:border-box;border:0;border-radius:0;margin:0;padding:0;background:transparent}
.movement-detail-stock [data-correction-read]>.table-wrap{overflow-x:auto}
.movement-detail-body [hidden]{display:none!important}
.movement-detail-body .movement-detail-edit{color:#6043ad;background:#f3effc;border-color:#d9cdf2}
.movement-detail-body .movement-detail-edit:hover:not(:disabled){color:#4f348f;background:#e9dff9}
.movement-detail-body .movement-detail-edit:focus-visible{outline:2px solid #8065c8;outline-offset:2px}
.movement-correction-actions{display:flex;align-items:center;gap:6px;margin:0}
.movement-correction-actions .catalog-edit{font-size:18px;line-height:1}
.movement-correction-actions .movement-correction-save{color:#6450af;background:#f4f1fb;border-color:#d9d1f0}
.movement-correction-actions .movement-correction-save:hover{background:#ebe5fa}
.movement-correction-error{margin:0;overflow-wrap:anywhere}
.movement-detail-stock .movement-correction-error{padding:8px 16px}
.movement-correction-note{display:grid;gap:8px}
.movement-correction-note>label{display:grid;gap:4px;font-size:13px;color:var(--muted,#635f70)}
.movement-correction-note :is(input,textarea){width:100%;min-width:0;box-sizing:border-box}
.movement-impact-table input[data-correction-line]{width:100%;max-width:96px;min-width:0;height:32px;min-height:32px;box-sizing:border-box;padding:4px 5px;text-align:right;appearance:textfield}
.movement-impact-table input[data-correction-line]::-webkit-inner-spin-button{appearance:none;margin:0}
.movement-correction-delta{display:block;margin-top:3px;font-size:11px;font-weight:650}
.movement-correction-delta[data-direction="1"]{color:#19633c}
.movement-correction-delta[data-direction="-1"]{color:#a12b40}
.movement-detail-stock .movement-impact-table{width:100%;min-width:278px;table-layout:fixed;margin:0;border-spacing:0}
.movement-detail-stock .movement-impact-table :is(th,td){max-width:none;padding:6px 5px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.movement-detail-stock .movement-impact-table [data-column-key=product]{width:auto}
.movement-detail-stock .movement-impact-table [data-column-key=processed]{width:clamp(61px,17vw,108px)}
.movement-detail-stock .movement-impact-table [data-column-key=quantity]{width:clamp(82px,22vw,190px)}
.movement-detail-stock .movement-impact-table [data-column-key=location]{width:clamp(49px,14vw,128px)}
.movement-detail-stock .movement-impact-table :is(th,td):is(:nth-child(2),:nth-child(3)){text-align:right;font-variant-numeric:tabular-nums}
.movement-detail-stock .movement-impact-table tbody tr:last-child td{border-bottom:0}
.movement-detail-stock .movement-quantity-equation{flex-wrap:wrap;white-space:normal;row-gap:2px}
.movement-detail-stock .movement-defective-equation{flex-wrap:wrap}
[data-other-channel][hidden]{display:none!important}
/* The same packing form is used for creation and later edits. */
.workflow-date-field{display:grid;gap:5px;min-width:0;max-width:180px}
.workflow-field-heading{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:20px}
.workflow-field-heading>label{margin:0}
.workflow-date-field>input{width:100%;min-width:0;max-width:100%}
/* Initial inventory bulk edits stay in the product draft and have a separate row selection. */
.product-bulk-location{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0;margin:0;padding:8px 0;border:0}
.product-bulk-label{font-size:12px;color:#666d7c}
.product-bulk-location>[data-bulk-location-picker]{width:max-content;min-width:0;max-width:100%}
.product-bulk-location .filter-dropdown{width:max-content;min-width:0;max-width:100%}
.product-bulk-location .filter-dropdown>summary{box-sizing:border-box;width:max-content;max-width:100%;justify-content:flex-start;gap:6px;min-height:32px;height:32px;padding:5px 7px}
.product-bulk-location .filter-label{display:none}
.product-bulk-location>.secondary-button{min-height:32px;padding:5px 8px;font-size:12px;white-space:nowrap}
.product-bulk-location>[data-location-selection-count]{font-size:11px;color:#797382;white-space:nowrap}
.product-bulk-location:disabled{opacity:.5}
.product-bulk-location:disabled summary{pointer-events:none}

/* Same direct row selection gesture as file-to-inventory, without a checkbox column. */
.product-dialog .product-variant-table [data-location-row]{cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.product-dialog .product-variant-table [data-location-row][data-location-disabled=true]{cursor:default}
.product-dialog .product-variant-table [data-location-row] :is(input,textarea){user-select:text;-webkit-user-select:text}
.product-dialog .product-variant-table .product-location-selected>td{background:#f1efff}
.product-dialog .product-variant-table .product-location-selected>td:first-child{box-shadow:inset 3px 0 #6558d3}
.product-dialog .product-variant-table [data-location-row]:focus-visible{outline:2px solid #8e80cf;outline-offset:-2px}
.product-bulk-location>.product-location-selection-line{flex:0 0 100%;min-width:0}
.product-bulk-location .product-location-select-all{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;font-size:12px;line-height:20px;min-width:0;margin:0}
.product-location-select-all>[data-location-select-all]{width:16px;min-width:16px;height:16px;min-height:16px;margin:0}
.product-initial-location-controls .filter-dropdown{display:block;width:max-content;max-width:100%;min-width:0}
.product-initial-location-controls .filter-dropdown>summary{box-sizing:border-box;width:max-content;max-width:100%;justify-content:flex-start;gap:6px}
.product-initial-location-controls .filter-label{display:none}
.product-initial-location-controls .filter-value,.product-bulk-location .filter-value{flex:0 1 auto;min-width:0;max-width:180px}
.product-initial-location-controls .filter-chevron,.product-bulk-location .filter-chevron{flex:none}


/* Registration and editing share compact grouping without changing business fields. */
.ui-workflow-form .inventory-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:460px;margin:10px 0;align-items:start}
.ui-workflow-form .inventory-fields>:is(label,div):not([hidden]){display:grid;gap:5px;min-width:0;align-content:start;font-size:12px}
.ui-workflow-form .inventory-fields :is(input,.filter-dropdown,.ui-date-field){min-width:0;max-width:100%}
.ui-workflow-form .inventory-fields>.movement-reason-fields{grid-column:1/-1}
.ui-workflow-form>.ui-dialog-scroll>.inventory-option-dropdown{width:min(100%,460px)}
.workflow-section{border:1px solid var(--border,#dedfe6);border-radius:10px;padding:10px;margin:10px 0;min-width:0;max-width:100%;font-size:12px}
.workflow-section[hidden]{display:none}
.workflow-section>summary{cursor:pointer;font-weight:600;padding:3px 0;overflow-wrap:anywhere}
.workflow-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px;gap:8px 10px;margin-top:10px;align-items:start}
.workflow-fields>label{gap:5px;font-size:12px}
.workflow-fields input{box-sizing:border-box;min-width:0;max-width:100%}
.workflow-fields input:not([type=checkbox]),.ui-form-controls .workflow-fields input:not([type=checkbox]){min-height:34px;height:34px;padding:5px 7px;font-size:12px}
.workflow-fields .product-type-field{gap:5px;min-width:0}
.workflow-fields .filter-dropdown>summary{box-sizing:border-box;height:34px;min-height:34px;padding:5px 7px}
.workflow-fields .filter-value{min-width:0;max-width:100%}
.workflow-fields .workflow-check{display:flex;align-items:center;gap:5px;align-self:center;min-height:34px}
.workflow-check input{flex:none}
.workflow-summary{display:grid;gap:8px;margin:10px 0 0}
.workflow-summary>div{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:8px}
.workflow-summary dt{color:var(--muted,#6b7280)}
.workflow-summary dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}

/* Long location/product labels wrap inside the full-width impact table. */
.movement-impact-table .ui-compact-name,.movement-impact-table .product-title.is-compact{width:auto;min-width:0;max-width:100%}
.movement-impact-table .ui-name-lines,.movement-impact-table .ui-name-lines>span{width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Read-only movement detail uses the available space, not directory abbreviations. */
.movement-impact-table .product-identity{min-width:0;max-width:100%}
.movement-impact-table .product-title{width:auto;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:anywhere}
.movement-impact-table .product-option-description .ui-name-full,.movement-detail-facts .ui-name-full{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
.movement-impact-table .product-option-description .ui-name-lines,.movement-detail-facts .ui-name-lines{display:none}
.movement-detail-stock .movement-defective-equation{justify-content:flex-end}

.catalog-table .is-pending-delete td{background:#fff4ed;color:#936343}.catalog-table [data-delete-note]{display:block;max-width:100%;margin-top:4px;font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.catalog-table .is-pending-delete .catalog-delete{color:#936343;background:#fff9f3}
@media(max-width:480px){.movement-impact-table .movement-quantity-equation{max-width:100%;justify-content:flex-end}}

.movement-equation-mobile{display:none}
@media(max-width:480px){.movement-impact-table .movement-quantity-equation> :not(.movement-equation-mobile){display:none}.movement-impact-table .movement-equation-mobile{display:grid;text-align:right;gap:2px}.movement-equation-mobile small{font-size:10px;overflow-wrap:anywhere}.movement-equation-mobile b{color:var(--movement-quantity-color)}}

/* Movement reading layout: neutral surfaces, consistent boundaries, compact facts. */
.movement-detail-body>.movement-handling-summary{box-sizing:border-box;max-width:none;margin:0 0 14px;padding:16px;border:1px solid #d8dde5;border-radius:10px;background:#fff}
.movement-detail-body>.movement-handling-summary>.compact-info-heading{margin-bottom:8px}
.movement-detail-body .handling-inline-form{max-width:none}
.movement-detail-body :is(.handling-editor,.handling-saved-reference){max-width:460px}
.movement-detail-body .handling-inline-toolbar{background:#fff;border-color:#d8dde5;padding:0 0 8px}
.movement-detail-body .compact-info-summary{background:#fafbfc;border-color:#d8dde5}
.movement-detail-body>.record-summary{box-sizing:border-box;margin:0 0 10px;padding:0 14px;border:1px solid #d8dde5;border-radius:8px;background:#fff}
.movement-detail-body .movement-detail-facts .ui-name-natural{-webkit-line-clamp:unset;max-width:100%}
.movement-detail-note{margin-top:10px;padding-top:10px}
.handling-date-clear{margin-left:12px;color:#6c7280}
[data-handling-date] .compact-info-heading>span{margin-right:auto}
[data-handling-date] .compact-info-heading{justify-content:flex-start;gap:10px}
[data-handling-date] .compact-info-heading .handling-date-clear{margin-left:0}
/* Name wrappers must respect the cell, including the fixed product track. */
.movement-table .movement-partner-cell>.ui-compact-name,.movement-table .movement-place-cell .ui-compact-name{max-width:140px}
@media(max-width:760px){.movement-detail-body>.movement-handling-summary{padding:12px}}
@media(max-width:640px){.movement-detail-body>.record-summary{padding:0 12px}}

/* One compact packing workflow for movement creation and saved-record edits. */
.handling-completion{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:12px 0}
.handling-completion>label{display:flex!important;align-items:center;gap:6px;font-size:12px!important;cursor:pointer}
.handling-completion input{width:16px!important;min-width:16px!important;height:16px!important;min-height:16px!important;margin:0}

.order-fulfillment-dialog{width:min(720px,calc(100vw - 24px))}
.order-fulfillment-dialog .inventory-stock-summary{background:#fafbfc;border:1px solid #d8dde5;padding:10px 12px}
.order-fulfillment-dialog .handling-editor{box-sizing:border-box;width:100%;max-width:100%;padding:14px;border:1px solid #d8dde5;border-radius:10px;background:#fff;margin:14px 0}
.order-fulfillment-dialog .handling-editor>.compact-info,.order-fulfillment-dialog .handling-editor>div:not(.handling-completion){max-width:460px}
.handling-order-request{background:#fafbfc;border-color:#d8dde5}
.handling-order-request h4{color:#596174;font-weight:600}
.handling-date-error{color:#ad4250;font-size:12px}

#movementDialog.inventory-dialog,#orderDialog.order-dialog{width:min(720px,calc(100vw - 24px));box-sizing:border-box}

.order-handling-progress{display:block;margin:5px 0;font-size:11px;line-height:1.6;color:#697181;white-space:nowrap}
.ui-workflow-form#movementForm{font-size:13px;line-height:1.6;color:#454151}
#movementForm .inventory-dialog-body>p,#movementForm .panel-description{font-size:12px;line-height:1.6;margin:8px 0;color:#746f7d}
#movementForm .movement-reason-fields{margin:14px 0}
#movementForm .movement-reason-fields h3,#movementProductOptions>h3{font-size:13px;line-height:1.5;margin:0 0 8px;font-weight:600}
#movementProductOptions>h3>small{font-size:12px;font-weight:400;margin-left:6px;color:#746f7d}
#movementForm .order-product-card{margin:12px 0;padding:12px;font-size:13px;line-height:1.6}
#movementForm .order-card-header{gap:10px;margin-bottom:8px}
#movementForm .order-card-header .product-title{font-size:13px;line-height:1.5}
#movementForm .order-card-header small,#movementForm .order-card-summary{font-size:12px;line-height:1.6}
#movementForm .order-card-summary{margin:8px 0}
#movementForm .movement-option-table>thead>tr>th{font-size:12px;font-weight:500;padding:8px 6px;line-height:1.5}
#movementForm .movement-option-table>tbody>tr>td{font-size:13px;padding:8px 6px;line-height:1.5;vertical-align:middle}
#movementForm .movement-option-table .ui-quantity-current,#movementForm .product-subtext,#movementForm .movement-quantity-error{font-size:12px;line-height:1.5}
#movementForm .order-card-footer{margin-top:10px}
#movementForm .ui-text-action{font-size:12px;line-height:1.5;min-height:32px}

.movement-option-table{width:calc(var(--ui-option-color-width) + var(--ui-option-size-width) + var(--ui-option-quantity-width));min-width:calc(var(--ui-option-color-width) + var(--ui-option-size-width) + var(--ui-option-quantity-width))}

.movement-mobile-place { display:none; }
#orderResults .order-partner-line { flex-wrap:wrap; gap:3px 6px; }
#orderResults .order-list-date { margin:0; white-space:nowrap; }
#orderResults .order-actions-cell>button { margin:0 0 4px; }
#orderResults .order-actions-cell>.secondary-button { display:flex; }
#movementResults .movement-list-product { display:grid; grid-template-columns:minmax(0,1fr); gap:3px; }
#movementResults .movement-list-product-heading { display:flex; align-items:baseline; justify-content:space-between; gap:5px 8px; flex-wrap:wrap; }
:is(#movementResults .movement-list-identity,#orderResults .order-list-identity) { display:inline-flex; align-items:baseline; gap:6px; min-width:0; max-width:100%; }
:is(#movementResults .movement-list-name,#orderResults .order-list-name) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
:is(#movementResults .movement-list-identity,#orderResults .order-list-identity) .product-reference { margin:0; min-width:0; flex:0 1 auto; font-size:10px; font-weight:400; color:#777382; }
#movementResults .movement-list-identity { display:grid; gap:2px; text-align:left; }
#movementResults .movement-list-identity .product-reference { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#movementForm .ui-quantity-input::placeholder { color:#8b8795; opacity:1; }
#movementResults .movement-table>tbody>tr>.movement-kind-cell { text-align:center; }
#movementResults .movement-kind-line { justify-content:center; }
#movementResults .movement-kind-cell .status { display:inline-block; margin-top:4px; white-space:nowrap; }
#movementResults .movement-list-cancelled>td { background:#fff8f8; }
#orderDialog:has(#orderForm),#movementDialog:has(#movementForm) { height:fit-content; }
#orderDialog>#orderForm,#movementDialog>#movementForm { height:auto; }
#orderForm.ui-workflow-form :is(.inventory-fields,.workflow-fields),
#movementForm.ui-workflow-form .inventory-fields { max-width:none; }
#orderForm.ui-workflow-form>.ui-dialog-scroll>.inventory-option-dropdown,
#movementForm.ui-workflow-form>.ui-dialog-scroll>.inventory-option-dropdown { width:100%; }
#orderForm [data-order-partner] .filter-label{display:none}
#orderForm [data-order-partner] .filter-chevron{margin-inline-start:auto}
.order-product-choice{display:grid;gap:1px;flex:1 1 auto;min-width:0;text-align:left}
.order-product-choice-main{display:flex;align-items:center;gap:6px;min-width:0}
.order-product-choice-main>strong,.order-product-choice-colors>span:first-child,.order-product-choice>.product-reference{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-product-choice-colors{max-width:46%;min-width:0;display:flex;gap:3px;align-items:center;padding:1px 5px;border-radius:4px;background:#eeeaf8;color:#524478;font-size:11px;white-space:nowrap}
.order-product-choice-colors>span+span{flex:none}

@media (max-width:640px) {
  #orderForm .order-card-option-scroll,#movementForm .order-card-option-scroll { max-height:none; scrollbar-gutter:auto; overscroll-behavior:auto; }
  #movementForm .ui-choice-buttons[aria-label="입출고 유형"] { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  #movementForm .ui-choice-buttons[aria-label="입출고 유형"]>button { padding-inline:3px; white-space:normal; min-width:0; }

  #movementResults .movement-table { width:100%; min-width:0; table-layout:fixed; }
  #movementResults .movement-table>thead>tr>th:is([data-column-key="location"],[data-column-key="partner"]),
  #movementResults .movement-table>tbody>tr>:is(.movement-place-cell,.movement-partner-cell) { display:none; }
  #movementResults .movement-kind-cell,#movementResults .movement-table th[data-column-key="kind"] { width:76px; min-width:0; }
  #movementResults .movement-inline-options { width:100%; }
  .movement-mobile-place { display:block; margin-top:3px; font-size:11px; color:#676272; overflow-wrap:anywhere; }
  #movementResults .movement-table>tbody>tr>td { padding-block:8px; }

}

:is(#orderResults,#movementResults) .order-card-list { display:grid; gap:6px; }
.order-list-card { position:relative; min-width:0; border:1px solid var(--line); border-radius:10px; background:#fff; }
.order-list-card>summary { display:grid; grid-template-columns:minmax(0,1fr) auto 12px; align-items:center; gap:8px; padding:8px 10px; cursor:pointer; list-style:none; }
.order-list-card>summary { background:#f8f7ff; border-radius:9px; }
.order-list-card[open]>summary { border-end-start-radius:0; border-end-end-radius:0; }
.order-list-card>summary::-webkit-details-marker { display:none; }
.order-list-title { display:grid; gap:2px; min-width:0; }
.order-list-partner>strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.order-list-title>small { color:#676272; font-size:11px; }
.order-list-chevron { width:7px; height:7px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg); }
.order-list-card[open] .order-list-chevron { transform:rotate(225deg); }
:is(#orderResults,#movementResults) .order-card-products { border-top:1px solid var(--line); }
:is(#orderResults,#movementResults) .order-card-product { min-width:0; padding:8px 10px; }
:is(#orderResults,#movementResults) .order-card-product+.order-card-product { border-top:1px solid var(--line); }
:is(#orderResults,#movementResults) .order-product-cell { margin-bottom:4px; }
.order-list-card[open]>summary { grid-template-columns:minmax(0,1fr) 12px; }
.order-list-card[open]>summary>.status { display:none; }
.order-list-card[open]:has(>.order-list-action)>summary { padding-right:116px; }
.order-list-card[open]:has(>.order-list-action) .order-list-chevron { position:absolute; top:21px; right:14px; }
.order-list-action { position:absolute; top:8px; right:32px; }
.order-list-action>.primary-button { min-height:36px; padding:4px 10px; white-space:nowrap; }
:is(#orderResults,#movementResults) .order-list-card .order-progress-cell { overflow-x:auto; }
:is(#orderResults,#movementResults) .order-list-card .order-inline-progress { width:100%; table-layout:auto; }
:is(#orderResults,#movementResults) .order-list-card .order-inline-progress :is(th,td) { padding-inline:4px; }
:is(#orderResults,#movementResults) .order-list-card .order-inline-progress tbody td { white-space:nowrap; }
:is(#orderResults,#movementResults) .order-list-card .order-list-identity {
  display:inline-grid; grid-template-columns:minmax(0,1fr); gap:2px; text-align:left;
}
:is(#orderResults,#movementResults) .order-list-card .order-list-identity :is(.order-list-name,.product-reference) {
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere;
}

.order-list-partner { display:flex; align-items:center; gap:5px; min-width:0; }
.order-list-partner>.memo-preview-button { flex:none; }
.order-list-title>small { overflow-wrap:anywhere; }
.movement-card-status { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:3px; }
.movement-order-round { padding:8px 0; }
.movement-order-round+.movement-order-round { border-top:1px solid var(--line); }
.movement-order-round-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 8px; }
.movement-order-round-heading h4 { margin:0; font-size:13px; }
.movement-history-actions:not([hidden]) { display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 8px; margin-inline-start:auto; }
.movement-history-actions>button,.movement-history-actions>.filter-dropdown>summary { min-height:30px; white-space:nowrap; }
.movement-history-actions>.filter-dropdown>summary { box-sizing:border-box; height:30px; padding-inline:7px; }
.movement-order-round-table { width:100%; table-layout:fixed; }
.movement-order-round-table th[data-column-key=quantity] { width:clamp(50px,14vw,86px); }
.movement-order-round-table th[data-column-key=stock] { width:clamp(86px,28vw,180px); }
.movement-order-round-table :is(th,td) { padding:5px 6px; overflow-wrap:anywhere; }
.movement-order-round-table .movement-history-document-label>td { border-top:1px solid var(--line); background:#faf9fc; font-size:12px; }
.movement-history-document-label strong { font-weight:600; }
.movement-history-document-label small { margin-inline-start:4px; color:#676272; }
.movement-order-round-table .movement-order-round-quantity { text-align:right; font-variant-numeric:tabular-nums; }
.movement-order-round-quantity input { width:100%; min-width:0; height:32px; text-align:right; padding-inline:3px; box-sizing:border-box; }
.movement-order-round-stock>div { display:grid; justify-items:end; gap:2px; }
.movement-order-round-stock>div+div { margin-top:5px; }
.movement-order-round-stock>div>small { font-size:11px; color:#676272; }
.movement-history-equation { display:inline-flex; flex-wrap:wrap; justify-content:flex-end; align-items:baseline; gap:1px 3px; font-variant-numeric:tabular-nums; }
.movement-history-equation>span { white-space:nowrap; }
.movement-history-addend { color:#216b48; }
.movement-history-addend[data-direction="-1"]:not(.is-edited) { color:#a12b40; }
.movement-history-addend.is-edited { padding:0 3px; border-radius:3px; background:#eee9ff; color:#49339b; font-weight:700; }
.movement-history-form { display:grid; gap:8px; padding:8px 0; margin:0; }
.movement-order-round-table .movement-order-round-notes { color:#676272; font-size:12px; }
.movement-order-round-notes p { margin:2px 0; }
.movement-record-card[open]>summary { grid-template-columns:minmax(0,1fr) auto 12px; }
:is(#orderResults,#movementResults) .order-list-card .order-list-identity .product-reference { margin:0; font-size:10px; font-weight:400; color:#777382; }

:is(.order-list-cancelled,.movement-record-cancelled)>summary { background:#fff0f0; }
:is(.order-list-cancelled,.order-list-completed)[open]>summary { grid-template-columns:minmax(0,1fr) auto 12px; }
.order-list-cancelled[open]>summary>.status-cancel { display:inline-flex; }

.order-list-completed>summary { background:var(--green-soft); }
.order-list-completed[open]>summary>.status-done { display:inline-flex; }


:is(.order-list-card>summary,.movement-card-status)>.status { background:#f0eef5; border:1px solid transparent; color:#252834; }
:is(.order-list-card>summary,.movement-card-status)>.status-cancel { background:#fff8f8; border-color:#e5aab1; color:#932b3c; }
:is(.order-list-card>summary,.movement-card-status)>.status-done { background:#f5fcf8; border-color:#a7cdbb; color:#206348; }

.order-fulfillment-dialog .fulfillment-order-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; }
.fulfillment-order-summary p,#fulfillmentSummary { margin:0; font-size:12px; }
.fulfillment-context { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; margin:10px 0; }
.fulfillment-context .inventory-fields { display:block; margin:0; }
.fulfillment-context>label { display:grid; gap:5px; min-width:0; align-content:start; font-size:12px; }
.fulfillment-context input[type=date] { width:100%; }
.fulfillment-context .inventory-fields .filter-dropdown>summary { height:40px; box-sizing:border-box; }
.fulfillment-context .inventory-fields .filter-label { display:none; }
.fulfillment-context .inventory-fields .filter-chevron { margin-inline-start:auto; }
.fulfillment-product { min-width:0; padding:8px 0; border-bottom:1px solid var(--line); }
.fulfillment-product header :is(strong,small) { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fulfillment-product header small { color:#676272; margin:2px 0 4px; }
.fulfillment-detail-toggle { display:inline-flex; gap:5px; align-items:center; font-size:12px; }
#movementProductOptions:not(:has(.fulfillment-detail-toggle input:checked)) .fulfillment-extra { display:none; }
.order-fulfillment-dialog .fulfillment-options { width:100%; min-width:100%; }
.ui-option-summary.fulfillment-options>tbody>tr>td { vertical-align:top; padding-block:5px; }
.ui-option-summary.fulfillment-options>tbody>tr>td:not(:last-child) { padding-top:9px; line-height:22px; }
#movementProductOptions:not(:has(.fulfillment-detail-toggle input:checked)) .fulfillment-options th[data-column-key=color] { width:31%; }
#movementProductOptions:not(:has(.fulfillment-detail-toggle input:checked)) .fulfillment-options th[data-column-key=size] { width:22%; }
.ui-option-summary.fulfillment-options>thead>tr>th[data-column-key=quantity] { width:32%; padding-inline-end:13px; }
.fulfillment-options td>.ui-quantity-input { --ui-quantity-width:12ch; --ui-compact-control-height:30px; }
.fulfillment-allocation { width:128px; margin:3px 0 0 auto; text-align:right; }
.fulfillment-allocation summary { display:flex; justify-content:flex-end; align-items:center; gap:4px; min-height:22px; color:var(--primary); cursor:pointer; font-size:11px; line-height:1.4; list-style:none; }
.fulfillment-allocation summary::-webkit-details-marker { display:none; }
.fulfillment-allocation summary::before { content:'▸'; flex:none; }
.fulfillment-allocation[open] summary::before { transform:rotate(90deg); }
.fulfillment-allocation summary>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fulfillment-allocation-editor { display:grid; gap:4px; margin-top:3px; padding:4px 6px; border-radius:5px; background:#f7f5fc; }
.fulfillment-allocation-editor label { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,64px); align-items:center; gap:4px; font-size:11px; text-align:left; }
.fulfillment-allocation-editor label>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fulfillment-allocation-editor .ui-quantity-input { --ui-quantity-width:100%; --ui-compact-control-height:28px; }
.fulfillment-quantity-error { display:block; margin:2px 0 0 auto; max-width:128px; color:#932b3c; font-size:11px; white-space:normal; overflow-wrap:anywhere; }
.fulfillment-quantity-error[hidden] { display:none; }
.fulfillment-quantity-error.is-warning { color:#804d12; }
.order-fulfillment-dialog .fulfillment-handling { padding:8px 10px; }
.fulfillment-handling>summary { cursor:pointer; font-weight:600; }
.fulfillment-handling>summary small { display:block; margin-top:3px; color:#676272; font-weight:400; }
.fulfillment-handling-fields { display:grid; gap:8px; margin-top:8px; }
.fulfillment-handling-fields [hidden] { display:none; }
.fulfillment-handling-date>summary { cursor:pointer; font-size:11px; }
#fulfillmentSummary { margin-bottom:6px; }
@media(max-width:480px) {
  .fulfillment-context { grid-template-columns:minmax(0,1fr); }
}

.shipment-import { display:grid; gap:.5rem; padding-block:.75rem; }
.shipment-import p { margin:.25rem 0; overflow-wrap:anywhere; }
.shipment-import > div, .shipment-groups { display:grid; gap:.5rem; min-width:0; }
.shipment-groups details { padding:.5rem; border:1px solid var(--line, #e1ddec); border-radius:.5rem; }
.shipment-groups label { display:flex; align-items:center; gap:.5rem; padding:.35rem; }
.shipment-photo { display:block; max-width:100%; max-height:65vh; object-fit:contain; margin:auto; }

.shipment-scope-fields { display:grid; grid-template-columns:repeat(2,minmax(0,144px)); gap:8px 12px; }
.shipment-scope-fields > * { display:grid; gap:5px; min-width:0; align-content:start; font-size:12px; }
.shipment-scope-fields :is(select,.shipment-date-picker) { width:100%; min-width:0; height:40px; }
.shipment-scope-fields select { text-overflow:ellipsis; }
.shipment-date-picker { display:flex; align-items:center; justify-content:space-between; gap:6px; text-align:left; }
.shipment-date-picker svg { flex:none; color:#847b9a; }
.shipment-selected-dates { display:flex; flex-wrap:wrap; align-content:start; gap:6px; max-height:82px; overflow-y:auto; padding:3px; }
.shipment-selected-dates:empty { display:none; }
.shipment-selected-dates .secondary-button { min-height:32px; padding:4px 9px; font-size:inherit; }
.shipment-selected-dates button[aria-pressed="true"] { background:#efebff; border-color:#a99aea; color:#4f3ca0; }
.shipment-boxes > div { max-height:160px; overflow-y:auto; }

#movementDialog.inventory-dialog.order-shipment-review-dialog { width:min(890px,calc(100vw - 24px)); max-width:calc(100vw - 24px); }
.shipment-import > [role="status"]:empty { display:none; }
.shipment-import > .shipment-file-actions { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; }
.shipment-import .shipment-file-actions[hidden],.shipment-import .shipment-file-recovery[hidden],.shipment-order-picker [hidden] { display:none; }
.shipment-import .shipment-upload-button { color:#5145a8; border-color:#cfc4ee; background:#f4f0ff; }
.shipment-manual-guide { margin:6px 0 0; color:#5c566b; font-size:12px; line-height:1.5; }
.shipment-file-recovery { display:flex; flex-wrap:wrap; gap:6px; margin:5px 0 9px; }
.shipment-confirmation-block { margin:2px 0 6px; color:#655477; font-size:12px; }
.shipment-import :is(h3,p[tabindex="-1"]):focus-visible,.upload-select-button:focus-visible { outline:2px solid #6950c4; outline-offset:2px; }
.shipment-review { min-width:0; }
.shipment-review-context { display:flex; align-items:flex-start; gap:8px 12px; padding:5px 10px; border:1px solid #e6e2f6; border-radius:9px; background:#f8f6ff; overflow-wrap:anywhere; }
.shipment-review-context h3 { color:#5145a8; font-size:13px; margin:7px 0 0; white-space:nowrap; }
.shipment-source-scope { flex:1; min-width:0; }
.shipment-review .shipment-source-scope > summary { min-height:32px; padding-block:6px; }
.shipment-source-scope strong,.shipment-source-scope small { display:block; }
.shipment-source-scope strong { font-size:13px; }
.shipment-source-scope .shipment-file-actions { display:flex; gap:10px; flex-wrap:wrap; }
.shipment-review-context small,.shipment-review-tools > small { color:#666374; font-size:12px; }
.shipment-import .shipment-review-guide { margin:7px 0 10px; color:#666374; font-size:12px; }
.shipment-import .shipment-review-currency { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; font-size:12px; }
.shipment-import .shipment-review-currency select { width:auto; }
.shipment-review-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; margin-bottom:7px; }
.shipment-review-filters { display:inline-flex; gap:2px; padding:3px; border:1px solid #e8e5f1; border-radius:9px; background:#f3f1f8; }
.shipment-review .shipment-review-filters button { min-height:32px; padding:4px 9px; border-radius:6px; color:#5d596d; }
.shipment-review .shipment-review-filters button[aria-pressed="true"] { background:#fff; color:var(--purple-dark); box-shadow:0 1px 3px #2b204018; }
.shipment-import .shipment-review .shipment-attention-toggle { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:36px; margin-bottom:8px; padding:4px 10px; border:1px solid #e8c98d; border-radius:8px; background:#fff3dd; color:#75450f; }
.shipment-import .shipment-review .shipment-attention-toggle[aria-expanded="true"] { margin-bottom:0; border-radius:8px 8px 0 0; }
.shipment-attention-toggle::after { content:""; flex:none; width:6px; height:6px; margin:0 2px 3px 0; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.shipment-attention-toggle[aria-expanded="true"]::after { transform:rotate(225deg); margin:3px 2px 0 0; }
.shipment-scope-meta { display:block; color:#5e576d; margin-top:2px; overflow-wrap:anywhere; }
.shipment-attention { padding:8px; margin-bottom:8px; border:1px solid #e8c98d; border-top:0; border-radius:0 0 8px 8px; background:#fffbf2; }
.shipment-attention .shipment-review-wrap { background:#fff; }
.shipment-review .shipment-attention .shipment-review-table thead th:first-child { width:29%; }
.shipment-review-wrap { border:1px solid #e4e1ef; border-radius:10px; overflow:hidden; }
.shipment-review .shipment-review-table { width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; font-size:13px; }
.shipment-review-table th,.shipment-review-table td { vertical-align:middle; padding:8px; border-bottom:1px solid #efedf4; text-align:left; }
.shipment-review-table thead { color:#514d63; background:#f5f3fa; }
.shipment-review .shipment-review-table thead th { color:#5b566e; font-size:12px; font-weight:700; }
.shipment-review-table thead th:first-child { width:23%; }
.shipment-review-table thead .shipment-number-head { width:13%; text-align:right; }
.shipment-review-table tbody tr:last-child > * { border-bottom:0; }
.shipment-item strong,.shipment-item small { display:block; overflow-wrap:anywhere; }
.shipment-review-table .shipment-item strong,.shipment-review-table td.shipment-measure b { color:var(--ink); font-size:13px; }
.shipment-item small { margin-top:2px; color:#686477; font-size:12px; font-weight:400; }
.shipment-review-table .shipment-group td { padding:7px 9px; background:#f6f4fc; color:var(--ink); }
.shipment-product-title { display:flex; align-items:center; gap:4px 8px; flex-wrap:wrap; }
.shipment-group strong { font-size:13px; overflow-wrap:anywhere; }
.shipment-group small { color:#686477; font-size:11px; font-weight:400; overflow-wrap:anywhere; }
.shipment-thumb { position:relative; display:inline-grid; place-items:center; flex:none; vertical-align:middle; width:36px; height:36px; margin-right:4px; padding:0; border:1px solid #d9d4e8; border-radius:7px; color:#544a78; font-size:10px; background:#fff; overflow:hidden; }
.shipment-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.shipment-photo-viewer { width:min(480px,calc(100vw - 24px)); max-height:calc(100vh - 24px); padding:16px; border:1px solid #ddd7eb; border-radius:12px; overflow:auto; background:#fff; }
.shipment-photo-viewer::backdrop { background:rgba(22,18,32,.63); }
.shipment-photo-viewer strong { display:block; margin-bottom:8px; }
.shipment-photo-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; margin-top:10px; }
.shipment-review-table td.shipment-measure { text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.shipment-mobile-label { display:none; }
.shipment-review-table td.shipment-measure b { display:inline-grid; align-items:center; min-height:31px; padding-inline:3px; }
#movementForm .shipment-review .shipment-quantity { width:100%; min-width:0; max-width:8ch; height:31px; min-height:31px; padding:3px; border:0; border-bottom:1px solid #8b809e; border-radius:0; text-align:right; font-size:13px; font-weight:600; color:var(--ink); background:transparent; }
.shipment-quantity-indicator { display:block; margin-top:2px; font-size:11px; font-weight:700; color:#237352; }
#movementForm .shipment-measure[data-quantity-state="difference"] .shipment-quantity { border-color:#9b672d; }
.shipment-measure[data-quantity-state="difference"] .shipment-quantity-indicator { color:#865010; }
#movementForm .shipment-review .shipment-quantity[aria-invalid="true"] { border-color:#bd6070; }
#movementForm .shipment-review .shipment-quantity:focus-visible { outline:0; border-color:#6950c4; box-shadow:0 1px 0 #6950c4; }
.shipment-measure[data-quantity-state="blocked"] .shipment-quantity-indicator { color:#982c41; }
.shipment-flags { display:flex; flex-wrap:wrap; gap:4px; }
.shipment-flag { display:inline-block; padding:3px 6px; border-radius:5px; font-size:11px; font-weight:700; overflow-wrap:anywhere; }
.shipment-flag.note,.shipment-flag.partial { background:#f1f0f5; color:#605b71; }
.shipment-flag.planned { background:#f0ebfa; color:#5b4388; }
.shipment-flag.warning { background:#fff2df; color:#804d12; }
.shipment-flag.error { background:#ffedef; color:#952f43; }
.shipment-flag.price { background:#efecff; color:#5543a8; }
.shipment-import .shipment-link { min-height:32px; border:0; background:transparent; padding:2px 0; color:var(--purple-dark); font-size:12px; font-weight:700; text-align:left; }
.shipment-import .shipment-link:hover { text-decoration:underline; }
.shipment-unit-price small { display:block; overflow-wrap:anywhere; }
.shipment-review details > summary { padding:3px 2px; cursor:pointer; color:#57516b; font-size:12px; font-weight:600; }
.shipment-mapping { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:3px 7px; margin-top:4px; }
.shipment-mapping .search-input-picker { min-width:0; }
#movementForm .shipment-mapping input[type="search"] { width:100%; min-width:0; height:34px; min-height:34px; padding:4px 7px; font-size:13px; }
.shipment-import .shipment-mapping-actions > button { white-space:nowrap; padding-inline:3px; }
.shipment-map-error { display:block; font-size:11px; color:#982c41; }
.shipment-mapping .shipment-map-error { grid-column:1/-1; }
.shipment-review .shipment-map-error:empty,.shipment-review .shipment-flags:empty { display:none; }
.shipment-attention .shipment-item .shipment-flags { margin-top:3px; }
.shipment-attention .shipment-flag.error { padding:0; background:none; }
.shipment-option-cells { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:2px 5px; min-width:0; }
.shipment-option-cell { display:block; min-width:0; min-height:26px; padding:1px 2px; overflow:hidden; border:0; background:transparent; color:var(--ink); font:inherit; font-size:12px; line-height:24px; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
button.shipment-option-cell { cursor:pointer; color:#5b4388; text-decoration:underline dotted #71678c; text-underline-offset:3px; }
.shipment-option-cell:first-child { grid-column:1/-1; font-size:13px; font-weight:700; }
.shipment-option-cell:nth-child(2) { grid-column:1/-1; color:#625970; }
button.shipment-option-cell:is(:focus-visible,:hover) { background:#f0ebfa; outline-offset:-1px; border-radius:4px; }
.shipment-cell-editor { position:fixed; inset:auto; margin:0; padding:0; border:0; overflow:visible; background:transparent; }
.shipment-cell-editor input { width:100%; }
.shipment-mapping-actions { display:flex; flex-wrap:wrap; gap:0 10px; }
.shipment-excluded { margin-top:8px; }
.shipment-excluded > div > div { display:flex; justify-content:space-between; gap:6px; padding-inline:8px; }
.shipment-import .shipment-review-empty { padding:8px; font-size:12px; color:#625e71; }
.shipment-review [hidden] { display:none !important; }
.shipment-order-picker { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; overflow-wrap:anywhere; }
.shipment-document-choice,.shipment-order-search label { display:grid; gap:4px; min-width:0; }
.shipment-document-choice select,.shipment-order-search input[type="search"] { width:100%; min-width:0; }
.shipment-order-search { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; }
.shipment-order-dialog { width:min(580px,calc(100vw - 20px)); }
[data-shipment-order-results] > button { margin:7px 6px 0 0; }

@media (max-width:650px) {
  #movementDialog.inventory-dialog.order-shipment-review-dialog { width:calc(100vw - 16px); max-width:calc(100vw - 16px); }
  .order-shipment-review-dialog .fulfillment-context { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .shipment-review-context h3 { flex:0 0 100%; margin:3px 0 0; }
  .shipment-review-context > button { white-space:nowrap; }
  .shipment-review-table,.shipment-review-table tbody { display:block; }
  .shipment-review-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .shipment-review-context { flex-wrap:wrap; }
  .shipment-review .shipment-review-filters button { padding-inline:6px; }
  .shipment-review-table tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px 8px; padding:7px 9px; border-bottom:1px solid #e9e6f1; }
  .shipment-review-table tbody tr:last-child { border-bottom:0; }
  .shipment-review-table tbody :is(th,td) { min-width:0; padding:0; border:0; }
  .shipment-item,.shipment-facts,.shipment-group td { grid-column:1 / -1; }
  .shipment-review-table tbody tr.shipment-group { display:block; padding:5px 9px; background:#f6f4fc; }
  .shipment-review-table .shipment-group td { display:block; padding:0; }
  .shipment-item strong,.shipment-item small { display:inline; }
  .shipment-item small { margin-left:6px; }
  .shipment-mobile-label { display:block; margin-bottom:3px; color:#686477; font-size:11px; white-space:nowrap; }
  .shipment-attention .shipment-review-table tbody tr { grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr)); }
  .shipment-attention .shipment-item { grid-column:auto; }
  .shipment-attention .shipment-item :is(strong,small) { display:block; margin-inline:0; }
  .shipment-option-cells { grid-template-columns:minmax(0,1fr); }
  .shipment-attention .shipment-mapping { margin-top:0; }
  .shipment-flag.partial { display:none; }
}

.filter-options>.filter-option-group,.search-input-menu>.filter-option-group{margin:2px 0 0;padding:6px 8px 3px;color:#6c627d;font-size:11px;font-weight:600}
.movement-delete-body [data-movement-delete-impact]{display:grid;gap:12px}
[data-movement-delete-summary]{display:grid;gap:12px}
[data-movement-delete-summary]:empty{display:none}
.movement-delete-choices{display:grid;gap:6px;min-width:0;margin:0;padding:0;border:0}
.movement-delete-choices legend{font-size:13px;font-weight:600;margin-bottom:6px;padding:0}
.movement-delete-choices label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e1dce9;border-radius:7px;cursor:pointer}
.movement-delete-choices label:has(input:checked){border-color:#b9ade4;background:#f6f2fd}
.movement-delete-choices input[type=radio]{appearance:auto;flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:#7864bf}
.movement-delete-choices label span{display:grid;gap:3px;min-width:0}
.movement-delete-choices label small{font-size:12px;color:#6d667a}
.movement-delete-section h3{margin:0 0 6px;font-size:14px}
.movement-delete-table{width:100%;min-width:260px;table-layout:fixed}
.movement-delete-table :is(th,td){padding:7px 6px;vertical-align:top;overflow-wrap:anywhere}
.movement-delete-table :is(th,td):not(:first-child){width:29%;text-align:right}
.movement-delete-location,.movement-delete-table td>.auth-message{display:block;margin-top:3px}
.movement-delete-location{color:#746f7d}
.movement-delete-value{display:block;font-variant-numeric:tabular-nums;white-space:nowrap}
.movement-delete-value small{font-size:11px}
.movement-delete-value small:first-child{display:block;color:#746f7d}
.movement-delete-value small.is-increase{display:inline;color:#27684b}
.movement-delete-value small.is-decrease{display:inline;color:#a3354c}
.movement-delete-returns{display:flex;gap:6px;flex-wrap:wrap}
.user-management-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.user-management-toolbar [data-user-refresh] { margin-inline-start: auto; }
.user-management-toolbar select { min-height: 36px; max-width: 100%; }
.user-management-name { min-width: 7rem; overflow-wrap: anywhere; }
.user-management-person { display: flex; align-items: center; gap: 8px; }
.user-presence-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #7e8493; }
.user-presence-dot.is-online { background: var(--green); }
.user-management-date { white-space: nowrap; }
.user-management-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
