:root {
  --green: #1b8a5a;
  --green-dark: #136b44;
  --bg: #f5f7f6;
  --border: #dde3e0;
  --text: #1a1f1c;
  --muted: #6b7570;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--green);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar h1 {
  margin: 0;
  font-size: 1.25rem;
}

.info-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.pill.ok {
  background: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.pill.warn {
  background: #c0392b;
}

main {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 16px;
}

section h2 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

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

.empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.status-AVAILABLE { background: var(--green); }
.status-CHARGING { background: #2980b9; }
.status-OUT_OF_ORDER { background: #c0392b; }
.status-RESERVED { background: #8e44ad; }
.status-UNKNOWN { background: #95a5a6; }
.status-BLOCKED { background: #d35400; }
.status-REMOVED { background: #7f8c8d; }
.status-PLANNED { background: #f39c12; }

button, select {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  background: white;
  cursor: pointer;
}

button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green-dark);
}

button.primary:hover {
  background: var(--green-dark);
}

button.danger {
  background: #c0392b;
  color: white;
  border-color: #962d22;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
