* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #eef5fb;
  color: #111827;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.muted {
  color: #667085;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.card {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.filters {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr auto;
  gap: 10px;
  margin-bottom: 18px;
}

.filters input,
.filters select,
.filters button {
  height: 42px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: #ffffff;
}

.filters button {
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.filters button:hover {
  background: #243043;
}

.result-count {
  margin: 0 0 16px;
  font-size: 16px;
  color: #111827;
}

.request-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.request-row:hover {
  border-color: #b8c7d9;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.request-row strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.request-row .meta {
  color: #667085;
  line-height: 1.35;
}

.request-row .customer {
  color: #111827;
  margin-top: 3px;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 220px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary,
.btn {
  background: #111827;
  color: #ffffff;
}

.btn-primary:hover,
.btn:hover {
  background: #243043;
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d0d7e2;
}

.btn-light:hover {
  background: #f3f6fa;
  color: #111827;
}

.btn-danger {
  background: #b42318;
  color: #ffffff;
}

.btn-danger:hover {
  background: #8f1d14;
  color: #ffffff;
}

.delete-form {
  display: inline-flex;
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.status-new {
  background: #fff8df;
  color: #5f4700;
}

.status-processing {
  background: #eaf2ff;
  color: #194185;
}

.status-completed {
  background: #eaf8ef;
  color: #176b34;
}

.status-rejected {
  background: #fff0f0;
  color: #b42318;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
}

.stat-line strong {
  font-weight: 800;
}

.success {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

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

  .filters {
    grid-template-columns: 1fr;
  }

  .request-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }
}