:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
}

body {
  margin: 0;
  background: #f5f6f8;
}

.app-header {
  background: #1f2937;
  color: white;
  padding: 1rem 1.5rem;
}

.app-header h1 {
  margin: 0 0 0.25rem 0;
}

.subtitle {
  margin: 0 0 0.75rem 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.env-banner {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

.env-dev { background: #16a34a; color: white; }
.env-uat { background: #d97706; color: white; }
.env-prod { background: #dc2626; color: white; }

main {
  max-width: 640px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

input, select, button {
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

button {
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #1d4ed8;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.items-table th, .items-table td {
  text-align: left;
  padding: 0.4rem;
  border-bottom: 1px solid #e2e8f0;
}

.message {
  min-height: 1.5rem;
  font-weight: 600;
}

.message.error { color: #dc2626; }
.message.success { color: #16a34a; }

#returnsList {
  padding-left: 1.25rem;
}
