$lightGray: #e0e0e0;

html, body, #root, div[data-reactroot] {
  height: 100%;
}
div[data-reactroot] {
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

.navbar-logo {
  margin-top: 6px;
  margin-left: 16px;
  margin-right: 8px;
}

.horizontal-container--wrapper {
  flex: 1;
  display: flex;
  flex-direction: row;
  position: relative!important;
  height: inherit;

  // individual columns
  > div > div > * {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
  }

}

$pad: 12px;

.padding {
  padding: $pad;
}

.content {
  padding: $pad;
  margin-bottom: $pad;

  h2, h3 {
    margin: 0;
    margin-top: $pad;
    margin-bottom: $pad / 2;
    color: rgba(0, 0, 0, 0.541176);
    font-weight: 500;
    line-height: 1;
  }
  h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: $pad * 2;
  }
  h3 {
    font-size: 14px;
  }

  > :first-child {
    margin-top: 0
  }

  button.icon-button {
    float: right;
    margin: -$pad / 2 !important;
    width: 48px;
    height: 48px;
  }
}

@mixin list {
  .selected {
    background-color: $lightGray !important;
  }
}

.definitions-list--wrapper {
  @include list;
}

.definition-detail--wrapper {
  .sessions-list {
    @include list;
  }
}

.session-detail--wrapper {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  height: 100%;
  display: flex; flex-direction: column;
  .loader {
    flex: 1;
    position: relative;
    > div {
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
    }
  }
}

.traces-list--wrapper {
  flex: 1;

  .ReactVirtualized__Table__headerRow {
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  }

  .ReactVirtualized__Table__row {
    &:hover {
      background-color: #e0e0e0;
      cursor: pointer;
    }
  }

  .ReactVirtualized__Table__rowColumn, .ReactVirtualized__Table__headerColumn {
    font-size: 12px;
    padding: 2px;
  }
  .ReactVirtualized__Table__headerColumn {
    font-weight: 500;
  }
}

.definition-detail--wrapper {
  .sessions-list {
    flex: 1;
    overflow: auto;
  }
}

.session-detail--dialog {
  table {
    margin: 0;
    pre {
      margin: 0;
    }
    th, td {
      margin: 0;
    }
  }
}

.module-input--wrapper {
  button {
    width: 36px!important;
    height: 36px!important;
    padding: 0!important;
  }
}

.buttons {
  > * {
    margin-right: 12px;
  }

  > .danger {
    margin-right: 0;
    float: right;
  }
}

@mixin toolbar {
  button {
    margin: 0!important;
  }
}

.session-toolbar--wrapper {
  @include toolbar;

  span {
    // title
    cursor: pointer;
  }
}

.session-filter-toolbar--wrapper {
  @include toolbar;

  padding: 0 12px !important;
  background-color: #fff !important;
  box-shadow: inset 0 2px 2px -6px black;
}

.filter-pill--wrapper {
  display: inline-block;
  padding: 3px 8px;
  margin-left: 5px;
//  border-radius: 8px;
  cursor: pointer;
  background-color: white;
  border: 2px solid $lightGray;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;

  &.selected {
    background-color: $lightGray;
  }
}
