/**
 * 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/>.
 */
.slickgrid {
	background: white;
	outline: 0;
	border: 1px solid #DDD;
	border-top: 0 !important;
}

.slickgrid .slick-header,
.slickgrid .slick-header-column {
	color: #333;
	background: #fff;
	background-image: none;
}

.slickgrid .slick-header {
	border: 0;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.slickgrid .slick-header-column {
	border-right: 1px solid #ddd;
}

.slickgrid .slick-header-column:last-child {
	border-right-color: transparent;
}

.slickgrid-empty .slick-header,
.slickgrid-empty .slick-headerrow {
	height: 0;
	border-bottom: none;
}

.slickgrid .slick-cell,
.slickgrid .slick-header-column {
	-webkit-box-sizing: content-box;
	   -moz-box-sizing: content-box;
	    -ms-box-sizing: content-box;
	        box-sizing: content-box;
}

.slick-row {
	background: #f9f9f9;
}
.slick-row.odd {
  	background: #fff;
}

.slick-row:hover {
  	background: #f5f5f5;
}

.slick-row .slick-cell {
	border: 0;
	border-bottom: 1px solid #e7eaec;
	padding: 2px 8px;
}

.slick-row .slick-cell {
	box-sizing: border-box;
	line-height: 20px;
	height: 100% !important;
}

.slick-row .slick-cell.selected {
  	background-color: #abb9d3;
}

.slick-row .slick-cell.selected.active::after {
	content: " ";
	display: block;
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	border: 1px dotted #76849c;
	z-index: -1;
}

.slickgrid-editable .slick-row.active .slick-cell-editable:before {
	content: " ";
	display: block;
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	border: 1px solid #8080ff;
	background-color: #fff;
	z-index: -1;
}

.slickgrid-editable .slick-row.active .slick-cell-required:before {
	background-color: #d2d2ff;
}

.slick-headerrow {
	height: 24px;
	border: 0 !important;
	border-bottom: 1px solid #ddd !important;
	background: #fff !important;
	background-image: none !important;
}

.slick-headerrow-columns .slick-headerrow-column {
	background: #f9f9f9;
}

.slick-headerrow-column {
	height: 24px;
	border: none !important;
	border-right: 1px solid #ddd !important;
	background: #f5f5f5;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	     box-sizing: border-box;
}

.slick-headerrow-column:last-child {
	border-right: transparent !important;
}

.slick-headerrow input {
	margin: 0;
	padding: 2px 8px;
	width: 100%;
	height: 100%;
	outline: 0;
	border: none;
	border-radius: 0;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	box-shadow: none !important;
}


.slick-headerrow i.combo-icon {
	position: absolute;
	font-size: 14px;
	top: 5px;
	right: 6px;
}

.slick-header-column.ui-state-default {
	height: inherit;
	line-height: inherit;
	padding: 4px 8px;
	font-weight: 600;
}

.slick-headerrow-column.ui-state-default {
	padding: 0px;
}

.slick-cell.editable {
	background: white;
	padding: 0;
}

.slick-cell input,
.slick-cell .picker-input,
.slick-cell .ui-spinner,
.slick-cell [x-field] {
	outline: 0;
	margin: 0;
	padding: 0;
	border-radius: 0;
	box-sizing: border-box;
	width: 100%;
	height: 100% !important;
	min-width: inherit !important;
	min-height: 23px;
}

.slick-cell .picker-input {
	width: 100% !important;
}

.slick-cell .ui-spinner {
	border: none;
}

.slick-cell input {
	padding-left: 6px !important;
}

.slick-cell textarea {
	border-radius: 0;
	margin: 0;
	outline: 0;
}

.slick-cell .text-item {
	height: auto !important;
}

.slick-cell .picker-input > .picker-icons > i.fa {
	padding-top: 2px !important;
}

.slick-cell input[type=checkbox],
.slick-cell .form-item-container input[type=checkbox] {
	width: auto;
	height: auto;
	margin-top: 0 !important;
}

.slick-cell .ibox {
	width: auto;
	margin-top: 2px !important;
	padding: 0;
}

.slick-editor-dropdown {
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
	min-width: 250px;
}

.ui-dialog [ui-dialog] > .slickgrid {
	position: absolute;
	top: -1px; right: 0; bottom: 0; left: 0;
	border: 0;
}

.ui-dialog .slick-editor-dropdown .slickgrid {
	position: relative;
	top: 0; right: 0; border: 0; left: 0;
}

.slickgrid-editable .slick-row.active .slick-cell-editable.dirty:before,
.slick-cell.dirty {
	background-image: url('../img/dirty.gif');
	background-position: 0 0;
	background-repeat: no-repeat;
}

.slick-cell .input-append > button {
	display: none;
}

.slick-cell.editable * {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	    -ms-box-sizing: border-box;
	        box-sizing: border-box;
}

.slick-cell.button img {
	cursor: pointer;
}

.slick-cell.button .disabled {
	outline: none;
	opacity: 0.45;
	cursor: inherit;
}

.slick-cell.button,
.slick-cell-checkboxsel {
	text-align: center;
}

.slick-cell-checkboxsel input {
	width: inherit;
}

.slick-header-column.slick-cell-checkboxsel {
	padding-top: 2px;
}

.slick-group > .slick-cell-checkboxsel {
	 text-align: inherit;
}

.slick-header-column.integer,
.slick-header-column.decimal,
.slick-cell.integer,
.slick-cell.decimal {
	text-align: right;
}

.slick-header-column.boolean,
.slick-cell.boolean {
	text-align: center;
}

.slick-cell.boolean .fa {
	box-sizing: content-box;
	border: 1px solid #ccc;
	padding: 2px;
	width: 14px;
    height: 14px;
}

.slick-headerrow input::-webkit-input-placeholder {
	font-size: 11px;
}

.slick-headerrow input::-moz-placeholder {
	font-size: 11px;
}

.slick-headerrow input::-ms-input-placeholder {
	font-size: 11px;
}

.slick-group-toggle {
	width: 9px;
	height: 9px;
	margin-right: 5px;
}

.slick-group-toggle.collapsed {
	background: url(../lib/slickgrid/images/expand.gif) no-repeat center center;
}

.slick-group-toggle.expanded {
	background: url(../lib/slickgrid/images/collapse.gif) no-repeat center center;
}

.slick-group-text,
.slick-group-count {
	font-weight: 600;
}

.slick-group-count {
	color: green;
}

.slick-group {

}

.slick-group-totals {
	font-weight: 600;
}

.slick-group-totals,
.slick-group-totals .slick-cell {
	background-color: #e9e9e9;
}

.slick-sort-indicator {
	margin-left: 7px;
}

.slick-sort-indicator-asc,
.slick-sort-indicator-desc {
	display: inline-block;
}

.slick-header-menu {
	z-index: 1150;
	padding: 0;
	min-width: 100px;

	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
	
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

.slick-header-menuitem {
	padding: 2px 4px;
	padding-right: 20px;
	border: 1px solid transparent;
}

.slick-header-menu > div:first-of-type {
	margin-top: 4px;
}

.slick-header-menu > div:last-of-type {
	margin-bottom: 4px;
}

.slick-header-menuitem:hover {
	color: #fff;
	background-color: #0081c2;
}

.slick-header-menusep {
	margin: 4px 1px;
	background-color: #e5e5e5;
	border-bottom: 1px solid #ffffff;
}

.slick-header-menubutton {
	width: 16px;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.slick-cell:not(.button) > a {
	line-height: 24px;
	color: #0088cc;
}

.slick-cell.edit-icon i,
.slick-cell i.slick-icon {
	cursor: pointer;
}

.slick-cell.move-icon {
	cursor: move;
}
.panel-related.readonly .slick-cell.move-icon {
	cursor: default;
}
.panel-related.readonly .slick-cell.move-icon::before {
	content: "";
}

.slickgrid-empty-text {
	display: none;
}

.slickgrid-empty-message .slickgrid-empty-text {
	display: block !important;
	position: absolute;
	top: 48%;
	width: 100%;
	font-weight: 400;
	text-align: center;
}
