.order-list-v3{display:grid;gap:16px;min-width:0}
.order-v3-toolbar{min-height:56px;align-items:center;border-bottom:0}
.order-v3-toolbar .ds-btn,.order-v3-toolbar .ds-control,.order-v3-toolbar .ds-search{min-height:36px}
.order-v3-toolbar .ds-toolbar__left,.order-v3-toolbar .ds-toolbar__right{gap:8px}
.order-v3-select-label{display:flex;align-items:center;gap:6px;color:var(--ui-text-secondary);font-size:12px;white-space:nowrap}
.order-v3-select-label .ds-control{padding:0 30px 0 10px}
.order-v3-feedback:empty{display:none}
.order-v3-feedback:not(:empty){padding:0 12px;color:var(--ui-text-secondary);font-size:12px}
.order-v3-feedback>.ds-error{margin:12px 0}
.order-status-tabs{display:flex;align-items:stretch;gap:8px;max-width:100%;overflow-x:auto;margin-top:8px;padding:0 12px;border-bottom:1px solid var(--ui-border);background:var(--ui-surface);scrollbar-width:thin}
.order-status-tab{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;min-height:44px;padding:0 13px;border:0;border-radius:8px 8px 0 0;background:transparent;color:var(--ui-text-secondary);font:var(--font-semibold) var(--text-sm)/1 var(--font-ui);white-space:nowrap;cursor:pointer}
.order-status-tab b{display:inline-grid;min-width:22px;height:20px;place-items:center;padding:0 6px;border-radius:999px;background:var(--ui-surface-soft);color:var(--ui-text-muted);font-size:11px;font-variant-numeric:tabular-nums}
.order-status-tab::after{content:"";position:absolute;right:10px;bottom:0;left:10px;height:3px;border-radius:3px 3px 0 0;background:transparent}
.order-status-tab:hover{background:rgba(8,127,91,.05);color:#087f5b}.order-status-tab.is-active{background:rgba(8,127,91,.08);color:#087f5b}.order-status-tab.is-active b{background:rgba(8,127,91,.13);color:#087f5b}.order-status-tab.is-active::after{background:#087f5b}.order-status-tab:focus-visible{outline:2px solid #087f5b;outline-offset:-3px}

/* Each page owns a semantic colgroup; seven- and eight-column tables never share ordinal widths. */
.order-v3-table{width:100%;min-width:1120px;table-layout:fixed}
.sales-order-v3-table{min-width:1020px;max-width:1440px}
.sales-order-v3-table .order-col-number{width:9%}
.sales-order-v3-table .order-col-party{width:10.5%}
.sales-order-v3-table .order-col-products{width:37%}
.sales-order-v3-table .order-col-amount{width:7%}
.sales-order-v3-table .order-col-status{width:8%}
.sales-order-v3-table .order-col-logistics{width:10%}
.sales-order-v3-table .order-col-date{width:9%}
.sales-order-v3-table .order-col-actions{width:9.5%}
.order-v3-table .order-col-date{width:166px}
.order-v3-table .order-col-actions{width:196px}
.sales-order-v3-table .order-col-date{width:9%}
.sales-order-v3-table .order-col-actions{width:9.5%}
.supply-order-v3-table{min-width:1640px}
.supply-order-v3-table .supply-col-number{width:150px}
.supply-order-v3-table .supply-col-party{width:180px}
.supply-order-v3-table .supply-col-products{width:610px}
.supply-order-v3-table .supply-col-quantity{width:135px}
.supply-order-v3-table .supply-col-cost{width:125px}
.supply-order-v3-table .supply-col-status{width:110px}
.supply-order-v3-table.no-purchase-cost{min-width:1515px}

.order-v3-table th,.order-v3-table td{vertical-align:middle}
.order-v3-table td{display:table-cell}
.sales-order-v3-table>tbody>tr>td{height:144px;padding:8px 10px}
.supply-order-v3-table>tbody>tr:not(.ds-group-row)>td{height:144px;padding:8px 10px}
.order-v3-number,.order-v3-party,.order-v3-products>span,.order-v3-amount,.order-v3-quantities,.order-v3-quantities>span{display:grid;gap:3px}
.order-v3-number>b,.order-v3-party>b,.order-v3-copy-line>b,.order-item-preview-copy>b{font-weight:600}
.order-v3-number small,.order-v3-party small,.order-v3-products small,.order-v3-amount small,.order-v3-quantities small{color:var(--ui-text-secondary);font-size:12px;font-weight:400}
.order-v3-products,.order-v3-quantities{display:grid;gap:8px}
.sales-order-v3-table .order-v3-products{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px}
.order-v3-products.is-multi-summary{grid-template-columns:minmax(0,1fr)}
.order-v3-products.is-multi-summary>.multi-item-summary{grid-column:1/-1}
.sales-order-v3-table .order-v3-products>.order-item-preview:only-child{grid-column:1/-1}
.sales-order-v3-table .order-item-summary-more{grid-column:1/-1}
.order-v3-products span{min-width:0}
.order-v3-products b{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-item-preview{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:10px;min-width:230px}
.order-item-thumbnail{position:relative;display:grid;width:46px;height:46px;overflow:hidden;align-items:center;justify-items:center;padding:0;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-soft);color:var(--ui-text-muted);font-size:9px;line-height:1.2;text-align:center}
.order-item-thumbnail-button{cursor:zoom-in}.order-item-thumbnail-button:focus-visible{outline:2px solid var(--ui-brand);outline-offset:2px}
.order-item-thumbnail img{display:block;width:100%;height:100%;object-fit:cover;background:var(--ui-surface-soft)}
.order-item-thumbnail img[hidden]{display:none}
.order-item-image-fallback{padding:4px}
.order-item-preview-copy{display:grid;min-width:0;gap:3px}
.order-item-preview-copy b,.order-item-preview-copy small{display:block;min-width:0}
.order-item-preview-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-item-preview-copy small{color:var(--ui-text-secondary);font-size:12px;font-weight:400;line-height:1.35}
.sales-order-v3-table .order-item-preview-sales{grid-template-columns:128px minmax(0,1fr);min-width:0;gap:8px}
.sales-order-v3-table .order-item-preview-sales .order-item-thumbnail{width:128px;height:128px;border-radius:10px}
.sales-order-v3-table .order-item-preview-sales .order-item-image-fallback{padding:8px;font-size:11px;line-height:1.35}
.sales-order-v3-table .order-item-preview-sales .order-item-preview-copy{gap:5px}
.sales-order-v3-table .order-item-preview-sales .order-item-preview-copy b{font-size:13px;font-weight:600}
.supply-order-v3-table .order-v3-products{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.supply-order-v3-table .order-v3-products>.order-item-preview:only-child{grid-column:1/-1}
.supply-order-v3-table .order-item-summary-more{grid-column:1/-1}
.supply-order-v3-table .order-item-preview-supply{grid-template-columns:128px minmax(0,1fr);min-width:0;gap:10px}
.supply-order-v3-table .order-item-preview-supply .order-item-thumbnail{width:128px;height:128px;border-radius:10px}
.supply-order-v3-table .order-item-preview-supply .order-item-image-fallback{padding:8px;font-size:11px;line-height:1.35}
.supply-order-v3-table .order-item-preview-supply .order-item-preview-copy{gap:5px}
.supply-order-v3-table .order-item-preview-supply .order-item-preview-copy b{font-size:14px;font-weight:600}
.order-item-summary-more{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0 0;border-top:1px dashed var(--ui-border);color:var(--ui-text-secondary);font-size:11px}
.order-item-summary-more .ds-btn{min-height:26px;padding:0 4px;font-size:11px}
.order-item-preview-detail{min-width:260px}
.supply-detail-table .order-item-preview,.supply-candidate-table .order-item-preview{min-width:250px}
.supply-order-v3-table .ds-cell-numeric{white-space:nowrap}
.supply-order-v3-table .ds-cell-numeric small,.supply-order-v3-table td>.ds-status+small{display:block;margin-top:4px;color:var(--ui-text-muted);font-size:11px}

.order-v3-copy-line,.order-v3-phone-line{display:flex;min-width:0;align-items:center;gap:4px}
.order-v3-copy-line>b,.order-v3-phone-line>small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-v3-copy-button{display:inline-grid;width:24px;height:24px;flex:0 0 24px;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ui-text-muted);cursor:pointer}
.order-v3-copy-button:hover{background:var(--ui-surface-hover);color:var(--ui-brand)}
.order-v3-copy-button:focus-visible{outline:2px solid var(--ui-brand);outline-offset:1px}
.order-v3-copy-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sales-order-v3-table :where(.order-v3-amount-cell,.order-v3-status-cell,.order-v3-logistics-cell,.order-v3-date-cell,.order-v3-action-cell){text-align:center}
.order-v3-table .order-v3-date-cell,.order-v3-table .order-v3-action-cell{text-align:left}
.sales-order-v3-table .order-v3-date-cell,.sales-order-v3-table .order-v3-action-cell{text-align:center}
.sales-order-v3-table .ds-cell-money{text-align:center}
.order-v3-date{display:flex;align-items:center;justify-content:center;min-height:32px;white-space:nowrap}
.order-v3-table time{color:var(--ui-text-secondary);white-space:nowrap}
.sales-order-v3-table .order-v3-date,.sales-order-v3-table time{white-space:normal;line-height:1.35}
.order-v3-logistics{display:grid;gap:5px;justify-items:center}.order-v3-logistics small{max-width:150px;overflow:hidden;color:var(--ui-text-secondary);font-size:12px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}
.order-v3-logistics-status{display:inline-flex;min-height:24px;align-items:center;gap:5px;padding:2px 7px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface-soft);color:var(--ui-text-secondary);font-size:11px;font-weight:500;line-height:1.2;white-space:nowrap}
.sales-order-v3-table .order-v3-logistics-status{max-width:100%;justify-content:center;overflow-wrap:anywhere;white-space:normal}
.order-v3-logistics-status::before{width:5px;height:5px;border-radius:50%;background:currentColor;content:"";opacity:.72}
.order-v3-logistics-success{color:color-mix(in srgb,var(--status-success) 76%,var(--ui-text-secondary))}.order-v3-logistics-warning,.order-v3-logistics-caution{color:color-mix(in srgb,var(--status-warning) 78%,var(--ui-text-secondary))}.order-v3-logistics-danger{color:color-mix(in srgb,var(--status-danger) 78%,var(--ui-text-secondary))}
.order-v3-table td.ds-table-actions.order-v3-action-cell{display:table-cell;min-width:196px;white-space:nowrap}
.sales-order-v3-table td.ds-table-actions.order-v3-action-cell{min-width:0;text-align:center}
.order-v3-action-group{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:32px;white-space:nowrap}
.sales-order-v3-table .order-v3-action-group{flex-wrap:wrap;justify-content:center;gap:4px}
.order-v3-action-group>.ds-btn{flex:0 0 auto;margin:0}

