#v3OrderDetailsModal, #v3OrderEditModal {border-radius:8px; background:#fff; color:#20252b; font-size:14px; letter-spacing:0;}
#v3OrderDetailsModal[open] {display:flex; flex-direction:column; height:min(94dvh,1000px);}
#v3OrderDetailsModal > div:first-child {flex-shrink:0; display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:start; gap:12px; padding:16px; border-bottom:1px solid #e3e7eb;}
#v3OrderDetailsModal > div:first-child > div {min-width:0;}
#v3OrderDetailsCloseBtn {align-self:start; margin:0;}
#v3OrderDetailsModal > div:nth-child(2) {padding:16px; overflow:auto;}
#v3OrderDetailsModal h3, #v3OrderEditModal h3 {margin:0;}
#v3OrderDetailsMeta {margin-top:6px; color:#6c747e; font-size:12px; overflow-wrap:anywhere;}
#v3OrderDetailsModal > div:nth-child(2) {min-height:0; flex:1; max-height:none;}
#v3OrderDetailsModal h3, #v3OrderEditModal h3 {white-space:normal; overflow-wrap:anywhere; font-size:18px; line-height:1.3;}
.order-icon-button {display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; border:1px solid #dce1e5; border-radius:6px; background:#fff;}
.order-icon-button svg {width:18px; height:18px;}
.order-icon-button::before {content:'\00d7'; font-size:24px; font-weight:400; line-height:1;}
.order-icon-button:has(svg)::before {display:none;}
.order-overview {display:grid; grid-template-columns:1fr 1.3fr .8fr; gap:0;}
.order-overview-status {grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding:0 0 16px; border-bottom:1px solid #e3e7eb; font-size:12px; color:#606974;}
.order-overview-column {min-width:0; padding:18px 16px 18px 0; overflow-wrap:anywhere;}
.order-overview-column .text-\[11px\] {font-size:11px; color:#6c747e; font-weight:600; margin-bottom:6px;}
.order-overview-column .text-xs {font-size:12px; line-height:1.6; color:#6c747e;}
.order-overview-column .text-base {font-size:16px; font-weight:600; margin:4px 0;}
.order-overview-column .text-xl {font-size:20px; font-weight:700; margin:4px 0;}
.order-overview-comments {grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; border-top:1px solid #e3e7eb; padding:12px 0;}
.order-overview-comments > div {border:0; border-radius:0; background:none; padding:0;}
.order-sync-notice {grid-column:1/-1; padding:10px 12px; background:#f3f5f7; color:#57616b; font-size:12px; border-left:3px solid #a5afb8;}
.order-sync-pending {background:#fff8e7; color:#745212; border-left-color:#c18c27;}
#v3OrderDetailsModal > div:nth-child(2) > section {border:0; border-radius:0; border-top:1px solid #e3e7eb;}
#v3OrderDetailsStockInfo {border-radius:4px; font-size:12px; padding:10px 12px;}
.order-items-table {table-layout:fixed; min-width:0;}
.order-items-table th:first-child {width:36%;}
.order-items-table th, .order-items-table td {overflow-wrap:anywhere;}
.order-items-table th {font-size:10px; background:#f3f5f7;}
.order-item-name {font-size:16px; line-height:1.45; font-weight:700; color:#20252b;}
.order-item-reference {font-size:13px; line-height:1.5; color:#57616b; margin-top:4px;}
.order-item-warehouses {display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; font-size:14px; line-height:1.5; color:#414b55;}
.order-item-warehouses span {min-width:0; overflow-wrap:anywhere;}
.order-item-warehouses strong {color:#20252b; font-weight:600;}
.order-items-table td:not(:first-child) {font-size:14px;}
.order-action-band {width:100%; border-top:1px solid #e3e7eb; padding:16px 0 0;}
.order-action-band h4, .order-edit-section h4 {font-size:14px; font-weight:700; margin:0 0 12px;}
.order-action-toolbar {display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px;}
.order-action-toolbar button {min-height:38px; height:auto; padding:8px 12px; border:1px solid #dce1e5; border-radius:6px; font-size:13px; font-weight:600; overflow-wrap:anywhere; max-width:100%;}
.order-status-fields {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:12px; margin:12px 0;}
.order-history summary, .order-action-band summary {cursor:pointer; font-weight:600; padding:10px 0; font-size:13px;}
.order-history {border-top:1px solid #e3e7eb;}
#v3OrderDetailsHistory > div {background:none; border:0; border-radius:0; border-bottom:1px solid #eef0f2; padding:10px 0;}
.order-edit-section {border-bottom:1px solid #e3e7eb; padding:4px 0 18px;}
#v3OrderEditItemsPreview > div {border:0; border-radius:0; padding:0;}
#v3OrderEditModal .v3-order-edit-header {display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border-bottom:1px solid #e3e7eb;}
#v3OrderEditModal .v3-order-edit-body {padding:16px;}
#v3OrderEditModal .v3-order-edit-footer {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:16px; border-top:1px solid #e3e7eb;}
#v3OrderEditModal button:not(.order-icon-button) {min-height:36px; border:1px solid #dce1e5; border-radius:6px; padding:8px 12px; font-size:13px; font-weight:600;}
#v3OrderEditSaveBtn {background:#2563eb; color:#fff; flex-shrink:0;}
.order-edit-section > .grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
.order-edit-section .md\:col-span-2 {grid-column:1/-1;}
#v3OrderEditModal [data-v3-order-item-remove] {width:36px; height:36px; padding:0; display:grid; place-items:center; align-self:end; overflow:hidden;}
#v3OrderEditModal [data-v3-order-item-remove]::before {content:'\2212'; font-size:20px; color:#be3441;}
#v3OrderEditModal [data-v3-order-item-remove]:has(svg)::before {display:none;}
#v3OrderEditModal [data-v3-order-item-remove] svg {width:18px; height:18px;}
#v3OrderEditModal [data-v3-order-item-replace] {width:36px; height:36px; padding:0; display:grid; place-items:center; overflow:hidden;}
#v3OrderEditModal [data-v3-order-item-replace] svg {width:18px; height:18px;}
#v3OrderEditItemsPreview [data-v3-order-edit-item] {border:0; border-radius:0; border-bottom:1px solid #e3e7eb; background:none; padding:10px 0;}
#v3OrderEditModal label {font-size:12px; color:#57616b; font-weight:600; min-width:0;}
#v3OrderEditModal label > input:not([type=checkbox]), #v3OrderEditModal label > select {display:block; width:100%; min-width:0; height:40px; margin-top:4px; border:1px solid #dce1e5; border-radius:6px; padding:8px; background:#fff; color:#20252b; font-size:14px; font-weight:400;}
#v3OrderEditModal textarea {background:#fff; border:1px solid #dce1e5; border-radius:6px;}
.order-address-fields {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
.order-address-fields[hidden], #v3OrderEditAddressFallback[hidden], #v3OrderEditCityResults[hidden], #v3OrderQuickResults[hidden], #v3OrderEditIntervalField[hidden] {display:none;}
.order-quick-search {padding:12px 16px 0;}
#v3OrderQuickSearch {width:100%; min-height:44px; padding:10px 12px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; font-size:14px;}
#v3OrderQuickResults button > span:last-child {flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:4px; white-space:nowrap; font-size:12px;}
.order-search-results {max-height:240px; overflow:auto; border:1px solid #dbe2ea; border-radius:6px; margin-top:6px; background:#fff;}
.order-search-results button {display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:48px; padding:10px 12px; text-align:left; background:#fff; border:0; border-bottom:1px solid #e8ecf2; font-size:13px; color:#172033;}
.order-search-results button:hover, .order-search-results button:focus-visible {background:#eef3ff; outline:2px solid #2563eb; outline-offset:-2px;}
.order-search-results button > span {min-width:0; overflow-wrap:anywhere;}
.order-search-results strong, .order-search-results small {display:block;}
.order-search-results small {font-size:12px; color:#64748b; margin-top:3px;}
.order-search-results svg {width:16px; height:16px;}
.order-time-fields {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
.order-parts-toggle {display:flex; gap:8px; align-items:center;}
.order-edit-state {flex:1; min-width:160px; font-size:12px; color:#745212; text-align:left; overflow-wrap:anywhere;}
.order-edit-conflict {width:100%; max-height:220px; overflow:auto; border-left:3px solid #bd6a16; padding:8px 12px; margin-bottom:16px; background:#fff8ed; font-size:13px; overflow-wrap:anywhere;}
.order-edit-conflict[hidden], #v3OrderEditReloadBtn[hidden] {display:none;}
.order-edit-conflict dl {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:6px 12px; margin:12px 0;}
.order-edit-conflict dt {color:#57616b;}
.order-edit-conflict dd {margin:0; white-space:pre-wrap;}
#v3OrderEditModal .v3-order-edit-body {max-height:none; min-height:0; flex:1; background:var(--ws-subtle,#f3f5fc);}
.order-editor-layout {display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:16px; align-items:start;}
.order-editor-main,.order-editor-aside {min-width:0;}
#v3OrderEditModal .ws-form-section {padding:0; border:1px solid var(--ws-border,#dce2ea); background:#fff;}
#v3OrderEditModal .ws-section-heading {margin:0; padding:12px;}
#v3OrderEditModal .ws-form-section > .grid,#v3OrderEditModal .ws-form-grid {padding:12px;}
#v3OrderEditItemsPreview {padding:12px;}
#v3OrderEditModal .v3-order-edit-header,#v3OrderEditModal .v3-order-edit-footer {flex-shrink:0;}
#v3OrderEditModal .order-icon-button {width:44px; height:44px;}
.order-editor-save {display:flex; align-items:center; gap:20px; min-width:0;}
#v3OrderEditModal .order-editor-save button {min-height:44px; width:auto; flex:0 0 auto;}
.order-editor-save .ws-summary {flex:1;}
#v3OrderEditModal .order-edit-state {max-width:420px;}
#v3OrderEditModal .order-items-toolbar {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding-bottom:12px; border-bottom:1px solid var(--ws-border,#dce2ea);}
#v3OrderEditModal [data-v3-order-edit-item] {display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:10px; padding:16px 0;}
#v3OrderEditModal .order-line-name {grid-column:1;}
#v3OrderEditModal .order-line-remove {grid-column:2; grid-row:1; display:flex; align-items:end;}
#v3OrderEditModal [data-v3-order-item-remove] {width:44px; height:44px; min-height:44px;}
#v3OrderEditModal [data-v3-order-item-replace] {width:44px; height:44px; min-height:44px;}
#v3OrderEditModal .order-line-fields {grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) 84px 100px minmax(80px,auto); gap:10px; align-items:end;}
#v3OrderEditModal .order-line-fields label {min-width:0;}
.order-line-amount {display:flex; flex-direction:column; gap:4px; min-width:0; text-align:right;}
.order-line-amount span {font-size:12px; color:var(--ws-muted,#64748b);}
.order-line-amount strong {display:flex; align-items:center; justify-content:end; min-height:40px; font-size:14px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere;}
#v3OrderEditModal .order-items-toolbar button,#v3OrderEditAddItemBtn {display:inline-flex; align-items:center; gap:6px;}
#v3OrderEditModal textarea {display:block; width:100%; margin-top:4px; min-height:90px; padding:8px; font-size:14px; color:var(--ws-text,#172033); font-weight:400; resize:vertical;}
#v3OrderEditModal .order-editor-aside .grid {grid-template-columns:minmax(0,1fr);}
#v3OrderEditModal .order-edit-section label > span {text-transform:none; font-size:12px; letter-spacing:0;}
@media (max-width:1000px) {
  .order-editor-layout {grid-template-columns:minmax(0,1fr);}
  .order-editor-main {display:contents;}
  .order-editor-comments {order:2;}
  #v3OrderEditModal .order-editor-aside .grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px) {
  #v3OrderEditModal .v3-order-edit-footer {gap:8px; padding:12px;}
  #v3OrderEditModal .order-edit-state {flex-basis:100%; font-size:11px;}
  .order-editor-save {width:100%; justify-content:space-between; gap:12px;}
  #v3OrderEditModal .order-editor-aside .grid {grid-template-columns:minmax(0,1fr);}
  #v3OrderEditModal .order-line-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
  #v3OrderEditModal [data-v3-order-edit-item] {grid-template-columns:minmax(0,1fr) 44px;}
  #v3OrderEditModal .order-line-fields label:first-child {grid-column:1/-1;}
  #v3OrderEditModal .order-line-amount {grid-column:1/-1; flex-direction:row; justify-content:space-between; align-items:center; border-top:1px dashed var(--ws-border,#dce2ea); padding-top:4px;}
  #v3OrderEditModal label > input:not([type=checkbox]),#v3OrderEditModal label > select,#v3OrderEditModal textarea {font-size:16px; min-height:44px;}
  #v3OrderEditModal button:not(.order-icon-button) {min-height:44px;}
}
#v3OrderEditModal input:disabled, #v3OrderEditModal select:disabled {background:#f3f5f7; color:#6c747e;}
#v3OrderDetailsModal {color:var(--ws-text,#172033); background:var(--ws-surface,#fff);}
#v3OrderDetailsModal > div:first-child {background:var(--ws-subtle,#f3f5fc);}
#v3OrderDetailsCloseBtn {width:44px; height:44px; border-radius:var(--ws-radius,8px); cursor:pointer;}
#v3OrderDetailsModal h3 {font-size:22px;}
.order-detail-status:empty {display:none;}
.order-detail-status .order-overview-status {padding:10px 0 0; border:0; gap:6px 12px; line-height:1.5;}
#v3OrderDetailsModal .rounded-full {border-radius:4px;}
.order-detail-layout {display:grid; grid-template-columns:minmax(0,1fr) 308px; gap:24px; margin-top:16px; align-items:start;}
.order-detail-main,.order-detail-aside {min-width:0;}
.order-detail-aside {border-left:1px solid var(--ws-border,#dce2ea); padding-left:20px;}
.order-detail-section {border-bottom:1px solid var(--ws-border,#dce2ea); padding:0 0 16px; margin-bottom:16px;}
.order-detail-heading {display:flex; align-items:center; gap:8px; font-size:16px; font-weight:700; margin:0 0 12px; padding:0 0 10px; border-bottom:1px solid var(--ws-border,#dce2ea);}
.order-detail-heading svg {width:18px; height:18px; color:var(--ws-accent,#1d4ed8); flex-shrink:0;}
#v3OrderDetailsSummary.order-overview {display:block;}
#v3OrderDetailsSummary .order-overview-column {padding:0 0 16px; margin-bottom:16px; border-bottom:1px solid var(--ws-border,#dce2ea);}
#v3OrderDetailsSummary .text-xs {font-size:14px; line-height:1.5;}
#v3OrderDetailsSummary .text-\[11px\] {font-size:12px;}
#v3OrderDetailsSummary .text-xl {font-size:24px;}
#v3OrderDetailsComments {font-size:14px; color:var(--ws-muted,#596579); overflow-wrap:anywhere;}
#v3OrderDetailsComments .order-overview-comments {display:grid; grid-template-columns:1fr; border:0; padding:0; gap:16px;}
#v3OrderDetailsComments .order-overview-comments > div {padding-left:12px; border-left:3px solid var(--ws-border,#dce2ea);}
#v3OrderDetailsComments .whitespace-pre-wrap {line-height:1.6;}
#v3OrderDetailsStockInfo {margin-top:12px; line-height:1.5;}
#v3OrderDetailsModal .order-items-table th {font-size:11px; text-transform:none; font-weight:600; padding:10px 6px;}
#v3OrderDetailsModal .order-items-table th:first-child {width:38%;}
#v3OrderDetailsModal .order-items-table td {vertical-align:top; padding:12px 6px;}
#v3OrderDetailsActions .order-action-band {border:0; padding:0;}
#v3OrderDetailsActions .order-action-toolbar {display:grid; grid-template-columns:minmax(0,1fr); gap:8px;}
#v3OrderDetailsActions button {display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; cursor:pointer; line-height:1.4;}
#v3OrderDetailsActions button svg {width:16px; height:16px; flex-shrink:0;}
#v3OrderDetailsActions .order-status-fields {grid-template-columns:minmax(0,1fr); gap:12px;}
#v3OrderDetailsActions select {min-height:44px; max-width:100%;}
#v3OrderDetailsActions summary,.order-history summary {min-height:44px; line-height:24px;}
#v3OrderDetailsModal button:focus-visible,#v3OrderDetailsModal summary:focus-visible {outline:2px solid var(--ws-accent,#1d4ed8); outline-offset:2px;}
@media(max-width:1000px) {
  .order-detail-layout {grid-template-columns:minmax(0,1fr); gap:16px;}
  .order-detail-aside {border-left:0; border-top:1px solid var(--ws-border,#dce2ea); padding:16px 0 0;}
  #v3OrderDetailsSummary.order-overview {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px;}
  #v3OrderDetailsSummary .order-overview-column:last-child {grid-column:1/-1;}
  #v3OrderDetailsActions .order-action-toolbar {grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* Detail workspace: shared colors, compact section bands and contextual actions. */
#v3OrderDetailsModal {background:var(--ws-subtle,#f3f5fc);}
#v3OrderDetailsModal > div:nth-child(2) {padding:16px;}
#v3OrderDetailsModal > div:first-child {padding:14px 16px; background:#fff;}
.order-detail-title-row {display:flex; align-items:center; justify-content:space-between; gap:12px;}
#v3OrderHeaderEdit button,.order-context-actions button {display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; height:auto; padding:8px 12px; border:1px solid var(--ws-border,#dce2ea); border-radius:4px; font-size:13px; font-weight:600; cursor:pointer; max-width:100%; line-height:1.4;}
#v3OrderHeaderEdit button {white-space:nowrap; background:#fff; color:var(--ws-accent,#1d4ed8);}
#v3OrderHeaderEdit svg,.order-context-actions svg {width:16px; height:16px; flex-shrink:0;}
.order-detail-layout {gap:20px; grid-template-columns:minmax(0,1fr) 310px;}
.order-detail-aside {border:0; padding:0;}
.order-detail-section,#v3OrderDetailsSummary .order-overview-column,.order-action-band,.order-history {background:#fff; border:1px solid var(--ws-border,#dce2ea); border-radius:0; padding:12px; margin:0 0 14px;}
.order-detail-heading {background:var(--ws-subtle,#f3f5fc); margin:-12px -12px 12px; padding:10px 12px; font-size:15px; gap:8px;}
.order-section-count {font-size:11px; font-weight:500; color:var(--ws-muted,#596579); margin-left:auto; white-space:nowrap;}
.order-fact-label {font-size:11px; color:var(--ws-muted,#596579); margin:10px 0 4px;}
.order-fact-value {font-size:13px; line-height:1.5; overflow-wrap:anywhere;}
.order-facts {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:10px; margin:0; font-size:12px; line-height:1.5;}
.order-facts dt {color:var(--ws-muted,#596579);}
.order-facts dd {margin:0; text-align:right; overflow-wrap:anywhere; font-weight:600;}
.order-receipt-posted {color:var(--ws-accent,#1d4ed8);}
.order-receipt-pending {color:var(--ws-warning,#9a4b08);}
.order-context-actions {display:grid; gap:8px; margin-top:12px;}
.order-context-actions:empty {display:none;}
.order-context-actions button {width:100%;}
.order-grand-total {display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid var(--ws-border,#dce2ea); font-size:12px;}
.order-grand-total strong {font-size:22px; line-height:1.3; text-align:right; color:var(--ws-accent,#1d4ed8);}
#v3OrderDetailsSummary .order-overview-column {padding:12px; margin-bottom:14px;}
#v3OrderDetailsSummary .text-xs {font-size:13px; color:var(--ws-text,#172033);}
#v3OrderDetailsComments .order-overview-comments {grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px;}
#v3OrderDetailsComments .order-overview-comments > div {background:var(--ws-subtle,#f3f5fc); padding:12px; border-left:3px solid var(--ws-accent,#1d4ed8);}
#v3OrderDetailsComments .order-overview-comments > div:nth-child(2) {border-left-color:var(--ws-warning,#9a4b08);}
#v3OrderDetailsComments .whitespace-pre-wrap {font-size:13px;}
#v3OrderDetailsActions .order-action-band {border:1px solid var(--ws-border,#dce2ea); padding:12px;}
#v3OrderDetailsActions h4 {font-size:15px; margin:0 0 12px;}
.order-history summary {display:flex; gap:8px; align-items:center; padding:0; font-size:14px;}
.order-history summary::after {content:'+'; margin-left:4px; color:var(--ws-muted,#596579);}
.order-history[open] summary::after {content:'-';}
.order-history summary svg {width:18px; height:18px; color:var(--ws-accent,#1d4ed8);}
#v3OrderDetailsModal .order-items-table th {font-size:10px; padding:8px 4px;}
#v3OrderDetailsModal .order-items-table td {padding:12px 4px; font-size:12px;}
#v3OrderDetailsModal .order-items-table th:first-child {width:38%;}
#v3OrderDetailsModal .order-item-name {font-size:14px;}
#v3OrderDetailsModal .order-item-reference {font-size:11px;}
#v3OrderDetailsModal .order-item-warehouses {font-size:12px; gap:4px 12px;}
.order-item-total {color:var(--ws-accent,#1d4ed8);}
.order-item-available .order-item-status {display:block; width:fit-content; margin-top:6px; padding:2px 5px; border-radius:4px; font-size:11px;}
.order-item-available .order-item-shortage {display:block; margin-top:6px; color:var(--ws-warning,#9a4b08); font-weight:600;}
@media(max-width:1000px) {
  .order-detail-layout {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:700px) {
  #v3OrderDetailsSummary.order-overview,#v3OrderDetailsActions .order-action-toolbar {grid-template-columns:minmax(0,1fr);}
  .order-edit-section > .grid {grid-template-columns:minmax(0,1fr);}
  .order-overview {grid-template-columns:minmax(0,1fr);}
  .order-overview-column {padding:14px 0; border-bottom:1px solid #eef0f2;}
  .order-overview-comments {grid-template-columns:minmax(0,1fr);}
  .order-items-table, .order-items-table tbody {display:block; width:100%;}
  .order-items-table thead {display:none;}
  .order-items-table tr {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:'product product' 'quantity price' 'available total'; gap:0 16px; border-bottom:1px solid #dce1e5; padding:12px 0;}
  .order-items-table td {border:0; display:flex; flex-direction:column; align-items:flex-start; gap:6px; text-align:left; min-width:0; padding:10px 6px; font-size:14px;}
  .order-items-table td:first-child {display:block; grid-column:1/-1;}
  .order-items-table td::before {content:attr(data-label); color:#57616b; font-size:13px; line-height:1.4;}
  .order-items-table td:first-child::before {display:none;}
  .order-item-product {grid-area:product;}
  .order-item-quantity {grid-area:quantity; border-top:1px solid #e3e7eb !important; margin-top:6px;}
  .order-item-price {grid-area:price; border-top:1px solid #e3e7eb !important; margin-top:6px;}
  .order-item-total {grid-area:total;}
  .order-item-quantity strong, .order-item-price strong {font-size:18px; line-height:1.4; color:#20252b;}
  .order-item-available {grid-area:available;}
  .order-item-shortage {grid-area:shortage;}
  .order-item-status {grid-area:status; flex-direction:row !important; align-items:center !important; gap:12px !important;}
  .order-status-fields {grid-template-columns:minmax(0,1fr);}
  .order-address-fields {grid-template-columns:minmax(0,1fr);}
  #v3OrderDetailsModal > div:nth-child(2), #v3OrderEditModal .v3-order-edit-body {padding:12px;}
  #v3OrderDetailsComments .order-overview-comments {grid-template-columns:minmax(0,1fr);}
  .order-detail-title-row {align-items:center; flex-direction:row; gap:8px;}
  #v3OrderDetailsModal h3 {font-size:20px; min-width:0;}
  #v3OrderHeaderEdit {flex-shrink:0;}
  #v3OrderHeaderEdit button {width:44px; min-height:44px; padding:0; gap:0;}
  #v3OrderHeaderEdit .order-edit-label {display:none !important;}
  #v3OrderHeaderEdit button svg {width:18px; height:18px;}
  .order-detail-heading {flex-wrap:wrap;}
  .order-section-count {margin-left:0;}
  .order-history .order-section-count {margin-left:auto;}
  #v3OrderDetailsModal .order-item-name {font-size:16px;}
  #v3OrderDetailsModal .order-item-total strong {font-size:18px;}
  #v3OrderDetailsSummary.order-overview {gap:0;}
}
