:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2937;
  background: #f9fafb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem;
}

#app {
  max-width: 900px;
  margin: 0 auto;
}

header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.status {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

button {
  padding: 0.5rem 1rem;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: white;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}

button:hover {
  background: #1d4ed8;
}

button.danger {
  background: #dc2626;
  border-color: #dc2626;
}

.invoices h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

th, td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

th {
  background: #f3f4f6;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  color: #6b7280;
  text-align: center;
  font-style: italic;
}

.status-pill {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}
.status-draft    { background: #f3f4f6; color: #4b5563; }
.status-open     { background: #dbeafe; color: #1e40af; }
.status-paid     { background: #d1fae5; color: #065f46; }
.status-overdue  { background: #fee2e2; color: #b91c1c; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.85rem;
}
