/* Shared Pacta top bar – one header, left (breadcrumb) + right (actions).
   Avoid: width: fit-content on header; position: absolute on bell/user; flex:1 on breadcrumb. */

.topbar {
  width: 100%;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-100, #e5e7eb);
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Breadcrumb */
.breadcrumbs {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-400);
}
.breadcrumbs a {
  color: var(--grey-400);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary-500);
}
.breadcrumbs span {
  color: var(--grey-900);
}

/* Notifications – wrapper only for badge positioning; no absolute on button */
.topbar-notifications {
  position: relative;
  flex-shrink: 0;
}
.topbar-notifications-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--grey-100);
  background: var(--grey-0);
  color: var(--grey-900);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.topbar-notifications-btn:hover {
  background: var(--grey-25, #f6f8fa);
  border-color: var(--grey-100);
}
.topbar-notifications-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error-100, #df1c41);
  pointer-events: none;
}

.topbar-divider {
  width: 1px;
  height: 20px;
  background: var(--grey-100);
  flex-shrink: 0;
}

.main__profile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.main__profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.main__profile-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-900);
  line-height: 1.3;
}
.main__profile-role {
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-500);
  line-height: 1.3;
}
