/**
 * Chat CSS
 *
 * @author Michael <michael.weibel@gmail.com>
 * @author Patrick <patrick.stadler@gmail.com>
 * @copyright 2011 Amiado Group AG, All rights reserved.
 */
html, body {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
}

#candy {
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	background-color: #bdb7a1;
	color: #333;
	overflow: hidden;
	border: 1px solid #bdb7a1;
	border-top-right-radius: 10px;
	box-sizing: border-box;
}
#candy.poppedOut {
	border-top-left-radius: 0 !important;
}

#chatPopin {
	position: absolute;
	bottom: 5px;
	right: 5px;
	font-size: 24px;
	height: 18px !important;
	width: 22px;
	color: #666;
}
#chatPopin:hover {
	color: #333;
	text-decoration: none;
}

a {
	color: #333;
	text-decoration: none;
}
ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#chat-tabs {
	margin: 0 0 0 28px;
	padding: 0;
	overflow: auto;
	border-left: 1px solid #bdb7a1;
}

#chat-pane.collapsed-message-pane #chat-tabs {
	height: 100%;
	width: 29px;
	border-left: 0;
	margin: 30px 0 0 0;
}

#chat-tabs #chat-expand-arrow {
	position: absolute;
	top: 0;
	left: 0;
	width: 27px;
	height: 15px;
	padding: 5px 0;
	cursor: pointer;
}
#chat-tabs #chat-expand-arrow em {
	font-size: 18px;
	padding: 0 10px;
}

#chat-tabs li {
	margin: 0;
	float: left;
	position: relative;
	white-space: nowrap;
}

#chat-tabs li a {
	background-color: #e9e6df;
	padding: 6px 20px 4px 1px;
	display: inline-block;
	color: #999;
	height: 19px;
	font-size: 22px;
	-webkit-font-smoothing: antialiased;
}

#chat-tabs li a.label {
	border-right: 1px solid #bdb7a1;
	border-bottom: 1px solid #bdb7a1;
}

#chat-pane.collapsed-message-pane #chat-tabs li a.label {
	border-bottom: 0;
	margin-bottom: 1px;
}

#chat-tabs li.active a {
	color: #333;
	font-weight: bold;
}

#chat-tabs li.active a.label {
	border-bottom: 1px solid white;
	background-color: white;
}

#chat-tabs li a.transition {
    display: none; /* JRBL */
}

#chat-tabs li a.close {
	background-color: transparent;
	position: absolute;
	top: 2px;
	right: 7px;
	height: auto;
	padding: 0;
	margin: 0;
	color: #999;
}
#chat-tabs li a.close:hover, #chat-tabs li.active a.close:hover {
	color: #333;
}

#chat-tabs li .unread {
	color: white;
	background-color: #8C1515;
	padding: 1px 2px;
	font-weight: normal;
	font-size: 10px;
	position: absolute;
	top: 12px;
	right: 30px;
	border-radius: 5px;
}

#chat-tabs li.offline a.label {
	text-decoration: line-through;
}

#chat-toolbar {
	/*
	position: fixed;
	bottom: 0;
	right: 0;
	font-size: 11px;
	color: #666;
	width: 200px;
	height: 24px;
	padding-top: 7px;
	border-top: 1px solid #e9e6df;
	background-color: #d3cec0;
	*/
	display: none !important;
} 
#chat-toolbar li {
	width: 16px;
	height: 16px;
	margin-left: 5px;
	float: left;
	display: inline-block;
	cursor: pointer;
	background-position: top left;
	background-repeat: no-repeat;
}
#chat-toolbar #emoticons-icon {
	background-image: url(img/action/emoticons.png);
}
#chat-toolbar .context {
	background-image: url(img/action/settings.png);
	display: none;
}
.role-moderator #chat-toolbar .context, .affiliation-owner #chat-toolbar .context {
	display: inline-block;
}
#chat-sound-control {
	background-image: url(img/action/sound-off.png);
}
#chat-sound-control.checked {
	background-image: url(img/action/sound-on.png);
}
#chat-autoscroll-control {
	background-image: url(img/action/autoscroll-off.png);
}
#chat-autoscroll-control.checked {
	background-image: url(img/action/autoscroll-on.png);
}
#chat-statusmessage-control {
	background: url(img/action/statusmessage-off.png);
}
#chat-statusmessage-control.checked {
	background: url(img/action/statusmessage-on.png);
}
#chat-toolbar .usercount {
	background-image: url(img/action/usercount.png);
	cursor: default;
	padding-left: 20px;
	width: auto;
	margin-right: 5px;
	float: right;
}
.usercount span {
	display: inline-block;
	padding: 1px 3px;
	background-color: #ccc;
	font-weight: bold;
	border-radius: 3px;
}

