/* ===== Протокол24 header profile patch v3.2 ===== */

.p24-actions {
  align-items: center !important;
}

.p24-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 6px 14px 6px 7px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dce6f7;
  color: #10234f !important;
  box-shadow: 0 12px 30px rgba(20,35,79,.06);
  text-decoration: none !important;
}

.p24-user-pill:hover {
  border-color: #bfd2f4;
  box-shadow: 0 14px 34px rgba(20,35,79,.09);
}

.p24-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #1e72ff, #0a3dca);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 950;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(21,93,252,.20);
}

.p24-user-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.p24-user-label {
  color: #6b7b99;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.p24-user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #10234f !important;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.p24-logout-link {
  color: #647497 !important;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
}

.p24-logout-link:hover {
  color: #155dfc !important;
}

/* Убираем минимальную ширину кнопки из v3.1, чтобы профиль не распирал правую колонку */
.p24-actions .p24-btn {
  min-width: 0 !important;
}

@media (max-width: 980px) {
  .p24-user-meta,
  .p24-logout-link {
    display: none !important;
  }

  .p24-user-pill {
    min-height: 44px;
    padding: 4px;
    border-radius: 15px;
  }

  .p24-user-avatar {
    width: 36px;
    height: 36px;
  }
}