/* Cabinet grid */

.cab-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.cab-sidebar {
  width: var(--cab-sidebar-width);
  height: 100vh;
  background: var(--cab-sidebar-bg);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cab-sidebar--collapsed {
  width: var(--cab-sidebar-width-sm);
}

.cab-sidebar--collapsed .cab-nav__label,
.cab-sidebar--collapsed .cab-sidebar__title {
  display: none;
}

.cab-sidebar--collapsed .cab-sidebar__logo {
  justify-content: center;
}

.cab-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.cab-topbar {
  height: var(--cab-topbar-height);
  min-height: var(--cab-topbar-height);
  background: var(--cab-topbar-bg);
  border-bottom: 1px solid var(--cab-topbar-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.cab-content {
  flex: 1;
  background: var(--cab-content-bg);
  padding: 1.5rem;
  overflow-y: auto;
}

.cab-nav__item:hover {
  background: var(--cab-sidebar-hover-bg);
  color: var(--cab-sidebar-active) !important;
}
