@import "mixins";
@import "compass";

/*******************
 * Top section nav *
 *******************/

.base-nav {
  @include border-radius(0);
  @include tab-header;

  form, input {
    margin:0
  }
  margin-bottom: 10px;
  @include box-shadow(0 2px 2px rgba(0,0,0,.3));

  .nav {
    margin-bottom: 0;
  }

  .pull-right {
    margin-right: 20px;
  }

  .tabbable.black-box {
    @include box-shadow(none);
    @include border-radius(0);
    border: none;
    background: inline-image("backgrounds/linen-gray.png");
    text-shadow: none;
    margin-bottom: 0;

    .nav-tabs {
      border: none;

      li a {
        padding: 3px 8px;
        font-weight: normal;
        font-size: 11.5px;
      }
      li.active a {
        background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VjZWNlYyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2M1YzVjNSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
        color: #35353C;
        text-shadow: none;
        font-weight: bold;
      }
    }

    &.submenu {
      background: inline-image("backgrounds/linen-light.png") transparent repeat scroll 0% 0%;
    }
  }
}

nav.main-nav {
  div.hr {
	border-top: 1px solid #1D1E21;
	border-bottom: 1px solid #4A4A54;
	height: 2px;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
  }

  > ul {

    border-bottom: 1px solid #4A4A54;
    > li {

      border-bottom: 1px solid #1D1E21;
      border-top: 1px solid #4A4A54;

      > a {
        color: #fff;
        @include text-shadow-bottom(#000);
        display: block;
        padding: 7px 0;
        text-align: center;
        text-decoration: none;

        &:hover {
          background: rgba(0,0,0,.1);
        }

        i {
          color: #eee;
        }
      }

      &.active {
        > a {
          font-weight: bold;
          background: rgba(0,0,0,.4);

          i {
            color: #fff;
          }
        }
      }

      &.filler {
        height: 4px;
      }

      &.secondary-sub-menu {
        border-top: none;
        border-bottom: none;
      }

      &.footer > a {
        opacity: 0.5;
        color: gray;
      }

      &.bottom {
        border: none;
        border-top: 1px solid #4A4A54;

        a {
          bottom: 7px;
          position: absolute;

          &:hover {
            background: transparent;
          }
        }
      }
    }
  }
}

nav#primary {
  background: inline-image("backgrounds/linen-gray.png");
  float: left;
  height: 100%;
  width: 80px;

  > ul {
    > li {
      > a {
        font-size: 11px;
        line-height: 32px;
        opacity: .9;

        i {
          display: block;
          font-size: 32px;
          padding-top: 14px;
          width: 100%;
          height: 36px;
          line-height: 20px;
        }
      }
    }
  }
}

