.cd-filter, .cd-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin: 12px 0;
}
.cd-filter .field, .cd-products .field { margin: 0; flex: 1 1 160px; }
.cd-filter .field:first-child, .cd-products .field { flex-basis: 250px; }
.cd-editor fieldset { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.cd-editor .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cd-table { overflow-x: auto; margin-bottom: 12px; }
.cd-table table { width: 100%; border-collapse: collapse; text-align: left; }
.cd-table th, .cd-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cd-table th { color: var(--text); background: var(--green-050); }
.cd-table small { display: block; margin-top: 3px; color: #566d60; }
.cd-line-quantity, .cd-line-unit { min-width: 78px; width: 100%; }
.cd-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
#cd-detail, #cd-editor { scroll-margin-top: 90px; }
@media(max-width: 700px) {
  .cd-editor .form-grid { grid-template-columns: minmax(0,1fr); }
}
