.fulfillment-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); }
.fulfillment-updated { color: var(--c-text-3); font-size: var(--fs-xs); }
.fulfillment-toolbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 150px 150px 150px minmax(220px, 1fr) auto;
  align-items: end;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  background: var(--c-card);
}
.fulfillment-toolbar label { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fulfillment-toolbar label > span { color: var(--c-text-2); font-size: var(--fs-xs); }
.fulfillment-toolbar input, .fulfillment-toolbar select { width: 100%; height: 36px; }
.fulfillment-toolbar-actions { display: flex; gap: var(--sp-2); }
.fulfillment-toolbar-actions .btn { min-width: 68px; height: 36px; }
.fulfillment-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: var(--sp-4) 0;
  border: 1px solid var(--c-border);
  background: var(--c-card);
}
.fulfillment-summary-item { min-width: 0; min-height: 84px; padding: var(--sp-3) var(--sp-4); border-right: 1px solid var(--c-border); display: flex; flex-direction: column; justify-content: center; }
.fulfillment-summary-item:last-child { border-right: 0; }
.fulfillment-summary-item span { color: var(--c-text-2); font-size: var(--fs-xs); }
.fulfillment-summary-item strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-variant-numeric: tabular-nums; }
.fulfillment-summary-item strong.is-income { color: var(--c-primary); }
.fulfillment-summary-item strong.is-cost { color: #B45309; }
.fulfillment-summary-item strong.is-profit { color: var(--c-success); }
.fulfillment-summary-item strong.is-negative { color: var(--c-danger); }
.fulfillment-summary-item strong.is-warning { color: #B45309; }
.fulfillment-platform-band { margin-bottom: var(--sp-4); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-card); }
.fulfillment-platform-table { width: 100%; min-width: 760px; table-layout: fixed; }
.fulfillment-platform-table th:first-child { width: 160px; }
.fulfillment-platform-table td { vertical-align: middle; }
.fulfillment-platform-name { margin-left: 8px; font-size: var(--fs-sm); }
.fulfillment-platform-empty { height: 76px; color: var(--c-text-3); text-align: center; }
.fulfillment-cost { color: #B45309; font-weight: 600; }
.fulfillment-warning { color: #B45309; font-weight: 600; }
.fulfillment-table-band { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-card); }
.fulfillment-table-head { min-height: 48px; padding: 0 var(--sp-4); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-border); }
.fulfillment-table-head strong { font-size: var(--fs-md); }
.fulfillment-table-head span { color: var(--c-text-3); font-size: var(--fs-xs); }
.fulfillment-table-wrap { overflow: auto; }
.fulfillment-table { width: 100%; min-width: 1080px; table-layout: fixed; }
.fulfillment-table th:nth-child(1) { width: 125px; }
.fulfillment-table th:nth-child(2) { width: 145px; }
.fulfillment-table th:nth-child(3) { width: 140px; }
.fulfillment-table th:nth-child(4) { width: 160px; }
.fulfillment-table th:nth-child(5) { width: 50px; }
.fulfillment-table th:nth-child(6) { width: 80px; }
.fulfillment-table th:nth-child(7) { width: 210px; }
.fulfillment-table th:nth-child(8) { width: 75px; }
.fulfillment-table th:nth-child(9) { width: 90px; }
.fulfillment-table td { vertical-align: middle; }
.fulfillment-time { width: 126px; color: var(--c-text-2); white-space: nowrap; font-size: 11px; }
.fulfillment-order { min-width: 140px; max-width: 180px; }
.fulfillment-order strong, .fulfillment-order span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fulfillment-order strong { font-family: Consolas, monospace; font-size: 12px; }
.fulfillment-order span { margin-top: 4px; color: var(--c-text-3); font-size: 11px; }
.fulfillment-primary { min-width: 110px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fulfillment-secondary { margin-top: 4px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-3); font-size: 11px; }
.fulfillment-income { color: var(--c-primary); font-weight: 600; }
.fulfillment-profit { color: var(--c-success); font-weight: 600; }
.fulfillment-negative { color: var(--c-danger); font-weight: 600; }
.fulfillment-cost-editor { width: 202px; display: grid; grid-template-columns: 84px 50px; gap: 4px; align-items: center; }
.fulfillment-cost-editor input { width: 84px; height: 30px; padding: 4px 7px; font-variant-numeric: tabular-nums; }
.fulfillment-cost-editor .btn { min-width: 50px; padding-left: 6px; padding-right: 6px; }
.fulfillment-cost-editor small { grid-column: 1 / -1; color: var(--c-text-3); font-size: 11px; }
.fulfillment-funding-card, .fulfillment-funding-account { grid-column: 1 / -1; max-width: 200px; overflow-wrap: anywhere; line-height: 1.35; font-size: 11px; }
.fulfillment-funding-card { color: var(--c-text-1); font-weight: 600; }
.fulfillment-funding-account { color: var(--c-text-3); }
.fulfillment-empty { height: 180px; color: var(--c-text-3); text-align: center; }
.fulfillment-empty.is-error { color: var(--c-danger); }
@media (max-width: 1100px) {
  .fulfillment-toolbar { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .fulfillment-search { grid-column: span 2; }
  .fulfillment-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fulfillment-summary-item { border-bottom: 1px solid var(--c-border); }
}
@media (max-width: 700px) {
  .fulfillment-page-head { align-items: flex-start; }
  .fulfillment-toolbar { grid-template-columns: 1fr 1fr; }
  .fulfillment-search { grid-column: 1 / -1; }
  .fulfillment-toolbar-actions { grid-column: 1 / -1; }
  .fulfillment-toolbar-actions .btn { flex: 1; }
  .fulfillment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
