/* Additive order workspace layout; preserve established QRM theme. */
.order-filter-toolbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0 8px;position:relative}
.order-filter-toolbar label{margin:0;min-width:150px;font-size:12px;color:var(--muted);flex:0 1 210px}
.order-filter-toolbar .order-search-label{flex:1 1 300px}
.order-filter-toolbar input,.order-filter-toolbar select{display:block;width:100%;margin:5px 0 0;min-height:38px;padding:8px 10px;font-size:13px;background:#10232c!important;color:var(--copy)!important;border:1px solid var(--stroke)!important;border-radius:6px}
.order-filter-toolbar button{min-height:38px;white-space:nowrap;border:1px solid var(--stroke);border-radius:6px;padding:8px 12px}
.order-filter-disclosure{position:static;flex:0 0 auto}
.order-filter-toolbar .order-more-filters{position:absolute;z-index:20;right:0;top:100%;width:min(450px,100%);box-sizing:border-box;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;background:#17323d;border:1px solid #668691;border-top:2px solid var(--orange,#ff9911);border-radius:8px;margin:6px 0;box-shadow:0 10px 24px #0006}
.order-filter-toolbar .order-more-filters label{min-width:0;font-size:12px}
.order-filter-toolbar .order-more-filters select{font-size:12px;min-height:36px;padding:7px 8px}
.filter-popover-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;color:var(--copy);font-size:13px}
.order-filter-toolbar .filter-popover-heading button{min-height:30px;padding:4px 10px}
.order-lookup-toggle{font:inherit;color:var(--link,#8ddfdb);cursor:pointer}
.order-lookup-panel{padding:12px;margin:10px 0 16px;border:1px solid #668691;border-top:2px solid var(--orange,#ff9911);border-radius:8px;background:#17323d}
.order-lookup-panel[hidden]{display:none}
.order-picker-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.order-picker-bar label{font-size:12px;color:var(--muted)}
.order-picker-bar select{flex:1 1 300px;min-width:0;max-width:100%;padding:8px 10px;background:#10232c;color:var(--copy);border:1px solid var(--stroke);border-radius:6px}
.order-picker-bar button{white-space:nowrap}
.order-lookup-panel>.muted{font-size:12px;margin:8px 0}
.order-lookup-panel>.order-inline-detail{margin:12px 0 0}
.order-detail-close{font:inherit;color:var(--link,#8ddfdb);white-space:nowrap}
.order-more-filters[hidden]{display:none}
.order-filter-summary{font-size:12px;color:var(--muted);margin:8px 0 12px;overflow-wrap:anywhere}
.service-order-shell{border-bottom:1px solid #47616c55}
.service-order-shell .service-order{border-bottom:0}
.order-number-toggle{font:inherit;color:var(--link,#8ddfdb)!important;background:none!important;border:0!important;box-shadow:none!important;padding:4px 0!important;text-align:left;cursor:pointer;text-decoration:underline;display:inline-flex;gap:8px;align-items:center}
.order-number-toggle .disclosure-arrow{font-size:11px;text-decoration:none;display:inline-block;transition:transform .15s}
.order-number-toggle[aria-expanded=true] .disclosure-arrow{transform:rotate(90deg)}
.order-inline-detail{margin:0 0 16px;padding:12px;background:#213d48;border:1px solid #52727c;border-radius:8px;scroll-margin:16px}
.order-inline-detail[hidden]{display:none}
.order-inline-detail>.card{margin:0;padding:12px;border:0;background:transparent;box-shadow:none}
.order-inline-detail .eta-status-card{margin-top:18px}
.order-inline-detail .result-table{min-width:650px}
.inline-detail-loading,.inline-detail-error{padding:12px;line-height:1.6}
.inline-detail-error{color:#ffd28a}
.order-response-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.order-response-buttons button{font-size:12px;padding:7px 10px;min-height:34px;border-radius:5px;background:#284f48;color:#d6ffec;border:1px solid #74bca3}
.order-response-buttons button[data-quote-action=Declined]{background:#4b4030;color:#ffe1ac;border-color:#c4a267}
.order-response-buttons button[data-quote-action=Scrap]{background:#4b3339;color:#ffccd2;border-color:#c6818d}
.order-response-buttons button:disabled{opacity:.55;cursor:not-allowed}
.quote-confirmation-text{line-height:1.6}.quote-confirmation-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.quote-reference-prompt{padding:14px 16px;margin:0 0 16px;background:#234651;border:1px solid #72969f;border-left:4px solid var(--orange,#ff9911);border-radius:7px}
.quote-reference-prompt h3{margin:0 0 12px;font-size:17px;color:#fff}.quote-reference-prompt label{display:block;margin-bottom:6px}
.quote-reference-prompt input{display:block;width:100%;max-width:440px;box-sizing:border-box}.quote-reference-prompt p{line-height:1.5;margin:10px 0 0}
.quote-confirmation-check{display:flex;gap:10px;align-items:flex-start;margin:15px 0}.quote-confirmation-check input{width:auto;margin-top:4px}
.quote-response-pending{border-left:3px solid var(--orange,#ff9911);padding:10px 12px;background:#18313b;margin:12px 0}
#workspace-dialog.quote-response-dialog{width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#workspace-dialog[open].quote-response-dialog{display:flex;flex-direction:column;height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:hidden}
.quote-response-dialog .dialog-heading{flex-shrink:0;margin-bottom:12px}
.quote-response-dialog #dialog-content{flex:1;min-height:0;overflow:auto}
.quote-response-dialog #quote-confirm-form{display:flex;flex-direction:column;height:100%;min-height:0}
.quote-review-scroll{flex:1;min-height:0;overflow:auto;padding-right:8px;scrollbar-gutter:stable}
.quote-response-footer{flex-shrink:0;padding:10px 0 2px;border-top:2px solid var(--orange,#ff9911);background:var(--panel-deep,#10232c)}
#dialog-content .quote-response-footer .quote-confirmation-check{display:flex;align-items:flex-start;gap:10px;margin:4px 0 8px;color:var(--copy)}
#dialog-content .quote-confirmation-check input{width:auto;flex:0 0 auto;margin:3px 0}
.quote-response-footer .quote-confirmation-actions{margin:0;align-items:center}
#dialog-content .quote-response-footer .primary-action{margin-top:0}
.quote-reference-entry{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.quote-reference-entry input{flex:1 1 200px}.quote-reference-entry button{white-space:nowrap;padding:10px;border:1px solid #a5c7c7;border-radius:5px;background:#153139;color:#e9f9f9}
#quote-reference-status:empty{display:none}
@media(max-width:700px){#workspace-dialog[open].quote-response-dialog{padding:12px}.quote-response-footer .quote-confirmation-actions .muted{font-size:11px}.quote-response-dialog .dialog-heading h2{font-size:18px}}
.quote-response-dialog .result-table{min-width:650px}
.quote-response-dialog .result-table td:first-child,.quote-response-dialog .result-table td:nth-child(2){white-space:nowrap}
.order-detail-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 0 8px;font-size:13px}
@media(max-width:700px){.order-filter-toolbar .order-search-label{flex-basis:100%}.order-filter-toolbar>label{flex:1 1 120px;min-width:100px}.order-filter-toolbar button{padding:8px}.order-inline-detail{padding:7px}.order-inline-detail>.card{padding:6px}.order-inline-detail .eta-status-grid{grid-template-columns:1fr}.order-response-buttons{grid-column:1/-1}.order-picker-bar label{flex-basis:100%}.order-picker-bar select{flex-basis:100%}.order-detail-heading{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.disclosure-arrow{transition:none!important}}
