/* P11-R7-U3 — shared restaurant branding header contract */
.staff-restaurant-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.staff-restaurant-branding--compact {
  gap: 0.4rem;
}

.staff-restaurant-branding--sidebar {
  align-items: flex-start;
  gap: 0.65rem;
}

.staff-restaurant-branding__logo {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rastan-radius-sm, 6px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rastan-surface-muted, rgba(0, 0, 0, 0.06));
  border: 1px solid var(--rastan-border, #dee2e6);
}

.staff-restaurant-branding--sidebar .staff-restaurant-branding__logo {
  width: 2.5rem;
  height: 2.5rem;
}

.staff-restaurant-branding__logo img,
.staff-restaurant-branding__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.staff-restaurant-branding__logo img.staff-restaurant-branding__img--loaded,
.staff-restaurant-branding__img.staff-restaurant-branding__img--loaded {
  opacity: 1;
}

.staff-restaurant-branding__logo--initials {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rastan-primary, #1565c0);
  text-transform: uppercase;
  line-height: 1;
}

.staff-restaurant-branding__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.staff-restaurant-branding__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.staff-restaurant-branding__branch {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--rastan-text-muted, #6c757d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.staff-restaurant-branding__tag {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--rastan-text-muted, #6c757d);
}

.staff-restaurant-branding-anchor {
  margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
  .staff-restaurant-branding__name,
  .staff-restaurant-branding__branch {
    max-width: 10rem;
  }

  .staff-restaurant-branding__logo {
    width: 2rem;
    height: 2rem;
  }
}
