/* ── TradeForge Incoming Requests — Standardized Supplier Request Cards ── */
/* Shared component for consistent request display across all supplier dashboards */

/* Request list container (vertical) */
.tf-request-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Request grid container (2-column) */
.tf-request-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Section header row */
.tf-requests-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.tf-requests-header .kicker {
  margin-bottom: 0;
}
.tf-requests-header .tf-requests-source {
  font-size: 12px;
  color: var(--muted);
}
.tf-requests-header .tf-requests-source strong {
  color: var(--ash);
}

/* ── Request Card ── */
.tf-request-card {
  background: rgba(28, 30, 33, .5);
  border: 1px solid rgba(181, 183, 185, .08);
  border-radius: 10px;
  padding: 16px;
  transition: border-color .2s;
}
.tf-request-card:hover {
  border-color: rgba(140, 106, 62, .3);
}

/* Status variants — left border accent */
.tf-request-card.urgent {
  border-left: 3px solid #f87171;
}
.tf-request-card.new {
  border-left: 3px solid #4ade80;
}
.tf-request-card.confirmed {
  border-left: 3px solid var(--bronze);
}
.tf-request-card.in-transit {
  border-left: 3px solid #60a5fa;
}

/* ── Card Header: title + badge ── */
.tf-request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}
.tf-request-header h4 {
  margin: 0;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

/* ── Status Badge ── */
.tf-request-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.tf-request-badge.new {
  background: rgba(74, 222, 128, .12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .25);
}
.tf-request-badge.urgent {
  background: rgba(248, 113, 113, .1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, .25);
}
.tf-request-badge.confirmed {
  background: rgba(140, 106, 62, .12);
  color: var(--bronze);
  border: 1px solid rgba(140, 106, 62, .3);
}
.tf-request-badge.in-transit {
  background: rgba(96, 165, 250, .1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, .2);
}
.tf-request-badge.pending {
  background: rgba(251, 191, 36, .1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .2);
}
.tf-request-badge.quote-sent {
  background: rgba(140, 106, 62, .12);
  color: var(--bronze);
  border: 1px solid rgba(140, 106, 62, .3);
}

/* ── Metadata Fields: project, location, category, timeline ── */
.tf-request-fields {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.tf-request-fields span strong {
  color: var(--ash);
}

/* ── Category Tag ── */
.tf-request-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tf-request-category.materials {
  background: rgba(140, 106, 62, .08);
  color: var(--bronze);
  border: 1px solid rgba(140, 106, 62, .2);
}
.tf-request-category.waste {
  background: rgba(74, 222, 128, .08);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .18);
}
.tf-request-category.equipment {
  background: rgba(96, 165, 250, .08);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, .18);
}
.tf-request-category.tools {
  background: rgba(251, 191, 36, .08);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .18);
}

/* ── Detail Box (materials list, bin type, equipment spec, etc.) ── */
.tf-request-detail {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 10px;
  background: rgba(140, 106, 62, .06);
  border-radius: 6px;
  border: 1px solid rgba(140, 106, 62, .1);
  line-height: 1.5;
}
.tf-request-detail strong {
  color: var(--ash);
}

/* ── Response Status Pipeline ── */
.tf-request-status {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(46, 49, 54, .5);
  border: 1px solid rgba(181, 183, 185, .08);
  border-radius: 8px;
}
.tf-request-status-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.tf-request-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.tf-request-step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 10px;
  position: relative;
  white-space: nowrap;
}
.tf-request-step::after {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: rgba(181, 183, 185, .15);
  flex-shrink: 0;
}
.tf-request-step:last-child::after {
  display: none;
}
.tf-request-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(181, 183, 185, .2);
  background: transparent;
  flex-shrink: 0;
  transition: all .15s;
}
.tf-request-step.completed .step-dot {
  background: var(--bronze);
  border-color: var(--bronze);
  box-shadow: 0 0 0 2px rgba(140, 106, 62, .15);
}
.tf-request-step.completed {
  color: var(--bronze);
}
.tf-request-step.current .step-dot {
  background: #fff;
  border-color: var(--bronze);
  box-shadow: 0 0 0 2px rgba(140, 106, 62, .2);
}
.tf-request-step.current {
  color: #fff;
  font-weight: 700;
}
.tf-request-step.current::after {
  background: rgba(181, 183, 185, .1);
}
.tf-request-no-action {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  padding: 2px 0;
}

/* ── Action Buttons ── */
.tf-request-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.tf-request-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 1px solid rgba(140, 106, 62, .35);
  background: rgba(140, 106, 62, .1);
  color: var(--bronze);
  letter-spacing: .02em;
}
.tf-request-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  background: rgba(140, 106, 62, .18);
}
.tf-request-action.primary {
  background: var(--bronze);
  color: var(--ink);
  border-color: var(--bronze);
}
.tf-request-action.primary:hover {
  box-shadow: 0 3px 10px rgba(140, 106, 62, .3);
}
.tf-request-action svg {
  width: 12px;
  height: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .tf-request-grid {
    grid-template-columns: 1fr;
  }
  .tf-request-steps {
    flex-wrap: wrap;
    gap: 4px;
  }
  .tf-request-step::after {
    width: 10px;
  }
  .tf-request-fields {
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .tf-request-actions {
    flex-direction: column;
  }
  .tf-request-action {
    justify-content: center;
  }
}
