.fulfillment-heading { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.fulfillment-page { display: grid; gap: 13px; min-width: 0; }
.fulfillment-demo { color: #24427f; background: var(--blue-soft); font-size: 13px; margin: 0; }
.fulfillment-heading + .fulfillment-demo { margin-bottom: 13px; }
.fulfillment-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 17px; }
.fulfillment-fields[hidden] { display: none; }
.fulfillment-field { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 650; }
.fulfillment-field .field { width: 100%; min-width: 0; font-weight: 400; }
.fulfillment-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.fulfillment-toolbar, .fulfillment-actions, .fulfillment-balance {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.fulfillment-filter-actions { justify-content: flex-end; margin-top: 12px; }
.fulfillment-actions :disabled, .fulfillment-balance :disabled {
  color: var(--muted); background: var(--canvas); cursor: default;
}
.fulfillment-stages {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 8px;
}
.fulfillment-stage {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0;
  padding: 9px 11px; min-height: 51px; color: var(--secondary); font-size: 13px; font-weight: 650; text-decoration: none;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
}
.fulfillment-stage > span { display: grid; min-width: 0; gap: 3px; }
.fulfillment-stage small { color: var(--muted); font-weight: 400; }
.fulfillment-stage.is-active, .fulfillment-stage[aria-current] {
  color: var(--blue); border-color: var(--blue); background: var(--blue-soft);
}
.fulfillment-stage-count { font-size: 14px; }
.fulfillment-results { padding: 0; min-width: 0; }
.fulfillment-toolbar { justify-content: space-between; padding: 13px 16px; }
.fulfillment-toolbar h2, .fulfillment-balance h2 { font-size: 15px; }
.fulfillment-table-scroll { max-width: 100%; overflow: auto; border-top: 1px solid var(--line); }
.fulfillment-table { width: 100%; min-width: max-content; }
.fulfillment-table th { white-space: nowrap; text-align: left; }
.fulfillment-table .fulfillment-empty { height: 135px; padding-inline: 16px; text-align: center; color: var(--muted); }
.fulfillment-results > nav { padding: 10px 15px; }
.fulfillment-balance strong { display: block; margin-top: 5px; font-size: 23px; }
.fulfillment-tabs { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); }
.fulfillment-tabs a { padding: 8px 14px; color: var(--secondary); font-weight: 650; }
.fulfillment-tabs a[aria-current] { color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.fulfillment-detail {
  width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 24px); max-width: none;
  margin: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: var(--surface); overflow-wrap: anywhere;
}
.fulfillment-detail::backdrop { background: #15275360; }
.fulfillment-detail h2 { font-size: 17px; margin: 0 0 12px; }
.fulfillment-detail h3 { font-size: 14px; margin: 12px 0 6px; }
.fulfillment-detail-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 8px; margin: 0 0 12px;
}
.fulfillment-detail-fields > div { min-width: 0; padding: 7px 9px; border-radius: 7px; background: var(--canvas); }
.fulfillment-detail-fields dt { color: var(--muted); font-size: 12px; }
.fulfillment-detail-fields dd { margin: 4px 0 0; }
.fulfillment-detail-actions { justify-content: flex-end; margin-top: 13px; }
.fulfillment-check-note { font-size: 13px; margin-top: 10px; }
.fulfillment-check-note:empty { display: none; }
@media (max-width: 1080px) {
  .fulfillment-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 665px) {
  .fulfillment-fields { grid-template-columns: minmax(0, 1fr); }
  .fulfillment-table .fulfillment-empty { text-align: left; }
  .fulfillment-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
