/* Layout */

html, body, div[ng-app] {
  height: 100%;
  font-family: $default-font;
}

.layout {
  display: table;
  width: 100%;
  height: 100%;
}

.layout-north {
  display: table-row;
  height: 1%;

  @include transform(translateY(-27px));
  @include transition(transform 0.3s ease-in-out);
  &.full {
    @include transform(none);
  }
}

.layout-middle {
  display: table-row;
  vertical-align: top;

  > div {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    position: relative;
  }
}

.layout-cell {
  display: table-cell;
  height: 100%;

  > .inner1 {
    position: relative;
    width: 100%;
    height: 100%;

    > .inner2 {
      position: absolute;
      overflow: auto;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }
}

.layout-side {
  @extend .layout-cell;

  width: 310px;
  padding-right: 10px;

  .inner2 {
    padding: 10px 0 0px 10px;
  }

  .box {
    background: #fff;
    border: 1px solid #aaa;
    margin-bottom: 10px;

    > h2 {
      margin: 10px;
      font-size: 16px;
      color: #444;
      font-weight: bold;
    }

    > .content {
      margin: 10px;
    }
  }
}

.layout-side-onebox {
  @extend .layout-side;

  .inner1 > .inner2 {
    overflow: hidden;
  }

	.box {
    /*max-height: 58%;*/
	}

  .queries-box {
    overflow-y: hidden;
    overflow-x: auto;
    /*max-height: 77%;*/
  }

  .box-40percent {
        max-height: 40%;
  }

  .box-38percent {
        max-height: 38%;
  }

  .box-28percent {
        max-height: 28%;
  }

  .navigation-content {
    overflow: auto;
    min-height: 40px;
  }
}

a {
  outline: 0;
  color: #000;
  cursor: normal;
  text-decoration: none;

  &[href] {
    @extend %smart-underline;
    color: $primary-color;
    cursor: pointer;
  }

  &.current {
    color: #fff;
    background: $selection;
    text-decoration: none;
  }

  &.show-cursor {
    cursor: pointer;
  }
}

[re-resizable] > .re-resizer {
  float: right;
  position: relative;
  left: 10px;
  width: 10px;
  height: 100%;
  cursor: e-resize;
}
