/**
 * 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.
 */

.UIPopupWindow {
	position: absolute;
	visibility: hidden;
	-moz-box-shadow: 0px 0px 10px #cacaca;
	-webkit-box-shadow: 0px 0px 10px #cacaca;
	box-shadow: 0px 0px 10px #afafaf;
	border: 1px solid #cacaca;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.UIPopupWindow .PopupTitleIcon {
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	margin: 5px 0px 0px 3px; /* orientation=lt */
	margin: 5px 3px 0px 0px; /* orientation=rt */
	width: 16px; height: 16px;
	background: url('background/PopupWindow.gif') no-repeat left bottom;
}

.UIPopupWindow .PopupTitleIconRight {
	float: right;
	margin: 5px 3px 0px 0px; /* orientation=lt */
	margin: 5px 0px 0px 3px; /* orientation=rt */
	width: 19px; 
	height: 16px;
	background: url('background/PopupWindow.gif') no-repeat left bottom; 
}

.UIPopupWindow .PopupTitle {
	margin: 4px 25px 0px 9px; /* orientation=lt */
	margin: 4px 9px 0px 25px; /* orientation=rt */
	line-height: 20px; 
	vertical-align: middle;
	cursor: move;
	font-size: 12px;
	font-weight: bold;
	font-family: Arial, Verdana, Verdana, sans-serif;
	color: #515151;
	display: block;
}

.UIPopupWindow .CloseButton {
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
	margin: 5px 3px 0px 0px; /* orientation=lt */
	margin: 5px 0px 0px 3px; /* orientation=rt */
	cursor: pointer;
	width: 18px; 
	height: 18px;
	background: url('background/CloseIcon.png') no-repeat right top; /* orientation=lt */
	background: url('background/CloseIcon.png') no-repeat left top; /* orientation=rt */
}

.UIPopupWindow > .OverflowContainer {
	background: url('background/PortalComposer.png') repeat-x left top;
	height: 30px;
	padding-top: 5px;
	-moz-border-radius: 5px 5px 0px 0px;
	-webkit-border-radius: 5px 5px 0px 0px;
	border-radius: 5px 5px 0px 0px;
}

.UIPopupWindow .PopupContent {
	width: 100%;
	overflow: auto;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	border: none;
	background: #fff;
}

.UIPopupWindow .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 */
  position: absolute;
  bottom: 8px;
  right: 8px; /* orientation=lt */
  left: 8px; /* orientation=rt */
}

.UIPopupWindow .Content .UIPageBrowser {
	padding: 7px 4px 0px 8px;
	width: 96%;
	margin: auto;
}


.UIPopupWindow .UIWindowContent	{
	background: #EBEBEB;
	padding: 5px;
	-moz-border-radius: 0px 0px 5px 5px;
	-webkit-border-radius: 0px 0px 5px 5px;
	border-radius: 0px 0px 5px 5px;
}

.UIPopupWindow .UIPopupMessages {
	background: #ebebeb;
}


/************************** UIPortalComposer **************************/

.UIPortalComposer {
}

.UIPortalComposer .CollapseIcon {
	background: url(background/ExpandIcon.gif) no-repeat left; /* orientation=lt */
	background: url(background/ExpandIcon-rt.gif) no-repeat right; /* orientation=rt */
	width: 16px; 
	height: 14px;
	float: left;  /* orientation=lt */
	float: right;  /* orientation=rt */
	margin: 8px 5px;
	cursor: pointer;
}

.UIPortalComposer .ExpandIcon {
	background: url(background/GrayDownIcon.png) no-repeat left; /* orientation=lt */
	background: url(background/GrayDownIcon.png) no-repeat right; /* orientation=rt */
	width: 16px; 
	height: 14px;
	float: left;  /* orientation=lt */
	float: right;  /* orientation=rt */
	margin: 8px 5px;
	cursor: pointer;
}

.UIPortalComposer .CloseButton {
	background: url(background/CloseIcon.gif) no-repeat right bottom; /* orientation=lt */
	background: url(background/CloseIcon-rt.gif) no-repeat left bottom; /* orientation=rt */
	width: 23px;
	margin: 5px 5px 0px 2px; /* orientation=lt */
	margin: 5px 2px 0px 5px; /* orientation=rt */
}

.UIPortalComposer .SaveButton {
	background: url(background/EdittedSaveIcon.gif) no-repeat right bottom; /* orientation=lt */
	background: url(background/EdittedSaveIcon-rt.gif) no-repeat left bottom; /* orientation=rt */
	cursor: pointer;
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
	height: 17px;
	margin: 6px 0px 0px 2px; /* orientation=lt */
	margin: 6px 2px 0px 0px; /* orientation=rt */
	width: 23px;
}

.UIPortalComposer .BackButton {
	background: url(background/BackIcon.gif) no-repeat right bottom; /* orientation=lt */
	background: url(background/BackIcon-rt.gif) no-repeat left bottom; /* orientation=rt */
	width: 23px;
	height: 17px;
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
	margin: 6px 0px 0px 0px;
}

.UIPortalComposer .EdittedSaveButton {
	background: url(background/SaveIcon.gif) no-repeat right bottom; /* orientation=lt */
	background: url(background/SaveIcon-rt.gif) no-repeat left bottom; /* orientation=rt */
	cursor: pointer;
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
	height: 17px;
	margin: 6px 0px 0px 2px; /* orientation=lt */
	margin: 6px 2px 0px 0px; /* orientation=rt */
	width: 23px;
}

.UIPortalComposer .UITabPane {
	height: auto;
	background: #ebebeb;
}

.UIPortalComposer .UITabPane .TabPaneContent {
	padding: 0px;
}

.UIPortalComposer .Bottom {
	border-bottom: 1px solid #a2a3a9;
}

.UIPortalComposer .UIWindowContent	{
	border: none;
}

.UIPortalComposer .PopupContent {
	background: none;
}

.UIPortalComposer .UITabPane {
	height: auto;
}

.UIPortalComposer .UITabPane .TabPaneContent {
	padding: 0px;
}

.UIPortalComposer .UITabPane .UITabContentContainer .UITabContent {
	background: none;
	border: none;
}

.UIPortalComposer .ResizeButton {
	width: 13px;
	height: 13px;
	margin: 0;
}

.UIPopupWindow .UITabContentContainer {
	background: white;
	border: 1px solid  #AEAEAE;
	border-top:0;
}