.room-pane {
	/* display: none; */
}
.roster-pane {
	position: absolute;
	overflow: auto;
	top: 30px;
	right: 0;
	bottom: 30px;
	width: 198px;
	margin: 0;
}
.roster-pane .user {
	cursor: pointer;
	width: 90%;
	padding: 6px 5%;
	font-size: 14px;
	margin: 0;
	/* display: none; */
	color: #666;
	float: left;
	clear: both;
	height: 17px;
	background-color: #d3cec0;
	border-bottom: 1px solid #bdb7a1;
}
.roster-pane .user.me {
	font-weight: bold;
	cursor: default;
}
.roster-pane .user:hover,
.roster-pane .user.me:hover {
	background-color: #e9e6df;
}
.roster-pane .user.status-ignored {
	cursor: default;
	color: #999;
	opacity: .5 !important;
}
.roster-pane .label {
	float: left;
	width: 125px;
	overflow: hidden;
	white-space: nowrap;
}
.roster-pane li {
	width: 16px;
	height: 16px;
	float: right;
	display: block;
	margin-left: 3px;
	background-repeat: no-repeat;
	background-position: center;
}
.roster-pane li.role {
	cursor: default;
	display: none;
}
.roster-pane li.role-moderator {
	background-image: url(img/roster/role-moderator.png);
	display: block;
}
.roster-pane li.affiliation-owner {
	background-image: url(img/roster/affiliation-owner.png);
	display: block;
}
.roster-pane li.ignore {
	background-image: url(img/roster/ignore.png);
	display: none;
}
.roster-pane .status-ignored li.ignore {
	display: block;
}
.roster-pane .me li.context {
	display: none;
}
.roster-pane li.context {
	background-image: url(img/action/menu.png);
	cursor: pointer;
}
.roster-pane li.context:hover {
	background-color: #ccc;
	border-radius: 4px;
}

.message-pane-wrapper {
	clear: both;
	overflow: auto;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: auto;
	width: auto;
	margin: 30px 199px 32px 0;
	background-color: white;
	font-size: 13px;
}
.message-pane {
	margin: 0;
	padding: 5px 10px 2px 10px;
}
.message-pane dt {
	width: 55px;
	float: left;
	color: #888;
	font-size: 10px;
	text-align: right;
	padding-top: 4px;
}