nav#secondary {
  float: left;
  width: 200px;
  height: 100%;
  background: inline-image("backgrounds/linen-gray.png");
  @include box-shadow(-2px 0px 15px rgba(0, 0, 0, 0.4));
  border-right: 1px solid black;
  border-left: 1px solid black;

  > ul {
    > li {
      > a {
        font-size: 12px;
        line-height: 28px;
        padding-left: 15px;
        text-align: left;

        i {
          font-size: 28px;
          vertical-align: middle;
        }
      }

      &.active {
        > a {
          @include std-bg(#ececec, #c5c5c5);
          color: #35353C;
          @include text-shadow(0px 1px 1px rgba(#F8F8F8,0.5));

          i {
            color: #35353C;
          }
        }
      }
    }
  }
}

/************
 * SUB menu *
 ************/

.datacenter-nav {
  margin-top: 5px;
  margin-left: 10px;
  margin-right: 10px;

  .button {
	font-size: 12px;
  }
}

.secondary-sub-menu > ul {
  overflow: auto;
  height: 400px;

  & > li {
    border-bottom: 1px solid #1D1E21;
    border-top: 1px solid #4A4A54;
    overflow-x: hidden;
    white-space: nowrap;

    & > a {
      color: #eee;
      text-shadow: 0 1px rgba(0, 0, 0, 0.5);
      display: block;
      padding: 7px 10px;
      text-decoration: none;
      font-size: 12px;
      line-height: 20px;
      text-align: left;

      &:hover {
        background: rgba(0, 0, 0, 0.1);
      }

      i {
        color: #eee;
        font-size: 14px;
        vertical-align: middle;
      }
    }

    &.active > a {
      font-weight: bold;
      background: #c5c5c5;
      background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VjZWNlYyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2M1YzVjNSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
      background-size: 100%;
      background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ececec), color-stop(100%, #c5c5c5));
      background-image: -webkit-linear-gradient(top, #ececec, #c5c5c5);
      background-image: -moz-linear-gradient(top, #ececec, #c5c5c5);
      background-image: -o-linear-gradient(top, #ececec, #c5c5c5);
      background-image: linear-gradient(top, #ececec, #c5c5c5);
      color: #35353C;
      text-shadow: 0px 1px 1px rgba(248, 248, 248, 0.5);

      & > i {
        color: #35353C;
      }
    }
  }
}

/**********************
 * Navigation Filters *
 **********************/

.nav-filter {
  width: 198px;
  padding: 0 10px;
  color: #fff;

  .help-inline, .help-inline.error, .help-inline.note {
    padding-bottom: 0px;
    padding-top: 0px;
    margin-top: -8px;
    margin-bottom: 8px;
    font-size: 11px;
  }
}

textarea.input-navigation, input[type="text"].input-navigation, input[type="password"].input-navigation, input[type="datetime"].input-navigation, input[type="datetime-local"].input-navigation, input[type="date"].input-navigation, input[type="month"].input-navigation, input[type="time"].input-navigation, input[type="week"].input-navigation, input[type="number"].input-navigation, input[type="email"].input-navigation, input[type="url"].input-navigation, input[type="search"].input-navigation, input[type="tel"].input-navigation, input[type="color"].input-navigation, .input-navigation {
  height: 24px;
  font-size: 11px;
  line-height: 24px;
}

select.select-transparent.input-navigation {
  height: 24px;
  font-size: 11px;
  line-height: 24px;
  padding-top: 4px;
  padding-bottom: 4px;
}

input[type="checkbox"].input-navigation, input[type="checkbox"].input-navigation:active {
  margin-top: 0px;
  margin-bottom: 3px;
  margin-left: 5px;
}

label.input-navigation {
  height: 24px;
  font-size: 11px;
  line-height: 26px;
  margin-bottom: 10px;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: none repeat scroll 0% 0% rgba(0, 0, 0, 0.25);
  border: medium none;
  color: #FFF;
  text-shadow: 0px 1px 1px rgba(17, 17, 17, 0.5);
  cursor: pointer;
}

/**************************************
 * Profile buttons in main navigation *
 **************************************/

.profile-menu {
  height: 100px;

  .title {
    @include emphasis-text;
    font-size: 12px;
    margin-top: 7px;
    margin-bottom: 7px;
  }

  border-top: 1px solid transparent;
  border-bottom: 1px solid #1D1E21;

  .profile-menu-nav-collapse {
    line-height: 60px;
    margin-right: 15px;
    display: none;
  }
}

.profile-buttons {
  white-space: nowrap;
  overflow: hidden;

  div.btn-group {
    display: inline-block;
  }
}

.avatar {
  position: relative;
  @include box-shadow(none);
  border: none;
  margin-top:  7px;
  margin-left: 10px;
  margin-right: 10px;
  display: inline-block;

  .logo {
    display: block;
    @include border-radius(5px);
    width: 48px;
    height: 48px;

    &.green {}
    &.red {
	  -webkit-filter: opacity(30%); /* Safari 6.0 - 9.0 */
	  filter: opacity(30%);
      cursor: pointer;
    }
  }

  img {
    display: block;
    @include border-radius(5px);
    width: 48px;
    height: 48px;
  }

}

.separator {
  @include box-shadow(0px 1px 0px rgba(255, 255, 255, 0.09));
  border-bottom: 1px solid #303030;

  &:last-child {
    border-bottom: none;
  }
}



.tab-header {
  line-height: 32px;
  height: 32px;
  padding-left: 15px;
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  @include border-radius(5px 5px 0 0, 5px 5px 0 0);
  @include tab-header;
  @include text-shadow(0px 1px 1px rgba(#000,0.5));
  border-bottom: 1px solid #1D1E21;

  i {
    color: #fff;
    @include text-shadow(0px 1px 1px rgba(#000,0.5));
  }

  .options {
    padding-right: 10px;

    .btn-group > a:hover, .btn-group.open > a {
      @include black-box;
      @include box-shadow(none);
    }

    .btn-group.open > a {
      i {
        color: #aaa;
        @include text-shadow(none);
      }
    }

    .btn-group > a {
      cursor: pointer;
      display: inline-block;
      width: 24px;
      height: 24px;
      font-size: 16px;
      line-height: 24px;
      border: 1px solid transparent;
      text-align: center;

    }
  }

  & + .black-box {
    @include border-radius(0 0 5px 5px);
    border-top-color: transparent;
  }
}

.box .tab-header-light {
  color: #666;
  @include std-bg(#eee, #ccc);
  @include text-shadow(0px 1px 1px rgba(#fff,0.5));
  border-bottom: 1px solid #f8f8f8;

  i {
    color: #666;
    @include text-shadow(0px 1px 1px rgba(#fff,0.5));
  }
}

.tabbable.black-box {

  color: #ddd;
  @include text-shadow(0px 1px 1px rgba(#111,0.5));

  .nav-tabs {

    @include box-shadow(inset 0px 0px 7px rgba(0, 0, 0, 0.3));
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    padding-left: 10px;

    li {
      margin-bottom: 0;

      a {
        padding: 5px 10px;
        @include std-bg(#424148, #28282C);
        border: 1px solid #242427;
        @include box-shadow(inset 0px 1px 0px rgba(255, 255, 255, 0.2));
        color: #ddd;
        @include text-shadow(0 -1px rgba(0,0,0,.7));
        font-weight: bold;
        margin-right: 0;

        &:hover {
          background: #28282C;
        }
      }

      &.active {
        margin-bottom: -1px;

        a {
          color: #fff;
          @include box-shadow(inset 0px 1px 0px rgba(255, 255, 255, 0.2), inset 0px 10px 10px -5px rgba(255,255,255,.2));
          background: inline-image("backgrounds/linen-light.png");
          border-bottom: 1px solid #42424A;

          &:hover {
            border: 1px solid #242427;
            color: #fff;
            border-bottom: 1px solid #42424A;
          }
        }

      }
    }
  }

  .tab-content {
    background: inline-image("backgrounds/linen-light.png");
    border-top: none;
    @include box-shadow(inset 1px 0px 0px rgba(255, 255, 255, 0.1), inset -1px 0px 0px rgba(255, 255, 255, 0.1), inset 0px -1px 0px rgba(255, 255, 255, 0.1));
    @include border-radius(0 0 5px 5px,0 0 5px 5px);
  }

  .separator {
    padding: 15px;

    &:last-child {
      margin-bottom: 10px;
    }
  }
}

.inner-well {
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.1);
  border: 1px solid #2B2B2F;
  background: #3A3A41;
  @include border-radius(5px);
  padding: 8px;

  & + .inner-well {
    margin-top: 10px;
  }
}

/**************
 * Pagination *
 **************/

.paginator.dataTables_paginate {
  margin-top: 6px;
  margin-bottom: 8px;
}

.paginator-slim.dataTables_paginate {
  margin-top: 0px;
  margin-bottom: 0px;
}

.paginator-sink.dataTables_paginate {
  margin-top: -22px;
  margin-bottom: 0px;
}

.pagination {
  width: 198px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;

  .current {
    color: #D0D0D0;
    font-size: 15px;
    margin-left: 10px;
    margin-right: 10px;

    small {
      font-size: 10px;
    }
  }

  i {
    font-size: 28px;
    vertical-align: middle;

    &.idisabled {
      color: #D0D0D0;
      opacity: 0.6;
    }
  }
  a {
    i {
      color: #D0D0D0;
      /*color: #c4e3f3;*/
    }
    &:hover i {
      color: #3a87ad;
    }
  }
}
