@import 'lib.less';
@import 'theme.less';

@border: 1px solid @standard-border;
@step-border: 1px solid @highlight-color1;

/*Toolbar*/
.toolbar .app-logo {
  background: url('img/dax-logo.jpeg') no-repeat center;
  background-color: none;
  width: 150px;
  height: 40px;
}

/*Data Filter section (left)*/
.data-filter {
  h4 {
    display: inline-block;
    color: @gray2;
    font-size: 14px;
  }

  .step {
    display: inline-block;
    border: @gray3;
    .border-radius(2px);
    padding: 0px 5px;
    background-color: @gray2;
    color: white;
    margin-right: 5px;
  }

  .checkboxgroup {
    margin-left: 5px;
	  margin-top: 10px;
  }

  .data-view {
    .selectbox {
      margin-bottom: 5px;
    }
  }
}

/*Data Map Details section (right)*/
.data-map-details {

  .default-view {
    text-align: center;

    .details-default-img {
      background: url('img/magnifyglass.png') no-repeat;
      width: 87px;
      height: 93px;
      display: inline-block;
    }
  }

  .default-view > p {
    text-align: left;
  }

  .details-header,
  .map-data-type,
  .quick-info {
    text-align: left;
  }

  .bargraph {
    margin-bottom: 15px;
    overflow: auto;

    table {
      width: 100%;
      table-layout: fixed;
    }

    td {
      text-align: left;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      padding: 0px 5px;
    }

    .graph-bar-0 {
      background-color: @highlight-color1;
    }
    .graph-bar-1 {
      background-color: @red;
    }
  }

  .map-data-type {
    color: @gray2;
  }

  .quick-info {

    .legend {
      width: 100%;
      overflow: hidden;
    }

    .color {
      border-color: @gray5;
      width: @line-height;
    }

    .matches .color {
      background-color: @red;
    }

    .total .color {
      background-color: @highlight-color1;
    }

    .overlay-matches-count,
    .total-objects-count {
      width: 100%;
      float: right;
      text-align: right;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .overlay-matches-count {
      color: @red;
    }

    .total-objects-count {
      color: @highlight-color1;
    }

  }
}

/*Data Map section (middle)*/
.data-map {

  .treemap-checkboxgroup {
     .checkboxgroup {
       float: right;

       label {
         padding: 0px 10px;
       }
     }
  }

  .treemap-section {
    background-color: @body-background;
    margin: @section-margin @section-margin/2;
    .border-radius(3px);
    padding: 5px;


    .treemap {
      border-color: #ffffff;
      margin: 0px;

      .node {
        .alpha-gradient(
          rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0),
          '#00000000', '#99000000'
        );
        text-align: center;
        border-color: @gray8;

        .treemap-node-label {
          padding: 4px;
          text-overflow: ellipsis;
          overflow: hidden;
          height: 100%;
        }
      }

      #root.node {
        .alpha-gradient(
          rgba(0, 0, 0, 0), rgba(0, 0, 0, 0),
          '#00000000', '#00000000'
        );
      }

      .node.treemap-selected {
        .alpha-gradient(
          rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4),
          '#66ffffff', '#66ffffff'
        );
		    .box-sizing();
        border:4px solid #66ce19;
        color:#000000;
      }

      .node.hover {
        .alpha-gradient(
          rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1),
          '#1affffff', '#1affffff'
        );
       .box-sizing();
        border:4px solid #000000;
      }

      #root.node.hover {
        .alpha-gradient(
          rgba(0, 0, 0, 0), rgba(0, 0, 0, 0),
          '#00000000', '#00000000'
        );
      }

      .node[disabled='disabled'] {
        .alpha-gradient(
          rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0),
          '#00000000', '#66000000'
        );
      }
      .node.treemap-selected[disabled='disabled'] {
        .alpha-gradient(
          rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0),
          '#66ffffff', '#00000000'
        );
      }
    }
  }
}

/* Tool tip formatting */
.treemap-tip {
  border: 1px solid #ffffff;
	height:55px;
	min-width: 200px;
	background-color:#003366;
	border-radius: 3px;
	padding:7px;
	opacity:.9;	
}

.treemap-tip h4 {
	line-height: 18px;
	color:#ffffff;
	font-size: 12px;
  margin: 0;
}

/* Object list */
.object-list-form {
  min-width: 768px;

  @border1: 1px solid @gray4;
  @border2: 1px solid @gray6;
  .content {
    border: @border1;
    padding: 5px;
    margin: 15px 25px;

    .header {
      padding: 10px 5px;

      .left, .right, .middle {
        min-width: 33%;
      }
      .left {
        float: left;
      }
      .right {
        float: right;
      }
      .middle {
        margin: 0 auto;
      }
      h2 {
        margin-top: 0px;
      }
      label {
        display: inline-block;
      }
      .data-type-txt, .view-txt {
        padding-left: 10px;
      }
    }
    .object-list-grid {
      .col-name {
        width: 50%;
      }
    }
  }
  .input-border {
    margin-top: 25px;
    border-bottom: @border1;
  }
  .inputs{
    float: right;
    padding: 15px 15px 20px 15px;

  }
}
