#dialog.order-detail-dialog{width:min(1680px,96vw);max-width:96vw;height:94vh;max-height:94vh;overflow:hidden;padding:0}
/* Order fee overview: preserve source amounts and keep comparisons separate. */
.fee-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.fee-metric{padding:10px 14px;background:#f7faf9;border:1px solid #e4eeea;border-radius:6px;min-width:0}
.fee-metric h4{font-size:12px;color:#758891;margin:0 0 6px;font-weight:500}
.fee-metric-value{font-size:20px;font-weight:650;color:#244c48;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fee-metric-value+.fee-metric-value{margin-top:10px;padding-top:8px;border-top:1px dashed #dce6e2}
.fee-workspace .fee-metric-value small{font-size:11px;font-weight:400;display:inline;color:#7a8d95}
.fee-workspace .fee-metric-value .fee-reference,.fee-workspace .fee-metric-value .fee-stale{display:block;margin-top:4px}
.fee-workspace .fee-loss,.fee-workspace .fee-over{color:#c36b24}
.fee-workspace .fee-under{color:#177c70}
.fee-observations{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.fee-observations span{font-size:11px;background:#fff8eb;border:1px solid #f1dfbd;color:#956725;padding:5px 9px;border-radius:4px}
.fee-comparison{border:1px solid #e1e8eb;border-radius:6px;padding:14px;margin:16px 0}
.fee-comparison h3,.fee-detail-heading h3{font-size:13px;margin:0}
.fee-comparison .detail-note{margin:8px 0 12px}
.fee-comparison td:not(:first-child),.fee-comparison th:not(:first-child),.business-fees .fee-number{text-align:right;font-variant-numeric:tabular-nums}
.fee-workspace .fee-comparison td small{display:inline;font-size:10px;color:#8999a2}
.fee-workspace .fee-comparison td:first-child small,.fee-workspace .fee-comparison td .fee-stale{display:block}
.fee-difference{font-weight:600}
.fee-detail-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px}
.fee-detail-heading>span,.fee-group summary>span{font-size:11px;font-weight:400;color:#8b99a1}
.fee-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.fee-detail-column{display:flex;flex-direction:column;gap:12px;min-width:0}
.fee-group{border:1px solid #e1e8eb;border-radius:6px;min-width:0;overflow:hidden}
.fee-group h4{margin:0;padding:10px 12px;background:#f6f8fb;font-size:12px}
.fee-group h4 span{margin-left:6px;font-size:11px;color:#8b99a1;font-weight:400}
.fee-group .fee-zero,.fee-group .fee-missing{border-top:1px solid #edf1f3}
.fee-group .fee-zero summary,.fee-group .fee-missing summary{padding:8px 12px;background:#fafbfc;font-weight:400;color:#6e818c}
.fee-workspace .fee-currency-issue{display:block;color:#a56d29;max-width:150px;line-height:1.4;margin-top:3px}
.fee-value[title]{cursor:help}
.fee-group summary{padding:11px 14px;background:#f6f8fb;cursor:pointer;font-size:12px;font-weight:550}
.fee-group summary>span{margin-left:6px}
.fee-group .detail-note{padding:0 14px}
.fee-workspace .business-fees{width:100%;min-width:0}
.fee-workspace .business-fees td,.fee-workspace .business-fees th{padding:7px 10px;font-size:11px;overflow-wrap:anywhere}
.fee-workspace .business-fees td small{font-size:10px}
.fee-workspace .fee-stale{color:#a77d31}
@media(max-width:1000px){.fee-detail-grid{grid-template-columns:1fr}.fee-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.fee-metric{padding:10px}.fee-metric-value{font-size:17px}.fee-comparison{padding:10px}.fee-comparison table{min-width:520px}}
.order-detail-dialog #dialog-content{height:100%;display:flex;flex-direction:column;min-height:0}
.order-detail-dialog .dialog-head{position:static;flex:none;padding:12px 20px;background:#fff;border-bottom:1px solid #e1e8eb}
.order-detail-dialog .dialog-head h2{font-size:16px;margin:0}
.order-detail-dialog .dialog-body{padding:0;display:flex;flex-direction:column;gap:0;flex:1;min-height:0;overflow:hidden}
.detail-workspace-hero{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,2fr);flex:none;background:#fff;border-bottom:1px solid #e1e8eb}
.detail-workspace-hero .detail-summary{border:0;border-right:1px solid #edf1f3;border-radius:0;padding:16px 20px;min-width:0}
.detail-workspace-hero .detail-order-title{gap:8px}.detail-workspace-hero .detail-order-title h3{font-size:17px;margin:5px 0;line-height:1.4}
.detail-workspace-hero .detail-summary-tags{border:0;padding:0;margin:8px 0 0;gap:6px 14px;font-size:11px}
.detail-workspace-hero .detail-summary-tags b{margin-left:5px}.detail-workspace-hero .detail-note{margin-top:6px}
.detail-workspace-steps{padding:16px 20px;min-width:0}.detail-workspace-steps h3{font-size:12px;margin:0 0 14px}.detail-workspace-steps h3 small{font-size:10px;font-weight:400;margin-left:8px}
.detail-workspace-steps .detail-milestones{grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
.detail-workspace-steps .detail-milestone{position:relative;padding:0 10px 0 0;background:none;border:0;border-radius:0;min-width:0}
.detail-workspace-steps .detail-milestone:not(:last-child):after{content:'';position:absolute;height:1px;background:#dce8e4;top:11px;left:30px;right:8px}
.detail-workspace-steps .detail-node-label{position:relative;z-index:1;gap:7px;margin-bottom:9px}.detail-workspace-steps .detail-node-label span{background:#fff;padding-right:8px}
.detail-workspace-steps .detail-milestone time{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.detail-workspace-tabs{display:flex;flex-wrap:wrap;flex:none;background:#fff;padding:0 18px;border-bottom:1px solid #dfe7eb;gap:4px}
.detail-workspace-tabs button{border:0;border-radius:0;background:none;padding:12px 16px;border-bottom:2px solid transparent;color:#71818a;font-size:12px}
.detail-workspace-tabs button[aria-selected=true]{color:#166a61;border-bottom-color:#166a61;font-weight:650;background:#f5faf8}
.detail-workspace-tabs button span{font-size:10px;padding:2px 5px;background:#edf2f4;border-radius:4px;margin-left:7px;font-weight:400}
.detail-workspace-content{flex:1;min-height:0;overflow:auto;padding:16px 20px;overscroll-behavior:contain;scrollbar-gutter:stable}
.detail-workspace-panel{min-width:0}.detail-workspace-panel:focus{outline:none}
.detail-fulfillment-top{margin-bottom:12px}
.detail-workspace-panel .detail-fulfillment-top>.detail-section{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:12px;padding:10px 14px}
.detail-workspace-panel .detail-fulfillment-top .detail-section-head{border:0;margin:0;padding:0;min-height:0}
.detail-workspace-panel .detail-fulfillment-top .detail-durations{grid-template-columns:repeat(6,minmax(0,1fr));background:#f7faf9;border:1px solid #e7eeeb}
.detail-workspace-panel .detail-fulfillment-top .detail-durations>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:9px 12px;min-width:0;border-right:1px solid #e7eeeb}
.detail-workspace-panel .detail-fulfillment-top .detail-durations>div:last-child{border-right:0}
.detail-workspace-panel .detail-fulfillment-top .detail-durations small{font-size:11px;margin:0;white-space:nowrap}
.detail-workspace-panel .detail-fulfillment-top .detail-durations strong{font-size:13px;text-align:right;overflow-wrap:anywhere}
.detail-workspace-panel .detail-fulfillment-top .detail-note{font-size:10px;margin:8px 0 0}
.detail-workspace-panel .detail-fulfillment-top .detail-fold{grid-column:1/-1;margin-top:6px;padding-top:6px}
.detail-time-context{font-size:10px;color:#8999a2;margin:10px 0}
@media(min-width:761px) and (max-width:1400px){.detail-workspace-panel .detail-fulfillment-top .detail-durations{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-workspace-steps .detail-milestones{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:10px}}
@media(max-width:760px){.detail-workspace-panel .detail-fulfillment-top>.detail-section{grid-template-columns:1fr;row-gap:8px}.detail-workspace-panel .detail-fulfillment-top .detail-durations{grid-template-columns:1fr}.detail-workspace-panel .detail-fulfillment-top .detail-durations>div{padding:8px 10px;border-right:0;border-bottom:1px solid #e7eeeb}.detail-workspace-panel .detail-fulfillment-top .detail-durations>div:last-child{border-bottom:0}}
.detail-basic-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:stretch}
.detail-basic-main,.detail-basic-notes{min-width:0}.detail-basic-main{display:grid;gap:12px;align-content:start}.detail-basic-notes{display:flex;flex-direction:column;gap:12px}
.detail-basic-notes>[data-detail-section="notes"]{margin-top:0}
.detail-workspace-hero .detail-order-title{flex-wrap:wrap}
.detail-header-marks{display:flex;flex-wrap:wrap;gap:5px;flex-basis:100%;width:100%}
.detail-header-marks .source-mark{margin:0;padding:2px 6px;border:1px solid #b8d9ff;border-radius:2px;color:#1675db;background:#f2f8ff;font-size:11px;overflow-wrap:anywhere}
.detail-header-marks [data-mark-kind="异常类型"]{color:#c97518;border-color:#f0cfaa;background:#fff9f0}
.detail-header-marks [data-mark-kind="待办类型"]{color:#168c93;border-color:#a9e1de;background:#effbfa}
.detail-workspace-panel .detail-customer-remark{background:#f1f5fd;border:0;border-radius:3px;padding:12px 14px}
.detail-workspace-panel .detail-customer-remark .detail-section-head{margin-bottom:6px}
.detail-workspace-panel .detail-customer-remark .detail-section-head h3{font-size:12px;font-weight:500;color:#66778d}
.detail-customer-remark .source-remark{padding:0;border:0;background:none;margin:0}
.detail-customer-remark .source-remark p{color:#245dcc;font-size:12px;margin:0;line-height:1.6}
.detail-remark-provenance{font-size:10px;color:#8493a4;margin-top:8px}
.detail-remark-provenance summary{cursor:pointer}
.detail-sidebar-history{max-height:340px;overflow:auto;overscroll-behavior:contain;border:1px solid #e1e8eb;border-radius:7px;background:white}
.detail-workspace-panel .detail-sidebar-history .detail-section{border:0;border-radius:0;padding:12px 14px;margin:0}
.detail-workspace-panel .detail-sidebar-history .detail-section-head{margin-bottom:8px}
.detail-sidebar-history .case-block{padding:10px;margin:8px 0;font-size:11px}
.detail-sidebar-history .case-block h3{font-size:12px}
.detail-sidebar-history .case-block p{margin:6px 0}
.detail-sidebar-history .audit{font-size:11px;overflow-wrap:anywhere}
.detail-sidebar-history .audit time{display:block}
.detail-workspace-panel .detail-sidebar-history .detail-audit{border-top:1px solid #edf1f3}

.detail-workspace-panel .detail-basic-notes .detail-durations{grid-template-columns:1fr;background:none;border:0}
.detail-workspace-panel .detail-basic-notes .detail-durations>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;border:0;border-bottom:1px dashed #e3e8ec}
.detail-workspace-panel .detail-basic-notes .detail-durations small{margin:0;flex-shrink:0;font-size:11px}
.detail-workspace-panel .detail-basic-notes .detail-durations strong{text-align:right;font-size:12px;overflow-wrap:anywhere}
.detail-workspace-panel .detail-basic-notes .detail-time-groups{grid-template-columns:1fr;gap:12px}
.detail-workspace-panel .detail-basic-notes .detail-section-head{flex-wrap:wrap}
.detail-basic-information{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.detail-basic-information>div{min-width:0;display:flex}
.detail-basic-information>.detail-section,.detail-basic-information>div>.detail-section{width:100%;height:100%;box-sizing:border-box}
.detail-workspace-panel .detail-basic-information .order-facts{grid-template-columns:1fr;gap:0}
.detail-workspace-panel .detail-basic-information .order-facts>div{min-height:27px;align-items:baseline;line-height:1.7}
.detail-workspace-panel .detail-basic-information .order-facts small{margin:0}
.detail-workspace-panel .detail-basic-information .order-facts>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px}
.detail-basic-main>[data-detail-section="goods"]{min-width:0}
/* Metadata stays on the same line; dates in tracking retain their own timeline layout. */
.detail-workspace-panel .detail-section-head>span{line-height:1.6;text-align:right}
.detail-workspace-panel .detail-section-head .detail-calendar,.detail-workspace-panel .detail-note .detail-calendar{display:inline!important}
.detail-workspace-panel .detail-section-head .detail-weekday,.detail-workspace-panel .detail-note .detail-weekday{display:inline!important;margin-left:4px!important;font-size:inherit!important}
.detail-workspace-panel .detail-basic-notes .detail-section-head{align-items:center}
.detail-workspace-panel .detail-basic-notes .detail-note{font-size:10px;line-height:1.7;margin:8px 0 0}
.detail-workspace-panel .detail-basic-notes .detail-fold{margin-top:10px;padding-top:10px}
.detail-workspace-panel .detail-customer-remark{border:1px solid #dfe7f3}
.detail-workspace-panel .detail-customer-remark .detail-section-head{border:0;padding:0;min-height:20px}
.detail-sidebar-history .detail-ok{background:#f6f9f9;padding:9px 10px}
.detail-workspace-panel .sku-detail-table{min-width:0;width:100%}
.detail-workspace-panel .sku-detail-table th{font-size:11px;white-space:normal}
.detail-workspace-panel .sku-detail-table td{font-size:12px;overflow-wrap:anywhere}
@media(max-width:1100px){.detail-basic-information{grid-template-columns:1fr}}
.detail-workspace-panel .detail-section{padding:14px 16px;border-radius:6px;min-width:0}
.detail-workspace-panel .detail-section-head{min-height:26px;align-items:center;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #edf1f3}.detail-workspace-panel .detail-section-head h3{font-size:13px}
.detail-workspace-panel .order-facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
.detail-workspace-panel .order-facts>div{min-width:0;display:grid;grid-template-columns:86px minmax(0,1fr);align-items:baseline;gap:8px}.detail-workspace-panel .order-facts b{font-size:12px;font-weight:500;overflow-wrap:anywhere}
.detail-workspace-panel .order-facts small{font-size:11px}.detail-workspace-panel .detail-note{margin-top:10px}
.detail-workspace-panel .detail-durations{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
.detail-workspace-panel .detail-section+.detail-section{margin-top:14px}
.detail-workspace-panel .source-remark p{white-space:pre-wrap;overflow-wrap:anywhere}
.detail-workspace-panel .table-wrap{max-width:100%;overflow:auto}.detail-workspace-panel th,.detail-workspace-panel td{padding:10px 12px}
.detail-workspace-panel .detail-audit{margin-top:14px}.detail-workspace-panel .detail-parcel-head{margin-bottom:14px}
.detail-workspace-panel .timeline li{padding-bottom:14px}.detail-workspace-panel .detail-fold{margin-top:12px;padding-top:12px}
@media(max-width:1100px){.detail-workspace-hero{grid-template-columns:300px minmax(0,1fr)}.detail-workspace-steps{padding:16px 12px}.detail-workspace-steps .detail-node-label{font-size:11px;gap:4px}.detail-basic-grid{grid-template-columns:minmax(0,1fr) 280px}.detail-workspace-panel .order-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-workspace-panel .order-facts>div{display:block}}
@media(max-width:760px){#dialog.order-detail-dialog{width:98vw;max-width:98vw;height:96vh;max-height:96vh}.order-detail-dialog .dialog-body{overflow:auto;display:block}.detail-workspace-hero{display:block}.detail-workspace-hero .detail-summary{padding:12px 14px;border-right:0}.detail-workspace-hero .detail-summary-tags{flex-direction:row}.detail-workspace-steps{padding:12px 14px}.detail-workspace-steps .detail-milestones{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 6px}.detail-workspace-steps .detail-milestone:after{display:none}.detail-workspace-tabs{position:sticky;top:0;z-index:2;padding:0 8px;gap:0}.detail-workspace-tabs button{padding:10px;font-size:11px}.detail-workspace-tabs button span{margin-left:4px}.detail-workspace-content{overflow:visible;padding:12px;scrollbar-gutter:auto}.detail-basic-grid{grid-template-columns:1fr;gap:12px}.detail-workspace-panel .detail-durations{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-workspace-panel .detail-durations>div{display:block}.detail-workspace-panel .detail-section{padding:14px}.detail-workspace-panel .order-facts{gap:12px}.detail-workspace-panel .detail-section-head{flex-wrap:wrap}}
