.tenant-admin-shell {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
  color: #1e293b;
  font-family: "Inter", sans-serif;
}

.tenant-shell-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem 0 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.tenant-shell-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  width: 300px;
}

.tenant-shell-logo {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
}

.tenant-shell-logo .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.tenant-shell-brand-copy {
  min-width: 0;
}

.tenant-shell-brand-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: #2563eb;
}

.tenant-shell-brand-subtitle {
  margin: 0.18rem 0 0;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tenant-shell-crumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
}

.tenant-shell-crumbs span:last-child {
  color: #475569;
}

.tenant-shell-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tenant-shell-icon-button,
.tenant-shell-logout {
  border: 0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font: inherit;
}

.tenant-shell-icon-button {
  display: inline-flex;
  height: 38px;
  width: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.tenant-shell-icon-button:hover,
.tenant-shell-logout:hover {
  background: #f8fafc;
}

.tenant-shell-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.68rem 0.82rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.tenant-shell-logout .material-symbols-outlined {
  font-size: 18px;
}

.tenant-shell-sidebar {
  position: fixed;
  top: 78px;
  left: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  width: 198px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 0.9rem 1rem;
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.tenant-shell-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tenant-shell-nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 14px;
  padding: 0.78rem 0.85rem;
  color: #475569;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tenant-shell-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.tenant-shell-nav-item.is-active {
  background: #f4e6b2;
  color: #0f172a;
  box-shadow: inset 4px 0 0 #2563eb;
}

.tenant-shell-nav-item.is-disabled {
  opacity: 0.72;
  cursor: default;
}

.tenant-shell-nav-item .material-symbols-outlined {
  font-size: 20px;
}

.tenant-shell-sidebar-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.05rem;
}

.tenant-shell-settings {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
}

.tenant-shell-support {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.95);
  padding: 0.8rem;
}

.tenant-shell-support-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.tenant-shell-support-action {
  margin-top: 0.8rem;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #2563eb;
  padding: 0.7rem 0.8rem;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.tenant-main {
  min-height: 100vh;
  padding-top: 102px;
}

.tenant-content {
  margin-left: 198px;
  padding: 0 1rem 2rem;
}

.tenant-page-head {
  margin-bottom: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tenant-page-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tenant-page-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.tenant-page-copy {
  margin: 0;
  max-width: 56rem;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.7;
}

.tenant-shell-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: #eef2ff;
  padding: 0.45rem 0.8rem;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
}

.tenant-shell-status-dot {
  height: 7px;
  width: 7px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 1023px) {
  .tenant-shell-topbar {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .tenant-shell-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 0.9rem;
  }

  .tenant-shell-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tenant-shell-nav-item {
    flex: 1 1 220px;
  }

  .tenant-main {
    padding-top: 132px;
  }

  .tenant-content {
    margin-left: 0;
    padding: 1.25rem;
  }
}

@media (max-width: 767px) {
  .tenant-main {
    padding-top: 148px;
  }

  .tenant-shell-crumbs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tenant-shell-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .tenant-content {
    padding: 1rem;
  }
}
