.order-page{display:grid;gap:16px;min-width:0}.order-page-heading,.order-create-heading,.order-detail-heading{display:flex;align-items:center;gap:16px}.order-page-heading>div,.order-create-heading>div,.order-detail-heading>div{flex:1;min-width:0}.order-page-heading h1,.order-create-heading h1,.order-detail-heading h1{margin:3px 0}.order-page-heading p,.order-detail-heading p{margin:0;color:var(--muted,#7c879b)}
.order-create-menu{position:relative;display:grid;justify-items:end;gap:5px}.order-create-menu>small{color:#a66b17;font-size:11px}.order-create-options{position:absolute;z-index:20;top:calc(100% + 8px);right:0;min-width:210px;padding:6px;border:1px solid var(--border,#dfe6f0);border-radius:10px;background:var(--card,#fff);box-shadow:0 14px 35px rgba(32,53,88,.16)}.order-create-options button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:var(--text,#172033);font:inherit;text-align:left}.order-create-options button:not(:disabled):hover{background:#eef4ff;color:var(--primary,#2f7df4)}.order-create-options button:disabled{color:var(--muted,#7c879b);cursor:not-allowed}.order-create-options small{font-size:11px;white-space:nowrap}
.order-steps{display:flex;align-items:center;gap:8px;margin:0;padding:0;list-style:none}.order-steps li{padding:8px 12px;border-radius:999px;background:var(--surface,#f7f9fc);color:var(--muted,#7c879b);font-weight:700}.order-steps li.active{background:#eaf2ff;color:var(--primary,#2f7df4)}
.order-list-tools{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(140px,.7fr) minmax(160px,.8fr) minmax(300px,1.3fr) auto;align-items:end;gap:12px}.order-list-tools label{display:flex;flex-direction:column;gap:6px;color:var(--muted,#7c879b);font-size:12px}.order-list-tools input,.order-list-tools select,.order-date-filter input,.order-form-grid input,.order-form-grid textarea,.order-cancel-panel textarea,.order-price-approval-card textarea{width:100%;box-sizing:border-box;border:1px solid var(--border,#dfe6f0);border-radius:7px;background:var(--card,#fff);color:var(--text,#172033);padding:10px 12px;font:inherit}.order-date-filter{display:grid;grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr);align-items:center;gap:7px;min-width:0;margin:0;padding:0;border:0}.order-date-filter legend{grid-column:1/-1;margin-bottom:6px;padding:0;color:var(--muted,#7c879b);font-size:12px}.order-date-filter span{color:var(--muted,#7c879b);font-size:12px}
.order-table-wrap{overflow:auto}.order-table{width:100%;min-width:980px}.order-table td:first-child small{display:block;color:var(--muted,#7c879b)}.order-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#2f7df4;font-size:12px;white-space:nowrap}.order-status.CANCELED{background:#f3f5f8;color:#6c788d}.order-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-top:16px}.order-pagination>span:first-child{margin-right:auto;color:var(--muted,#7c879b)}.order-pagination strong{font-size:13px}.order-empty,.order-loading,.order-load-error{padding:48px 20px;text-align:center;color:var(--muted,#7c879b)}.order-empty strong,.order-load-error strong{display:block;color:var(--text,#172033);font-size:17px}.order-load-error .btn{margin-top:12px}
.order-details-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}.order-details-form h2{margin-top:0}.order-context-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 18px}.order-context-summary>div{padding:10px;border-radius:7px;background:var(--surface,#f7f9fc)}.order-context-summary span,.order-summary span{display:block;color:var(--muted,#7c879b);font-size:12px}.order-context-summary strong,.order-summary strong{display:block;margin-top:4px}.order-form-section{display:grid;gap:13px;padding:16px 0;border-top:1px solid var(--border,#dfe6f0)}.order-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.order-section-heading h3,.order-section-heading p{margin:0}.order-section-heading p{color:var(--muted,#7c879b);font-size:12px}.order-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.order-form-grid label{display:flex;flex-direction:column;gap:7px;color:var(--muted,#7c879b);font-size:12px}.order-form-grid .order-wide{grid-column:1/-1}.order-form-grid input[readonly]{background:var(--surface,#f7f9fc)}.order-form-grid select{width:100%;box-sizing:border-box;border:1px solid var(--border,#dfe6f0);border-radius:7px;background:var(--card,#fff);color:var(--text,#172033);padding:10px 12px;font:inherit}.order-money-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--border,#dfe6f0);border-radius:7px;background:var(--card,#fff)}.order-money-input input{border:0}.order-money-input strong{padding:0 12px;color:var(--muted,#7c879b);font-size:12px}.order-field-error{margin:0;color:var(--danger,#cc596a)}.order-info,.order-legacy-note{padding:11px 13px;border:1px solid #efd5a8;border-radius:8px;background:#fff8eb;color:#8b5a14}.order-form-actions{position:sticky;bottom:0;display:flex;align-items:center;gap:8px;margin:20px -22px -22px;padding:14px 22px;border-top:1px solid var(--border,#dfe6f0);background:var(--card,#fff);z-index:3}.order-form-actions>span:empty{flex:1}.order-summary{position:sticky;top:16px;display:grid;gap:14px}.order-summary>div{padding-bottom:12px;border-bottom:1px solid var(--border,#dfe6f0)}.order-summary>div:nth-child(4) strong{font-size:23px}.order-approval-estimate{padding:11px!important;border:1px solid #efd5a8!important;border-radius:8px;background:#fff8eb;color:#8b5a14}.order-approval-estimate strong{font-size:12px}.order-approval-estimate p{margin:5px 0 0;font-size:11px;line-height:1.5}.order-price-approval-card{display:grid;gap:14px;margin-top:18px;padding:16px;border:1px solid #efc46d;border-radius:10px;background:#fff9ed;color:var(--text,#172033)}.order-price-approval-card h3{margin:3px 0 0}.order-price-approval-card>div>p:last-child{margin:7px 0 0;color:#8b671f;font-size:12px}.order-price-approval-card label{display:grid;gap:7px;font-size:12px;font-weight:600}.order-approval-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.order-approval-amounts>div{min-width:0;padding:10px;border-radius:7px;background:color-mix(in srgb,var(--card,#fff) 82%,transparent)}.order-approval-amounts dt{color:var(--muted,#7c879b);font-size:11px}.order-approval-amounts dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}
.order-detail-heading{flex-wrap:wrap}.order-detail-total{text-align:right}.order-detail-total strong{display:block;margin:4px 0;font-size:22px}.order-detail-actions{display:flex;gap:8px;flex-wrap:wrap}.order-action-item{display:inline-flex;flex-direction:column;align-items:flex-start;gap:5px}.order-action-item small{max-width:230px;color:#a66b17;line-height:1.4}.order-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.order-detail-grid>div,.order-detail-grid>aside{display:grid;gap:16px}.order-detail-lines{display:grid;gap:10px}.order-detail-lines article{padding:14px;border:1px solid var(--border,#dfe6f0);border-radius:9px}.order-detail-lines article>div{display:flex;justify-content:space-between;gap:12px}.order-detail-lines dl,.order-contact dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 0}.order-detail-lines dl div,.order-contact dl div{padding:10px;border-radius:7px;background:var(--surface,#f7f9fc)}.order-detail-lines dt,.order-contact dt{color:var(--muted,#7c879b);font-size:12px}.order-detail-lines dd,.order-contact dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}.order-contact dl{grid-template-columns:1fr}.order-price-approval-status{border-left:4px solid #efad37}.order-price-approval-status.APPROVED{border-left-color:#31a474}.order-price-approval-status.REJECTED,.order-price-approval-status.INVALIDATED{border-left-color:var(--danger,#cc596a)}.order-price-approval-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-price-approval-heading h2{margin:3px 0 0}.order-price-approval-status .order-approval-amounts{margin-top:14px}.order-price-approval-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.order-price-approval-facts>div{padding:10px;border-radius:7px;background:var(--surface,#f7f9fc)}.order-price-approval-facts dt{color:var(--muted,#7c879b);font-size:11px}.order-price-approval-facts dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}.order-timeline{display:grid;gap:14px;margin:0;padding:0 0 0 20px}.order-timeline li{padding-left:5px}.order-timeline span{display:block;margin-top:3px;color:var(--muted,#7c879b);font-size:12px}.order-timeline p{margin:5px 0 0}.order-cancel-panel label{display:flex;flex-direction:column;gap:7px;color:var(--muted,#7c879b);font-size:12px}.order-cancel-panel>div{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.order-fulfillment-summary{display:grid;gap:14px;border-left:4px solid #31a474}.order-fulfillment-summary h2{margin:3px 0 0}.order-fulfillment-summary:focus{outline:2px solid var(--primary,#2f7df4);outline-offset:2px}.order-fulfillment-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.order-fulfillment-facts>div{padding:12px;border-radius:8px;background:var(--surface,#f7f9fc)}.order-fulfillment-facts span,.order-fulfillment-facts small{display:block;color:var(--muted,#7c879b);font-size:12px}.order-fulfillment-facts strong{display:block;margin:5px 0;overflow-wrap:anywhere}
@media(max-width:1180px){.order-list-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.order-list-tools>.btn{justify-self:start}.order-details-layout,.order-detail-grid{grid-template-columns:1fr}.order-summary{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}.order-summary .btn,.order-summary .order-approval-estimate{grid-column:1/-1}.order-detail-grid>aside{order:-1}.order-contact dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.order-page-heading,.order-create-heading,.order-detail-heading{align-items:flex-start;flex-direction:column}.order-steps{width:100%}.order-steps li{flex:1;text-align:center}.order-list-tools,.order-context-summary,.order-form-grid,.order-summary,.order-contact dl,.order-approval-amounts,.order-price-approval-facts,.order-fulfillment-facts{grid-template-columns:1fr}.order-form-grid .order-wide{grid-column:auto}.order-form-actions{flex-wrap:wrap}.order-form-actions>span:empty{display:none}.order-form-actions .btn{flex:1}.order-detail-total{text-align:left}.order-date-filter{grid-template-columns:1fr auto 1fr}}

/* SALES-ORDER-UI-240: document pages share a compact header, lifecycle and information hierarchy. */
.order-page,.order-page>*{min-width:0}.order-list-card{min-width:0;max-width:100%;overflow:hidden}.order-table-wrap{max-width:100%;overscroll-behavior-inline:contain}.order-table th:last-child,.order-table td:last-child{position:sticky;right:0;background:var(--card,#fff);box-shadow:-8px 0 12px -12px rgba(32,53,88,.42);z-index:1}.order-table th:last-child{z-index:2}.order-restricted{color:var(--muted,#7c879b);font-size:12px;font-weight:600}
/* SALES-ORDER-ACTION-MENU-521: lift the open sticky action cell above later rows. */
.order-table td:last-child:has(.order-more-actions[open]){z-index:9}.order-table tbody tr:nth-last-child(-n+2) .order-more-actions>div{top:auto;bottom:calc(100% + 6px)}
.order-summary header h2{margin:3px 0 0;font-size:17px}.order-summary-lines{display:grid;gap:9px;max-height:260px;margin:0;padding:0;overflow:auto;list-style:none}.order-summary-lines li{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px;border-radius:8px;background:var(--surface,#f7f9fc)}.order-summary-lines li>div{min-width:0}.order-summary-lines strong{display:block;font-size:12px;overflow-wrap:anywhere}.order-summary-lines small{display:-webkit-box;overflow:hidden;margin-top:4px;color:var(--muted,#7c879b);font-size:10px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.order-summary-lines li>span{flex:0 0 auto;color:var(--muted,#7c879b);font-size:11px}.order-summary-totals{display:grid;gap:9px;margin:0;padding-top:12px;border-top:1px solid var(--border,#dfe6f0)}.order-summary-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.order-summary-totals dt{color:var(--muted,#7c879b);font-size:11px}.order-summary-totals dd{margin:0;font-weight:700;text-align:right}.order-summary-totals>div:nth-child(2) dd{font-size:19px}
.order-detail-heading{display:grid;grid-template-columns:auto minmax(260px,1fr) auto auto;align-items:center;padding:18px 20px}.order-detail-heading>div{flex:initial}.order-detail-identity{min-width:0}.order-detail-identity>div{display:flex;align-items:center;gap:10px;min-width:0}.order-detail-identity h1{min-width:0;margin:2px 0;overflow-wrap:anywhere}.order-detail-total{min-width:170px;padding-left:18px;border-left:1px solid var(--border,#dfe6f0)}.order-detail-actions{justify-content:flex-end;align-items:center}.order-detail-actions:empty{display:none}.order-more-actions{position:relative}.order-more-actions>summary{display:inline-flex;align-items:center;min-height:40px;padding:0 13px;border:1px solid var(--border,#dfe6f0);border-radius:7px;background:var(--card,#fff);cursor:pointer;font-weight:700;list-style:none}.order-more-actions>summary::-webkit-details-marker{display:none}.order-more-actions[open]>summary{border-color:var(--primary,#2f7df4);color:var(--primary,#2f7df4)}.order-more-actions>div{position:absolute;z-index:8;top:calc(100% + 6px);right:0;min-width:150px;padding:8px;border:1px solid var(--border,#dfe6f0);border-radius:8px;background:var(--card,#fff);box-shadow:0 12px 30px rgba(32,53,88,.16)}
.order-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.order-section-title h2,.order-section-title p{margin:0}.order-section-title h2{margin-top:3px}.order-section-title>strong{color:var(--muted,#7c879b);font-size:13px}
.order-lifecycle{display:grid;gap:14px}.order-lifecycle>ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:0;list-style:none}.order-lifecycle li{position:relative;display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted,#7c879b)}.order-lifecycle li:not(:last-child)::after{content:"";position:absolute;left:34px;right:8px;top:14px;height:2px;background:var(--border,#dfe6f0)}.order-lifecycle li>span{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:2px solid var(--border,#dfe6f0);border-radius:50%;background:var(--card,#fff);font-size:12px;font-weight:800}.order-lifecycle li>strong{min-width:0;font-size:13px}.order-lifecycle li.done{color:#237c5d}.order-lifecycle li.done>span{border-color:#31a474;background:#eaf8f1}.order-lifecycle li.done:not(:last-child)::after{background:#31a474}.order-lifecycle li.current{color:var(--primary,#2f7df4)}.order-lifecycle li.current>span{border-color:var(--primary,#2f7df4);background:#eaf2ff}.order-lifecycle li.error{color:var(--danger,#cc596a)}.order-lifecycle li.error>span{border-color:var(--danger,#cc596a);background:#fff0f2}.order-lifecycle-note{margin:0;padding:9px 11px;border-radius:7px;background:var(--surface,#f7f9fc);font-size:12px}.order-lifecycle-note.error{background:#fff0f2;color:var(--danger,#cc596a)}
.order-flow-overview{display:grid;gap:14px}.order-flow-overview>div:last-child{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.order-flow-overview article{display:grid;align-content:start;gap:5px;min-width:0;padding:12px;border:1px solid var(--border,#dfe6f0);border-radius:8px;background:var(--surface,#f7f9fc)}.order-flow-overview article>span,.order-flow-overview article>small{color:var(--muted,#7c879b);font-size:12px}.order-flow-overview article>strong{overflow-wrap:anywhere}
.order-commercial-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.order-commercial-summary>div{padding:11px;border-radius:8px;background:var(--surface,#f7f9fc)}.order-commercial-summary span{display:block;color:var(--muted,#7c879b);font-size:12px}.order-commercial-summary strong{display:block;margin-top:4px;font-size:16px}
.order-detail-grid{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}.order-products{display:grid;gap:14px}.order-line-title{align-items:flex-start}.order-line-title>div{display:grid;gap:3px}.order-line-title small{color:var(--muted,#7c879b);font-size:12px}.order-line-selections{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;gap:6px!important;margin-top:10px}.order-line-selections span{padding:4px 7px;border-radius:5px;background:#eef4ff;color:#4f678b;font-size:12px}.order-detail-lines dl .wide{grid-column:1/-1}
.order-contact{display:grid;gap:0}.order-fact-section{display:grid;gap:9px;padding:14px 0;border-top:1px solid var(--border,#dfe6f0)}.order-fact-section:first-of-type{margin-top:12px}.order-fact-section h3,.order-fact-section p{margin:0}.order-fact-section h3{font-size:14px}.order-fact-section p{color:var(--muted,#7c879b);font-size:12px}.order-contact .order-fact-section dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.order-contact .order-fact-section dl .wide{grid-column:1/-1}.order-contact .order-fact-section dl>div{padding:9px}.order-contact .order-fact-section dd{white-space:pre-wrap}
@media(max-width:1180px){.order-detail-heading{grid-template-columns:auto minmax(0,1fr) auto}.order-detail-actions{grid-column:2/-1}.order-detail-grid{grid-template-columns:1fr}.order-detail-grid>aside{order:initial}.order-contact .order-fact-section dl{grid-template-columns:repeat(3,minmax(0,1fr))}.order-contact .order-fact-section dl .wide{grid-column:span 2}}
@media(max-width:760px){.order-detail-heading{display:grid;grid-template-columns:1fr}.order-detail-heading>.btn{justify-self:start}.order-detail-actions{grid-column:auto;justify-content:flex-start}.order-detail-total{padding:10px 0 0;border-left:0;border-top:1px solid var(--border,#dfe6f0);text-align:left}.order-lifecycle>ol{grid-template-columns:1fr;gap:8px}.order-lifecycle li:not(:last-child)::after{left:13px;right:auto;top:27px;bottom:-9px;width:2px;height:auto}.order-commercial-summary{grid-template-columns:1fr}.order-contact .order-fact-section dl{grid-template-columns:1fr}.order-contact .order-fact-section dl .wide{grid-column:auto}}

/* SALES-ORDER-UI-REDESIGN-246: one visual hierarchy for list, create and detail. */
.order-page{
  --order-card:#fff;
  --order-soft:#f6f8fc;
  --order-blue-soft:#eef5ff;
  --order-blue-line:#cfe0fb;
  --order-violet-soft:#f6f2ff;
  --order-text:var(--ink,#172033);
  --order-muted:var(--muted,#7c879b);
  --order-line:var(--line,#e9edf3);
  gap:18px;
  color:var(--order-text);
}
.order-page-heading{padding:4px 2px 0}.order-page-heading h1{font-size:28px;letter-spacing:-.03em}.order-page-heading .cc-eyebrow{color:var(--blue,#2f7df4)}
.order-list-tools,.order-list-card{border-color:var(--order-line);background:var(--order-card);box-shadow:var(--shadow,0 8px 28px rgba(30,45,75,.06))}
.order-list-tools{padding:16px 18px;border-radius:14px}.order-list-tools input,.order-list-tools select,.order-date-filter input{min-height:40px;border-color:var(--order-line);border-radius:9px;background:var(--order-card)}
.order-list-card{padding:0;overflow:hidden;border-radius:14px}.order-table-wrap{border:0}.order-table thead{background:var(--order-soft)}.order-table th{padding-top:13px!important;padding-bottom:13px!important;color:#69778d!important}.order-table td{padding-top:15px!important;padding-bottom:15px!important}.order-table tbody tr:hover td{background:#f9fbff}.order-table td:first-child strong{color:#235fae}.order-pagination{padding:14px 18px;border-top:1px solid var(--order-line)}
.order-back-link{justify-self:start;width:max-content;padding:0;border:0;background:transparent;color:#68758a;font:600 12px/1.4 inherit;cursor:pointer}.order-back-link:hover{color:var(--blue,#2f7df4)}
.order-detail-heading.order-record-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:20px 22px;border-color:#d9e5f7;background:linear-gradient(105deg,#fff 0%,#fff 64%,#f2f7ff 100%);box-shadow:0 10px 30px rgba(43,76,124,.07)}
.order-record-hero .order-detail-identity>div{gap:12px}.order-record-hero .order-detail-identity h1{font-size:28px;letter-spacing:-.03em}.order-record-hero .order-detail-identity>p{margin-top:7px;color:var(--order-muted);font-size:13px}.order-record-hero .order-detail-actions{display:flex;align-items:center;justify-content:flex-end}.order-record-hero .order-action-item>.btn{min-height:42px}.order-more-actions>div{display:grid;gap:7px;min-width:220px}.order-more-actions>div .order-action-item,.order-more-actions>div .btn{width:100%}.order-more-actions>div .btn{justify-content:flex-start}.order-more-actions>div small{max-width:210px;padding:0 5px 5px}
.order-status{border:1px solid #cfe0fb;background:#eef5ff;color:#286ed2;font-weight:700}.order-status.RECEIVED,.order-status.APPROVED{border-color:#c8eadc;background:#ebf9f2;color:#167858}.order-status.CANCELED,.order-status.REJECTED,.order-status.INVALIDATED{border-color:#efc8ce;background:#fff1f2;color:#b84352}
.order-lifecycle{padding:18px 20px;border-color:var(--order-line);box-shadow:var(--shadow,0 8px 28px rgba(30,45,75,.06))}.order-lifecycle .order-section-title{align-items:center}.order-lifecycle .order-section-title>strong{padding:5px 9px;border-radius:999px;background:var(--order-soft)}
.order-lifecycle>ol{gap:8px}.order-lifecycle li{display:grid;grid-template-rows:30px auto;justify-items:center;gap:7px;padding:9px 6px;border-radius:10px;text-align:center}.order-lifecycle li:not(:last-child)::after{left:calc(50% + 18px);right:calc(-50% + 18px);top:23px}.order-lifecycle li>span{grid-row:1;width:30px;height:30px;flex-basis:30px}.order-lifecycle li>strong{grid-row:2;font-size:12px;line-height:1.4}.order-lifecycle li.current{background:var(--order-blue-soft);box-shadow:inset 0 0 0 1px var(--order-blue-line)}
.order-commercial-summary{padding:0;overflow:hidden;border-color:#d9e5f7;background:var(--order-card)}.order-commercial-summary>div{padding:16px 18px;border-radius:0;background:transparent}.order-commercial-summary>div+div{border-left:1px solid var(--order-line)}.order-commercial-summary>div:nth-child(2){background:var(--order-blue-soft)}.order-commercial-summary>div:nth-child(2) strong{color:#1f68d3;font-size:19px}
.order-flow-overview,.order-products,.order-contact,.order-detail-grid>div>.cc-section{border-color:var(--order-line);box-shadow:var(--shadow,0 8px 28px rgba(30,45,75,.06))}.order-flow-overview article{border:0;border-left:3px solid #8db8f7;background:var(--order-soft)}
.order-detail-lines{gap:12px}.order-detail-lines article{padding:0;overflow:hidden;border-color:var(--order-line);border-radius:12px;background:var(--order-card);box-shadow:0 4px 16px rgba(32,53,88,.04)}.order-line-title{padding:15px 16px;background:var(--order-soft)}.order-line-title>span{display:grid;place-items:center;min-width:42px;height:28px;padding:0 9px;border-radius:999px;background:#e7eef9;color:#4b607e;font-weight:700}.order-line-selections{margin:0!important;padding:12px 16px 4px}.order-line-selections span{border:1px solid #d8e5f7;border-radius:999px;background:#f4f8ff;color:#425d82}
.order-line-media{display:grid!important;grid-template-columns:minmax(120px,auto) minmax(0,1fr);align-items:center!important;justify-content:stretch!important;gap:14px!important;margin:10px 16px 0;padding:11px 12px;border:1px solid #ddd5f8;border-radius:10px;background:var(--order-violet-soft)}.order-line-media>div:first-child{display:grid!important;justify-content:start!important;gap:3px!important}.order-line-media>div:first-child small{color:var(--order-muted);font-size:11px}.order-line-media>div:last-child{display:flex!important;justify-content:flex-start!important;gap:8px!important;overflow:auto}.order-line-media button{position:relative;flex:0 0 58px;width:58px;height:58px;padding:0;overflow:hidden;border:1px solid #d6ccf4;border-radius:9px;background:#fff;cursor:zoom-in}.order-line-media img{display:block;width:100%;height:100%;object-fit:cover}.order-line-media button>span{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#172033d9;color:#fff;font-size:9px;font-weight:700}
.order-detail-lines dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:12px 16px 0;padding:12px 0 15px;border-top:1px solid var(--order-line)}.order-detail-lines dl div{padding:0 12px 0 0;border-radius:0;background:transparent}.order-detail-lines dl div+div{padding-left:16px;border-left:1px solid var(--order-line)}.order-detail-lines dl dd{font-size:15px}.order-detail-lines dl dd small{display:block;margin-top:5px;color:var(--order-muted);font-size:10px;font-weight:500;line-height:1.45}.order-detail-lines dl .deal dd{color:#1f68d3}
.order-contact{position:sticky;top:16px}.order-fact-section{padding:15px 0}.order-contact .order-fact-section dl>div{background:var(--order-soft)}
.order-timeline li::marker{color:#9ab7de}.order-timeline li{padding:0 0 3px 7px}
@media(max-width:1180px){.order-contact{position:static}.order-detail-heading.order-record-hero{grid-template-columns:minmax(0,1fr) auto}.order-detail-heading.order-record-hero .order-detail-actions{grid-column:auto}}
@media(max-width:760px){.order-detail-heading.order-record-hero{grid-template-columns:1fr;padding:17px}.order-record-hero .order-detail-actions{justify-content:flex-start}.order-lifecycle>ol{grid-template-columns:1fr;gap:5px}.order-lifecycle li{grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto;justify-items:start;text-align:left}.order-lifecycle li>span,.order-lifecycle li>strong{grid-row:auto}.order-lifecycle li:not(:last-child)::after{left:23px;right:auto;top:38px;bottom:-6px;width:2px;height:auto}.order-commercial-summary{grid-template-columns:1fr}.order-commercial-summary>div+div{border-top:1px solid var(--order-line);border-left:0}.order-line-media{grid-template-columns:1fr}.order-detail-lines dl{grid-template-columns:1fr}.order-detail-lines dl div+div{margin-top:10px;padding-top:10px;padding-left:0;border-top:1px solid var(--order-line);border-left:0}.order-list-tools{padding:14px}.order-record-hero .order-detail-identity h1{font-size:23px}}
[data-theme=dark] .order-page{--order-card:#121c2b;--order-soft:#172335;--order-blue-soft:#172b49;--order-blue-line:#2d4666;--order-violet-soft:#251f3b;--order-text:#e8eef8;--order-muted:#9dacbf;--order-line:#2b394e}[data-theme=dark] .order-detail-heading.order-record-hero{background:linear-gradient(105deg,#121c2b 0%,#121c2b 64%,#172b49 100%)}[data-theme=dark] .order-line-selections span{border-color:#2d4666;background:#172b49;color:#b8cef1}[data-theme=dark] .order-table tbody tr:hover td{background:#172335}[data-theme=dark] .order-line-media button{background:#121c2b;border-color:#4b4272}

/* FIN-LEDGER-PROFIT-267: confirmed, unstarted cancellation settlement fields. */
.sales-action-dialog{width:min(680px,calc(100vw - 32px))}.sales-action-dialog .cc-category-dialog-head .cc-help{max-width:540px;margin-top:8px!important}.sales-action-dialog .sales-action-dialog-body{margin:22px 0 0}.sales-action-dialog textarea{width:100%;box-sizing:border-box;min-height:104px;padding:10px 12px;border:1px solid var(--border,#dfe6f0);border-radius:7px;background:var(--card,#fff);color:var(--text,#172033);font:inherit;resize:vertical}.sales-action-dialog textarea:focus{outline:2px solid #73a7ff;outline-offset:1px}.sales-action-dialog-wide{grid-column:1/-1}.sales-action-dialog-comparison{margin-top:22px}.sales-action-dialog .cc-notice{margin:14px 0 0!important}.sales-action-dialog .order-field-error,.sales-action-dialog .quote-field-error{color:var(--danger,#cc596a)}
.sales-action-dialog [data-amendment-unit][hidden],.sales-action-dialog [data-amendment-price][hidden],.sales-action-dialog [data-amendment-date][hidden],.sales-action-dialog [data-amendment-accompanying][hidden],.sales-action-dialog [data-amendment-new-item][hidden]{display:none}
.sales-action-dialog,.amendment-workbench-dialog{overscroll-behavior:contain}
.amendment-workbench-dialog{width:min(1200px,calc(100vw - 24px));max-width:1200px;max-height:calc(100vh - 24px);overflow:auto;padding:0}.amendment-workbench-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--border,#dfe6f0);background:var(--card,#fff)}.amendment-workbench-head h3{margin:0}.amendment-workbench-dialog [data-amendment-workbench]{padding:16px 24px 24px}
.amendment-workbench-dialog .sim-amendment-price-notice{grid-column:1/-1;display:block;margin:3px 0 0;color:var(--text,#172033);font-size:11px;line-height:1.5;white-space:normal}
.amendment-workbench-dialog [data-amendment-existing]{grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr)}
@media(max-width:900px){.amendment-workbench-dialog [data-amendment-existing]{grid-template-columns:1fr}}
.order-line-amendment-units{margin-top:10px;padding-top:10px;border-top:1px solid var(--border,#dfe6f0)}.order-line-amendment-units p{margin:4px 0;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}.order-line-amendment-units strong{font-size:12px;color:var(--primary,#2f78ed)}.order-line-amendment-units span,.order-line-amendment-units small{font-size:12px;color:var(--text-muted,#7d8ba5)}
.sales-action-dialog [data-amendment-queued] ul{padding:0;margin:10px 0 0;list-style:none}.sales-action-dialog [data-amendment-queued] li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;border-top:1px solid var(--border,#dfe6f0)}
.order-cancel-finance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:14px;border:1px solid var(--border,#dfe6f0);border-radius:10px;background:var(--surface,#f7f9fc)}
.order-cancel-finance>p{grid-column:1/-1;margin:0;color:var(--muted,#7c879b);font-size:12px}
.order-cancel-finance input,.order-cancel-finance select{width:100%;box-sizing:border-box;min-height:40px;padding:9px 11px;border:1px solid var(--border,#dfe6f0);border-radius:7px;background:var(--card,#fff);color:var(--text,#172033);font:inherit}
@media(max-width:760px){.order-cancel-finance{grid-template-columns:1fr}.order-cancel-finance>p{grid-column:auto}.sales-action-dialog .order-approval-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.order-shipping-dialog{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid var(--border,#dfe6f0);border-radius:14px;background:var(--card,#fff);color:var(--text,#172033);box-shadow:0 24px 70px rgba(24,42,72,.24)}
.order-shipping-dialog::backdrop{background:rgba(20,32,54,.48)}
.order-shipping-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.order-shipping-dialog form{display:flex;min-height:0;flex-direction:column}
.order-shipping-dialog form>header,.order-shipping-dialog form>footer{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}
.order-shipping-dialog form>header{border-bottom:1px solid var(--border,#dfe6f0)}
.order-shipping-dialog form>header h2{margin:3px 0;font-size:21px}.order-shipping-dialog form>header span{color:var(--muted,#7c879b);font-size:12px}
.order-shipping-dialog form>footer{justify-content:flex-end;border-top:1px solid var(--border,#dfe6f0)}
.order-shipping-dialog-body{display:grid;min-height:0;gap:0;overflow:auto;padding:0 20px}
.order-shipping-dialog-body>section{padding:17px 0;border-bottom:1px solid var(--border,#dfe6f0)}
.order-shipping-dialog-body h3{margin:0 0 13px;font-size:15px}
.order-shipping-dialog-body>.cc-notice{margin:14px 0}
[data-theme=dark] .order-shipping-dialog{--card:#121c2b;--text:#e8eef8;--border:var(--line,#28364b)}
@media(max-width:760px){.order-shipping-dialog form>header{align-items:flex-start}.order-shipping-dialog{width:calc(100vw - 20px)}.order-shipping-dialog-body{padding:0 14px}}
.order-packing-dialog{width:min(1280px,calc(100vw - 32px));overflow-x:hidden}.order-packing-dialog form{width:100%;max-height:inherit}.order-packing-dialog-body{gap:16px;overflow-x:hidden;overflow-y:auto;padding-top:16px;padding-bottom:16px;overscroll-behavior:contain}.order-packing-dialog-body>section{min-width:0;padding:0;border:0}.order-packing-dialog-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--border,#dfe6f0);border-radius:10px;background:var(--order-soft,#f6f8fb)}.order-packing-dialog-summary>div{display:grid;gap:4px;padding:12px 14px}.order-packing-dialog-summary>div+div{border-left:1px solid var(--border,#dfe6f0)}.order-packing-dialog-summary span{color:var(--muted,#7c879b);font-size:11px}.order-packing-dialog-summary strong{font-size:15px}.order-packing-dialog-table-wrap{width:100%;overflow-x:hidden;border:1px solid var(--border,#dfe6f0);border-radius:10px}.order-packing-dialog-table{width:100%;border-collapse:collapse;table-layout:fixed}.order-packing-dialog-table col.item{width:15%}.order-packing-dialog-table col.origin{width:11%}.order-packing-dialog-table col.quantity{width:7%}.order-packing-dialog-table col.shipment{width:14%}.order-packing-dialog-table col.request{width:12%}.order-packing-dialog-table col.status{width:8%}.order-packing-dialog-table col.reason{width:13%}.order-packing-dialog-table col.operator{width:20%}.order-packing-dialog-table th,.order-packing-dialog-table td{min-width:0;padding:11px 10px;border-bottom:1px solid var(--border,#dfe6f0);vertical-align:top;overflow-wrap:anywhere;word-break:break-word;white-space:normal;text-align:left;font-size:12px;line-height:1.5}.order-packing-dialog-table thead th{position:sticky;top:0;z-index:1;background:var(--order-soft,#f6f8fb);color:var(--muted,#7c879b);font-size:10px;font-weight:650}.order-packing-dialog-table tbody th{font-size:13px;font-weight:700}.order-packing-dialog-table tbody tr:last-child>*{border-bottom:0}.order-packing-dialog-table em{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#2668c9;font-size:11px;font-style:normal;font-weight:700}.order-packing-dialog-table em.confirmed{background:#e9f8f1;color:#237c5d}.order-packing-dialog-table em.exception{background:#fff0f2;color:var(--danger,#b84352)}.order-packing-dialog .order-empty{margin:0}
@media(max-width:760px){.order-packing-dialog{width:calc(100vw - 20px)}.order-packing-dialog-summary{grid-template-columns:1fr}.order-packing-dialog-summary>div+div{border-top:1px solid var(--border,#dfe6f0);border-left:0}.order-packing-dialog-table,.order-packing-dialog-table tbody,.order-packing-dialog-table tr,.order-packing-dialog-table th,.order-packing-dialog-table td{display:block;width:100%}.order-packing-dialog-table colgroup,.order-packing-dialog-table thead{display:none}.order-packing-dialog-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 13px;border-bottom:1px solid var(--border,#dfe6f0)}.order-packing-dialog-table tbody tr:last-child{border-bottom:0}.order-packing-dialog-table tbody th,.order-packing-dialog-table tbody td{display:grid;grid-template-columns:72px minmax(0,1fr);gap:7px;padding:5px 0;border:0;font-size:12px}.order-packing-dialog-table tbody th{grid-column:1/-1;font-size:13px}.order-packing-dialog-table tbody th::before,.order-packing-dialog-table tbody td::before{content:attr(data-label);color:var(--muted,#7c879b);font-size:10px;font-weight:500}.order-packing-dialog-table tbody th::before{font-size:10px}.order-packing-dialog-table tbody td:nth-child(4),.order-packing-dialog-table tbody td:nth-child(5),.order-packing-dialog-table tbody td:nth-child(7),.order-packing-dialog-table tbody td:nth-child(8){grid-column:1/-1}}

.order-accompanying-dialog{width:min(880px,calc(100vw - 32px))}
.order-accompanying-dialog .order-packing-dialog-table col.item{width:36%}
.order-accompanying-dialog .order-packing-dialog-table col.quantity{width:19%}
.order-accompanying-dialog .order-packing-dialog-table col.allocation{width:45%}
.order-accompanying-dialog .order-packing-dialog-table td:last-child{display:flex;flex-wrap:wrap;gap:6px 12px}
.order-accompanying-batch,.order-accompanying-remaining{display:inline-block}
.order-accompanying-remaining{color:var(--muted,#7c879b)}
.order-accompanying-history{border:1px solid var(--border,#dfe6f0);border-radius:10px;padding:12px 14px}
.order-accompanying-history summary{cursor:pointer;font-weight:600}
.order-accompanying-history ul{list-style:none;margin:12px 0 0;padding:0}
.order-accompanying-history li{display:flex;flex-wrap:wrap;gap:6px 12px;padding:9px 0;border-top:1px solid var(--border,#dfe6f0)}
.order-accompanying-history li small{margin-left:auto;color:var(--muted,#7c879b)}
@media(max-width:760px){.order-accompanying-dialog{width:calc(100vw - 20px)}.order-accompanying-dialog .order-packing-dialog-table tbody tr{grid-template-columns:1fr}.order-accompanying-dialog .order-packing-dialog-table tbody td:last-child{display:grid;grid-template-columns:72px minmax(0,1fr)}.order-accompanying-dialog .order-packing-dialog-table tbody td:last-child .order-accompanying-batch,.order-accompanying-dialog .order-packing-dialog-table tbody td:last-child .order-accompanying-remaining{grid-column:2}.order-accompanying-history li small{margin-left:0;width:100%}}
.order-shortage-dialog{width:min(1120px,calc(100vw - 32px))}.order-shortage-dialog .cc-notice{display:grid;gap:4px}.order-shortage-dialog .cc-notice span{font-size:12px}.order-shortage-dialog-table col.item{width:22%}.order-shortage-dialog-table col.purpose{width:12%}.order-shortage-dialog-table col.quantity{width:13%}.order-shortage-dialog-table col.warehouse{width:14%}.order-shortage-dialog-table th small{display:block;margin-top:3px;color:var(--muted,#7c879b);font-size:10px;font-weight:500}.order-shortage-dialog-table td strong{color:var(--danger,#b84352)}
html.order-dialog-open{overflow:hidden}

/* SALES-ORDER-DETAIL-UX-333: compact order record with prices, fulfillment links and tabbed information. */
.order-detail-page{gap:14px}
.order-detail-page .order-record-hero{padding:18px 20px;background:var(--order-card);box-shadow:var(--shadow,0 8px 28px rgba(30,45,75,.06))}
.order-record-number{margin:0 0 4px!important;color:var(--blue,#2f7df4)!important;font-size:12px!important;font-weight:800;letter-spacing:.02em}
.order-detail-page .order-detail-identity h1{font-size:25px}
.order-related-documents{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;min-width:0;margin-top:11px;padding-top:10px;border-top:1px solid var(--order-line)}
.order-related-documents>span{flex:0 0 auto;color:var(--order-muted);font-size:12px}
.order-related-document-links{display:flex;flex-wrap:wrap;gap:5px 14px;min-width:0}
.order-related-document-links .order-number-link,.order-related-document-links>strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.order-related-document-links>strong{color:var(--order-text)}
.order-task-progress{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(560px,2.4fr);align-items:center;gap:22px;padding:16px 20px}
.order-current-task{display:grid;gap:4px;padding-right:22px;border-right:1px solid var(--order-line)}
.order-current-task>span,.order-current-task>small{color:var(--order-muted);font-size:11px}.order-current-task>strong{font-size:17px}.order-current-task>small{font-weight:700}
.order-task-progress>ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.order-task-progress li{position:relative;display:grid;grid-template-rows:28px auto;justify-items:center;gap:5px;min-width:0;color:var(--order-muted);text-align:center}
.order-task-progress li:not(:last-child)::after{content:"";position:absolute;z-index:0;top:13px;left:calc(50% + 18px);right:calc(-50% + 18px);height:2px;background:var(--order-line)}
.order-task-progress li>span{position:relative;z-index:1;display:grid;place-items:center;width:28px;height:28px;border:2px solid var(--order-line);border-radius:50%;background:var(--order-card);font-size:11px;font-weight:800}
.order-task-progress li>strong{font-size:11px;line-height:1.35}.order-task-progress li.done{color:#237c5d}.order-task-progress li.done>span{border-color:#31a474;background:#eaf8f1}.order-task-progress li.done:not(:last-child)::after{background:#31a474}.order-task-progress li.current{color:var(--blue,#2f7df4)}.order-task-progress li.current>span{border-color:var(--blue,#2f7df4);background:var(--order-blue-soft)}.order-task-progress li.error{color:var(--danger,#cc596a)}.order-task-progress li.error>span{border-color:var(--danger,#cc596a);background:#fff0f2}.order-task-progress>.order-lifecycle-note{grid-column:1/-1}
.order-key-facts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:0;overflow:hidden}
.order-key-facts>div{min-width:0;padding:14px 16px}.order-key-facts>div+div{border-left:1px solid var(--order-line)}.order-key-facts span{display:block;margin-bottom:5px;color:var(--order-muted);font-size:11px}.order-key-facts strong{display:block;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.order-detail-page>.order-products,.order-detail-page>.order-fulfillment,.order-detail-page>.order-information,.order-history{border-color:var(--order-line);box-shadow:var(--shadow,0 8px 28px rgba(30,45,75,.06))}
.order-product-table{display:grid;gap:0}.order-product-table-head,.order-product-row{display:grid!important;grid-template-columns:minmax(150px,.7fr) minmax(480px,2.35fr) 72px minmax(190px,.9fr) minmax(165px,.75fr);align-items:stretch}
.order-product-table-head{border:1px solid var(--order-line);border-bottom:0;border-radius:10px 10px 0 0;background:var(--order-soft);color:var(--order-muted);font-size:11px;font-weight:700}.order-product-table-head span{padding:10px 12px}.order-product-table-head span+span{border-left:1px solid var(--order-line)}.order-product-table-head .restricted{grid-column:3/-1}
.order-detail-lines{gap:0}.order-product-row{padding:0!important;border-radius:0!important;box-shadow:none!important}.order-product-row.package{grid-template-areas:"main main quantity unit subtotal" "spec spec spec spec spec"}.order-product-row.package>.order-product-main{grid-area:main}.order-product-row.package>.order-product-specifications{grid-area:spec;flex-direction:column;align-items:stretch;border-top:1px solid var(--order-line);border-left:0}.order-product-row.package>.order-product-quantity{grid-area:quantity}.order-product-row.package>.order-product-unit-price{grid-area:unit}.order-product-row.package>.order-product-subtotal{grid-area:subtotal}.order-product-row:last-child{border-radius:0 0 10px 10px!important}.order-product-row+.order-product-row{border-top:0}
.order-product-main{min-width:0;padding:12px}.order-product-row .order-line-title{height:auto;padding:0;background:transparent}.order-product-row .order-line-title strong{display:block;overflow-wrap:normal;word-break:normal}.order-product-row .order-line-media{grid-template-columns:1fr!important;margin:10px 0 0}.order-product-specifications{display:flex;min-width:0;align-items:flex-start;padding:10px 12px;border-left:1px solid var(--order-line);background:var(--order-card)}.order-product-row .order-line-selections{display:flex!important;flex-wrap:wrap;align-content:flex-start;gap:5px 14px!important;margin:0!important;padding:0}.order-line-selection{display:inline-flex;align-items:baseline;gap:4px;max-width:100%;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:11px!important;line-height:1.45}.order-line-selection small{flex:0 0 auto;color:var(--order-muted);font:inherit}.order-line-selection strong{min-width:0;color:var(--order-text);font-size:11px;overflow-wrap:anywhere}.order-product-empty-spec{color:var(--order-muted);font-size:11px}
/* SALES-ORDER-CUSTOM-MEDIA-542: keep ordinary-line reference images beside their frozen configuration. */
.order-product-row:not(.package)>.order-product-specifications{flex-direction:column;gap:8px}
.order-product-row:not(.package) .order-line-media{box-sizing:border-box;width:fit-content;max-width:100%;grid-template-columns:minmax(90px,auto) minmax(58px,1fr)!important;margin:0}
.order-product-row:not(.package) .order-line-media>div:last-child{flex-wrap:wrap;overflow:visible}
.order-product-row:not(.package) .order-line-media.has-description{width:min(480px,100%);grid-template-columns:minmax(0,1fr) auto!important}
.order-product-row:not(.package) .order-line-media.text-only{grid-template-columns:minmax(0,1fr)!important}
.order-line-media.has-description>div:first-child{min-width:0}.order-line-media.text-only>div:first-child{display:grid!important}.order-line-media.has-description>div:nth-child(2){max-width:180px}
.order-line-custom-description{margin:3px 0;color:var(--order-text);font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.order-line-custom-description span{color:var(--order-muted)}
@media(max-width:760px){.order-product-row:not(.package) .order-line-media.has-description{grid-template-columns:minmax(0,1fr)!important}.order-line-media.has-description>div:nth-child(2){max-width:100%}}
.order-package-components{display:grid;width:100%;gap:10px}.order-package-components-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.order-package-components-heading span{color:var(--order-muted);font-size:11px}.order-package-components-heading strong{font-size:11px}.order-package-component{display:grid;gap:10px;padding:12px 14px;border:1px solid var(--order-line);border-radius:9px;background:var(--order-soft)}.order-package-component>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.order-package-component>header>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 8px;min-width:0}.order-package-component>header small{grid-row:1/span 2;align-self:stretch;display:flex;align-items:center;padding:3px 7px;border-radius:6px;background:var(--order-blue-soft);color:#2869c7;font-size:10px;font-weight:700}.order-package-component>header span,.order-package-component-media>span{color:var(--order-muted);font-size:10px}.order-package-component>header strong{font-size:12px;overflow-wrap:break-word;word-break:normal}.order-package-component>header>b{flex:0 0 auto;font-size:11px}.order-package-component>.order-package-component-config{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px 20px;padding-top:9px;border-top:1px solid var(--order-line)}.order-package-component-config .order-line-selection{display:flex;min-width:0;align-items:baseline;gap:6px}.order-package-component-config .order-line-selection small{white-space:nowrap}.order-package-component-config .order-line-selection strong{overflow-wrap:break-word;word-break:normal}.order-package-component-config .order-line-selection.wide{grid-column:1/-1}.order-package-component-media{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-top:8px;border-top:1px solid var(--order-line)}.order-package-component-media>span{margin-right:2px}.order-package-component-media button{position:relative;width:52px;height:52px;padding:0;overflow:hidden;border:1px solid var(--order-line);border-radius:8px;background:var(--order-card);cursor:zoom-in}.order-package-component-media img{display:block;width:100%;height:100%;object-fit:cover}.order-package-component-media button>b{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#172033d9;color:#fff;font-size:9px}
.order-product-quantity,.order-product-price{display:grid;align-content:start;min-width:0;padding:14px 12px;border-left:1px solid var(--order-line);background:var(--order-card)}.order-detail-lines article>.order-product-quantity,.order-detail-lines article>.order-product-price{display:grid;justify-content:normal}.order-product-quantity>span,.order-product-price>span{display:none;color:var(--order-muted);font-size:11px}.order-product-quantity>strong{font-size:13px;white-space:nowrap}.order-product-price{gap:5px}.order-price-primary{color:#1f68d3;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.order-price-secondary{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;color:var(--order-muted)}.order-price-secondary>small,.order-price-secondary>strong,.order-price-extra{font-size:11px;line-height:1.4}.order-price-secondary>small{white-space:nowrap}.order-price-secondary>strong{min-width:0;color:var(--order-text);overflow-wrap:anywhere}.order-price-extra{color:var(--order-muted)}.order-price-discount{color:#ce861f;font-size:10px;line-height:1.4}.order-product-price.restricted{grid-column:4/-1;color:var(--order-muted)}
.order-product-totals{display:grid;grid-template-columns:.7fr repeat(3,1fr) 1.2fr;margin:2px 0 0;padding-top:14px;border-top:1px solid var(--order-line)}.order-product-totals>div{padding:11px 15px;background:var(--order-soft)}.order-product-totals>div+div{border-left:1px solid var(--order-line)}.order-product-totals dt{color:var(--order-muted);font-size:11px}.order-product-totals dd{margin:5px 0 0;font-size:14px;font-weight:800}.order-product-totals .deal{background:var(--order-blue-soft)}.order-product-totals .deal dd{color:#1f68d3;font-size:18px}
.order-fulfillment{display:grid;gap:14px}.order-fulfillment .order-section-title p:last-child{margin:5px 0 0;color:var(--order-muted);font-size:12px}
.order-fulfillment-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.order-flow-card{position:relative;display:grid;min-width:0;gap:5px;padding:14px;border:1px solid var(--order-line);border-radius:10px;background:var(--order-soft);color:inherit;font:inherit;text-align:left}.order-fulfillment-links>button.order-flow-card{padding-right:42px;cursor:pointer}.order-fulfillment-links>button.order-flow-card:hover,.order-fulfillment-links>button.order-flow-card:focus-visible{border-color:var(--blue,#2f7df4);background:var(--order-blue-soft);outline:0}.order-flow-card span,.order-flow-card small{color:var(--order-muted);font-size:11px}.order-flow-card strong{overflow-wrap:anywhere;font-size:14px}.order-flow-card b{position:absolute;top:14px;right:12px;color:var(--blue,#2f7df4);font-size:11px}.order-fulfillment-links>article.order-flow-card{cursor:default}
.order-information{display:grid;gap:0;padding-bottom:8px}.order-info-tabs{display:flex;gap:4px;margin:14px -18px 0;padding:0 18px;border-top:1px solid var(--order-line);border-bottom:1px solid var(--order-line);overflow:auto}.order-info-tabs button{flex:0 0 auto;min-height:44px;padding:0 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--order-muted);font:700 12px/1 inherit;cursor:pointer}.order-info-tabs button.active{border-bottom-color:var(--blue,#2f7df4);color:var(--blue,#2f7df4)}
.order-info-panel{padding:16px 0 0}.order-info-panel[hidden]{display:none}.order-info-panel h3{margin:0 0 11px;font-size:14px}.order-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.order-info-grid>div{min-width:0;padding:10px 12px;border-radius:8px;background:var(--order-soft)}.order-info-grid>.wide{grid-column:1/-1}.order-info-grid dt{color:var(--order-muted);font-size:11px}.order-info-grid dd{margin:5px 0 0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px;font-weight:650}
.order-info-group{display:grid;gap:10px;padding:18px 0;border-top:1px solid var(--order-line)}.order-info-group:first-of-type{padding-top:0;border-top:0}.order-info-group>header{display:flex;align-items:baseline;gap:10px}.order-info-group>header h4,.order-info-group>header p{margin:0}.order-info-group>header h4{font-size:13px}.order-info-group>header p{color:var(--order-muted);font-size:11px;line-height:1.5}.order-info-group>.order-info-grid{gap:7px}.order-info-group>.order-info-grid.order-info-columns-1{grid-template-columns:1fr}.order-info-group>.order-info-grid.order-info-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.order-info-group>.order-info-grid.order-info-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.order-info-group>.order-info-grid.order-info-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.order-info-group>.order-info-grid>div{padding:9px 11px}.order-info-group>.order-info-grid>.wide{grid-column:1/-1}.order-info-group>.order-empty{margin:0;padding:10px 12px;border-radius:8px;background:var(--order-soft)}
.order-history{padding:0}.order-history>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;list-style:none}.order-history>summary::-webkit-details-marker{display:none}.order-history>summary>span{display:grid;gap:3px}.order-history>summary small{color:var(--order-muted);font-size:11px;font-weight:500}.order-history>summary>strong{display:flex;align-items:center;gap:7px;color:var(--blue,#2f7df4);font-size:12px}.order-history-action b,.order-history-action i{font:inherit}.order-history-action i{display:none}.order-history[open] .order-history-action b{display:none}.order-history[open] .order-history-action i{display:inline}.order-history[open]>summary{border-bottom:1px solid var(--order-line)}.order-history>.order-timeline,.order-history>.order-empty{margin:16px 20px 18px}
@media(max-width:1180px){.order-task-progress{grid-template-columns:1fr}.order-current-task{padding:0 0 13px;border-right:0;border-bottom:1px solid var(--order-line)}.order-key-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.order-key-facts>div:nth-child(4){border-left:0}.order-key-facts>div:nth-child(n+4){border-top:1px solid var(--order-line)}.order-product-table-head{display:none!important}.order-product-row{grid-template-columns:minmax(130px,.65fr) minmax(240px,1.75fr) 64px minmax(145px,.85fr) minmax(120px,.7fr)}.order-package-component-config{grid-template-columns:repeat(2,minmax(0,1fr))}.order-product-quantity>span,.order-product-price>span{display:block;margin-bottom:2px}.order-fulfillment-links{grid-template-columns:repeat(2,minmax(0,1fr))}.order-info-group>.order-info-grid.order-info-columns-3,.order-info-group>.order-info-grid.order-info-columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.order-detail-page{gap:12px}.order-task-progress{padding:14px}.order-task-progress>ol{grid-template-columns:1fr;gap:6px}.order-task-progress li{grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto;justify-items:start;text-align:left}.order-task-progress li>strong{align-self:center}.order-task-progress li:not(:last-child)::after{top:28px;right:auto;bottom:-7px;left:13px;width:2px;height:auto}.order-key-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.order-key-facts>div:nth-child(3),.order-key-facts>div:nth-child(5){border-left:0}.order-key-facts>div:nth-child(n+3){border-top:1px solid var(--order-line)}.order-product-row{grid-template-columns:76px minmax(0,1fr)}.order-product-row.package{grid-template-areas:"main main" "spec spec" "quantity unit" "quantity subtotal"}.order-product-main,.order-product-specifications{grid-column:1/-1}.order-product-specifications{border-top:1px solid var(--order-line);border-left:0}.order-package-component-config{grid-template-columns:1fr}.order-package-component>header>div{grid-template-columns:1fr}.order-package-component>header small{grid-row:auto;justify-self:start}.order-product-quantity{grid-row:span 2;border-top:1px solid var(--order-line);border-left:0}.order-product-price{border-top:1px solid var(--order-line)}.order-product-price.restricted{grid-column:2}.order-product-totals{grid-template-columns:1fr 1fr}.order-product-totals>div{border-top:1px solid var(--order-line)}.order-product-totals>div:nth-child(odd){border-left:0}.order-product-totals .deal{grid-column:1/-1}.order-fulfillment-links,.order-info-grid{grid-template-columns:1fr}.order-info-grid>.wide{grid-column:auto}.order-info-group{gap:9px}.order-info-group>header{display:grid;gap:3px}.order-info-group>.order-info-grid.order-info-columns-1,.order-info-group>.order-info-grid.order-info-columns-2,.order-info-group>.order-info-grid.order-info-columns-3,.order-info-group>.order-info-grid.order-info-columns-4{grid-template-columns:1fr}.order-info-group>.order-info-grid>.wide{grid-column:auto}.order-info-tabs{margin-right:-14px;margin-left:-14px;padding:0 14px}.order-history>summary{align-items:flex-start}.order-history>summary>strong{text-align:right}}

/* ORDER-CREDIT-APPROVAL-387: reuse the order table and detail card language for
   draft navigation, rejection context, and normalized approval history. */
.order-number-link{appearance:none;margin:0;padding:0;border:0;background:transparent;color:#235fae;font:inherit;font-weight:700;cursor:pointer;text-align:left}.order-number-link:hover{text-decoration:underline}.order-number-link:focus-visible{outline:2px solid var(--blue,#2f7df4);outline-offset:3px;border-radius:3px}.order-list-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.order-list-status{display:grid;justify-items:start;gap:5px;min-width:150px}.order-list-status>small{max-width:240px;color:var(--danger,#b84352);font-size:11px;line-height:1.45;overflow-wrap:anywhere}.order-approval-rejected{display:inline-flex;padding:3px 7px;border:1px solid #efc8ce;border-radius:999px;background:#fff1f2;color:#b84352;font-size:11px;font-weight:700;white-space:nowrap}
.order-approval-records{display:grid;gap:14px;border-color:var(--order-line);box-shadow:var(--shadow,0 8px 28px rgba(30,45,75,.06))}.order-approval-records .order-section-title p:last-child{margin-top:5px;color:var(--order-muted);font-size:12px}.order-approval-record-list{display:grid;gap:10px}.order-approval-record{display:grid;gap:12px;padding:14px 16px;border:1px solid var(--order-line);border-radius:10px;background:var(--order-soft)}.order-approval-record>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-approval-record>header>div{display:grid;gap:3px}.order-approval-record>header small{color:var(--order-muted);font-size:12px}.order-approval-record>dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.order-approval-record>dl>div{min-width:0}.order-approval-record>dl>.wide{grid-column:1/-1}.order-approval-record dt{color:var(--order-muted);font-size:11px}.order-approval-record dd{margin:4px 0 0;color:var(--order-text);font-weight:600;line-height:1.5;overflow-wrap:anywhere}.order-approval-record>.btn{justify-self:start}
[data-theme=dark] .order-number-link{color:#78aaf5}[data-theme=dark] .order-approval-rejected{border-color:#78404a;background:#3b2228;color:#f0a5af}
@media(max-width:760px){.order-list-actions{align-items:stretch;flex-direction:column}.order-approval-record>dl{grid-template-columns:1fr}.order-approval-record>dl>.wide{grid-column:auto}}
[data-theme=dark] .order-detail-page .order-record-hero{background:var(--order-card)}[data-theme=dark] .order-task-progress li.done>span{background:#15372f}[data-theme=dark] .order-task-progress li.error>span{background:#3a2027}
.order-supply-projection{display:grid;gap:12px}.order-supply-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-supply-document{gap:10px}.order-supply-document>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.order-supply-document>header>div{display:grid;min-width:0;gap:3px}.order-supply-document>header strong{overflow-wrap:anywhere;font-size:13px}.order-supply-document>header .order-status{flex:0 0 auto}.order-supply-unit-progress{display:grid;gap:7px}.order-supply-unit-progress>div{display:flex;flex-wrap:wrap;gap:5px 14px;padding-top:8px;border-top:1px solid var(--order-line)}.order-supply-unit-progress strong{font-size:11px}.order-supply-unit-progress span,.order-supply-pending{color:var(--order-muted);font-size:11px}.order-supply-pending{margin:0}
@media(max-width:760px){.order-supply-documents{grid-template-columns:1fr}}

.order-calculated-field input{font-weight:700;color:var(--text,#172033)}

/* SALES-ORDER-PRICE-PRESENTATION-482: compact prices and collapsed-by-default package components. */
.order-product-row.package .order-product-main,.order-product-row.package .order-product-quantity,.order-product-row.package .order-product-price{padding-top:11px;padding-bottom:11px}
.order-quantity-values{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;min-width:0}.order-quantity-values>strong{font-size:13px;white-space:nowrap}.order-product-quantity .order-unshipped{display:inline-block;width:max-content;max-width:100%;padding:2px 6px;border-radius:4px;background:var(--order-blue-soft);color:var(--blue,#2f7df4);font-size:10px;font-weight:700;white-space:nowrap}
.order-package-component{gap:0;padding:0}
.order-package-component>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-width:0;padding:12px 14px;cursor:pointer;list-style:none}
.order-package-component>summary::-webkit-details-marker{display:none}
.order-package-component>summary>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 8px;min-width:0}
.order-package-component>summary small{grid-row:1/span 2;align-self:stretch;display:flex;align-items:center;padding:3px 7px;border-radius:6px;background:var(--order-blue-soft);color:#2869c7;font-size:10px;font-weight:700}
.order-package-component>summary span{color:var(--order-muted);font-size:10px}
.order-package-component>summary strong{font-size:12px;overflow-wrap:break-word;word-break:normal}
.order-package-component>summary>b{font-size:11px;white-space:nowrap}
.order-package-component>summary>i{min-width:28px;color:var(--blue,#2f7df4);font-size:10px;font-style:normal;font-weight:700;text-align:right}
.order-package-component>summary>i::before{content:'收起'}
.order-package-component:not([open])>summary>i::before{content:'展开'}
.order-package-component>.order-package-component-config{gap:8px 20px;padding:11px 14px 13px;border-top:1px solid var(--order-line)}
.order-package-component>.order-package-component-media{justify-content:flex-start!important;gap:7px;padding:10px 14px 12px;border-top:1px solid var(--order-line)}
@media(max-width:1180px){.order-package-component>summary>div{grid-template-columns:auto minmax(0,1fr)}}
@media(max-width:760px){.order-package-component>summary{grid-template-columns:minmax(0,1fr) auto auto;padding:11px 12px}.order-package-component>summary>div{grid-template-columns:1fr}.order-package-component>summary small{grid-row:auto;justify-self:start}.order-package-component>.order-package-component-config{padding:10px 12px 12px}.order-package-component>.order-package-component-media{padding:9px 12px 11px}}
.order-shipment-view[hidden]{display:none}.order-shipment-view{display:grid;gap:14px}.order-shipment-view [data-order-shipment-content]{display:grid;gap:12px}.order-shipment-batch{display:grid;gap:12px;min-width:0;padding:14px;border:1px solid var(--order-line);border-radius:10px}.order-shipment-batch>header{display:flex;justify-content:space-between;gap:12px}.order-shipment-batch>header>div{display:grid;gap:3px}.order-shipment-batch>header strong{color:var(--order-text)}.order-shipment-batch>header small,.order-shipment-facts span,.order-shipment-rows small{color:var(--order-muted);font-size:11px}.order-shipment-batch h4{margin:2px 0 0;font-size:13px}.order-shipment-facts{display:grid;grid-template-columns:2fr 1fr;gap:8px}.order-shipment-facts>div,.order-shipment-rows>div{display:grid;gap:4px;min-width:0;padding:10px 12px;border-radius:8px;background:var(--order-soft)}.order-shipment-facts strong,.order-shipment-rows strong,.order-shipment-rows span{overflow-wrap:anywhere;font-size:12px}.order-shipment-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.order-shipment-rows>.order-empty{grid-column:1/-1;margin:0}@media(max-width:760px){.order-shipment-facts,.order-shipment-rows{grid-template-columns:1fr}}
/* SALES-ORDER-LIST-LAYOUT-535: use the quotation list's single-card layout and density. */
.order-list-card{padding:18px 18px 0;overflow:visible}
.order-list-tools{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:12px;margin-bottom:18px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.order-list-tools .order-search-filter,.order-list-tools .order-list-toolbar-actions{grid-column:span 2}
.order-list-tools label{min-width:0}.order-list-tools input,.order-list-tools select{min-width:0;font-size:12px}.order-list-tools input::placeholder{font-size:12px}
.order-list-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}
.order-list-toolbar-actions .order-create-menu{justify-items:stretch}
.order-list-notice{margin:0 0 18px}
.order-table-wrap{max-width:100%;overflow:auto}
.order-table{width:100%;min-width:1170px;table-layout:fixed}
.order-col-number{width:13%}.order-col-type{width:10%}.order-col-customer{width:14%}.order-col-products{width:18%}.order-col-amount{width:10%}.order-col-owner{width:7%}.order-col-status{width:10%}.order-col-updated{width:9%}.order-col-actions{width:9%}
.order-table th,.order-table td{font-family:inherit}
.order-number-link{max-width:100%;line-height:1.45;overflow-wrap:anywhere}
.order-customer-name,.order-product-summary{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.5;overflow-wrap:anywhere}
.order-amount-cell{text-align:right}.order-cell-primary{display:block;color:var(--order-text);font-weight:700;line-height:1.45}.order-amount-cell small{display:block;margin-top:3px;color:var(--order-muted);font-size:11px}.order-amount-value{white-space:nowrap}
.order-updated-at{line-height:1.5}
.order-list-actions{justify-content:flex-start}
.order-table .order-list-actions>.btn,.order-table .order-list-actions>.order-more-actions>summary{min-height:0;padding:7px 9px;font-size:11px;line-height:normal;white-space:nowrap}
@media(max-width:1380px){.order-list-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.order-list-tools .order-list-toolbar-actions{grid-column:auto;justify-content:flex-start}}
@media(max-width:760px){.order-list-card{padding:14px 14px 0}.order-list-tools{grid-template-columns:1fr}.order-list-tools .order-search-filter,.order-list-tools .order-list-toolbar-actions{grid-column:auto}.order-list-toolbar-actions{justify-content:stretch}.order-list-toolbar-actions .btn,.order-list-toolbar-actions .order-create-menu{flex:1}}
/* PCC-SALES-SKU-568：订单详情每行供应来源徽标 */
.order-line-origin{display:inline-flex;margin-left:8px;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:600;vertical-align:1px}
.order-line-origin.custom{background:#eef4ff;color:#2f7df4}
.order-line-origin.stock{background:#effaf5;color:#1a956c}
/* SALES-ORDER-AMENDMENT-UX-632：申请内直接汇总选配差异。 */
.amendment-entry-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.amendment-edit-panel .order-money-input:has([aria-invalid="true"]){border-color:var(--danger,#cc596a)}
.amendment-edit-panel{margin-top:16px;padding:0 16px 16px;border:1px solid var(--border,#dfe6f0);border-radius:10px}
.amendment-edit-panel .sales-action-dialog-body{margin-top:16px}
.amendment-change-list{margin-top:20px}
.amendment-change-list-head,.amendment-change-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.amendment-change-list-head{margin-bottom:10px}
.amendment-change-list-head span,.amendment-change-card-head small{color:var(--muted,#8491a7);font-size:12px}
.amendment-change-card{padding:14px 16px;margin-top:10px;border:1px solid var(--border,#dfe6f0);border-radius:10px;background:var(--card,#fff)}
.amendment-change-card-head>div:first-child{display:grid;gap:3px;min-width:0}
.amendment-change-card-head>div:last-child{display:flex;gap:8px;flex-shrink:0}
.amendment-change-card-head .btn{padding:6px 10px}
.amendment-change-card ul{margin:10px 0 0;padding-left:18px;color:var(--text,#172033);font-size:13px;line-height:1.7}
.sales-action-dialog .amendment-package-price-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0!important}
.amendment-package-price-prompt>div{display:grid;gap:3px}
.amendment-package-price-prompt span{font-size:12px}
.amendment-package-price-prompt .btn{flex-shrink:0}
.amendment-reason{display:grid;gap:8px;margin-top:20px}
.amendment-reason input{width:100%;box-sizing:border-box}
@media(max-width:760px){.amendment-change-card-head{align-items:flex-start}.amendment-change-card-head>div:last-child{flex-wrap:wrap;justify-content:flex-end}.sales-action-dialog .amendment-package-price-prompt{align-items:flex-start;flex-wrap:wrap}}

/* SALES-ORDER-CREATE-TOP-647: preserve the semantic title for page chrome without taking up page space. */
.order-page .order-create-heading{display:contents}
.order-page .order-create-a11y-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.order-page .order-create-source{margin:0;color:var(--muted,#7c879b);font-size:12px}
.order-page [data-order-workbench]>.sim-page>.cc-heading{display:none}
.order-page [data-order-workbench] .sim-context{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'title title' 'fields actions';align-items:end;gap:8px 12px;padding:12px 16px}
.order-page [data-order-workbench] .sim-context-icon,.order-page [data-order-workbench] .sim-context-title small{display:none}
.order-page [data-order-workbench] .sim-context-head{display:contents}
.order-page [data-order-workbench] .sim-context-title{grid-area:title}
.order-page [data-order-workbench] .sim-context-fields{grid-area:fields}
.order-page .order-agent-picker{min-width:0}.order-page .order-agent-picker .order-field-error{margin:5px 0 0;font-size:12px}
.order-page [data-order-workbench] .sim-context-actions{grid-area:actions;align-self:end}
.order-page [data-order-workbench] .sim-context-toolbar{padding-top:0;border-top:0}
@media(max-width:720px){.order-page [data-order-workbench] .sim-context{grid-template-columns:minmax(0,1fr);grid-template-areas:'title' 'fields' 'actions'}.order-page [data-order-workbench] .sim-context-actions{justify-self:end}}
.order-details-sidebar{position:sticky;top:16px;display:grid;gap:8px;align-content:start;min-width:0;max-height:calc(100vh - 32px);overflow-y:auto;overscroll-behavior:contain}
.order-details-sidebar>.cc-section{margin-bottom:0}
.order-details-sidebar>.order-summary{position:static;grid-template-columns:minmax(0,1fr)}
.order-details-estimate>[data-order-packing-estimate]{padding:0;border-top:0}
.order-details-estimate .order-section-heading{align-items:flex-start;flex-direction:column;gap:4px}
.order-details-estimate .order-shipment-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.order-details-estimate .order-shipment-rows{grid-template-columns:minmax(0,1fr)}
.order-delivery-subsection{display:grid;gap:12px;padding-top:14px;border-top:1px solid var(--border,#dfe6f0)}
.order-delivery-subsection h4{margin:0;font-size:14px}
.order-delivery-subsection>[data-freight-row]+[data-freight-row]{margin-top:4px}
@media(max-width:1180px){.order-details-sidebar{position:static;max-height:none;overflow:visible;overscroll-behavior:auto}}
@media(max-width:760px){.order-details-estimate .order-shipment-facts{grid-template-columns:minmax(0,1fr)}}

/* SALES-ORDER-DETAIL-READABILITY-680: full-width records only in these detail sections. */
[data-order-packing-estimate].cc-section .order-shipment-rows{grid-template-columns:minmax(0,1fr)}
[data-order-supply-projection] .order-supply-documents,[data-order-book-sources] .order-fulfillment-links{grid-template-columns:minmax(0,1fr)}
[data-order-supply-projection] .order-supply-document{grid-template-columns:minmax(190px,1fr) minmax(0,1.6fr) auto;align-items:center;gap:16px}
[data-order-supply-projection] .order-supply-identity{display:grid;min-width:0;gap:3px}
[data-order-supply-projection] .order-supply-identity>small{color:var(--order-muted);font-size:11px}
[data-order-supply-projection] .order-supply-identity>strong{overflow-wrap:anywhere;font-size:13px}
[data-order-supply-projection] .order-supply-document>.order-status{justify-self:end}
[data-order-supply-projection] .order-supply-unit-progress>div:first-child{padding-top:0;border-top:0}
.order-book-source>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.order-book-source>header>div{display:grid;min-width:0;gap:3px}
.order-book-source>header em{flex:0 0 auto;font-size:13px;font-style:normal;font-weight:700}
.order-book-source-details{display:flex;flex-wrap:wrap;gap:4px 16px;padding-top:9px;border-top:1px solid var(--order-line)}
.order-book-source-details span{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:760px){[data-order-supply-projection] .order-supply-document{grid-template-columns:minmax(0,1fr) auto;gap:10px}[data-order-supply-projection] .order-supply-unit-progress{grid-column:1/-1;grid-row:2}[data-order-supply-projection] .order-supply-document>.order-status{grid-column:2;grid-row:1}}

/* SALES-ORDER-DETAIL-COMPACT-LINKS-682: keep detail facts compact and separate them from the first box. */
[data-order-packing-estimate].cc-section .order-section-title{align-items:center}
[data-order-packing-estimate].cc-section .order-section-title p{color:var(--order-muted);font-size:12px}
.order-estimate-summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px 14px;min-width:0;color:var(--order-text);font-size:13px}
.order-estimate-summary strong{font-size:14px;white-space:nowrap}
.order-estimate-summary span{padding-left:14px;border-left:1px solid var(--order-line);white-space:nowrap}
[data-order-packing-estimate].cc-section .order-estimate-rows{gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid var(--order-line)}
[data-order-packing-estimate].cc-section .order-estimate-rows>.order-estimate-box{gap:4px;padding:9px 12px}
.order-estimate-box-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 12px}
.order-estimate-box-head small{white-space:normal;text-align:right}
@media(max-width:760px){[data-order-packing-estimate].cc-section .order-section-title{align-items:flex-start;flex-direction:column;gap:8px}.order-estimate-summary{justify-content:flex-start}.order-estimate-box-head{display:grid}.order-estimate-box-head small{text-align:left}}

[data-order-book-sources] .order-book-source{padding:11px 14px}
[data-order-book-sources] .order-book-source>header>.order-book-source-main{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px}
.order-book-source-main em{color:var(--order-text)}
.order-book-source-status{flex:0 0 auto;color:var(--order-muted);font-size:12px}
[data-order-book-sources] .order-book-source-details{margin-top:8px;padding-top:7px}
.order-book-source-link{border:0;padding:0;background:none;color:var(--blue,#2875d9);font:inherit;font-weight:600;cursor:pointer}
.order-book-source-link:hover,.order-book-source-link:focus-visible{text-decoration:underline}
.order-book-source-link:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}
