﻿/*
*
* Main layout
*
*/
.task-header {
    flex-shrink: 0; 
    flex-grow: 0;
}

.task-header-element {
    float: left;
    padding-right: 16px;
}

.task-header-label {
    font-size: 1.2em;
    padding: 4px;
}

.task-header-input {    
    padding: 4px;
}

.task-header-input input {
    border: none;
}

/*
*
* Data Grid
*
*/
.task-grid {
	display: flex; 
	flex-wrap: nowrap; 
	position: relative; 
	height: 100%; 
	max-height: 100%; 
	width: 100%; 
	max-width: 100%;
}

.task-grid .task-grid-fixed-header-flex {
	flex-shrink: 0; 
	flex-grow: 0; 
	position: relative;
}
			
.task-grid .task-grid-fixed-header {
	position: absolute; 
	width: 100%; 
	height: 100%; 
	overflow: hidden;
}
		
.task-grid .task-grid-fixed-columns {
	flex-shrink: 0; 
	position: relative; 
	display: flex; 
	flex-direction: column;
}

.task-grid .task-grid-selection {
	flex-shrink: 0; 
    flex-grow: 0;
    flex-basis: 30px;
	position: relative; 
	display: flex; 
	flex-direction: column;
}
			
.task-grid .task-grid-fixed-data-flex {
	flex-grow: 1; 
	flex-shrink: 1; 
	position: relative;
}
			
.task-grid .task-grid-fixed-data {
	position: absolute; 
	width: 100%; 
	height: 100%; 
	overflow-x: scroll; 
	overflow-y: hidden;
}			
			
.task-grid .task-grid-scrollable-header {
	position: absolute; 
	height: 100%; 
	width: 100%; 
	overflow: hidden;
}
			
.task-grid .task-grid-scrollable-header-flex {
	flex-grow: 0; 
	flex-shrink: 0; 
	position: relative;
}
			
.task-grid .task-grid-scrollable-container {	
	flex-grow: 1; 
	flex-shrink: 0; 
	display: flex; 
	flex-direction: column;
}
			
.task-grid .task-grid-scrollable-data-flex {
	flex-grow: 1; 
	flex-shrink: 1; 
	position: relative;
}
			
.task-grid .task-grid-scrollable-data {
	position: absolute; 
	width: 100%; 
	height: 100%; 
	overflow: scroll;
}

.task-grid .task-grid-column {
	border-bottom: 1px solid #ccc;
	overflow: hidden;
	white-space: nowrap;
    padding: 2px;
}

.task-grid .task-grid-column-cell-header {

}

.task-grid .task-grid-column-cell {
    padding: 8px 2px;
}
			
.task-grid .task-grid-column-float {			
	float: left;
}
			
.task-grid .task-grid-column-header {
	background-color: #f7f7f7;
}
			
.task-grid .task-grid-column-header-fill {
	border-bottom: 1px solid #eee;
}
			
.task-grid .task-grid-cell-content {
	white-space: nowrap;
	overflow: hidden;
}

.task-grid .task-grid-footer-container {
    background-color: #f7f7f7;
}
			
.task-grid .task-grid-add-measurement-flex {
	flex-shrink: 0; 
	flex-grow: 0; 
	position: relative;
}

.task-grid .task-grid-measurement-row {
    cursor: pointer;
}

.task-grid .task-grid-measurement-row.selected {
    background-color: #7d7d7d;
    color: #fff !important;
}
.task-grid .task-grid-measurement-row.edited {
    background-color: #cee0ed;
}
.task-grid .task-grid-measurement-row.editedSelected {
    color: #fff !important;
    background-color: #4ca7ea;
}
.task-grid .task-grid-measurement-row.archived {
    color: #bfbfbf !important;
}
.task-grid .task-grid-measurement-row.archivedSelected {
    background-color: #7d7d7d;
    color: #bfbfbf !important;
}

.task-grid .task-grid-column-input {
    padding: 0px;
    border: 1px solid #ccc;
    border-radius: 0px;
}

.task-grid-column-bordered {
    border-left: solid 1px #ccc;
}

.task-grid-unselectable {
    -webkit-user-select: none; /* Chrome/Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    user-select: none;
}

.task-grid-stop-spin {
	/*Workaround for IE's spin issue'*/
	-webkit-animation: stop-spin 2s infinite linear;
	animation: stop-spin 2s infinite linear;
}

/*
*
*     Toolbar
*
*/
.toolbar {
    background-color: #eee;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 2px;
    border-collapse: collapse;
}

.toolbar .toolbar-group {
    border-right: 1px solid #d3d3d3;
    display: inline-block;
}

.toolbar .toolbar-group:last-child {
    border-right: none;
}

.toolbar .toolbar-item {
    padding: 4px 6px 4px 6px;
    margin-left: 2px;
    margin-right: 2px;
    display: inline-block;
    text-align: center;
    border: 1px solid transparent;
    background:transparent;
}

.toolbar .toolbar-item-text {
    font-size: 0.8em;
    margin-top: 2px;
}

.toolbar .toolbar-item:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 1) !important;
    color: #003B86  !important;
    border: 1px solid #003B86  !important;
    cursor: pointer;
    border-radius: 2px;
}

.toolbar .toolbar-item:active {
    color: #003B86 !important;
    border: 1px solid #003B86 !important;
}

.toolbar .toolbar-item.disabled {
    color: #ccc;
}

/*
*
*     Actions
*
*/
.task-action-container {
    width: 100%;
    height: 400px;
    overflow-y: scroll;
    overflow-x: hidden;
    border: solid 1px #ccc;
}

.task-action {
    /*flex*/
    display: flex;
    flex-direction: row;
    align-items: stretch;

    /*style*/
    width:100%;
    min-height: 60px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.task-action:hover {
    background-color: #ccc;
}

.task-action-text {
    /*flex*/
    flex-grow: 1;
    flex-shrink: 1;

    /*style*/
    padding: 5px;
}

.task-action-status {
    /*flex*/
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 45px;

    /*style*/
    text-align: center;
    margin-top: 18px;
}

.task-grid-loading {
    /*flex*/
    flex-grow:1;
    flex-shrink:1;
    display:flex;
    flex-direction:row; 
    align-items:stretch; 

}
.task-grid-loading > div {
    /*flex*/
    flex-grow: 1;
    flex-shrink: 1;
    align-self: center;

    /*style*/
    text-align: center;
    display: inline-block;
    color: #aaa;
}
.task-grid-loading > div > i{
    margin-right: 5px;
}

