/* Combo tree page: full-width like combo list; chrome stack + (tree scroll | detail). */

#treeView .tree-main-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  min-width: 100%;
  width: 100%;
  box-sizing: border-box;
  gap: 0;
}

#treeView .tree-page-chrome {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

#treeView .tree-body-split {
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  gap: 0;
  align-items: stretch;
  position: relative;
}

/* Full-viewport hairline at top of tree+detail row. Centered on this row (full main width),
   not on the left strip — so it reaches the right edge of the window. */
#treeView .tree-body-split::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  height: 1px;
  background: #2a2a2a;
  pointer-events: none;
  z-index: 17;
}

/* Left stack: chrome + toolbar + tree canvas only (not under detail pane). */
#treeView .tree-left-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

#treeView .tree-left-column > .tree-view-scroll {
  flex: 1 1 auto;
  min-width: 1540px;
  min-height: 0;
  box-sizing: border-box;
}

/* Toolbar row: flat band like original tree mockup (not a separate “card”). */
#treeView .tree-sticky-strip-host {
  position: relative;
  z-index: 16;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 34px;
  /* Match combo list chrome: #comboTableScroll / row toggles use left: 5px */
  padding: 6px 5px;
  margin-top: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #262626;
  border-top: none;
  background: linear-gradient(180deg, #101010 0%, #0f0f0f 100%);
}

#treeView .tree-sticky-strip-host .tree-mockup-colhead {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  border-bottom: 0;
  padding: 6px 0;
}

#treeView .tree-sticky-strip-host .tree-mockup-h-canvas {
  display: block;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

#treeView .tree-sticky-strip-host .tree-strip-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: 28px;
  padding-right: 130px;
  box-sizing: border-box;
}

#treeView .tree-sticky-strip-host .tree-view-count {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  font-size: 11px;
  color: #8b8b8b;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Standalone toolbar buttons: compact caps, same family as order-toggle text */
#treeView .tree-sticky-strip-host .tree-strip-inline > .combo-search-secondary {
  background: #151515;
  border: 1px solid #333;
  color: #9a9a9a;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  height: auto;
  min-height: 28px;
  cursor: pointer;
  margin: 0;
}

#treeView .tree-sticky-strip-host .tree-strip-inline > .combo-search-secondary:hover {
  background: #1e1e1e;
  color: #e6e6e6;
  border-color: #f97306;
}

body[data-theme="light"] #treeView .tree-sticky-strip-host {
  border-top: none;
  border-bottom: 1px solid #cfcfcf;
  background: linear-gradient(180deg, #ededed 0%, #e6e6e6 100%);
}

body[data-theme="light"] #treeView .tree-body-split::before {
  background: #dcdcdc;
}

body[data-theme="light"] #treeView .tree-sticky-strip-host .tree-view-count {
  color: #555;
  background: #e8e8e8;
  border-color: #bcbcbc;
}

body[data-theme="light"] #treeView .tree-sticky-strip-host .tree-strip-inline > .combo-search-secondary {
  background: #e4e4e4;
  color: #333;
  border-color: #b0b0b0;
}

body[data-theme="light"] #treeView .tree-sticky-strip-host .tree-strip-inline > .combo-search-secondary:hover {
  border-color: #f97306;
}

body[data-theme="light"] #treeView .tree-left-column {
  background: #efefef;
}

/* Guide trigger: same chrome as portrait / Classic–Modern; bottom-right of that strip */
#treeView .combo-tree-topstrip .tree-tutorial-trigger {
  position: absolute;
  right: 12px;
  bottom: 8px;
  top: auto;
  transform: none;
  z-index: 8;
  margin: 0;
}

body[data-theme="light"] #treeView .combo-tree-topstrip .tree-tutorial-trigger {
  border-color: #b0b0b0;
  background: #e4e4e4;
  color: #333;
}

body[data-theme="light"] #treeView .combo-tree-topstrip .tree-tutorial-trigger:hover {
  border-color: #f97306;
  color: #111;
}
