/**
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2017 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
.view-container .tree-view > .tree-view-container {
	position: absolute;
	top: 40px;
	bottom: 0; left: 0; right: 0;
	border-top: 1px solid #e7e7e7;
  	background-color: #fff;
}

table.treetable {
  	border: 0;
  	margin: 0;
}

table.treetable tr {
	line-height: 18px;
}

table.treetable tbody tr.branch {
    background-color: #fff;
}

table.treetable tbody tr.selected {
	background-color: #337ab7;
}

table.treetable tbody tr.selected a {
	color: #fff;
}

table.treetable .tree-button i,
table.treetable .tree-button img {
	margin-right: 4px;
}

table.treetable tbody tr.accept {
  background-color: #a3bce4;
  color: #fff
}

.tree-view-container .tree-header {
	height: 24px;
	color: #333;
	background-color: #fff;
}

.tree-view-container .tree-header {
	width: 100%;
	white-space: nowrap;
	border-bottom: 1px solid #e7e7e7;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
}

.tree-view-container .tree-header th {
	display: inline-block;
	height: 100%;
	padding: 4px;
	padding-left: 6px;
	border-left: 1px solid #e7e7e7;
	text-align: left;
	text-overflow: ellipsis;
	overflow: hidden;
	font-weight: 600;
}

.tree-view-container .tree-header th:first-of-type {
	border-left: none;
}

.tree-view-container .tree-table {
	overflow: auto;
	position: absolute;
	top: 27px; left: 0; right: 0; bottom: 0;
}

.tree-header th,
.tree-table td,
.tree-table td span {
	box-sizing: content-box;
}

.dashlet .tree-view-container {
	position: relative;
	height: 100%;
	border: 1px solid #d4d4d4;
}

.form-item .dashlet .tree-view-container {
	border: 0;
}
