/* 1:1 из пакета Downloads/sidebar/sidebar/assets/css/sidebar.css + интеграция с кабинетом */
/* Фон ближе к theme (--pr-bg-secondary / --pr-border), чтобы левая колонка не «уезжала» визуально */
:root {
  --lktk-sidebar-width: 56px;
  --lktk-sidebar-bg: color-mix(in srgb, var(--pr-bg-secondary, #f6f9ff) 78%, var(--pr-border, #e5eaf5) 22%);
  --lktk-sidebar-focus: #135ca9;
  --lktk-sidebar-shadow: 4px 0 28px rgba(0, 0, 0, 0.08), 8px 0 48px rgba(0, 0, 0, 0.06);
  --lktk-sidebar-tooltip-border: #d8dee6;
  --lktk-sidebar-tooltip-text: #475566;
}

.lktk-sidebar-page {
  min-height: 100vh;
}

.lktk-sidebar-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.lktk-sidebar-mount {
  width: var(--lktk-sidebar-width);
  min-width: var(--lktk-sidebar-width);
  background: var(--lktk-sidebar-bg);
  box-shadow: var(--lktk-sidebar-shadow);
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  z-index: 2;
  overflow: hidden;
}

.lktk-sidebar-content {
  flex: 1 1 auto;
  min-width: 0;
}

.lktk-sidebar-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 6px 0;
}

.lktk-sidebar-main {
  display: flex;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.lktk-sidebar-top {
  display: flex;
  justify-content: center;
  padding: 0;
}

.lktk-sidebar-menu-btn {
  border: 0;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.lktk-sidebar-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lktk-sidebar-menu-btn img {
  width: 30px;
  height: 30px;
  display: block;
}

.lktk-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 6px;
}

.lktk-sidebar-item-row {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  width: 100%;
  padding: 0;
}

.lktk-sidebar-item-row.is-active {
  background: #cdd7e0;
}

.lktk-sidebar-item-link,
.lktk-sidebar-item-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  text-decoration: none;
}

.lktk-sidebar-item-row:not(.is-active) .lktk-sidebar-item-link:hover,
.lktk-sidebar-item-row:not(.is-active) .lktk-sidebar-item-button:hover {
  background: rgba(255, 255, 255, 0.45);
}

.lktk-sidebar-item-link:focus-visible,
.lktk-sidebar-item-button:focus-visible {
  outline: 2px solid var(--lktk-sidebar-focus);
  outline-offset: 2px;
}

.lktk-sidebar-item-link img,
.lktk-sidebar-item-button img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.lktk-sidebar-icon-stack {
  position: relative;
  width: 36px;
  height: 36px;
}

.lktk-sidebar-icon-stack > img {
  position: absolute;
  left: 0;
  top: 0;
}

.lktk-sidebar-icon-stack .lktk-sidebar-icon-overlay {
  width: 24px;
  height: 24px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.lktk-sidebar-tooltip {
  position: fixed;
  z-index: 2500;
  max-width: 320px;
  min-width: 224px;
  background: #ffffff;
  border: 1px solid var(--lktk-sidebar-tooltip-border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 12px 34px rgba(10, 24, 44, 0.14);
  pointer-events: none;
}

.lktk-sidebar-tooltip::before,
.lktk-sidebar-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.lktk-sidebar-tooltip::before {
  left: -9px;
  border-right: 9px solid var(--lktk-sidebar-tooltip-border);
}

.lktk-sidebar-tooltip::after {
  left: -8px;
  border-right: 9px solid #ffffff;
}

.lktk-sidebar-tooltip-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--lktk-sidebar-tooltip-text);
}

.lktk-sidebar-tooltip-description {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--lktk-sidebar-tooltip-text);
}

.lktk-sidebar-tooltip-divider {
  margin-top: 6px;
  border-top: 1px solid #e8edf3;
}

.lktk-sidebar-bottom {
  height: 36px;
  opacity: 0;
}

/* ── Pooling Route: колонка кабинета справа от сайдбара ── */
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#appRoot {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lktk-sidebar-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.lktk-sidebar-content > .app-shell {
  flex: 1 1 auto;
  min-height: 0;
}