.message-pane dd {
	overflow: auto;
	padding: 2px 0 1px 100px;
	margin: 0 0 2px 0;
	white-space: -o-pre-wrap; /* Opera */
	word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.message-pane dd .label {
	font-weight: bold;
	white-space: nowrap;
	display: block;
	margin-left: -90px;
	width: 90px;
	float: left;
	overflow: hidden;
}

.message-pane .subject {
	color: #a00;
	font-weight: bold;
}

.message-pane .adminmessage {
	color: #a00;
	font-weight: bold;
}

.message-pane .infomessage {
	color: #888;
	font-style: italic;
	padding-left: 5px;
}

.message-pane .emoticon {
	vertical-align: text-bottom;
	height: 15px;
	width: 15px;
}

.message-form-wrapper {
	position: absolute;
	bottom: 1px;
	left: 0;
	right: 0;
	width: auto;
	margin-right: 199px;
	background-color: #e9e6df;
	height: 30px;
}

.message-form {
	position: absolute;
	bottom: 1px;
	left: 0;
	right: 0;
	margin: 0 199px 0 0;
	padding: 0;
	height: 30px;
}

.message-form input {
	border: 0 none;
	font-size: 14px;
	width: 100%;
	height: 100%;
	display: block;
	outline-width: 0;
	padding: 0 50px 0 5px;
	background-color: transparent;
}
.message-form input:focus {
	background-color: white;
}

.message-form input.submit {
	cursor: pointer;
	background-color: #333;
	color: #e9e6df;
	position: absolute;
	bottom: 0;
	right: 0;
	margin: 3px;
	padding: 5px;
	width: 40px;
	font-size: 12px;
	line-height: 12px;
	height: 24px;
	font-weight: bold;
}

#tooltip {
	position: absolute;
	z-index: 10;
	display: none;
	margin: 18px -18px 2px -2px;
	color: white;
	font-size: 11px;
	padding: 5px 0;
	background: url(img/tooltip-arrows.gif) no-repeat left bottom;
}

#tooltip div {
	background-color: black;
	padding: 2px 5px;
	zoom: 1;
}

#context-menu {
	position: absolute;
	z-index: 10;
	display: none;
	padding: 15px 10px;
	margin: 8px -28px -8px -12px;
	background: url(img/context-arrows.gif) no-repeat left bottom;
}

#context-menu ul {
	background-color: black;
	color: white;
	font-size: 12px;
	padding: 2px;
	zoom: 1;
}

#context-menu li {
	padding: 3px 5px 3px 20px;
	line-height: 12px;
	cursor: pointer;
	margin-bottom: 2px;
	background: 1px no-repeat;
	white-space: nowrap;
}

#context-menu li:hover {
	background-color: #666;
}

#context-menu li:last-child {
	margin-bottom: 0;
}

#context-menu .private {
	background-image: url(img/action/private.png);
}

#context-menu .ignore {
	background-image: url(img/action/ignore.png);
}

#context-menu .unignore {
	background-image: url(img/action/unignore.png);
}

#context-menu .kick {
	background-image: url(img/action/kick.png);
}

#context-menu .ban {
	background-image: url(img/action/ban.png);
}

#context-menu .subject {
	background-image: url(img/action/subject.png);
}

#context-menu .emoticons {
	padding-left: 5px;
	width: 85px;
	white-space: normal;
}

#context-menu .emoticons:hover {
	background-color: transparent;
}

#context-menu .emoticons img {
	cursor: pointer;
	margin: 3px;
	height: 15px;
	width: 15px;
}

#chat-modal {
	background: url(img/modal-bg.png);
	width: 300px;
	padding: 20px 5px;
	color: white;
	font-size: 16px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -155px;
	margin-top: -45px;
	text-align: center;
	display: none;
	z-index: 100;
	border-radius: 5px;
}

#chat-modal-overlay {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background-image: url(img/overlay.png);
	border-top-left-radius: 8px;
}

#chat-modal.modal-login {
	display: block;
	margin-top: -100px;
}

#chat-modal-spinner {
	display: none;
	margin-left: 15px;
}

#chat-modal form {
	margin: 15px 0;
}

#chat-modal label, #chat-modal input, #chat-modal select {
	display: block;
	float: left;
	line-height: 26px;
	font-size: 16px;
	margin: 5px 0;
}

#chat-modal input, #chat-modal select {
	padding: 2px;
	line-height: 16px;
	width: 150px;
}

#chat-modal label {
	 text-align: right;
	 padding-right: 1em;
	 clear: both;
	 width: 100px;
}

#chat-modal input.button {
	float: none;
	display: block;
	margin: 5px auto;
	clear: both;
	position: relative;
	top: 10px;
	/* width: 200px; */
	width: 120px; /* JRBL */
}

#chat-modal .close {
	position: absolute;
	right: 0;
	display: none;
	padding: 0 5px;
	margin: -17px 3px 0 0;
	color: white;
	border-radius: 3px;
}

#chat-modal .close:hover {
	background-color: #333;
}