/* Order export controls are scoped to the results dialog. */
#results .results-head {flex-wrap:wrap;gap:14px}
#results .result-actions {flex-wrap:wrap;gap:10px}
#results .order-download {padding:10px 16px;border:1px solid #2d8c54;border-radius:99px;background:#2d8c54;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
#results .order-download:disabled {opacity:.5;cursor:not-allowed}
.order-form {margin:0 0 22px;padding:16px 18px;border:1px solid #cfe8de;border-radius:16px;background:#f5faf7}
.order-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px}
.order-toolbar strong {color:#28543d}
#order-summary {color:#547562}
.order-selection {display:flex;gap:6px;flex-wrap:wrap}
.order-selection button {padding:6px 10px;border:1px solid #c7dfd0;border-radius:8px;background:#fff;color:#2d7850;font:inherit;font-size:11px;cursor:pointer}
.order-check,.pair-order-toggle {display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px;white-space:nowrap;cursor:pointer}
.order-check input[type=checkbox],.pair-order-toggle input[type=checkbox] {width:16px;height:16px;margin:0;padding:0;accent-color:#2d8c54;cursor:pointer;flex:0 0 auto}
.order-settings {margin-top:14px;border-top:1px solid #dcece2;padding-top:12px}
.order-settings summary {color:#355e46;font-size:12px;cursor:pointer}
.order-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.order-fields label {display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:#486454}
.order-fields input,.order-fields select {width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;border:1px solid #cbded2;border-radius:8px;background:#fff;font:inherit;color:#253d2f}
.order-note,.order-probe-note,.order-message {margin:10px 0 0;font-size:11px;line-height:1.7;color:#667a6d}
.order-probe-note {color:#986514}
.order-message {color:#237747}
.order-message.error {color:#b13c38}
.order-message:empty {display:none}
#results .pair-top {flex-wrap:wrap;gap:12px}
.pair-order-toggle {color:#2d7850}
.pair:has(.order-pair:checked) {border-color:#77b790}
.order-selection button:focus-visible,.order-download:focus-visible,.order-pair:focus-visible {outline:2px solid #227343;outline-offset:3px}
@media(max-width:620px) {
  .order-form {padding:13px}
  .order-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
  #results .result-actions {align-items:flex-start;flex-direction:row}
  #results .pair-top {gap:9px}
}
@media(max-width:390px) {.order-fields {grid-template-columns:1fr}}
