:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --text: #172033;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #111827;
  --primary-hover: #000000;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

h1, h2, h3, p {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background: var(--primary-hover);
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.order-section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-items {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.order-items li,
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.total-line {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

.status-form {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.status-form select {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: white;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-nieuw {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-betaald {
  background: #dcfce7;
  color: #166534;
}

.badge-verzonden {
  background: #fef3c7;
  color: #92400e;
}

.badge-afgerond {
  background: #ecfccb;
  color: #3f6212;
}

.badge-geannuleerd {
  background: #fee2e2;
  color: #991b1b;
}

.empty-state {
  text-align: center;
  padding: 32px;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .status-form {
    flex-direction: column;
  }
}