body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
}

dialog::backdrop {
  background: rgb(15 23 42 / 0.45);
}

.nav-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-item:hover {
  background: #f1f5f9;
}

.nav-item-active {
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 600;
}

.badge {
  background: #14b8a6;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  min-width: 24px;
  text-align: center;
}

.tab-btn {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
}

.tab-btn.active {
  background: #14b8a6;
  color: #fff;
  border-color: #14b8a6;
}

/* Pestanyes denúncies: text i comptadors més llegibles */
.tab-btn.tab-btn-reports {
  color: #0f172a;
  font-weight: 600;
}

.tab-btn.tab-btn-reports.active {
  color: #f8fafc;
}

.link {
  color: #0f766e;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

th.sortable {
  cursor: pointer;
}

th.sort-asc::after {
  content: " ▲";
  font-size: 10px;
}

th.sort-desc::after {
  content: " ▼";
  font-size: 10px;
}

.btn-primary {
  background: #14b8a6;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
}

a.btn-primary {
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: #0d9488;
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-ghost {
  background: transparent;
  color: #0f766e;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-ghost:hover {
  background: #ccfbf1;
}

.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
}
