.trq-page {
  padding: 24px;
  background: #f4f7fb;
  min-height: 100vh;
}

.trq-hero,
.trq-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.trq-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px;
  margin-bottom: 16px;
}

.trq-hero h1 {
  font-size: 24px;
  margin: 0 0 6px;
  color: #0f172a;
}

.trq-hero p {
  margin: 0;
  color: #64748b;
}

.trq-actions,
.trq-toolbar,
.trq-lines-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trq-card {
  padding: 16px;
  margin-bottom: 16px;
}

.trq-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.trq-progress-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.trq-progress-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.trq-progress-card strong {
  color: #0f172a;
  display: block;
  font-size: 22px;
  line-height: 1;
}

.trq-progress-card-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.trq-progress-card-warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.trq-toolbar {
  margin-bottom: 14px;
}

.trq-toolbar input {
  max-width: 360px;
}

.trq-toolbar select {
  max-width: 180px;
}

.trq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.trq-grid label,
.trq-flow label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.trq-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.trq-flow span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #1d4ed8;
  margin-bottom: 2px;
}

.trq-lines-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.trq-lines-head h2 {
  font-size: 18px;
  margin: 0;
}

.trq-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  white-space: nowrap;
}

.trq-table td {
  vertical-align: middle;
}

.trq-progress-cell {
  color: #334155;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.trq-remain-order,
.trq-remain-dispatch {
  color: #b45309;
}

.trq-in-transit {
  color: #1d4ed8;
}

@media (max-width: 800px) {
  .trq-hero,
  .trq-flow {
    display: block;
  }

  .trq-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trq-actions,
  .trq-flow label,
  .trq-flow span {
    margin-top: 10px;
  }
}
