/**
 * Copyright (C) 2009 eXo Platform SAS.
 * 
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 * 
 * This software 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
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */


.UIWindow .UIDashboardPortlet {
	margin: 0px;
}

.UIDashboardPortlet {
	background: #fff;
	border: 1px solid #b7b7b7;
	border-top: none;
	height: 100%;
}

.UIWindow .UIDashboard {
	border: none;
	margin: 0px;
}

.UIDashboard {
	height: 100%;
}

.UIDashboard .DashboardContainer {
	background: url('background/BgBottom.gif') no-repeat bottom left;
	height: 100%;
}

.UIDashboard .UIDashboardEditForm {
	background: white;
	padding: 10px;
}

.UITabPaneDashboard {
	padding: 0 9px;
}

/*-------------------UITabPaneDashboard-------------------*/

.UITabPaneDashboard  {
	height: auto;
	background-color: #ededed;
	border: 1px solid #e1e1e1;
	padding: 0px 9px;
	margin: 0 9px;
}
.UITabPaneDashboard .UITab {	
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	height: 19px;
	line-height: 17px;
	border: 1px solid #d4d4d4;
	padding:0px 6px 0px 9px;/* orientation=lt */
	padding:0px 9px 0px 6px;/* orientation=rt */
	margin: 4px 2px 0px 0px;/* orientation=lt */
	margin: 4px 0px 0px 2px;/* orientation=rt */
}


.UITabPaneDashboard .SelectedTab {
	background-color:#fff;
}

.UITabPaneDashboard input {
	font-size: 11px;
	background-color:#fff;
	text-align: left;/* orientation=lt */
	text-align: right;/* orientation=rt */
	height: 13px;
	padding:0;
}


.UITabPaneDashboard .UITab .Tablabel, .UITabPaneDashboard span {
	font-weight:normal;
	line-height: 14px;	
}


.UITabPaneDashboard .UITab .CloseIcon {
	background: url('background/IconClose.png') no-repeat center;
	width: 14px;
	height: 13px;
	cursor: pointer;	
	display:inline-block;
	margin-left: 3px;/* orientation=lt */
	margin-right: 3px;/* orientation=rt */
	vertical-align: middle;
}

.UITabPaneDashboard .SelectedTab .CloseIcon {
	margin:0;
}

.UITabPaneDashboard .AddDashboard {
	background: url('background/AddDashboard.png') no-repeat center center;
	width: 23px;
	height: 29px;
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	cursor: pointer;
}

/*----------------------UIGadgetsSelectorForm-------------------*/

.UIDashboardSelectContainer {
	height: 100%;
}

.UIDashboardSelectContainer .DashboardControlBar {
	height: 23px;
	background: url('background/Dashboard.gif') repeat-x top;
	border-bottom: 1px solid #b7b7b7;
}

.UIDashboardSelectContainer .TitleBar {
	color: black;
	font-weight: bold;
	line-height: 23px;
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	padding-left: 10px; /* orientation=lt */
	padding-right: 10px; /* orientation=rt */
}

.UIDashboardSelectContainer .CloseIcon {
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
	background: url('background/Dashboard.gif') no-repeat left -180px;
	height: 20px;
	width: 20px;
}

.UIDashboardSelectContainer .DashboardItemContainer .InputContainer {
	padding: 4px 0px 4px 10px;
	_padding: 0px 10px;
	background: #ececec;
}

.UIDashboardSelectContainer .DashboardItemContainer .InputContainer input {
	margin: 0 3px 0 0px;
	border: 1px solid #b8babf;
	font-size: 11px; 
	width: 165px;
}

.UIDashboardSelectContainer .DashboardItemContainer .GadgetItemsContainer {
	border-top: 1px solid #b7b7b7;
	font-weight: bold;
}

.UIDashboardSelectContainer .DashboardItemContainer .TopItemContainer {
	background: url('background/Dashboard.gif') repeat-x center -37px;
	height: 11px;
	padding: 1px;
	border-bottom: 1px solid #b7b7b7;
	display: none;
}

