/* Size to the full upper-line labels, retaining the existing height. */
@media (max-width: 980px) {
  .processing-order {
    width: max-content;
    min-width: 25%;
    max-width: calc(100% - 12px);
  }
  .processing-order:not(.is-collapsed) {
    height: min(352px, calc(100% - 62px));
  }
  .processing-order header { gap: 2px; }
  .processing-order__toggle { width: 24px; min-width: 24px; height: 24px; font-size: 8px; }
  .processing-order header small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .processing-order ol {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 34px;
    align-content: start;
    gap: 4px;
  }
  .processing-order li {
    min-width: 0;
    grid-template-columns: 12px max-content;
    grid-template-rows: 12px 12px;
    gap: 1px 2px;
    padding: 3px;
    font-size: 8px;
  }
  .processing-order__rank { grid-column: 1; grid-row: 1 / 3; }
  .processing-order__unit { grid-column: 2; grid-row: 1; }
  .processing-order__stat {
    contain: inline-size;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 7px;
  }
}
