:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --primary: #0f766e;
  --primary-dark: #115e57;
  --text: #111827;
  --muted: #6b7280;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }

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

.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-link {
  font-size: 0.78rem;
  color: #374151;
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
}

.top-link:hover {
  background: #e5e7eb;
}

.logo { font-weight: 700; }

.container {
  max-width: 1150px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table th, .table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.9rem;
}

.table thead { background: #f3f4f6; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn:hover { background: var(--primary-dark); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 0.25rem 0.55rem; font-size: 0.75rem; }

input[type="text"], input[type="date"], input[type="email"], input[type="time"], input[type="number"], input[type="password"], select {
  width: 100%;
  max-width: 240px;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  margin-bottom: 0.4rem;
}

.inline-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}
.inline-form label {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
}
.inline-form input,
.inline-form select {
  max-width: 200px;
  margin-bottom: 0;
}
.table .inline input {
  margin-bottom: 0;
}
