// Zurmo is a customer relationship management program developed by
// Zurmo, Inc. Copyright (C) 2013 Zurmo Inc.
//
// Zurmo 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 with the addition of the following permission added
// to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
// IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
// OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
//
// Zurmo 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 or write to the Free
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
// 02110-1301 USA.
//
// You can contact Zurmo, Inc. with a mailing address at 27 North Wacker Drive
// Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com.
//
// The interactive user interfaces in original and modified versions
// of this program must display Appropriate Legal Notices, as required under
// Section 5 of the GNU Affero General Public License version 3.
//
// In accordance with Section 7(b) of the GNU Affero General Public License version 3,
// these Appropriate Legal Notices must retain the display of the Zurmo
// logo and Zurmo copyright notice. If the display of the logo is not reasonably
// feasible for technical reasons, the Appropriate Legal Notices must display the words
// "Copyright Zurmo Inc. 2013. All rights reserved".

.juiportlet-columns{
	.juiportlet-column {
		float: left;
		min-height: 400px;
		height: auto !important;
		height: 400px;
		+ .juiportlet-column{
			.juiportlet-widget {
				margin-right: 0;
			}
		}
	}
}

.juiportlet-widget-column1 {
	margin: 0;
	padding: 0;
	list-style: none;
	float:left;
	width:100%;
}

.juiportlet-widget-column2 {
	padding: 0;
	padding: 0;
	list-style: none;
}

.juiportlet-column-split-even-2 {
	width: 50%;
}

.juiportlet-column-no-split {
	width: 100%;
}

.juiportlet-column-split-left-75 {
	width: 65%;
}

.juiportlet-column-split-right-25 {
	width: 35%;
}

.juiportlet-columns .juiportlet-widget {
	min-width:265px;
	margin: 0px 20px 20px 0px;
	padding: 0;
	border:1px solid #CCC;
	.portlet-gradient();
	.b-shadow(0 0 9px 5px rgba(153, 153, 153, 0.12)); /*999*/
}

.juiportlet-columns .juiportlet-widget .juiportlet-widget-head {
	width: 100%;
	height: 40px;
	line-height: 40px;
	#gradient > .vertical(#f6f6f6, #ededed);
	.b-shadow(inset 0 1px 0 0 #ffffff);
	position:relative;
	border-bottom:1px solid #CCC;
	z-index: 999;
}

.juiportlet-columns .juiportlet-widget .juiportlet-widget-head h3 {
	float: left;
	position: relative;
	margin-left:15px;
}

.collapse ~ h3{
	margin-left:0;
}

.juiportlet-widget-head a.collapse {
	float: left;
	display: none; /*inline;*/
	background: url(../images/portlet-minimize.png) 14px 50% no-repeat;
	width: 14px;
	height: 40px;
	text-indent: -9999em;
	margin:0 8px;
	outline: none;
}

.juiportlet-widget-placeholder {
	margin: 0 20px 20px 2px;
}


.juiportlet-widget-content{
	padding:0 0 0 0;
	position: relative;
	z-index: 1;
}

.juiportlet-widget-content > li{
	padding:10px 15px;
	border-bottom:1px solid #dfdfdf;
	list-style: none;
}

.juiportlet-widget-content > li:last-child{
	border-bottom:none;
}

.juiportlet-widget-content .summary,
.juiportlet-widget-content .rssHeader{
	padding:10px 15px 0 15px;
}

.juiportlet-widget-coifrntent .items{
	//width:100%;
	border:none !important;
	thead > tr{
		th, td{
			border-top:none;
		}
    }
}

.juiportlet-widget-content table.items tbody tr:last-child > td{
	border-bottom:none;
}
.juiportlet-widget-content table.items tbody tr:first-child > td{
	//border-top:none;
}

/*ICONS..*/
.type-opportunities{
	h3:before{
		content: "9";
	}
	.icon-empty:before{
		content: "9";
		.view-toolbar-icons(45px);
	}
}
.type-contacts{
	.icon-empty:before{
		content: "e";
		.view-toolbar-icons(45px);
	}
}
.juiportlet-widget-head.type-contacts{
	h3{
		padding-left: 30px;
		position: relative;
		&:before{
			content: "e";
			.symbly(32px);
			color:#7A7A7A;
			line-height: 100%;
			position: absolute;
			top: 6px;
			left: 0;
		}
	}
}

.type-tasks{
	.icon-empty:before{
		content: "4";
		.view-toolbar-icons(45px);
	}
}
.type-activities{
	.icon-empty:before{
		content: '\00A5';
		.view-toolbar-icons(45px);
	}
}
.type-products{
	.icon-empty:before{
		content: '\003E';
		.view-toolbar-icons(45px);
	}
}
.type-socialItems{
	.icon-empty:before{
		content: 'u';
		.view-toolbar-icons(45px);
	}
}
.type-missions{
	.icon-empty:before{
		content: 'Q';
		.view-toolbar-icons(45px);
	}
}
.type-leads{
	.icon-empty:before{
		content: '.';
		.view-toolbar-icons(45px);
	}
}
.type-accounts{
	.icon-empty:before{
		content: 'P';
		.view-toolbar-icons(45px);
	}
}
.type-contacts{
	.icon-empty:before{
		content: "e";
		.view-toolbar-icons(45px);
	}
}
.type-products{
	.icon-empty:before{
		content: '\00AC';
		.view-toolbar-icons(45px);
	}
}
.type-opportunities{
    h3{
	    padding-left: 30px;
	    position: relative;
		&:before{
			.symbly(32px);
			color:#7A7A7A;
			line-height: 100%;
			position: absolute;
			top: 6px;
			left: 0;
		}
	}
}
.type-campaigns{
	.icon-empty:before{
		content: '\002C';
		.view-toolbar-icons(45px);
	}
}
