/**
 * 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;
	background: #E1E1E1;
	border: 1px solid #CACACA;
    box-shadow: 0 0 5px #AFAFAF;
}

.UIPopupWindow .PopupTitleIcon {
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	margin: 5px 0px 0px 8px; /* orientation=lt */
	margin: 5px 8px 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;
	width: 19px; height: 16px;
	background: url('background/PopupWindow.gif') no-repeat left bottom; 
}

.UIPopupWindow .PopupTitle {
	margin: 0px 30px 0px;
	line-height: 26px; 
	vertical-align: middle;
	cursor: move;
	color: #000;
	display: block;
}

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

.UIPopupWindow .BackButton {
	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/Back.gif') no-repeat right bottom;
}

.UIPopupWindow .UIWindowContent {
	border: 1px solid #bdbcbd;
	background: #EBEBEB;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
    border-radius: 0px;
    margin: 5px 8px 8px 8px;
}

.UIPopupWindow .PopupContent {
	width: 100%;
	background: #f7f7f7;
	overflow: auto;
}

.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: none;
  float: right; /* orientation=lt */
  float: left; /* orientation=rt */
  cursor: nw-resize; /* orientation=lt */
  cursor: ne-resize; /* orientation=rt */
}

.UIPopupWindow > .OverflowContainer{
	background: #e1e1e1;
	height: 25px;
}

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

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

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

.UIPortalComposer {
	border: 1px solid #A2A3A9;
	border-top: none;
	background: #ececec;
}

.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.gif) no-repeat left; /* orientation=lt */
	background: url(background/GrayDownIcon.gif) 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;
	height: 17px;
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
	margin: 6px 5px 0px 2px; /* orientation=lt */
	margin: 6px 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 .PopupTitle {
	background: none;
	margin: 0px 42px 0px 0px; /* orientation=lt */
	margin: 0px 0px 0px 42px; /* orientation=rt */
	text-align: left; /* orientation=lt */
	text-align: right; /* orientation=rt */
	color: #000;
	font-size: 12px;
	font-family: arial;
	cursor: move;
	line-height: 30px;
	height: 30px;
	display: block;
}

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

.UIPortalComposer .UIWindowContent{
	border: none;
	margin: 5px 4px 8px;
}

.UIPortalComposer .PopupContent {
	background: none;
}

.UIPortalComposer .UITabPane {
	height: auto;
}

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

.UIPortalComposer .UIHorizontalTabs .TabsContainer {
	background: url(background/CenterHorizontalTabs.gif) repeat-x left bottom;
	height: 25px;
}

.UIPortalComposer .UITabPane .UITabContentContainer {
}

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

.UIPortalComposer > .OverflowContainer{
	background: url(background/PortalComposer.gif) repeat-x left -34px;
	height: 30px;
}

.ExoMessageDecorator{
	-moz-border-radius: 5px 5px 0px 0px;
	-webkit-border-radius: 5px 5px 0px 0px;
    border-radius: 5px 5px 0px 0px;
}

.ExoMessageDecorator .OverflowContainer{
	background: #f3f3f3;
	height: 26px;
	padding-top: 5px;
	-moz-border-radius: 5px 5px 0px 0px;
	-webkit-border-radius: 5px 5px 0px 0px;
    border-radius: 5px 5px 0px 0px;
}

.ExoMessageDecorator .UIWindowContent{
	border: none;
	background: #e1e1e1;
}

.ExoMessageDecorator .PopupContent{
	background: none;
}