.order-item-image-preview-modal .modal-card{width:min(760px,calc(100vw - 32px))}
.order-item-image-viewer{display:grid;justify-items:center;gap:12px;margin:0;padding:8px}
.order-item-image-viewer img{display:block;max-width:100%;max-height:min(68vh,720px);border-radius:10px;background:var(--ui-surface-soft);object-fit:contain}
.order-item-image-viewer figcaption{color:var(--ui-text-secondary);font-size:13px}
.multi-item-summary{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;gap:12px;min-width:0}.multi-item-summary-copy{display:grid;align-content:center;gap:7px;min-width:0}.multi-item-summary-line{display:grid;gap:2px;min-width:0}.multi-item-summary-line b,.multi-item-summary-line small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-summary-line b{font-size:13px;font-weight:600}.multi-item-summary-line small{color:var(--ui-text-secondary);font-size:12px}.multi-item-summary-count{color:var(--ui-text-muted);font-size:11px}.multi-item-image-group{position:relative;display:grid;width:128px;height:128px;flex:0 0 128px;overflow:hidden;gap:2px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface-soft)}.multi-item-image-group.has-2{grid-template-columns:repeat(2,minmax(0,1fr))}.multi-item-image-group.has-3,.multi-item-image-group.has-4{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.multi-item-image-group.is-empty{display:grid;place-items:center;align-content:center;gap:4px;padding:8px;color:var(--ui-text-muted);font-size:12px;text-align:center}.multi-item-image-group.is-empty small{font-size:10px}.multi-item-image-tile{position:relative;display:grid;min-width:0;min-height:0;overflow:hidden;place-items:center;padding:0;border:0;background:var(--ui-surface-soft);cursor:zoom-in}.multi-item-image-tile:focus-visible{z-index:1;outline:2px solid var(--ui-brand);outline-offset:-2px}.multi-item-image-tile img{display:block;width:100%;height:100%;object-fit:cover}.multi-item-image-more{display:grid;min-width:0;min-height:0;place-items:center;background:color-mix(in srgb,var(--ui-brand) 9%,var(--ui-surface));color:var(--ui-brand);font-size:18px;font-weight:600}.multi-item-gallery-layer{position:fixed;z-index:1900;inset:0;display:grid;place-items:center;padding:16px}.multi-item-gallery-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.62)}.multi-item-gallery{position:relative;display:grid;width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:hidden;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface);box-shadow:0 24px 72px rgba(15,23,42,.28)}.multi-item-gallery header,.multi-item-gallery footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}.multi-item-gallery header{border-bottom:1px solid var(--ui-border)}.multi-item-gallery footer{justify-content:center;border-top:1px solid var(--ui-border)}.multi-item-gallery-close,.multi-item-gallery footer button{min-height:34px;padding:0 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);color:var(--ui-text-primary);cursor:pointer}.multi-item-gallery-close{width:34px;padding:0;font-size:22px}.multi-item-gallery figure{display:grid;min-height:280px;justify-items:center;gap:10px;margin:0;padding:18px;overflow:auto}.multi-item-gallery figure img{display:block;max-width:100%;max-height:min(65vh,680px);border-radius:10px;object-fit:contain}.multi-item-gallery figcaption{color:var(--ui-text-secondary);font-size:13px}

