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

body {
  margin: 0;
  background: #f4f5f7;
  color: #1a1a1a;
}

header {
  background: #2ca01c;
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

main {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2ca01c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-connect:hover {
  background: #248a17;
}

.tenant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tenant-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.tenant-list li:last-child {
  border-bottom: none;
}

.tenant-list a {
  color: #2ca01c;
  font-weight: 600;
  text-decoration: none;
}

.muted {
  color: #666;
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 14px;
}

.tab.active {
  background: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filters button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 13px;
}

.filters button.active {
  background: #eef7ec;
  border-color: #2ca01c;
  color: #1c7a10;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}

th {
  color: #666;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge.paid {
  background: #eef7ec;
  color: #1c7a10;
}

.badge.unpaid {
  background: #fdeeee;
  color: #b3261e;
}

.empty {
  color: #666;
  padding: 24px 0;
  text-align: center;
}

select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}
