.card {
  overflow: hidden;
  font-family: Arial, sans-serif;
  margin: 10px;
}

.card-header:first-child {
  padding-top: 0px;
}

.card:not(:last-child) {
  border-bottom: 1px solid #b6b6b6;
}

.card-header {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.info {
  flex: 1;
  margin-left: 10px;
}

.name {
  font-weight: bold;
  margin-top: 5px;
  color: var(--tg-theme-text-color, #000000);
}

.job_title {
  margin-top: 0px;
  color: var(--tg-theme-subtitle-text-color, #757575);
}

.regalii p {
  margin-top: 0px;
  margin-bottom: 4px;
  color: var(--tg-theme-text-color, #000000);
}

#search {
  -webkit-tap-highlight-color: transparent;
  width: calc(100% - 45px);
  margin: 10px;
  margin-bottom: 0px;
  padding: 8px 12px;
  border: 1px solid #b6b6b6;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.95em;
  color: var(--tg-theme-text-color, #000000);
  background-color: var(--tg-theme-bg-color, #ffffff);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

#search:focus {
  border-color: var(--tg-theme-link-color, #868686);
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

select {
  -webkit-tap-highlight-color: transparent;
  width: calc(100% - 20px);
  margin: 10px;
  margin-bottom: 0px;
  padding: 8px 12px;
  border: 1px solid #b6b6b6;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.95em;
  color: var(--tg-theme-text-color, #000000);
  background-color: var(--tg-theme-bg-color, #ffffff);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

select:focus {
  border-color: var(--tg-theme-link-color, #868686);
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

#org-select {
  display: none;
}

.toggle {
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  font-size: 1.2em;
  transition: transform 0.3s;
  color: var(--tg-theme-subtitle-text-color, #555);
}

.card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
}

.card-body.open {
  max-height: 1000px;
  padding: 10px;
}

.contacts {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.contacts li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.contacts a {
  text-decoration: none;
  color: var(--tg-theme-link-color, #2063b9);
}

.contacts li img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

#filter-container {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
  font-family: Arial, sans-serif;
}
