.op-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.op-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.op-stat-icon {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
}

.op-stat-icon.op-orange { color: #b94a15; background: #fff0e7; }
.op-stat-icon.op-red { color: #bf3d37; background: #fcebea; }
.op-stat-icon.op-blue { color: #3269ba; background: #ebf2ff; }
.op-stat-icon.op-green { color: #147852; background: #e8f7ef; }

.op-stat-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.op-stat strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.op-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.op-search { width: min(100%, 360px); }

.op-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.op-toolbar select {
  min-height: 40px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.op-row-title {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.op-row-title:hover, .op-row-title:focus-visible { text-decoration: underline; }
.op-table .cell-secondary { display: block; margin-top: 3px; }
.op-table .op-table-action { text-align: right; }
.op-table-action .btn { white-space: nowrap; }
.op-qty-low { color: #a34510; }
.op-empty p { margin: 0 0 12px; }
.op-empty p:last-child { margin-bottom: 0; }

.op-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .op-stats { gap: 10px; }
  .op-stat { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px; }
  .op-stat-icon { width: 34px; height: 34px; flex-basis: auto; border-radius: 9px; }
  .op-stat strong { font-size: 19px; }
  .op-stat-label { font-size: 12px; }
  .op-search { width: 100%; }
  .op-filters { width: 100%; }
  .op-filters select { flex: 1; min-width: 0; }
  .op-table { display: block; min-width: 0; width: 100%; }

  .op-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .op-table tbody { display: block; }
  .op-table tbody tr { display: grid; padding: 12px 16px; border-top: 1px solid var(--line); }
  .op-table tbody td { display: block; padding: 4px 0; border: 0; white-space: normal; }
  .op-table tbody td:first-child { margin-bottom: 4px; }

  .op-table td[data-label] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .op-table td[data-label]::before {
    content: attr(data-label);
    flex-shrink: 0;
    margin-right: auto;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .op-stats { grid-template-columns: 1fr; }
  .op-stat { flex-direction: row; align-items: center; }
  .op-stat-icon { flex: 0 0 34px; }
}
