@import './colors.css.scss';

.selection-section{
	font-family: 'dinot-medium';
  margin: 20px;
  box-shadow: 0 2px 3px #aaa;
  background: #fff;

	hr{
		border: 1px solid black;
		margin-top: 5px;
		margin-bottom: 10px;
	}

  .sample-target-section{
    width: 75%;
    display: inline-block;
    vertical-align: top;

    .inline-block{
      display: inline-block;
      vertical-align: top;
      position: relative;

      .h4{
        margin: 10px 0;
      }

      .quantity-input{
        width: 100%;
        border-bottom: 1px solid #000;
        border-left: none;
        border-top: none;
        height: 40px;
        border-right: none;
        outline: none;
        color: #111;

        &.error{
          border-bottom-color: #E02127;
        }

        &.blank{
          font-style: italic;
        }
      }

      .error-field{
        font-family: "dinot-medium";
        font-size: 10px;
        line-height: 12px;          
        color: #E02127;
        display: block;
        padding: 4px 0;
        height: 20px;
      }

      .error-field-icon{
        width: 10px;
        height: 10px;
        display: block;
        position: absolute;
        right: 0;
        bottom: 25px;                
      }

      .quantity-helper{
        font-family: "dinot-regular";
        display: block;
        position: absolute;
        right: 0px;
        bottom: 21px;
        font-size: 10px;
        color: #888;
      }
    }
  }

  .clear-selection-section{
    width: 25%;
    display: inline-block;
    vertical-align: top;
    padding: 20px;

    .clear-button{
      cursor: pointer;
      padding: 0;
      margin: 0;
      border: 1px solid #000;
      border-radius: 3px;
      overflow: hidden;
      background-color: #fff;
      text-align: center;
      padding: 9px;
      &:hover{
        background-color: #000;
        color: #fff;
      }
    }
  }
}

/*::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}*/

