/* Reuse the workbench's existing colors, buttons and form fields. */
.third-party-order-panel { margin-top: 16px; }
.third-party-order-panel [data-handoff] { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border, #dce6e5); }
.third-party-order-panel .detail-form-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.third-party-allocation { display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border,#dce6e5); }
.third-party-allocation label { display: grid; gap: 6px; }
.third-party-candidates { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow: auto; margin-top: 8px; }
.third-party-candidates button { white-space: normal; text-align: left; }
@media(max-width:600px) { .third-party-allocation { grid-template-columns: minmax(0,1fr); } }

[data-third-party-name][hidden], [data-third-receipt] [hidden], .followup-dialog [hidden] { display: none !important; }

[data-supplier-list] .row { flex-wrap: wrap; align-items: flex-start; }
[data-supplier-list] .row > div:first-child { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }

.third-party-order-panel[hidden] { display: none !important; }
.third-party-order-panel .processing-current { margin: 8px 0 14px; overflow-wrap: anywhere; }
#orderProcessingPanel { margin-bottom: 16px; }

/* Keep labels and controls aligned when the supplier has an extra help line. */
.admin-create .field, .third-party-order-panel .field { align-content: start; }
