@import '../../styles/variables.css';

:root {
  --root-spacing: var(--s-2);
  --min-panel-size: var(--s7);
  --controls-font-size: var(--font-size-info);
  --litepicker-tooltip-color-bg: var(--neutral-color600);
}

.litepicker {
  margin-top: 0px;
}

.demo__phones {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.demo__phones__controls {
  background-color: var(--neutral-color600);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  padding: var(--s-2) 0;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.demo__phones__controls span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.demo__phones__controls button {
  margin: 0 var(--s-3);
}

.demo__phones__charts {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  max-height: 100%;
  height: 100%;
  width: 100%;
}

.demo__phones__timebar {
  padding: var(--s-2) 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  text-align: center;
}

.demo__kl-timebar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 12vh;
  width: 100%;
}

.demo__phones__charts > * + * {
  margin-left: var(--root-spacing);
}

.lhs {
  background-color: var(--background-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 3;
      -ms-flex: 3;
          flex: 3;
  height: 100%;
  min-width: var(--min-panel-size);
  position: relative;
}

.rhs {
  background-color: var(--background-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 2;
      -ms-flex: 2;
          flex: 2;
  height: 100%;
  min-height: 100%;
  min-width: var(--min-panel-size);
  position: relative;
}

.demo__kl-container {
  position: relative;
  -webkit-box-flex: 10;
      -ms-flex-positive: 10;
          flex-grow: 10;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.demo__phones__controls__control-with-label {
  font-size: var(--controls-font-size);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.demo__phones__controls__control-with-label > * + * {
  margin-left: var(--root-spacing);
}

@media (max-width: 700px) {
  .demo__phones__controls__control-with-label {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }

  .demo__phones__controls__control-with-label > * + * {
    margin-left: 0;
  }
}

#search-choices,
#wrapping-choices {
  background-color: var(--neutral-color900);
  width: 16ex;
}

#date-picker {
  width: 35ex;
}

#search-controls input {
  width: 25ex;
  padding: var(--s-2);
}

.demo__phones__select {
  padding: var(--s-2);
}

/* the point at which the view changes to column rather than row layout */
@media (max-width: 609px) {
  .rhs {
    margin-top: var(--root-spacing);
    margin-left: 0;
  }
}

#reset-button,
#undo-button,
#redo-button {
  border-color: var(--neutral-color100);
  letter-spacing: 0.08em;
  outline: none;
}

#search-choice,
#litepicker,
.demo__phones__select {
  border: none;
  outline: none;
}

#wrapping-choices,
#search-choice,
#reset-button,
#undo-button,
#redo-button {
  height: 1.7rem;
}

.demo__phones__timebar__controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background-color: transparent;
  position: absolute;
}

.demo__phones__controls__timebar__button {
  width: var(--s1);
  height: var(--s-0);
}

.demo__phones__controls__timebar__button-fit {
  width: var(--s2);
  height: var(--s1);
}

.demo__phones__controls__timebar__button,
.demo__phones__controls__timebar__button-fit {
  padding: 0 var(--s-2);
}