.test-gradient{
background: repeating-linear-gradient(-60deg, #F5F5F5, #F5F5F5 1px, white 4px, white 4px);
}

.disabled-clicking{
	pointer-events: none;
	opacity: 0.25 !important;
}

.hiding-div{
	visibility: hidden;
}

.no-sample-set{
	color: #ABABAB;
}

.testing-clicking{
	cursor: pointer;
	margin-bottom: 0px;
	padding: 10px 20px 10px 10px;
  position: relative;

  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-overflow: ellipsis;
  background: url(/images/arrow-down_white.png) no-repeat transparent;
  background-size: 10px 8px;  
}

.sample-target-section{
	background-color: white;
	border-right: 1px solid #eee;
	box-shadow: 0px 1px 0px 0px #ABABAB;
	padding: 20px;
}

.span-target-color{
	width: 10px;
	height: 10px;
	display: inline-block;
	margin-right: 5px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

span.target-text{
  display: inline-block;
  width: calc(100% - 20px);
  vertical-align: top;  
  overflow-wrap: break-word;
}

.span-arrow-down{
  background: url(/images/arrow-down_white.png) no-repeat 0px 0px transparent;
  background-size: 10px 8px;
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-top: 7px;
  position: absolute;
  right: 10px;
}

.options-div{
	position: absolute !important;
	background-color: white;
	border: 1px solid #ccc;
	border-radius: 3px;	
	z-index: 5;
	width: calc(100% - 40px);
  overflow: hidden;
  padding: 2px;  
	//cursor: pointer;
	//top: -84px;
	//visibility: hidden;

  .dropdown-container{
    position: relative;
    display: block;
    overflow: hidden;
  }

  label.button-arrow{
    width: 100%;
    height: 20px;    
    cursor: pointer;
    display: block;
    margin: 0;
    position: relative;
  }

  label.button-arrow:hover{    
    border-radius: 3px;
  }

  label.up-arrow{
    background: url(/images/dd_up.svg) no-repeat 0px center #fff;
    &:hover{
      background: url(/images/dd_up_h.svg) no-repeat 0px center #00AEEF;
      &.disabled{
        background: url(/images/dd_up.svg) no-repeat 0px center #fff;
        cursor: initial;      
      }
    }
  }

  label.down-arrow{
    background: url(/images/dd_down.svg) no-repeat 0px center #fff;
    &:hover{
      background: url(/images/dd_down_h.svg) no-repeat 0px center #00AEEF;
      &.disabled{
        background: url(/images/dd_down.svg) no-repeat 0px center #fff;
        cursor: initial;      
      }
    }
  }

	ul {
    list-style: none;
    padding: 0px;
    margin: 0;
    position: relative;
  	// overflow: scroll;
  	// max-height:  122px;

    
    //display: flex;
    //flex-direction: column;
    //flex-wrap: wrap;
    //width: 300px;
    //height: 200px;

    li.active,
    li:hover{
      background: #00AEEF;
      color: #fff;
      border-radius: 3px;
    }
  }

li {
  //height: 12.5%;
	padding: 10px 8px;
	cursor: pointer;
}
.ul-height{
	height: 200px;
}
.li-height{
	height: 12.5%
}
}

.samples-div{
  width: calc(100% - 20px);
}

.plate-layout-wells {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
	background-color: white;
  box-shadow: 0 2px 3px #aaa;


	.sample-name,.target-name{
		// font-family: 'dinot-bold';
	}

  .sample-name{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 120px;
  }

	.sample-underline{
		border: 1px solid gray;
		margin-top: 10px;
		margin-bottom: 7px;

	}

  table {
    border-top: 2px solid #c5c5c5;
    border-right: 1px solid #c5c5c5;
  }

  th, td{
    border-left: 1px solid #c5c5c5;
    border-top: 1px solid #c5c5c5;
  }

  tr:last-child td{
    border-bottom: 1px solid #c5c5c5;
  }

  .col-header {
    font-family: 'dinot-regular';
    text-align: center;
    height: 20px;

    &.dragged {
      background: #7DC2E6;
    }
  }
  .row-header {
    text-align: center;
    &.dragged {
      background: #7DC2E6;
    }
  }
  .well-switch {
    min-height: 60px;
    vertical-align: top;
		width: 12.35%;

    &.selected {
      .ct-cq-container {
        background-color: #e4f4fa;
      }
    }

    &.selected.active {
      position: relative;

      .well-switch-container {
        margin: -4px;
        height: 68px;
        border: 2px solid #000;
        z-index: 999999;
        position: absolute;
        top: 0;
        left: 0;
        box-shadow: 0px 0px 5px #000;
      }
      .ct-cq-container {
        height: 49px;
        padding: 4px 20px;
      }

    }

    .well-switch-bar-container {
      background-color: #fff;
      padding: 5px 10px;
    }

    .well-switch-bar {
      height: 5px;
    }
    .ct-cq-container {      
      padding: 5px 10px;
      min-height: 45px;
			padding-bottom: 10px;

			hr{
				margin-top: 7px;
				margin-bottom: 7px;
			}
    }

  }
}

.ui-selectable-helper{
  position:absolute;
  z-index:100;
  border:1px dotted black;
}

.opacityLess{
	opacity: 0.5;
	pointer-events: none;
}

.targetRect{
	display:inline-block;
	width:25px;
	height:40px;
	text-align: center;
	border-radius: 3px;
	vertical-align: top;
}

.targetInfo{
  white-space: nowrap;
  overflow: hidden;
  width: 95px;
  text-overflow: ellipsis;  
}

.no-targetBorder{
	border: 1px solid #C6C6C6;  
}

.numberCircle {
  width: 30px;
	height: 30px;
  text-align: center;
  font-size: 12px;
  display: inline-block;
	cursor: pointer;
	margin-right: 7px;
  vertical-align: top;
  opacity: .5;

  &.target-selected{
    border-bottom: 2px solid;
    padding-bottom: 5px;
    height: 35px;    
    opacity: 1;
  }
}

.wellCircle {
    width: 17px;
		height: 17px;
    line-height: 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    border: 1px solid black;
    display: inline-block;
		background-color: white;
		margin-top: 4px;
		font-family: 'dinot-bold';
		font-size: 10px;
}

.wellCircle-empty {
    width: 17px;
		height: 17px;
    line-height: 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    border: 1px solid #C6C6C6;
    display: inline-block;
		background-color: white;
		margin-top: 4px;
		font-family: 'dinot-bold';
		font-size: 10px;
}

.select-style {
	cursor: pointer;
    padding: 0;
    margin: 0;
    border: 1px solid #000;
    //width: 120px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;
}

.select-style select {
    padding: 5px 8px;
    width: 130%;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.select-style select:focus {
    outline: none;
}

.header-plate-layout{
    height: 50px;
    box-shadow: 0 2px 3px #aaa;
    background: #fff;
    padding: 0 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;

    &::after{
        content: ' ';
        clear: both;
    }    

    .tip-banner{
      top: 50%;
      position: absolute;
      left: 50%;
      transform: translateX(-50%) translateY(70%);
      height: 40px;
      background: #08a1da;
      border-radius: 3px;
      color: #fff;
      padding: 0 10px 0 15px;      
      z-index: 10;
      // transition-timing-function: ease-in;
      // transition: 0.5s;
      opacity: 0;

      &.banner-is-shown{
        transform: translateX(-50%) translateY(-50%);
        // transition: 0.5s;
        // transition-timing-function: ease-out;       
        opacity: 1;
      }

      span{
        line-height: 40px;
        vertical-align: middle;
        display: inline-block;        
      }

      button{
        background: transparent;
        border: 1px solid #fff;
        vertical-align: middle;
        padding: 5px 10px;
        border-radius: 2px;
        margin: 0 10px;

        &:hover{
          background: #fff;
          color: #08a1da;          
        }
      }

      label{
        width: 12px;
        height: 12px;
        margin: 0;
        cursor: pointer;
        vertical-align: middle;
        img{
          vertical-align: top;
        }
      }
    }
}

.experiment-info{
  float: right;
  line-height: 50px;
  font-family: 'dinot';
}

.plate-layout-wrapper{
  background: #eee;

  .plate-layout-box{
    flex-grow: 1;
    position: relative;
    overflow: auto;    
    .plate-layout-details{
      position: absolute;
      width: 100%;
      height: 100%;
      min-width: 1200px;
      min-height: 650px;
      .plate-layout-frame{
        width: 1200px;
        height: 650px;
        margin: auto;
        position: relative;
      }
    }
  }
}

.section-title{
  .clear-link{
    color: #E02127;
    position: absolute;
    right: 20px;
    top: 10px;    
    cursor: pointer;
  }
}

.plate-layout-pane{
  background: #eee;
  &.inner-container{
    min-width: 1200px !important;
  }
  .plate-layout-box{
    height: calc(100vh - 170px);
    .plate-layout-details{
      width: 100%;
      height: 100%;
      min-width: 1200px;
      min-height: 650px;
      .plate-layout-frame{
        width: 1200px;
        height: 650px;
        margin: auto;
        position: relative;
      }
    }
  }
}

.plate-layout-state-active{
  .inner-wrapper{
    background: #eee;
  }
}