@import 'normalize.less';
@import 'theme.less';
@import 'lib.less';
@import 'forms.less';
@import 'dax.less';
@import 'daft.less';

body {
	border: 0;
	padding: @body-padding;
	margin: 0;
	background-color: @body-background;
  color: @text-color;
  font-family: @font-family;
  font-size: @font-size;
  line-height: @line-height;
}

h1, h2, h3 {
  color: @header-color;
}

h1, {
  font-family: @font-family;
  font-weight: bold;
  font-size: @font-size*1.5;
}

h2, h3 {
  font-family: @font-family;
  font-weight: bold;
  font-size: @font-size*1.166666;
}

@section-h2-padding: 2px;

.section {
  background-color: @section-background;
  margin: @section-margin @section-margin/2;
  .border-radius(3px);
  .box-shadow(0, 0, 1px, 2px, @gray4);
  padding: @section-padding;
}

.section > h2 {
  border-bottom: 1px solid @highlight-color2;
  line-height: normal;
}

.section > h2 > span {
  border-bottom: 2px solid @highlight-color2;
}

.section > h3 {
  font-size: @font-size*0.9;
  margin-top: 0;
}

.selected-text {
  color: black;
}

.placeholder-text {
  font-style: italic;
  color: @disabled-color;
}

.inline-description {
  font-size: @font-size*0.85;
  color: @gray2;
}

.legal-notice {
  font-size: @font-size*0.75;
  color: black;
}

.error {
  color: @red;
}

.error.message {
  font-size: @font-size*0.85;
}

/* =============================================================================
 * styling for gloss project
 * -----------------------------------------------------------------------------
 */
@toolbar-height: 40px;

.toolbar {
  height: @toolbar-height;
  background-color: black;
  .alpha-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), '#33ffffff', '#00ffffff');
//  .linear-gradient(top, #444, 0%, #222, 50%, black, 100%, black, '#11ffffff', '#00ffffff');

  .controls {
    height: @toolbar-height;
  }

  .tabs {
    height: @toolbar-height;
    margin-left: 24px;
    vertical-align: top;
    .tab {
      border: 0;
      color: @gray3;
      text-decoration: none;
      font-size: @font-size*1.5;
      line-height: @toolbar-height;
      margin-left: @font-size;
      border-bottom: 5px solid transparent;
    }

    .tab:hover {
      color: @gray5;
    }

    .selected.tab, .selected.tab:hover {
      color: @gray5;
      border-bottom: 5px solid @orange;
    }
  }

  .logo {
    height: @toolbar-height;
    background: url('img/logo.gif') no-repeat center;
  }
}

.modal {
  border: 0;
  .border-radius(5px, 5px, 4px, 4px);

  .drag-handle {
    background-color: black;
    border: 0;
    margin: 0;
    .border-radius(4px, 4px, 0, 0);
    font-weight: normal;
    border-bottom: 2px solid @highlight-color1;

    button {
      font-size: 14px;
      border: 1px solid @gray6;
      width: 14px;
      padding: 0px;
      background: @gray1;
      color: @gray6;
      box-shadow: none;
      padding-bottom: 2px;
      line-height: 14px;
    }
  }
}

.tabbedframe {
  margin-top: 8px;
  .tabs {
    .section();
    background-color: transparent;
    .box-shadow(none);
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: 0;
    padding-top: 0;

    .tab-border-radius() {
      .border-radius(4px, 4px, 0px, 0px);
    }

    button {
      .tab-border-radius();
      .accent-border();
      .box-shadow(1px, -1px, 1px, 0.5px, @gray4);
      margin-right: 4px;
      margin-bottom: 0px;
      color: @header-color;
      background-color: @gray8+#111;
      padding: 4px 8px;
    }
    button.first {
      .tab-border-radius();
    }
    button.last {
      .accent-border();
      .tab-border-radius();
    }
    button.selected {
      background-color: white;
      border-bottom-color: white;
    }
  }
  .panes {
    .section();
    margin-top: 0;
  }
}


.accent-column() {
  background: @light-blue;
}
.accent-header() {
  color: @light-blue;
}

.grid.standard table.grid {

  thead tr {
    th {
      padding: 0px;
      background-color: white;
      color: @header-color;
      text-align: left;
    }
    th:after {
      content: ' ';
      display:block;
      width: 90%;
      background: @gray4;
      height: 2px;
      margin-bottom: 2px;
    }

    th.sort-desc:after,
    th.sort-asc:after {
      .accent-column();
    }
    th.accent-header {
      .accent-header();
    }
  }

  tbody {
    tr {
      border-bottom: 1px solid @platform-lt-gray;

      td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    tr:nth-child(odd) {
      background-color: @platform-lt-gray;
    }
    tr:hover {
      background-color: @gray8;
    }
    tr.highlight,
    tr.highlight:hover {
      background-color: @light-blue;
    }
  }
}

.grid.standard.highlightable table.grid tbody tr:hover {
  cursor: pointer;
}

.message-box {
  .message-icon {
    margin-right: 10px;
    float: left;
  }
  .error {
    width: 48px;
    height: 48px;
    background-image:url('/static/components/lookandfeel/img/error-icon.png');
  }
  .warning {
    width: 48px;
    height: 48px;
    background-image:url('/static/components/lookandfeel/img/warning-icon.png');
  }
  .question {
    width: 48px;
    height: 48px;
    background-image:url('/static/components/lookandfeel/img/question-icon.png');
  }
  .information {
    width: 48px;
    height: 48px;
    background-image:url('/static/components/lookandfeel/img/information-icon.png');
  }
}
.multiselect {
  .ui-multiselect-menu{
    background-color: white;
  }
}
