/* Staff — equipe do painel (centralizado) */
#view-staff {
  display: flex;
  justify-content: center;
  padding: 8px 16px 32px;
}

.staff-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.staff-panel {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.staff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #242424;
  text-align: left;
}

.staff-head-copy {
  min-width: 0;
}

.staff-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.staff-head .block-title {
  font-size: 18px;
  line-height: 1.2;
}

.staff-hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.staff-add {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.12);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.staff-add svg {
  width: 18px;
  height: 18px;
}

.staff-add:hover {
  transform: scale(1.04);
  background: rgba(225, 6, 0, 0.2);
  border-color: rgba(225, 6, 0, 0.55);
}

.staff-list {
  display: grid;
}

.staff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #222;
  transition: background 0.16s ease;
}

.staff-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 12px 12px;
}

.staff-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.staff-row.is-you {
  background: rgba(225, 6, 0, 0.04);
}

.staff-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.staff-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #222;
  border: 1px solid #333;
  flex: none;
}

.staff-row.is-owner .staff-avatar {
  border-color: rgba(225, 6, 0, 0.4);
  color: #ff8a8a;
}

.staff-name-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-you {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.12);
  color: #ff8a8a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  position: relative;
  overflow: visible;
}

.staff-role-badge,
.staff-role-dd-btn {
  min-width: 118px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  padding: 7px 10px;
}

.staff-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  background: #161616;
  color: #ccc;
}

.staff-role-badge.is-owner,
.staff-role-dd.is-owner .staff-role-dd-btn {
  color: #ff6b6b;
  border-color: rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.08);
}

.staff-role-badge.is-reseller,
.staff-role-dd.is-reseller .staff-role-dd-btn {
  color: #e5c07b;
  border-color: rgba(229, 192, 123, 0.28);
  background: rgba(229, 192, 123, 0.06);
}

.staff-role-dd {
  position: relative;
  flex: none;
}

.staff-role-dd-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #333;
  background: #161616;
  color: #eee;
  cursor: pointer;
  text-align: left;
}

.staff-role-dd-btn svg {
  width: 11px;
  height: 11px;
  flex: none;
  opacity: .75;
}

.staff-role-dd-btn:focus {
  outline: 0;
  border-color: rgba(225, 6, 0, 0.45);
}

.staff-role-dd-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  min-width: 100%;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #161616;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: none;
}

.staff-role-dd.is-open .staff-role-dd-menu {
  display: block;
}

.staff-row:last-child .staff-role-dd-menu {
  top: auto;
  bottom: calc(100% + 4px);
}

.staff-role-dd-opt {
  width: 100%;
  display: block;
  padding: 9px 12px;
  border: 0;
  background: #161616;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.staff-role-dd-opt:hover,
.staff-role-dd-opt.is-on {
  background: #1f1f1f;
}

.staff-role-dd-opt.is-owner {
  color: #ff6b6b;
}

.staff-role-dd-opt.is-reseller {
  color: #e5c07b;
}

.staff-remove {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: transparent;
  color: #f87171;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.staff-remove svg {
  width: 15px;
  height: 15px;
}

.staff-remove:hover {
  background: rgba(127, 29, 29, 0.25);
  border-color: rgba(248, 113, 113, 0.4);
}

.staff-empty {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.staff-empty-panel {
  background: #161616;
  border: 1px dashed #2a2a2a;
  border-radius: 12px;
}

@media (max-width: 560px) {
  .staff-row {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .staff-main {
    width: 100%;
    justify-content: center;
  }

  .staff-side {
    width: 100%;
    justify-content: center;
  }
}
