.complaint-page-head { margin-bottom: 14px; }

.complaint-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(232, 248, 244, 0.96), rgba(255, 255, 255, 0.96) 62%), #fff;
  box-shadow: var(--shadow-soft);
}

.complaint-hero > div:first-child { min-width: 0; max-width: 700px; }
.complaint-hero h3 { margin: 3px 0 6px; color: var(--primary-dark); font-size: 18px; }
.complaint-hero p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.complaint-scope { display: grid; align-content: center; gap: 5px; min-width: 180px; padding-left: 16px; border-left: 2px solid var(--primary); }
.complaint-scope strong { color: var(--primary-dark); font-size: 14px; }
.complaint-scope span { color: var(--muted); font-size: 12px; }
.complaint-import-body { display: flex; align-items: end; gap: 16px; padding: 14px 18px 16px; }
.complaint-import-body .field { flex: 1 1 340px; }
.complaint-import-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.complaint-toolbar { margin-top: 14px; }
.complaint-table-wrap table { min-width: 1120px; }
.complaint-table-wrap th:nth-child(1) { width: 21%; }
.complaint-table-wrap th:nth-child(2) { width: 13%; }
.complaint-table-wrap th:nth-child(3),
.complaint-table-wrap th:nth-child(4) { width: 21%; }
.complaint-table-wrap th:nth-child(5) { width: 10%; }
.complaint-table-wrap th:nth-child(6),
.complaint-table-wrap th:nth-child(7),
.complaint-table-wrap th:nth-child(8) { width: 8%; }
.complaint-product-cell, .complaint-long-cell { display: grid; gap: 5px; min-width: 0; }
.complaint-product-cell strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.complaint-product-cell span, .complaint-long-cell span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.complaint-long-cell span { color: var(--ink); }
.complaint-long-cell.resolution span { color: #276749; }
.complaint-card { gap: 12px; }
.complaint-mobile-problem, .complaint-mobile-grid { display: grid; gap: 5px; }
.complaint-mobile-problem { padding: 10px 12px; border-left: 3px solid var(--danger); background: #fff7f5; }
.complaint-mobile-problem span, .complaint-mobile-grid span { color: var(--muted); font-size: 11px; }
.complaint-mobile-problem strong, .complaint-mobile-grid strong { color: var(--ink); font-size: 13px; line-height: 1.45; }
.complaint-mobile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

@media (max-width: 900px) {
  .complaint-hero { align-items: stretch; flex-direction: column; padding: 16px; }
  .complaint-scope { min-width: 0; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .complaint-import-body { align-items: stretch; flex-direction: column; padding: 12px; }
  .complaint-import-actions { align-items: stretch; flex-direction: column; }
  .complaint-import-actions .btn { width: 100%; }
}
