/* /assets/css/shell.css */

/* account topbar layout */

.accountTopBar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.accountTopBar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.accountBrandMark {
  width: 40px;
  height: 40px;
  margin: 0;
  padding-right: 0;
}

.accountBrandMark a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text);
}

.brandGlyph {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

.accountBrandSub {
  margin: 0;
}

.accountBrandSub h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.topBarCenter {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.accountTopBtns,
.accountTopBar .topB-btns {
  width: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
}

.accountTopBar .topBarRight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: inherit;
  cursor: pointer;
}

/* shell controls */

.topDropdownWrap {
  position: relative;
}

.topIconBtn,
.profileBtn,
.orgChip {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text);
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.topIconBtn:hover,
.profileBtn:hover,
.orgChip:hover {
  transform: translateY(-1px);
}

.topIconBtn i,
.profileBtn i {
  font-size: 1.05rem;
}

.orgChip {
  max-width: 180px;
}

.orgChipLabel {
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
}

/* dropdowns */

.topDropPanel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.topDropPanel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topDropInset {
  background: var(--menu-bg);
  color: var(--menu-text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 14px;
}

.topDropInset a,
.topDropInset p {
  margin: 0;
  display: block;
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
}

.topDropInset a {
  padding: 8px 0;
}

.topDropInset a:hover {
  opacity: 0.75;
}

.menuLabel {
  font-weight: 800;
  margin-bottom: 6px !important;
}

.menuMuted {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

.profileMenuPanel {
  width: 240px;
}

.orgMenuPanel {
  width: 280px;
}

.breaker {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

/* notifications */

.notifDot {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: #e18734;
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  top: -5px;
  right: -4px;
}

.notifList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notifItem {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}

.notifItem:last-child {
  border-bottom: none;
}

.notifItem strong {
  display: block;
  margin-bottom: 4px;
}

/* optional theme button support */

.themeClicker.topIconBtn {
  position: relative;
  padding: 0;
  overflow: hidden;
  width: 40px;
  min-width: 40px;
}

.themeClicker.topIconBtn #insideTc {
  position: absolute;
  width: 56px;
  height: 38px;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0 7px;
  transition: left 0.25s ease;
  background: transparent;
}

.themeClicker.topIconBtn #insideTc.slideleft {
  left: -28px;
}

.themeClicker.topIconBtn #insideTc i {
  font-size: 1.2rem;
  width: 18px;
  text-align: center;
  margin: 0 11px 2px 2px;
  opacity: .8;
}

#insideTc .light { color: #e37d52; }
#insideTc .dark { color: #c0cbb0; }

/* responsive */

@media (max-width: 1024px) {
  .accountTopBar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topBarCenter {
    justify-content: flex-start;
  }

  .accountTopBtns,
  .accountTopBar .topB-btns {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .orgMenuPanel,
  .profileMenuPanel,
  .topDropPanel {
    right: auto;
    left: 0;
  }
}