.ops-card + .ops-card {
  margin-top: 18px;
}
.ops-card .panel-head {
  flex-wrap: wrap;
}
.ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.ops-summary button {
  display: grid;
  gap: 3px;
  text-align: left;
  background: #262527;
  color: var(--ink);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
}
.ops-summary button[aria-pressed='true'],
.ops-summary button:hover {
  border-color: var(--accent);
}
.ops-summary strong {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  font-weight: 600;
}
.ops-summary span,
.ops-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.ops-note {
  margin: 0 0 12px;
}
.ops-card .toolbar {
  margin-bottom: 12px;
}
.ops-table td {
  font-size: 12px;
}
.ops-late {
  color: #f1ba8a;
}
.ops-card input[type='number'] {
  max-width: 140px;
}
.ops-date-ledger {
  margin: 0 0 18px;
}
.ops-date-ledger dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(14px, 3vw, 32px);
  margin: 8px 0 0;
}
.ops-date-ledger dl div {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.ops-date-ledger dt {
  font-size: 11px;
  color: var(--muted);
}
.ops-date-ledger dd {
  font-size: 17px;
  font-weight: 650;
  margin: 4px 0 0;
}
@media (max-width: 760px) {
  .ops-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-date-ledger dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-card .toolbar label {
    flex: 1;
  }
  .ops-table td {
    font-size: 11px;
  }
}

.ops-card {
  container-type: inline-size;
}
.ops-date-ledger dd small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
@container (max-width: 535px) {
  .ops-card .toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
  .ops-card .toolbar label {
    min-width: 0;
  }
  .ops-card .toolbar label:has(input[type='search']) {
    min-width: 0;
    max-width: none;
    grid-column: 1 / -1;
  }
  .ops-card .toolbar select,
  .ops-card .toolbar input {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .ops-card .toolbar .button {
    margin: 0;
    justify-self: start;
    grid-column: 1 / -1;
  }
  .ops-table,
  .ops-table tbody {
    display: block;
    width: 100%;
  }
  .ops-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .ops-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .ops-table tbody td {
    display: block;
    border: 0;
    padding: 0;
    text-align: left;
    min-width: 0;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ops-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
  }
  .ops-table td .table-link {
    font-size: 14px;
  }
  .ops-dispatch-table td:nth-child(4) {
    grid-area: 1 / 2;
  }
  .ops-dispatch-table td:nth-child(5) {
    grid-column: 1 / -1;
  }
  .ops-stock-table td:first-child,
  .ops-stock-table td:nth-child(2) {
    grid-column: 1 / -1;
  }
}
@container (max-width: 320px) {
  .ops-card .toolbar {
    grid-template-columns: 1fr;
  }
}
