.employee-profile {
  margin-top: 12px;
}

.employee-profile__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 16px;
}

@media (max-width: 1200px) {
  .employee-profile__grid {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .employee-profile__gridRight {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .employee-profile__grid {
    grid-template-columns: 1fr;
  }
}

.employee-profile-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.employee-profile-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.015);
}

.employee-profile-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
}

.employee-profile-card__body {
  padding: 14px;
}

.employee-profile-avatarWrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.employee-profile-avatarWrap > img.employee-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.employee-profile-avatarWrap > div.employee-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 48px;
}

.employee-profile-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-profile-name__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.employee-profile-name__fio {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.82);
  flex: 1 1 auto;
  min-width: 0;
}

.employee-profile-name__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.employee-profile-name__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.employee-profile-name__action:hover {
  background: rgba(25, 118, 210, 0.08);
  color: rgba(25, 118, 210, 0.95);
}

.employee-profile-name__action .material-icons {
  font-size: 20px;
}

.employee-profile-name__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
}

.employee-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.7);
}

.employee-profile-badge--success {
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.25);
  color: rgba(25, 120, 50, 0.9);
}

.employee-profile-badge--danger {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.25);
  color: rgba(170, 25, 35, 0.92);
}

.employee-profile-kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 12px;
}

.employee-profile-kv__k {
  color: rgba(0, 0, 0, 0.55);
  font-size: 13px;
}

.employee-profile-kv__v {
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  word-break: break-word;
}

.employee-profile-kv__v a {
  color: inherit;
  text-decoration: none;
}

.employee-profile-kv__v a:hover {
  text-decoration: underline;
}

.employee-profile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employee-profile-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.015);
  color: rgba(0, 0, 0, 0.76);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.employee-profile-links a:hover {
  background: rgba(25, 118, 210, 0.06);
  border-color: rgba(25, 118, 210, 0.22);
}

.employee-profile-links .material-icons {
  font-size: 18px;
  opacity: 0.75;
}

.employee-profile-team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1200px) {
  .employee-profile-team {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .employee-profile-team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.employee-profile-team__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.72);
}

.employee-profile-team__item:hover {
  color: rgba(25, 118, 210, 0.95);
}

.employee-profile-team__name {
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-profile-team__avatar img,
.employee-profile-team__avatar div {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
}

.employee-profile-team__avatar div {
  font-size: 14px !important;
  font-weight: 800;
}

