/**
 * 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/>.
 */
.cards-view,
.kanban-view {
	position: absolute;
	top: 41px;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: auto;
	padding: 18px 9px;
}

.cards-view,
.cards-view *,
.kanban-view,
.kanban-view * {
	box-sizing: border-box;
}

.kanban-column {
	background-color: #fff;
	margin-bottom: 18px;
	border-color: #e7eaec;
	border-style: solid solid none;
	border-width: 1px 0;
}

.kanban-column ul.kanban-card-list,
.kanban-column li.kanban-card {
	list-style: none;
}

.kanban-column ul.kanban-card-list {
	margin: 0;
	padding: 10px 20px 35px 20px;
}

.kanban-column .ui-sortable-placeholder {
	border: 1px dashed #cecece !important;
	visibility: visible !important;
	background: #e7eaec !important;
}
.kanban-column .ui-sortable-helper {
	box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.kanban-column > h3 {
	font-weight: 600;
	font-size: 16px;
	margin: 0;
	padding: 15px 20px 5px 20px;
	line-height: 18px;
}

.kanban-column .input-group {
	display: table;
	width: 100%;
	padding: 10px 20px 0 20px;
}

.kanban-column .input-group .form-control,
.kanban-column .input-group .input-group-btn {
	display: table-cell;
}

.kanban-column .input-group .form-control {
	height: inherit;
	width: 100%;
	margin: 0;
	position: relative;
}

.kanban-column .input-group .input-group-btn {
	width: 1%;
}

.kanban-column .input-group .input-group-btn > .btn {
	position: relative;
	margin-left: -1px;
}

.kanban-column .input-group .form-control:focus,
.kanban-column .input-group-btn > .btn:active,
.kanban-column .input-group-btn > .btn:focus,
.kanban-column .input-group-btn > .btn:hover {
	z-index: 2;
}

.kanban-more {
	border-bottom: 1px dashed #ddd;
	text-align: center;
	margin: -40px 20px 25px 20px;
}

.kanban-more .btn-load-more:hover {
	background-color: #eaf2f8 !important;
	color: #537c9f;
}

.kanban-more .btn-load-more {
	position: relative;
	top: 11px;
	padding: 0 4px;
	outline: none;
    border-color: #8aafce;
	border-radius: 4px !important;
	border-bottom-width: 2px;
	color: #537c9f;
}

.kanban-empty {
    display: none;
	margin: -30px 20px 10px 20px;
}

.kanban-column.empty .kanban-empty {
    display: block;
}

.kanban-card {
	list-style: none;
	position: relative;
	background: #fafafb;
	border: 1px solid #e7eaec;
	margin: 0 0 10px 0;
	padding: 10px;
	border-radius: 2px;
	box-sizing: content-box;
	border-left: 3px solid #e7eaec;
}

.kanban-card:hover {
	background-color: #fff;
	cursor: pointer;
}

.kanban-card.primary {
	border-left: 3px solid #337ab7;
}

.kanban-card.warning {
	border-left: 3px solid #f0ad4e;
}

.kanban-card.danger {
	border-left: 3px solid #d9534f;
}

.kanban-card.info {
	border-left: 3px solid #23c6c8;
}

.kanban-card.success {
	border-left: 3px solid #16a765;
}

.kanban-card h4 {
	margin: 0 0 4px 0;
	font-weight: 600;
	font-size: 13px;
}

.kanban-card img {
	width: 24px;
	height: 24px;
	position: absolute;
	right: 2px;
	bottom: 2px;
	border-radius: 100%;
}

.rect-image .kanban-card img {
	border-radius: 0;
}

.kanban-card .card-body {

}

.kanban-card .card-footer {
	margin-top: 4px;
	color: #777;
	font-size: 12px;
}

.kanban-card-menu {
	display: none;
	position: absolute;
	top: 2px;
	right: 2px;
}

.kanban-card-menu > a {
	padding: 0 4px;
	outline: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.kanban-card:hover .kanban-card-menu,
.kanban-card .kanban-card-menu.open {
	display: inline-block;
}

.cards-view .kanban-card-list {
	display: flex;
	flex-wrap: wrap;
}

.cards-view .kanban-card-container {
	float: left;
	width: 33.33333333%;
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 20px;
	display: flex;
}

.cards-view .kanban-card {
	box-sizing: border-box;
	margin: 0;
	padding: 16px;
	background-color: #fff;
	overflow: hidden;
	width: 100%;
}

.cards-view .kanban-card address {
	margin-bottom: 0;
}

.cards-view .kanban-card p {
	margin: 9px 0;
}

.cards-view .card-image {
	position: relative;
	text-align: center;
}

.cards-view .card-image img {
	position: relative;
	width: 64px;
	height: 64px;
}

.cards-view .card-image strong {
	margin-top: 6px;
	display: block;
}

.cards-view .cards-no-records {
	display: none;
    position: absolute;
    top: 48%;
    width: 100%;
    font-weight: 400;
    text-align: center;
}

.cards-view.empty .cards-no-records {
    display: block;
}

.kanban-column h3,
.kanban-column h4,
.kanban-column .card-body,
.kanban-column .card-footer {
	overflow: hidden;
    text-overflow: ellipsis;
}

[class*=kanban-cs] {
  float: left;
  margin-left: 9px;
  margin-right: 9px;
}
.kanban-cs-1 {
  width: calc(100% - 18px);
}
.kanban-cs-2 {
  width: calc(100%/2 - 18px);
}
.kanban-cs-3 {
  width: calc(100%/3 - 18px);
}
.kanban-cs-4 {
  width: calc(100%/4 - 18px);
}
.kanban-cs-5 {
  width: calc(100%/5 - 18px);
}
.kanban-cs-6 {
  width: calc(100%/6 - 18px);
}

@media (min-width: 768px) and (max-width: 979px) {
  .kanban-cs-4,
  .kanban-cs-5,
  .kanban-cs-6 {
    width: calc(100%/3 - 18px);
  }
}

@media (max-width: 767px) {
	.cards-view {
		padding: 12px 0;
	}
	.cards-view .kanban-card-container {
		width: 100% !important;
		margin-bottom: 12px;
	}
	[class*=kanban-cs] {
	   float: none;
	   width: calc(100% - 18px);
	}
}