.UIDashboardSelectContainer .DashboardItemContainer .UpArrowIcon {
	background: url('background/Dashboard.gif') repeat-x center -98px;
	height: 11px; width: 15px;
	margin: auto;
	cursor: pointer;
}

.UIDashboardSelectContainer .DashboardItemContainer .DisableArrowIcon {
	filter: alpha(opacity=30);
	-moz-opacity: 0.3;
}

.UIDashboardSelectContainer .DashboardItemContainer .MiddleItemContainer {
	overflow: hidden;
}
	
.UIDashboardSelectContainer .DashboardItemContainer .BottomItemContainer {
	background: url('background/Dashboard.gif') repeat-x center -37px;
	height: 11px;
	padding: 1px;
	border-top: 1px solid #b7b7b7;
	display: none;
}

.UIDashboardSelectContainer .DashboardItemContainer .DownArrowIcon {
	background: url('background/Dashboard.gif') repeat-x center -114px;
	height: 11px; width: 15px;
	margin: auto;
	cursor: pointer;
}

.UIDashboardSelectContainer .DashboardItemContainer .DisableContainer {
	background:	url('background/Dashboard.gif') repeat-x center -23px;
}

.UIDashboardSelectContainer .DashboardItemContainer .GadgetCategory {
	padding: 10px;
	text-transform: capitalize;
}

.UIDashboardSelectContainer .GadgetCategory .GadgetTab {
	background: url('background/CategoryTitleBar.gif') repeat-x left top;
	border: 1px solid #b8babf;
	height: 23px;
	padding: 0px 8px;
}

.UIDashboardSelectContainer .GadgetCategory .GadgetTab .ArrowIcon {
	background: url('background/ArrowIcon.gif') no-repeat left -20px; /* orientation=lt */
	background: url('background/ArrowIcon.gif') no-repeat right -20px; /* orientation=rt */
	line-height: 23px;
	overflow: hidden;
	padding-left: 18px; /* orientation=lt */
	padding-right: 18px; /* orientation=rt */
	color: #000;
	font-weight: normal;
}

.UIDashboardSelectContainer .GadgetCategory .SelectedTab .ArrowIcon {
	background: url('background/ArrowIcon.gif') no-repeat left 3px; /* orientation=lt */
	background: url('background/ArrowIcon.gif') no-repeat right 3px; /* orientation=rt */
}

.UIDashboardSelectContainer .GadgetCategory .ItemsContainer {
	background: #fff url('background/BGItemsContainer.gif') repeat-x left 1px;
	border: 1px solid #b8babf;
	border-top: none;
	padding: 8px 8px 4px 8px;
}

.UIDashboardSelectContainer .GadgetCategory .UIGadget {
	background: url('background/GadgetControl.gif') repeat-x left top;
	margin: 0px 0px 4px 0px;
	height: 18px;
	line-height: 18px;
	color: #676767;
	padding: 0px;
	background: #f2f2f3;
}

.UIDashboard .UIDashboardSelectContainer .GadgetTitle {
	width: 150px;	
	float: none;
	margin: 0px !important;
	line-height: 21px;
	font-size: 11px;
}

/*----------------------UIGadgetsContainer-------------------*/

.UIDashboard .UIDashboardContainer .NoGadget {
	text-align: center;
	font-size: 12px; font-weight: bold; 
	padding: 5px; color: #111;
}

/*------------------UIDashboardContainer----------------*/

.UIDashboardContainer {
	height: 100%;
	background: #fff;
}

.UIDashboardContainer .GadgetContainer {
	overflow: auto;
	height: 100%;
	min-height: 400px;
	_height: 400px;
	padding: 8px;
	text-align: right;/* orientation=lt */
	text-align: left;/* orientation=rt */
}

