/**
 SPLIT
 =====
 Vertically split panels
*/

/* .split: The container for one or more panels */

.split {
  inset: 0;
  display: flex;
  flex: auto;
  flex-direction: row;
  position: absolute;
}

/* .split-panel: Contains a body, and optional header and footer elements */

.split-panel {
  display: flex;
  flex: auto;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.split-panel-hd,
.split-panel-bd,
.split-panel-ft {
  position: relative;
}

.split-panel-hd,
.split-panel-ft {
  border-color: var(--base03);
  box-sizing: border-box;
  display: flex;
  flex: none;
  flex-direction: column;
}

.split-panel-hd {
  background: var(--base00);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  min-height: 29px;
}

.split-panel-bd {
  background: var(--base00);
  flex: auto;
  overflow: scroll;
  max-width: 100%;
  width: auto;
}

.split-panel-ft {
  background: var(--base01);
  border-top-style: solid;
  border-top-width: 1px;
  height: 23px;
  justify-content: center;
}

.split-panel,
.split-panel-bd {
  height: 100%;
}

/* Custom panels */

.split-panel-hd-row {
  flex-flow: row;
}

.split-panel-sidebar-1 .split-panel-bd {
  background: var(--base01);
}

.split-panel-sidebar-2 .split-panel-bd {
  background: var(--base01);
}

/* Fix main list-view scrolling */
.split-main > .split-panel > .split-panel-bd {
  overflow: hidden;
}

.split-main > .split-panel-sidebar-1 > .split-panel-bd {
  overflow-y: auto;
}

/* There is better ways to do this, but they create more complicated CSS */
.split-panel-hd-row .spacer {
  flex: 1 1 100%;
}
