/* Reference-matched order workspace. Loaded last so the existing portal shell
   remains intact while this view owns its geometry. */
.parts-order-exact-page{background:#f5f8fb!important;padding:0 14px 28px!important;max-width:none!important}
.parts-order-exact-new{padding:10px 15px;white-space:nowrap;background:#078f8e!important;border-color:#078f8e!important;color:#fff!important}
.parts-order-exact-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:14px;align-items:start;max-width:1560px;margin:0 auto}
.parts-order-exact-list,.parts-order-exact-detail{min-width:0}
.parts-order-exact-list{background:#fff;border:1px solid #d7e3ee;border-radius:18px;padding:14px;box-shadow:0 3px 12px rgba(26,58,90,.05);position:sticky;top:12px;max-height:calc(100vh - 96px);overflow:hidden}
.parts-order-exact-list-head{display:flex;align-items:flex-start;justify-content:space-between;padding:2px 4px 12px}.parts-order-exact-list-head h2{margin:0;color:#172f50;font-size:20px;line-height:1.2}.parts-order-exact-list-head small{display:block;color:#7890a9;margin-top:6px}.parts-order-exact-list-head>b{background:#dff5f4;color:#078f8e;border-radius:50%;min-width:30px;height:30px;display:grid;place-items:center;font-size:13px}
.parts-order-exact-search{display:flex;align-items:center;gap:8px;border:1px solid #cfddea;border-radius:10px;padding:0 11px;height:42px;color:#7390ab;font-size:20px;margin-bottom:12px}.parts-order-exact-search input{border:0;outline:0;background:transparent;width:100%;font:inherit;font-size:13px;color:#183452}.parts-order-exact-list-items{overflow:auto;max-height:calc(100vh - 220px);padding-right:2px}.parts-order-exact-list-item{display:flex;width:100%;text-align:left;align-items:flex-start;justify-content:space-between;gap:10px;background:#fff;border:1px solid #d6e1eb;border-radius:12px;padding:13px 12px;margin:0 0 9px;cursor:pointer;color:#213b59}.parts-order-exact-list-item:hover{border-color:#0b9a9b}.parts-order-exact-list-item.selected{border:2px solid #08a3a2;background:#effaf9;padding:12px 11px}.parts-order-exact-list-main{display:flex;min-width:0;flex-direction:column;gap:3px}.parts-order-exact-list-main strong{color:#078f8e;font-size:16px}.parts-order-exact-list-main b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.parts-order-exact-list-main small{color:#7890a9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.parts-order-exact-list-meta{display:flex;align-items:flex-end;flex-direction:column;gap:8px;white-space:nowrap}.parts-order-exact-list-meta em{font-style:normal;font-size:11px;color:#2571c8;background:#e8f2ff;border-radius:5px;padding:3px 6px}.parts-order-exact-list-meta small{color:#7890a9;font-size:11px}.parts-order-exact-empty{text-align:center;color:#8094a9;padding:38px 18px}.parts-order-exact-detail{background:#fff;border:1px solid #d7e3ee;border-radius:18px;padding:18px;box-shadow:0 3px 12px rgba(26,58,90,.05)}
.parts-order-exact-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid #dfe8f0;padding:0 2px 16px}.parts-order-exact-eyebrow{margin:0 0 5px;text-transform:uppercase;letter-spacing:.07em;color:#078f8e;font-weight:800;font-size:12px}.parts-order-exact-header h1{margin:0;color:#122f52;font-size:31px;line-height:1.1;display:flex;align-items:center;gap:10px}.parts-order-exact-header p:last-child{margin:6px 0 0;color:#7c93aa}.parts-order-exact-status{font-size:12px;font-weight:700;color:#2476cf;background:#e9f2ff;border:1px solid #cfe1f7;border-radius:6px;padding:6px 9px;white-space:nowrap}.parts-order-exact-head-actions{display:flex;align-items:center;gap:8px}.parts-order-exact-head-actions .btn{white-space:nowrap;padding:9px 13px}.parts-order-exact-head-actions .btn.primary{background:#078f8e;color:#fff;border-color:#078f8e}.parts-order-exact-head-actions .btn.danger{color:#ca2834;border-color:#f1b7be;background:#fff}
.parts-order-exact-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.parts-order-exact-facts article{display:flex;align-items:center;gap:11px;background:#f8fbfd;border:1px solid #dce7ef;border-radius:12px;padding:12px 13px;min-width:0}.parts-order-exact-fact-icon{height:38px;width:38px;display:grid;place-items:center;border-radius:10px;background:#f0f6fa;color:#173f67;font-size:21px;flex:none}.parts-order-exact-facts article>div{min-width:0;display:flex;flex-direction:column;gap:3px}.parts-order-exact-facts small{color:#7890a9;text-transform:uppercase;font-size:10px;font-weight:800}.parts-order-exact-facts strong{color:#163554;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.parts-order-exact-facts span{color:#7c93aa;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.parts-order-exact-main-grid{display:grid;grid-template-columns:minmax(0,.69fr) minmax(420px,1fr);gap:14px;align-items:start}.parts-order-exact-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.parts-order-exact-card{border:1px solid #d7e3ee;border-radius:14px;background:#fff;min-width:0;overflow:hidden}.parts-order-exact-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #e1eaf1}.parts-order-exact-card h2{margin:0;color:#183654;font-size:18px}.parts-order-exact-card header p{margin:5px 0 0;color:#8095aa;font-size:12px}.parts-order-exact-card header .btn{font-size:12px;padding:8px 10px;white-space:nowrap}
.parts-order-exact-table-wrap{overflow:auto}.parts-order-exact-table-wrap table{border-collapse:collapse;width:100%;min-width:550px}.parts-order-exact-table-wrap th{background:#f2f6fa;text-align:left;color:#6f879f;font-size:11px;text-transform:uppercase;padding:11px 11px}.parts-order-exact-table-wrap td{border-top:1px solid #e4ecf2;padding:12px 11px;color:#223f5d;font-size:13px}.parts-order-exact-table-wrap td:first-child strong{color:#078f8e}.parts-order-exact-table-wrap td:last-child{white-space:nowrap}.parts-order-exact-table-wrap .parts-order-exact-unit-price{white-space:nowrap;font-weight:700;color:#087f83}.parts-order-exact-table-wrap .parts-order-exact-empty{padding:30px}
.parts-order-exact-options{padding:12px 12px 2px}.parts-order-exact-option{display:grid;grid-template-columns:22px 38px minmax(0,1fr) 174px;grid-template-rows:auto auto;gap:1px 9px;align-items:center;border:1px solid #dce6ee;border-radius:12px;padding:11px 12px;margin-bottom:10px;cursor:pointer;transition:.15s;background:#fff}.parts-order-exact-option.selected{border-color:#09a3a3;background:#effbf9;box-shadow:0 0 0 1px rgba(9,163,163,.12)}.parts-order-exact-radio{grid-column:1;grid-row:1 / span 2;width:18px;height:18px;accent-color:#079d9e}.parts-order-exact-option-icon{grid-column:2;grid-row:1 / span 2;height:34px;width:34px;display:grid;place-items:center;border-radius:9px;background:#eef8f7;color:#078f8e;font-size:19px}.parts-order-exact-option-copy{grid-column:3;grid-row:1 / span 2;display:flex;flex-direction:column;min-width:0;gap:2px}.parts-order-exact-option-copy>strong{font-size:15px;color:#193955}.parts-order-exact-option-copy>small{font-size:11px;color:#7890a9;line-height:1.28}.parts-order-exact-time{display:flex;align-items:center;gap:4px;color:#173d62;margin-top:6px;font-size:11px}.parts-order-exact-time i{font-style:normal;color:#078f8e}.parts-order-exact-time b{font-weight:700;color:#7890a9}.parts-order-exact-time strong{font-size:12px}.parts-order-exact-price{grid-column:4;grid-row:1 / span 2;display:flex;flex-direction:column;gap:4px;align-self:center}.parts-order-exact-price small{font-size:10px;line-height:1.1;color:#7890a9;font-weight:800}.parts-order-exact-price input{width:100%;box-sizing:border-box;border:1px solid #c9d9e7;border-radius:8px;padding:9px 11px;color:#193955;background:#fff;font-size:15px;font-weight:700}.parts-order-exact-info{margin:0 12px 12px;background:#eaf6ff;border:1px solid #d4eafb;border-radius:8px;color:#2779c2;font-size:11px;line-height:1.35;padding:10px 11px}.parts-order-exact-total{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #dfe9ef;background:#f0fbfa;padding:14px 16px;color:#193955}.parts-order-exact-total span{font-weight:700;font-size:13px}.parts-order-exact-total strong{color:#078f8e;font-size:24px}.parts-order-exact-actions{display:flex;gap:8px;padding:12px;flex-wrap:wrap}.parts-order-exact-actions .btn{flex:1;min-width:120px;white-space:nowrap;padding:10px 9px;font-size:12px}.parts-order-exact-actions .btn.primary{background:#078f8e;border-color:#078f8e;color:#fff}.parts-order-exact-readonly{padding:12px 16px;color:#8094a9;font-size:12px}.parts-order-exact-event{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid #eef2f5}.parts-order-exact-event:last-child{border-bottom:0}.parts-order-exact-event>span{width:10px;height:10px;border-radius:50%;background:#08a2a1;margin-top:4px;box-shadow:0 0 0 4px #e6f8f7;flex:none}.parts-order-exact-event strong{display:block;color:#1d3b59;font-size:13px}.parts-order-exact-event small{display:block;color:#8094a9;font-size:11px;margin-top:3px}.parts-order-exact-event p{margin:4px 0 0;color:#56708d;font-size:12px}.parts-order-exact-muted{padding:16px;color:#8094a9;font-size:12px}.parts-order-exact-docs-card>div:not(.parts-order-exact-note){padding:14px 16px}.parts-order-exact-docs-card a{display:block;color:#2779c2;text-decoration:none;padding:4px 0;font-size:12px}.parts-order-exact-note{border-top:1px solid #e1eaf1;padding:12px 16px}.parts-order-exact-note small{color:#7890a9;font-weight:800;font-size:10px}.parts-order-exact-note p{margin:5px 0 0;color:#294968;font-size:12px}
.parts-order-exact-workflow-hint{color:#2779c2!important;font-size:11px!important;line-height:1.35;margin-top:7px!important}
@media(max-width:1200px){.parts-order-exact-workspace{grid-template-columns:290px minmax(0,1fr)}.parts-order-exact-main-grid{grid-template-columns:1fr}.parts-order-exact-offer-card{max-width:none}.parts-order-exact-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.parts-order-exact-head-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:860px){.parts-order-exact-workspace{display:block}.parts-order-exact-list{position:static;max-height:none;margin-bottom:12px}.parts-order-exact-list-items{max-height:300px}.parts-order-exact-header{display:block}.parts-order-exact-head-actions{justify-content:flex-start;margin-top:12px}.parts-order-exact-facts{grid-template-columns:1fr}.parts-order-exact-bottom-grid{grid-template-columns:1fr}}
@media(max-width:560px){.parts-order-exact-page{padding:0 7px 18px!important}.parts-order-exact-detail{padding:11px}.parts-order-exact-header h1{font-size:24px}.parts-order-exact-option{grid-template-columns:21px 32px minmax(0,1fr);grid-template-rows:auto auto auto}.parts-order-exact-option-icon{width:29px;height:29px}.parts-order-exact-price{grid-column:3;grid-row:3}.parts-order-exact-actions .btn{min-width:100%;}.parts-order-exact-head-actions .btn{flex:1}}
.parts-order-exact-list-item.completed{opacity:.54;filter:grayscale(.35);background:#f6f8fa}.parts-order-exact-list-item.completed:hover{opacity:.72}.parts-order-complete-button{background:#fff7e8!important;border-color:#e2b66b!important;color:#9b6100!important}.parts-order-complete-button:hover{background:#fff0d3!important}
/* Prioritize the parts table (including its photo controls) on wide screens. */
.parts-order-exact-main-grid{grid-template-columns:minmax(0,1.5fr) minmax(520px,1fr)}
@media(max-width:1460px){.parts-order-exact-main-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep long order-offer actions inside the card at every desktop width. */
.parts-order-exact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.parts-order-exact-actions .btn{width:100%;min-width:0;box-sizing:border-box;min-height:48px;padding:8px 10px;white-space:normal;line-height:1.15;overflow-wrap:anywhere}
@media(max-width:680px){.parts-order-exact-actions{grid-template-columns:1fr}.parts-order-exact-actions .btn{min-height:42px}}
@media(min-width:561px){.parts-order-exact-option{grid-template-columns:22px 38px minmax(0,1fr) 156px}}
.parts-order-exact-time{flex-wrap:wrap;row-gap:3px}
.parts-order-exact-time b,.parts-order-exact-time strong{white-space:nowrap}
/* Organize order details as two independent stacks: items/history and delivery/documents. */
.parts-order-exact-main-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;align-items:start}
.parts-order-exact-column{display:flex;flex-direction:column;gap:14px;min-width:0;align-items:stretch}
.parts-order-exact-column>.parts-order-exact-card{width:100%;box-sizing:border-box}
@media(max-width:1460px){.parts-order-exact-main-grid{grid-template-columns:minmax(0,1fr)}}