.UIDashboardContainer .AddIcon {
	background: url('background/AddGadget.gif') no-repeat left center; /* orientation=lt */
	background: url('background/AddGadget.gif') no-repeat right center; /* orientation=rt */
	padding-left: 24px; /* orientation=lt */
	padding-right: 24px; /* orientation=rt */
	width: 200px; /* orientation=rt */
	font-size: 12px;
	line-height: 30px;
	text-decoration: underline;
	color: #226ab3;
}

.UIDashboardContainer .GadgetContainer .AddIcon a:hover {
	text-decoration: none;
}

.UIDashboardContainer .GadgetContainer .UIColumn {
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	width: 325px;
	padding: 2px;
}

.UIDashboardContainer .UIGadget .GadgetMenuBar{
	text-align: left; /* orientation=lt */
	text-align: right; /* orientation=rt */
}

.UIDashboardContainer .UITarget {
	background: #f2f2f3;
	margin: 5px 5px 10px 5px;
}

.UIDashboard .Dragging {
	margin: 3px 0px 0px 3px; /* orientation=lt */
	margin: 3px 3px 0px 0px; /* orientation=rt */
}

.UIDashboard .UIPopupWindow {
	width: 240px;
}

#UIAddGadgetPopup {
	width: 225px;
}

#UIAddGadgetPopup .TopLeftCornerDecorator {
	background: url('background/PortalComposer.gif') no-repeat left top;
	padding-left: 7px;
}

#UIAddGadgetPopup .TopCenterDecorator {
	background: url('background/PortalComposer.gif') repeat-x left -34px;
	height: 34px;
	padding: 0px;
}

#UIAddGadgetPopup .TopRightCornerDecorator {
	background: url('background/PortalComposer.gif') no-repeat right top;
	padding-right: 7px;
}

#UIAddGadgetPopup .MiddleLeftSideDecorator {
	background: url(background/MiddlePortalComposer.gif) repeat-y left top;
	padding-left: 3px;	
}

#UIAddGadgetPopup .MiddleCenterDecorator {
	background: #d8dae1 url(background/CenterMiddleWindow.gif) repeat-x left top;
	padding: 4px;
	padding-bottom: 0px;
}

#UIAddGadgetPopup .MiddleRightSideDecorator {
	background: url(background/MiddlePortalComposer.gif) repeat-y right top;
	padding-right: 3px;
}

#UIAddGadgetPopup .UIWindowContent {
	border: 1px solid #bdbcbd;
}

#UIAddGadgetPopup .PopupContent {
	background: #fff;
}

#UIAddGadgetPopup .ResizeButton {
  background: url('background/ResizeBtn.gif') no-repeat right top; /* orientation=lt */
  background: url('background/ResizeBtn-rt.gif') no-repeat left top; /* orientation=rt */
  display: block;
  float: right; /* orientation=lt */
  float: left; /* orientation=rt */
  cursor: nw-resize; /* orientation=lt */
  cursor: ne-resize; /* orientation=rt */
}

#UIAddGadgetPopup .BottomLeftCornerDecorator {
	border: 1px solid #a2a3a9;
	border-top: none;
	background: #d8dae1;
}

#UIAddGadgetPopup .BottomCenterDecorator {
	height: 0px;
	background: none;
}

#UIAddGadgetPopup .BottomRightCornerDecorator {
	padding: 0px 6px 6px 6px;
	background: none;
}

#UIAddGadgetPopup .CloseButton {
	background: url('background/TopExitBtn.gif') no-repeat left top;
	width: 23px;
	height: 17px;
	margin-right: 0px;
}

#UIAddGadgetPopup .PopupTitleIcon {
	margin-left: 0px;
}

#UIAddGadgetPopup .PopupTitle {
	margin-left: 22px;
}

/*----------------------Maximized-------------------*/

.Maximized .UIGadget {
	padding: 20px;
	margin: 0px;
}

.Maximized .GadgetTitle {
	color: #5b5b5b;
	font-weight: bold;
	cursor: move;
	overflow: hidden;
	white-space: nowrap;
}

.Maximized iframe {
	width: 100%;
	_width: 98%;
}

