/* Scheme 01 / 018 independent sales structure candidate. Permission layer wins. */
@layer plan01 {
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] > .order-detail-dialog {
    width: 100% !important; max-width: 100% !important; height: 100% !important;
    max-height: 100% !important; display: flex !important; flex-direction: column !important;
    gap: 0 !important; padding: 22px 28px 17px !important; overflow: hidden !important;
    background: #fff !important; border-radius: 0 !important; box-shadow: none !important;
    font: 14px/1.5 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif !important;
    color: #172438 !important; font-variant-numeric: tabular-nums;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .dialog-header {
    display: flex !important; flex-wrap: wrap !important; align-items: center !important;
    gap: 12px 16px !important; padding: 0 0 16px !important; border: 0 !important; flex-shrink: 0;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .dialog-header > :first-child { min-width: 0; flex: 1 1 320px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .dialog-header-spacer { display: none !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailTitle {
    font-size: 29px !important; line-height: 1.28 !important; font-weight: 740 !important;
    letter-spacing: -.5px !important; color: #172438 !important; overflow-wrap: anywhere; margin: 0 !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailSubtitle {
    display: block !important; font-size: 13px !important; line-height: 1.5 !important;
    color: #66768c !important; margin: 5px 0 0 !important; overflow-wrap: anywhere;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-actions {
    display: flex !important; gap: 10px !important; margin: 0 !important; padding: 0 !important;
    border: 0 !important; background: transparent !important; flex: 0 1 auto;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(.order-detail-actions,.dialog-actions-left) :is(button,summary) {
    min-height: 39px !important; border-radius: 5px !important; font-size: 13px !important;
    box-shadow: none !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .dialog-actions-left .icon-button { width: 34px !important; min-width: 34px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .dialog-actions-left { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 6px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-frame {
    display: flex !important; flex-direction: column !important; flex: 1 1 auto !important;
    min-height: 0 !important; height: auto !important; border: 0 !important; border-radius: 0 !important;
    background: #fff !important; overflow: hidden !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailTabs {
    flex: 0 0 auto !important; flex-wrap: nowrap !important; gap: 8px !important;
    padding: 0 0 10px !important; border: 0 !important; border-bottom: 1px solid #e0e9f0 !important;
    overflow-x: auto !important; overscroll-behavior-x: contain; scrollbar-width: thin;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailTabs button {
    flex: 0 0 auto !important; min-height: 34px !important; padding: 7px 14px !important;
    color: #172438 !important; background: #fff !important; border: 0 !important;
    border-radius: 4px !important; font: 13px/1.5 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailTabs button.active { color: #008575 !important; background: #d0f6eb !important; font-weight: 650 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailContent {
    min-width: 0 !important; padding: 16px 0 !important; flex: 1 1 auto !important;
    overflow: auto !important; background: #fff !important; scrollbar-gutter: stable;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero {
    display: block !important; margin: 0 0 16px !important; padding: 0 !important;
    background: #fff !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-main {
    display: flex !important; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;
    border: 0 !important; border-bottom: 1px solid #e0e9f0 !important;
    border-radius: 0 !important; background: #f4f8fa !important; padding: 8px 16px !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-main :is(span,strong,p) { margin: 0 !important; font-size: 12px !important; line-height: 1.5 !important; color: #66768c !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 0 !important; padding: 14px 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid article {
    border: 0 !important; border-right: 1px solid #e0e9f0 !important; border-radius: 0 !important;
    background: #fff !important; padding: 0 16px !important; min-width: 0 !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid article:last-child { border-right: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid span { display: block !important; color: #66768c !important; font-size: 12px !important; font-weight: 400 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid strong { display: block !important; font-size: 19px !important; font-weight: 650 !important; line-height: 1.4 !important; margin-top: 8px !important; color: #172438 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid strong.danger-text { color: #c83b36 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid strong.warn-text { color: #a9600b !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid p { color: #66768c !important; font-size: 12px !important; line-height: 1.5 !important; margin: 4px 0 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-body { display: grid; gap: 16px; grid-template-columns: minmax(0,1fr); align-items: start; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-body[data-overview="true"] { grid-template-columns: minmax(0,1.9fr) minmax(280px,1fr); }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailTabPanel { min-width: 0; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(.plan01-sales-lines,.plan01-sales-info > .detail-panel,.order-closure-chain) {
    background: #fff !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important;
    box-shadow: none !important; margin: 0 0 16px !important; padding: 16px !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-info { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-info :is(.field-grid,.field-grid-two,.detail-field-grid) { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 0 !important; border: 1px solid #e0e9f0; border-radius: 4px; overflow: hidden; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-info .field-grid > div {
    display: grid !important; grid-template-columns: 90px minmax(0,1fr) !important; gap: 0 !important;
    border: 0 !important; border-bottom: 1px solid #e0e9f0 !important; border-radius: 0 !important; padding: 0 !important; min-height: 42px;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-info .field-grid > div > span { background: #f0f6f9 !important; padding: 10px !important; color: #66768c !important; font-size: 12px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-info .field-grid > div > strong { background: #fff !important; padding: 10px !important; color: #172438 !important; font-size: 13px !important; font-weight: 400 !important; margin: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-info .detail-note-box { background: #f4f8fa !important; border: 1px solid #e0e9f0 !important; border-radius: 4px !important; padding: 12px !important; color: #172438 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(.plan01-sales-info,.plan01-sales-lines) h3 { font-size: 18px !important; line-height: 1.5 !important; color: #172438 !important; margin: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(.plan01-sales-info,.plan01-sales-lines) .detail-panel-header { margin: 0 0 14px !important; gap: 8px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(.plan01-sales-info,.plan01-sales-lines) .detail-panel-header > span { color: #66768c !important; font-size: 12px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-lines .table-wrap { overflow-x: auto !important; overscroll-behavior-x: contain; border: 1px solid #e0e9f0 !important; border-radius: 4px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-full-details table { width: 100% !important; min-width: 1880px !important; table-layout: auto !important; border-collapse: collapse !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-lines th { height: 43px !important; background: #f0f6f9 !important; color: #485b73 !important; font-size: 12px !important; font-weight: 550 !important; white-space: nowrap !important; padding: 10px !important; border: 1px solid #e0e9f0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-lines td { height: 54px !important; padding: 10px !important; border: 1px solid #edf2f6 !important; color: #172438 !important; background: #fff !important; font-size: 13px !important; white-space: normal !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-lines tbody tr:first-child td { background: #f6fcfa !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-head { gap: 8px !important; margin-bottom: 16px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-head span { color: #172438 !important; font-size: 18px !important; font-weight: 650 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-head :is(strong,em) { font-size: 12px !important; color: #66768c !important; font-weight: 400 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-next { border: 1px solid #e0e9f0 !important; background: #f4f8fa !important; border-radius: 4px !important; padding: 12px !important; gap: 10px !important; margin: 0 0 16px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-next :is(span,p) { color: #66768c !important; font-size: 12px !important; line-height: 1.5 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-next strong { color: #172438 !important; font-size: 14px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-next button { min-height: 39px !important; border-radius: 5px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-steps { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-step {
    display: block !important; width: 100% !important; border: 0 !important; border-bottom: 1px solid #e0e9f0 !important;
    border-radius: 0 !important; background: #fff !important; padding: 12px 8px !important; min-height: 76px !important; text-align: left !important; box-shadow: none !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-step span { color: #172438 !important; font-size: 13px !important; font-weight: 650 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-step strong { display: block !important; color: #172438 !important; font-size: 13px !important; line-height: 1.5 !important; margin: 4px 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-step p { color: #66768c !important; font-size: 12px !important; line-height: 1.5 !important; white-space: normal !important; margin: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-step.is-done strong { color: #087f62 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-step.is-active { background: #f6fcfa !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes { border: 1px solid #e0e9f0; border-radius: 5px; padding: 12px 16px; margin-top: 16px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes summary { color: #172438; font-size: 13px; cursor: pointer; min-height: 24px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes .detail-stage-header { padding: 0 !important; margin: 12px 0 0 !important; border: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes .detail-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes article { background: #f4f8fa !important; border: 1px solid #e0e9f0 !important; border-radius: 4px !important; padding: 12px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes :is(span,p) { color: #66768c !important; font-size: 12px !important; line-height: 1.5 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes strong { color: #172438 !important; font-size: 16px !important; }

  /* 04-05: same form/rows/fields, now labelled three-column groups. */
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-head { display: none !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-table { overflow: visible !important; border: 0 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] #orderDetailRows { display: grid; gap: 16px; min-width: 0; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row {
    display: block !important; min-width: 0 !important; width: 100% !important; padding: 0 !important;
    border: 1px solid #e0e9f0 !important; border-radius: 5px !important; background: #fff !important;
  }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row > :is(.plan01-line-heading,.plan01-line-info,.detail-parameters-cell,.plan01-line-fulfillment) { padding: 20px !important; border: 0 !important; min-height: 0 !important; background: #fff !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row > .plan01-line-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 0 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row > .plan01-line-info { display: block !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .detail-index { color: #66768c !important; font-size: 13px !important; padding: 0 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row :is(.plan01-line-info,.plan01-line-fulfillment) h4,
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .detail-parameters-heading { font-size: 18px !important; line-height: 1.5 !important; font-weight: 650 !important; color: #172438 !important; margin: 0 0 16px !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row > .detail-parameters-cell { border-top: 1px solid #e0e9f0 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] :is(.plan01-line-fields,.detail-parameter-grid) { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 15px 24px !important; min-width: 0 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .plan01-line-fields > :is(label,.detail-image-cell) { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 7px; min-width: 0; padding: 0 !important; border: 0 !important; margin: 0 !important; background: transparent !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .plan01-line-fields > [data-field="detailNote"] { grid-column: 1 / -1 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] :is(.vi-entry-field,.detail-image-cell,.order-parameter-field) > span { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip-path: none !important; white-space: normal !important; font-size: 13px !important; font-weight: 550 !important; line-height: 1.5 !important; color: #172438 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row :is(input:not([type="hidden"]):not([type="file"]),select) {
    width: 100% !important; min-width: 0 !important; min-height: 39px !important; border: 1px solid #cad8e5 !important;
    border-radius: 4px !important; padding: 9px 12px !important; background: #fff !important; color: #40536a !important; font-size: 13px !important;
  }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row input[readonly] { background: #f6f9fb !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row button { min-height: 39px !important; border-radius: 5px !important; font-size: 13px !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .detail-image-cell :is(button,small) { align-self: flex-start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .detail-image-cell small:empty { display: none; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .detail-parameters-empty { color: #66768c !important; font-size: 13px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :focus-visible,
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row :focus-visible { outline: 2px solid #008575 !important; outline-offset: 3px !important; }

  /* The original TabPanel owns both regions and still clears them on tabOnly. */
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-body[data-overview="true"] > #orderDetailTabPanel { display: contents; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-main { grid-column: 1; grid-row: 1; min-width: 0; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-body[data-overview="true"] > .order-closure-chain { grid-column: 2; grid-row: 1; margin-bottom: 0 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related { grid-column: 1 / -1; grid-row: 2; border: 1px solid #e0e9f0; border-radius: 5px; padding: 16px; min-width: 0; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related h3 { font-size: 18px; color: #172438; margin: 0 0 14px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related .detail-stage-header { padding: 0 !important; border: 0 !important; margin: 0 !important; background: #fff !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related .detail-summary-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 12px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related article { background: #f4f8fa !important; border: 1px solid #e0e9f0 !important; border-radius: 4px !important; padding: 12px !important; min-width: 0; overflow-wrap: anywhere; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related :is(span,p) { color: #66768c !important; font-size: 12px !important; line-height: 1.5 !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related strong { color: #172438 !important; font-size: 16px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-synopsis { min-width: 0; max-width: 100%; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-hint { margin: 0 0 8px; color: #66768c; font-size: 12px; line-height: 1.5; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-scroll {
    width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
    overflow-x: auto; overflow-y: auto; overscroll-behavior-x: contain;
    scrollbar-color: #9aabb9 #f4f8fa; scrollbar-width: thin;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-scroll:focus-visible { outline-offset: -2px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table { min-width: 720px !important; width: 100% !important; table-layout: auto !important; border-collapse: collapse !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table :is(th,td) { overflow-wrap: anywhere; white-space: normal !important; padding: 10px 8px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table :is(th,td):first-child:not([colspan]) { width: auto !important; min-width: 160px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table :is(th,td):nth-child(2):not([colspan]) { width: auto !important; min-width: 200px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table td:first-child:not([colspan]) > :is(strong,span) { min-width: 160px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table td:nth-child(2):not([colspan]) > span { min-width: 200px !important; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table :is(th,td):nth-child(n+3) {
    min-width: 8ch; text-align: right; white-space: nowrap !important;
    overflow-wrap: normal !important; word-break: normal !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table td:nth-child(n+3) span {
    white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important;
  }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table td :is(strong,span) { display: block; font-size: 13px; line-height: 1.5; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table td:first-child span,
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table td:nth-child(2) span { color: #66768c; font-size: 12px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-full-details { border-top: 1px solid #e0e9f0; margin-top: 14px; padding-top: 8px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-full-details summary { cursor: pointer; font-size: 13px; color: #1879d2; min-height: 39px; padding: 8px 0; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-disclosure-hint { color: #66768c; font-size: 12px; margin: 0 0 10px; }
  body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(.plan01-sales-info strong,.order-closure-step,.order-detail-hero-grid strong) { overflow-wrap: anywhere; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .plan01-line-save-note { color: #66768c; font-size: 12px; margin-left: auto; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row > .plan01-line-fulfillment { display: block !important; border-top: 1px solid #e0e9f0 !important; }
  body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-parameter-field { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; }

  @media (max-width: 1200px) {
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-body[data-overview="true"] > .order-closure-chain { grid-column: 1; grid-row: 2; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related { grid-row: 3; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-body[data-overview="true"] { grid-template-columns: minmax(0,1fr); }
    body.erp-plan01 #orderForm[data-plan01-sales-entry] :is(.plan01-line-fields,.detail-parameter-grid) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  }
  @media (max-width: 980px) {
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] { width: 100vw !important; max-width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] > .order-detail-dialog { padding: 16px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 16px 0 !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-hero-grid article:nth-child(2n) { border-right: 0 !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-info :is(.field-grid,.field-grid-two,.detail-field-grid) { grid-template-columns: 1fr !important; }
  }
  @media (max-width: 600px) {
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-related .detail-summary-grid { grid-template-columns: 1fr !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-summary-table :is(th,td) { padding: 8px 4px !important; font-size: 12px !important; }
    body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row :is(input:not([type="hidden"]):not([type="file"]),select) { font-size: 16px !important; }
    body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row > .plan01-line-heading { flex-wrap: wrap; }

    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] > .order-detail-dialog { padding: 12px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailTitle { font-size: 24px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .dialog-header { gap: 10px !important; padding-bottom: 12px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-detail-actions { flex-wrap: wrap !important; flex: 1 1 auto; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(button,summary) { min-height: 44px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] :is(.order-detail-actions,.dialog-actions-left) :is(button,summary),
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .order-closure-next button { min-height: 44px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .dialog-actions-left .icon-button { width: 44px !important; min-width: 44px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] #orderDetailTabs button { min-height: 44px !important; }
    body.erp-plan01 #orderDetailDialog[data-plan01-sales-detail] .plan01-sales-source-notes .detail-summary-grid { grid-template-columns: 1fr !important; }
    body.erp-plan01 #orderForm[data-plan01-sales-entry] :is(.plan01-line-fields,.detail-parameter-grid) { grid-template-columns: 1fr !important; gap: 15px !important; }
    body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row > :is(.plan01-line-heading,.plan01-line-info,.detail-parameters-cell,.plan01-line-fulfillment) { padding: 16px !important; }
    body.erp-plan01 #orderForm[data-plan01-sales-entry] .order-detail-row :is(input:not([type="hidden"]):not([type="file"]),select,button) { min-height: 44px !important; }
    body.erp-plan01 #orderForm[data-plan01-sales-entry] :is(.order-detail-toolbar,.order-entry-actions) button { min-height: 44px !important; }
  }
}
