.material-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.exchange-note {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}

.exchange-display-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.exchange-display-controls p { margin: 0; }

#exchange-display-toggle[aria-pressed="true"] {
  color: white;
  border-color: var(--navy-soft);
  background: var(--navy-soft);
}

#exchange-display-state {
  display: inline-block;
  min-width: 2.3em;
  margin-left: 8px;
}

.remarks-cell {
  color: #47576a;
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .material-row {
    grid-template-areas:
      "category name shortage"
      "category required total"
      "routes routes routes"
      "locations locations locations"
      "remarks remarks remarks";
  }

  .remarks-cell {
    grid-area: remarks;
    border-top: 1px dashed #d4dde5;
  }

  .remarks-cell:not(:empty)::before { content: "備考："; }
  .remarks-cell:empty { display: none; }
}

.material-order-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.materials-panel .table-header,
.materials-panel .material-row { position: relative; padding-right: 48px; }
.material-row > .material-move-down {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  min-height: 36px;
  padding: 4px;
  font-size: 1.2rem;
}
.material-move-down:disabled { opacity: 0.35; cursor: not-allowed; }
