.offandaway-main {
  display: grid;
  gap: 18px;
}

.offandaway-filter-grid {
  grid-template-columns: repeat(2, minmax(180px, 280px));
}

.offandaway-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.offandaway-summary-grid article {
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.offandaway-summary-grid article.has-warning {
  border-color: #fca5a5;
  background: #fff7f7;
}

.offandaway-summary-grid span,
.offandaway-summary-grid small {
  color: #64748b;
  font-size: 12px;
}

.offandaway-summary-grid strong {
  color: #111827;
  font-size: 24px;
}

.offandaway-result-table {
  min-width: 1260px;
}

.offandaway-detail-table {
  min-width: 1240px;
}

.offandaway-result-table .col-image {
  width: 130px;
}

.offandaway-result-table .product-thumb {
  width: 112px;
  height: 112px;
}

.offandaway-sales-cell {
  color: #166534;
  font-weight: 700;
}

.offandaway-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.offandaway-match-badge.is-success {
  background: #dcfce7;
  color: #15803d;
}

.offandaway-match-badge.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.offandaway-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.offandaway-main .pipeline-status-dot.is-waiting {
  background: #94a3b8;
}

.offandaway-status-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.offandaway-status-badge.is-running { background: #dbeafe; color: #1d4ed8; }
.offandaway-status-badge.is-done { background: #dcfce7; color: #15803d; }
.offandaway-status-badge.is-error { background: #fee2e2; color: #b91c1c; }

.offandaway-logs {
  min-height: 260px;
  max-height: 480px;
  margin: 16px 0 0;
  padding: 16px;
  overflow: auto;
  border-radius: 10px;
  background: #0f172a;
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .offandaway-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offandaway-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .offandaway-summary-grid {
    grid-template-columns: 1fr;
  }
}
