:host { display: block; padding: 16px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 12px;
  flex: 1;
  max-width: 420px;
  background: #fff;

  mat-icon { color: #9ca3af; font-size: 18px; }
  input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #374151;
    background: transparent;
  }
}

.result-count {
  font-size: 13px;
  color: #6b7280;
  margin-left: auto;
}

/* Status filter chips */
.status-chips {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;

  &::-webkit-scrollbar { height: 3px; }
  &::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
}

.chip-btn {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;

  &:hover { border-color: #6b7280; color: #374151; }
  &.active { background: #0f172a; color: #fff; border-color: #0f172a; }
}

/* Table */
mat-table { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
mat-header-cell { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #6b7280; font-weight: 600; }
mat-cell { font-size: 13px; color: #374151; }
.clickable-row { cursor: pointer; &:hover { background: #f8fafc; } }

.request-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
}

.title-cell { display: flex; flex-direction: column; gap: 2px; }
.title-text { font-weight: 500; }
.domain-tag {
  font-size: 11px;
  color: #7c3aed;
  background: #ede9fe;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
}

/* Status badges */
.status-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.st-gray       { background: #f3f4f6; color: #6b7280; }
.st-amber      { background: #fef3c7; color: #92400e; }
.st-teal       { background: #ccfbf1; color: #065f46; }
.st-red        { background: #fee2e2; color: #991b1b; }
.st-purple     { background: #ede9fe; color: #5b21b6; }
.st-green      { background: #d1fae5; color: #065f46; }
.st-green-dark { background: #064e3b; color: #a7f3d0; }

/* Priority badges */
.priority-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.pr-low      { background: #f3f4f6; color: #6b7280; }
.pr-medium   { background: #dbeafe; color: #1d4ed8; }
.pr-high     { background: #fef3c7; color: #b45309; }
.pr-critical { background: #fee2e2; color: #b91c1c; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  mat-icon { font-size: 48px; height: 48px; width: 48px; display: block; margin: 0 auto 12px; }
  p { font-size: 15px; }
}