.order-list-v3 [aria-busy="true"] .ds-table-scroll{opacity:.72}
.order-list-v3 [aria-busy="true"] .order-v3-table tbody{pointer-events:none}
.order-list-v3 [aria-busy="true"] .order-status-tab{pointer-events:none}
.order-list-v3 [aria-busy="true"] .order-v3-feedback{min-height:24px;padding-top:6px}
@media(max-width:900px){.order-v3-toolbar{align-items:stretch}.order-v3-toolbar .ds-toolbar__right{align-items:stretch}.order-v3-select-label{justify-content:space-between}.order-v3-select-label .ds-control{flex:1}}
@media(max-width:720px){
  .order-list-v3{gap:12px}.order-list-v3 .ds-list-surface{min-width:0}.order-status-tabs{gap:6px;margin-top:6px;padding-inline:8px}
  #salesOrderTable{overflow:visible}.sales-order-v3-table{display:block;width:100%;min-width:0;max-width:none}.sales-order-v3-table colgroup,.sales-order-v3-table thead{display:none}.sales-order-v3-table tbody{display:grid;gap:12px;padding:10px;background:var(--ui-surface-soft)}
  .sales-order-v3-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);box-shadow:0 2px 8px rgba(24,50,43,.04)}
  .sales-order-v3-table>tbody>tr>td{display:grid;height:auto;min-width:0;align-content:start;gap:5px;padding:10px 12px;border:0;border-bottom:1px solid var(--ui-border);background:transparent;text-align:left!important}
  .sales-order-v3-table>tbody>tr>td::before{content:attr(data-label);color:var(--ui-text-muted);font-size:11px;font-weight:500}
  .sales-order-v3-table>tbody>tr>:where(.order-v3-number-cell,.order-v3-party-cell,.order-v3-products-cell,.order-v3-action-cell){grid-column:1/-1}
  .sales-order-v3-table>tbody>tr>:where(.order-v3-number-cell,.order-v3-party-cell){border-bottom:0}
  .sales-order-v3-table>tbody>tr>.order-v3-products-cell{padding-block:12px;background:var(--ui-surface-soft)}
  .sales-order-v3-table .order-v3-products{grid-template-columns:1fr;gap:10px}.sales-order-v3-table .order-item-summary-more{padding-left:104px}
  .multi-item-summary{grid-template-columns:96px minmax(0,1fr);gap:10px}.multi-item-image-group{width:96px;height:96px;flex-basis:96px}.multi-item-image-more{font-size:15px}.multi-item-gallery figure{min-height:220px;padding:12px}
  .sales-order-v3-table .order-item-preview-sales{grid-template-columns:96px minmax(0,1fr);gap:8px}.sales-order-v3-table .order-item-preview-sales .order-item-thumbnail{width:96px;height:96px}
  .supply-order-v3-table{min-width:1360px}.supply-order-v3-table.no-purchase-cost{min-width:1235px}.supply-order-v3-table .supply-col-products{width:500px}.supply-order-v3-table>tbody>tr:not(.ds-group-row)>td{height:112px}.supply-order-v3-table .order-item-preview-supply{grid-template-columns:96px minmax(0,1fr);gap:8px}.supply-order-v3-table .order-item-preview-supply .order-item-thumbnail{width:96px;height:96px}
  .sales-order-v3-table .order-v3-logistics,.sales-order-v3-table .order-v3-date{justify-items:start;justify-content:flex-start}
  .sales-order-v3-table .order-v3-action-group{justify-content:flex-end}.sales-order-v3-table td.ds-table-actions.order-v3-action-cell{display:grid}
}
