/* =============================================================
   02-shell.css
   Application frame: sidebar, topbar, main container, scroll area
   ============================================================= */

.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #f9fafb;
}

/* ── Sidebar ── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.sb-logo {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.sb-logo img {
  height: 18px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.sb-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
}
.nav-item,
a.nav-item,
a.nav-item:link,
a.nav-item:visited {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #4d5761;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  user-select: none;
}
.nav-item:hover {
  background: #f9fafb;
  color: #1f2a37;
}
.nav-item.active {
  color: #111927;
  background: #f3f4f6;
  font-weight: 600;
}
.nav-badge {
  margin-left: auto;
  background: #1f2a37;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 16px;
}
.nav-ico {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  flex-shrink: 0;
}
.nav-item.active .nav-ico {
  opacity: 1;
}
.sb-foot {
  padding: 14px;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}
.sb-status-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #9da4ae;
  margin-bottom: 5px;
}
.sb-status-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2a37;
  margin-bottom: 7px;
}
.sb-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #6c737f;
  margin-bottom: 3px;
}
.sb-kit-btn {
  margin-top: 9px;
  width: 100%;
  background: #1f2a37;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition:
    background 0.15s,
    transform 0.12s;
}
.sb-kit-btn:hover {
  background: #111927;
  transform: scale(1.02);
}

/* ── Main container ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Topbar ── */
.topbar {
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 10px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.prop-sel {
  position: relative;
}
.prop-sel-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.prop-badge {
  background: #1f2a37;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 5px;
}
.prop-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2a37;
}
.prop-units {
  font-size: 12px;
  font-weight: 400;
  color: #9da4ae;
  margin-left: 1px;
}
.prop-chevron {
  font-size: 11px;
  color: #9da4ae;
  transition: transform 0.2s;
  display: inline-block;
}
.prop-chevron.open {
  transform: rotate(180deg);
}
.prop-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 25, 39, 0.1);
  min-width: 240px;
  z-index: 100;
  overflow: hidden;
  animation: fadeUp 0.15s ease both;
  display: none;
}
.prop-dropdown.open {
  display: block;
}
.prop-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 13px;
  font-weight: 500;
  color: #1f2a37;
}
.prop-dropdown-item:hover {
  background: #f9fafb;
}
.prop-dropdown-item.active {
  background: #f3f4f6;
}
.prop-dropdown-badge {
  background: #1f2a37;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 5px;
  flex-shrink: 0;
}
.prop-dropdown-units {
  font-size: 11px;
  color: #9da4ae;
  font-weight: 400;
  margin-left: auto;
}
.tb-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: #9da4ae;
  width: 150px;
}
.ico-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6c737f;
  transition: background 0.12s;
}
.ico-btn:hover {
  background: #f3f4f6;
}
.help-btn {
  font-size: 12px;
  font-weight: 500;
  color: #6c737f;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  transition: background 0.12s;
}
.help-btn:hover {
  background: #f3f4f6;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1f2a37;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Scrollable content area ── */
.scroll {
  flex: 1;
  overflow-y: auto;
  padding: 26px 30px 48px;
}
