/* Order editors only. Keep the compact journals and other CRM screens unchanged. */
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) {
  --order-ink: #173c5e;
  --order-muted: #526b82;
  --order-line: #c6d7e5;
  min-width: 0;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(fieldset,.form-grid,.field,.schedule-field,.road-pair,.production-pair) {
  min-width: 0;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) .field {
  gap: 7px;
  color: var(--order-muted);
  font-size: 13px;
  line-height: 1.4;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(.field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.field select,.field textarea,.schedule-field input,[data-party-search]) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--order-line);
  border-radius: 8px;
  background: #fff;
  color: var(--order-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(.field input,.field select,.field textarea,.schedule-field input,[data-party-search]):not(:disabled):not([readonly]):not([aria-invalid=true]):not(.error-help-target):hover {
  border-color: #87adc9;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(.field input,.field select,.field textarea,.schedule-field input,[data-party-search]):not([aria-invalid=true]):not(.error-help-target):focus-visible {
  border-color: #0079c8;
  outline: 2px solid #cdeaff;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px #eaf5fd;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(.field input,.field select,.field textarea,.schedule-field input,[data-party-search]):is(:disabled,[readonly]) {
  background: #f1f5f8;
  border-color: #dbe4ec;
  color: #536c82;
  opacity: 1;
  -webkit-text-fill-color: #536c82;
  box-shadow: none;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(input,select,textarea)[aria-invalid=true]:not(:disabled) {
  border-color: #bb4c3a;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) textarea {
  min-height: 76px;
  resize: vertical;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(input,textarea)::placeholder {
  color: #6d8194;
  opacity: 1;
}
.deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) .help {
  color: #5d7489;
  font-size: 12px;
  line-height: 1.5;
}
.deal-panel .order-fields-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 18px;
}
.deal-panel .order-fields-heading h2 {
  margin: 0;
  color: #143b5c;
  font-size: 17px;
  line-height: 1.4;
}
.deal-panel .order-fields-heading p {
  flex-basis: 100%;
  margin: 0;
  color: #526b82;
  font-size: 12px;
  line-height: 1.5;
}
.deal-panel .order-fields-readonly {
  border-radius: 5px;
  padding: 4px 7px;
  background: #edf2f6;
  color: #526b82;
  font-size: 11px;
}
.deal-panel :is(.compact-basic,#order-details-form) .form-grid {
  gap: 18px 20px;
}
.deal-panel :is(#order-details-form,#basic-form) .form-grid > .route-inputs {
  grid-column: 1 / -1;
}
.deal-panel .route-inputs > span {
  align-self: center;
  padding-top: 22px;
  padding-bottom: 0;
  color: #0877b9;
}
.deal-panel .deal-section {
  border-top: 1px solid #e0e9f1;
  padding: 12px 0;
}
.deal-panel .deal-section > summary {
  color: #244f71;
  font-size: 13px;
  line-height: 1.5;
}
.deal-panel .deal-section[open] > summary {
  margin-bottom: 14px;
}
.deal-panel .deal-section > .section-gap {
  margin-top: 0;
}
.deal-panel .participants-section {
  margin-top: 20px;
}
.deal-panel .participant-card {
  border-color: #cbdbe8;
  border-radius: 10px;
  overflow: hidden;
}
.deal-panel .participant-card > summary {
  min-height: 108px;
  gap: 5px;
  padding: 14px 32px 14px 15px;
  background: #f6faff;
  border-top: 3px solid #0a7ec4;
  transition: background-color 120ms ease;
}
.deal-panel .participant-card > summary:hover {
  background: #edf6fd;
}
.deal-panel .participant-card > summary strong {
  color: #143e60;
  font-size: 14px;
}
.deal-panel .participant-card > summary .participant-purpose {
  color: #576f85;
  font-size: 12px;
  line-height: 1.4;
}
.deal-panel .participant-card > summary span {
  margin-top: 3px;
  color: #1e4769;
  font-size: 13px;
  line-height: 1.45;
}
.deal-panel .participant-card > summary::after {
  top: 16px;
  color: #0877b9;
}
.deal-panel .participant-card fieldset,
.deal-panel .participant-payer {
  padding: 16px;
}
.deal-panel .participant-card .form-grid {
  gap: 14px;
}
.deal-panel .participant-search {
  gap: 9px;
  margin-bottom: 14px;
}
.deal-panel .participant-card [data-party-lookup] {
  justify-self: start;
  margin-top: 5px;
}
.deal-panel :is(#order-details-form,#production-details-form,#handoff-form) .schedule-field label > span {
  color: #526b82;
  font-size: 12px;
  line-height: 1.4;
}
.deal-panel .production-workspace .schedule-field label:last-child span::after {
  content: none;
}
.deal-panel .production-workspace .schedule-field:not(.schedule-window) {
  grid-template-columns: minmax(0,1fr) 108px;
}
.deal-panel .production-block {
  padding: 14px;
  border-color: #cbdbe8;
  border-radius: 10px;
}
.deal-panel .production-block > summary {
  color: #143e60;
  font-size: 14px;
  line-height: 1.5;
}
.deal-panel .production-block[open] > summary {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e4edf5;
}
.deal-panel .production-booking .production-route-fields,
.deal-panel .production-pair {
  gap: 14px;
}
.deal-panel .production-columns .production-contact {
  color: #526b82;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.deal-panel .production-block details > summary {
  color: #355875;
  line-height: 1.5;
}
.deal-panel :is(#order-details-form,#production-details-form,#road-request-form,#handoff-form) .form-actions {
  gap: 10px;
  flex-wrap: wrap;
}
.deal-panel :is(#order-details-form,#production-details-form,#road-request-form,#handoff-form) .form-actions .button {
  min-height: 40px;
}
@media (max-width: 760px) {
  .deal-panel :is(.compact-basic,#order-details-form) .form-grid,
  .deal-panel .production-columns,
  .deal-panel .production-booking .production-route-fields,
  .deal-panel .production-workspace .production-pair,
  .deal-panel .participants-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .deal-panel .route-inputs {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .deal-panel .route-inputs > span {
    display: none;
  }
  .deal-panel .participant-card > summary {
    min-height: 0;
  }
  .deal-panel .production-block {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .deal-panel :is(#basic-form,#order-details-form,#parties-form,#road-request-form,#production-details-form,#workflow-step-form,#handoff-form,#flight-plan-form,#air-form) :is(input,select,textarea),
  .deal-panel .participant-card > summary {
    transition: none;
  }
}
