﻿:root {
  --idsh-border: rgba(98, 105, 118, 0.18);
  --idsh-radius: 0.875rem;
}

html,
body {
  overflow-x: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper .page-body {
  flex: 1 0 auto;
}

.idsh-topbar {
  border-bottom: 1px solid var(--idsh-border);
  background: var(--tblr-bg-surface, #fff);
}

.idsh-shell-container {
  width: 100%;
}

.idsh-brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem 0.75rem;
}

.idsh-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.idsh-brand:hover {
  text-decoration: none;
  color: inherit;
}

.idsh-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  border: 1px solid var(--idsh-border);
  background: rgba(0, 0, 0, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 38px;
}

.idsh-brand-mark img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.idsh-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.idsh-brand-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idsh-brand-subtitle {
  color: var(--tblr-muted, #6c7a91);
  font-size: 0.82rem;
}

.idsh-context-panel {
  border: 1px solid rgba(var(--tblr-primary-rgb), 0.2);
  background: rgba(var(--tblr-primary-rgb), 0.08);
  border-radius: var(--idsh-radius);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.idsh-context-panel__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tblr-primary);
  font-weight: 700;
}

.idsh-context-panel__title {
  font-weight: 700;
  margin-top: 0.15rem;
}

.idsh-context-panel__meta {
  font-size: 0.82rem;
  color: var(--tblr-muted, #6c7a91);
  margin-top: 0.15rem;
}

.idsh-main-nav .navbar-nav {
  gap: 0.2rem;
}

.idsh-navlink {
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.idsh-nav-ic {
  width: 1.2rem;
  min-width: 1.2rem;
  text-align: center;
}

.idsh-nav-text {
  min-width: 0;
}

.idsh-sidebar-block {
  margin-bottom: 0.75rem;
}

.idsh-sidebar-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.idsh-sidebar-block__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tblr-muted, #6c7a91);
}

.idsh-sidebar-block__meta {
  font-size: 0.75rem;
  color: var(--tblr-muted, #6c7a91);
}

.idsh-chip-meta {
  margin-left: auto;
  font-size: 0.72rem;
  border: 1px solid var(--idsh-border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.idsh-sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--idsh-border);
}

.idsh-sidebar-footer__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tblr-muted, #6c7a91);
}

.idsh-topbar__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.6rem 0;
}

.idsh-topbar__left,
.idsh-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.idsh-topbar__left {
  flex: 1 1 auto;
  min-width: 0;
}

.idsh-topbar__context {
  min-width: 0;
}

.idsh-topbar__title {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idsh-topbar__subtitle {
  font-size: 0.82rem;
  color: var(--tblr-muted, #6c7a91);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idsh-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--idsh-border);
  border-radius: 999px;
  padding: 0.16rem;
}

.idsh-theme-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: rgba(30, 41, 59, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.idsh-theme-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.idsh-theme-btn:hover,
.idsh-theme-btn.is-active {
  background: rgba(var(--tblr-primary-rgb), 0.12);
  color: var(--tblr-primary);
}

.idsh-account-link {
  border-radius: 999px;
}

.idsh-user-avatar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.idsh-focus:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(var(--tblr-primary-rgb), 0.2) !important;
}

@media (max-width: 991.98px) {
  .idsh-topbar__subtitle {
    display: none;
  }
}

[data-bs-theme="dark"] {
  --idsh-border: rgba(255, 255, 255, 0.14);
}
