/* $Id: ChatView.css 3485 2013-02-10 09:59:44Z IMPOMEZIA $
 * IMPOMEZIA Simple Chat
 * Copyright (c) 2008-2012 IMPOMEZIA <schat@impomezia.com>
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program 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 General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

* {
  word-wrap:break-word;
}

body {
  background:#fff;
  color:#000;
  margin:0;
}

#Chat {
  margin:0;
  padding:0;
}

a {
  text-decoration:none;
}

a:link, a:visited {
  color:#2988d2;
}

a:active, a:hover {
  color:#1e6396;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color:#fff;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius:3px;
}

::-webkit-scrollbar-track {
  border-radius:3px;
}

.container {
  margin:2px;
}

.channel-type {
  box-shadow: 1px 1px 0px rgba(0,0,0,0.07);
}

.blocks {
  padding-left:0;
  padding-right: 20px;
}

.blocks:hover
{
  -webkit-transition: background 200ms linear, border 200ms linear;
}

.date-time-block {
  color:#a5b2c3;
  font-size:x-small;
}

.no-seconds .seconds, .no-service .service-type, .no-topic-author #topic-extra { display:none; }

.nick, .nick:link, .nick:visited {
  font-weight:bold;
  color:#113853;
}

.nick-block {
  padding-right: 2px;
  border-right: solid 1px #eee;
}

.color-black, .color-black:link, .color-black:visited {
  color: #0a2232;
}

.color-gray, .color-gray:link, .color-gray:visited {
  color: #675656;
}

.color-green, .color-green:link, .color-green:visited {
  color: #348956;
}

.color-red, .color-red:link, .color-red:visited {
  color: #922c2e;
}

.color-white, .color-white:link, .color-white:visited {
  color: #6f6f6f;
}

.color-yellow, .color-yellow:link, .color-yellow:visited {
  color: #92652c;
}

/* Входящие сообщения */
.incoming  {
  background-color:#f7f8f9;
  border:1px solid #f2f4f6;
}

.incoming:hover {
  background-color:#e6f0f5;
  border:1px solid #dbebf1;
}

/* Исходящие сообщения */
.outgoing {
  background:#ecffeb;
  border:1px solid #d9ffd7;
}

.outgoing:hover {
  background-color:#d9ffd7;
  border:1px solid #c5ffc3;
}

/* Отображение прогресс-бара для недоставленных сообщений */
.undelivered {
  background:url(qrc:/images/progress.gif) top right no-repeat #ecffeb;
}

/* Изменение внешнего вида для /me сообщений */
.me-action .nick, .me-action { color:#be00c4; }
.me-action { background:#ffebff; border:1px solid #ffe1ff; }
.me-action:hover { background:#ffe1ff; border:1px solid #fed7ff; }
.me-action.undelivered { background:url(qrc:/images/progress-pink.gif) top right no-repeat #ffebff; }

.referring {
  background: #fde8cf;
  border: 1px solid #fcdfbc;
}

.referring:hover {
  background: #fde2bf;
  border: 1px solid #fcd8ac;
}

/* Выделение красным отклонённых сообщений */
.rejected {
  background:#ffe1e2;
  border:1px solid #ffd7d8;
}

.rejected:hover {
  background:#ffc3c5;
  border:1px solid #ffb9bb;
}

/* Выделение жёлтым офлайн сообщений */
.offline {
  background-color:#fbfbd1;
  border:1px solid #f8f7ac;
}

.offline:hover {
  background-color:#f8f7ac;
  border:1px solid #f6f69a;
}

.service-type .blocks, .info-type .blocks { border:1px solid #fff; color:#a5b2c3; }
.service-type .nick, #topic-extra .nick { color:#a5b2c3; }

.info-type .green-text, .green-text {
  color:#6bb521;
}

.info-type .red-text, .red-text {
  color:#da251d;
}

.info-type .orange-text, .orange-text {
  color:#f89406;
}

.oh,.ot,.tt{float:left;padding:0 2% 2% 0;width:48%}.ot{width:31%}.tt{width:65%}.cl{clear:both}

.tab-content > .tab-pane, .pill-content > .pill-pane {
  display: none;
}
.tab-content > .active, .pill-content > .active {
  display: block;
}

.page-switcher {
  background: transparent;
  border: none;
  bottom: 0;
  font-size: 42px;
  padding: 0;
  position: fixed;
  margin: 0;
  width: 28px;
  outline: none;
  top: 0;
  z-index: 5;
  font-family: segoe ui, arial, helvetica, sans-serif;
  color: rgba(0,0,0, 0.5);
  -webkit-transition: width 150ms, right 150ms, background-color 150ms;
}

.page-switcher:hover,
.page-switcher:focus,
.page-switcher.drag-target {
  background: rgba(0,0,0, 0.06);
}

#info-content {
  margin-left: 32px;
}

#channel-name {
  font-size: 16px;
  line-height: 18px;
  display: inline-block;
  vertical-align: bottom;
}

.close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  line-height: 18px;
  color: #000000;
  text-shadow: 0 1px 0 #ffffff;
  opacity: 0.2;
}
.close:hover {
  color: #000000;
  text-decoration: none;
  opacity: 0.4;
  cursor: pointer;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000000;
  opacity: 0.8;
  border-left: 1px solid #a0a0a0;
  border-right: 1px solid #a0a0a0;
}
#modal-wrapper {
  position: fixed;
  width: 100%;
  z-index: 1050;
  top: 0;
  left: 0;
}
#modal-center {
  max-width: 560px;
  margin: 0 auto;
}
#modal {
  display: none;
  z-index: 1050;
  overflow: auto;
  max-width: 560px;
  margin: 20px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 6px;
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
#modal-header {
  padding: 5px 10px;
  border-bottom: 1px solid #eee;
}
#modal-header h3 {
  margin: 0;
}

#modal-body {
  overflow: scroll;
  padding: 10px;
  max-height: 400px;
}
.modal-footer {
  padding: 10px;
  margin-bottom: 0;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  -webkit-border-radius: 0 0 6px 6px;
  border-radius: 0 0 6px 6px;
  -webkit-box-shadow: inset 0 1px 0 #ffffff;
  box-shadow: inset 0 1px 0 #ffffff;
}
.modal-footer:before, .modal-footer:after {
  display: table;
  content: "";
}
.modal-footer:after {
  clear: both;
}
.modal-footer .btn {
  float: right;
  margin-left: 5px;
  margin-bottom: 0;
}

[class^="icon-"], [class^="provider-"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: text-top;
  background-repeat: no-repeat;
}

.cursor-pointer {
  cursor: pointer;
}

.icon-spinner {
  background-image: url(qrc:/images/spinner.gif);
}

.icon-spinner-small {
  width: 14px;
  height: 14px;
  background-image: url(qrc:/images/spinner-small.gif);
}

.icon-unknown {
  background-image: url(qrc:/webkit/resources/missingImage.png);
}

.icon-info {
  background-image: url(qrc:/images/information.png);
}

.icon-error {
  background-image: url(qrc:/images/exclamation-red.png);
}

.icon-computer {
  background-image: url(qrc:/images/computer.png);
}

.icon-profile {
  background-image: url(qrc:/images/profile.png);
}

.icon-os {
  background-image: url(qrc:/images/os.png);
}

.icon-status {
  background-image: url(qrc:/images/status.png);
}

.icon-status-offline {
  background-image: url(qrc:/images/status-offline.png);
}

.icon-globe {
  background-image: url(qrc:/images/globe.png);
}

.icon-gear {
  background-image: url(qrc:/images/gear.png);
}

.icon-plus-small {
  width: 7px;
  height: 7px;
  background-image: url(qrc:/images/plus-small.png);
}

.icon-minus-small {
  width: 7px;
  height: 7px;
  background-image: url(qrc:/images/minus-small.png);
}

.os-windows {
  background-position: 0 0;
}

.os-osx {
  background-position: -16px 0;
}

.os-linux {
  background-position: -32px 0;
}

.os-ubuntu {
  background-position: -48px 0;
}

.os-gentoo {
  background-position: -64px 0;
}

.os-debian {
  background-position: -80px 0;
}

.os-opensuse {
  background-position: -96px 0;
}

.os-fedora {
  background-position: -112px 0;
}

.os-unknown {
  background:none;
}

[class^="provider-"] {
  background-image: url("qrc:/images/providers.png");
  background-position: 0 0;
}

.provider-google {
  background-position: -16px 0;
}

.provider-yandex {
  background-position: -32px 0;
}

.provider-facebook {
  background-position: -48px 0;
}

.provider-vkontakte {
  background-position: -64px 0;
}

.provider-mail_ru {
  background-position: -80px 0;
}

.provider-odnoklassniki {
  background-position: -96px 0;
}

.provider-live {
  background-position: -112px 0;
}

.provider-github {
  background-position: -128px 0;
}

.provider-stackoverflow {
  background-position: -144px 0;
}

#easyTooltip {
  padding:5px;
  border:1px solid rgba(159, 159, 141, 0.5);
  background-color: rgba(255, 255, 225, 0.95);
  background-image: -webkit-linear-gradient( rgba(255, 255, 225, 0.95), rgba(255, 254, 189, 0.8));
  border-radius:4px;
  box-shadow:2px 2px 5px 0px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 4px 10px 4px;
  color: #333333;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  background-color: #fafafa;
  background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  border-bottom-color: #bbb;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.btn:link, .btn:visited {
  color: #333333;
}

.btn:hover {
  color: #333333;
  text-decoration: none;
  background-color: #e6e6e6;
  background-position: 0 -15px;
  -webkit-transition: background-position 0.1s linear;
}

.btn:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.btn.active, .btn:active {
  background-image: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  background-color: #e6e6e6;
  color: rgba(0, 0, 0, 0.5);
  outline: 0;
}

.btn.disabled, .btn[disabled] {
  cursor: default;
  background-image: none;
  background-color: #e6e6e6;
  opacity: 0.65;
  box-shadow: none;
}

.btn-small {
  padding: 2px 5px;
}

.btn-group {
  position: relative;
}

.btn-group:before,
.btn-group:after {
  display: table;
  content: "";
}

.btn-group:after {
  clear: both;
}

.btn-group + .btn-group {
  margin-left: 5px;
}

.btn-group > .btn {
  position: relative;
  float: left;
  margin-left: -1px;
  -webkit-border-radius: 0;
}

.btn-group > .btn:first-child {
  margin-left: 0;
  -webkit-border-bottom-left-radius: 4px;
  -webkit-border-top-left-radius: 4px;
}

.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle {
  -webkit-border-top-right-radius: 4px;
  -webkit-border-bottom-right-radius: 4px;
}

.btn-group > .btn.large:first-child {
  margin-left: 0;
  -webkit-border-bottom-left-radius: 6px;
  -webkit-border-top-left-radius: 6px;
}

.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
  -webkit-border-top-right-radius: 6px;
  -webkit-border-bottom-right-radius: 6px;
}

.btn-group > .btn:hover,
.btn-group > .btn:focus,
.btn-group > .btn:active,
.btn-group > .btn.active {
  z-index: 2;
}

.tooltip {
  position: absolute;
  z-index: 1020;
  display: block;
  visibility: visible;
  padding: 5px;
  opacity: 0;
}
.tooltip.in {
  opacity: 0.8;
}
.tooltip.top {
  margin-top: -2px;
}
.tooltip.top .tooltip-arrow {
  bottom: 0;
  left: 50%;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #000000;
}
.tooltip-inner {
  max-width: 200px;
  padding: 3px 8px;
  color: #ffffff;
  text-decoration: none;
  background-color: #000000;
  border-radius: 4px;
}
.tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
}

.bottom-line, .field-row {
  background-size: 100% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.0) 70%);
}

.field-row {
  padding: 4px;
}

.field-row-label {
  color: #5b5d6d;
}

.field-row-label, .field-row-value {
  display:inline-block;
  min-height: 16px;
  vertical-align: middle;
}

.alert {
  padding: 8px 35px 8px 14px;
  margin: 4px 0px 4px 2px;
  background-color: #fcf8e3;
  border: 1px solid #fbeed5;
  -webkit-border-radius: 4px;
  color: #c09853;
}
.alert .close {
  position: relative;
  top: -2px;
  right: -26px;
  line-height: 15px;
}
.alert-success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #468847;
}
.alert-error {
  background-color: #f2dede;
  border-color: #eed3d7;
  color: #b94a48;
}
.alert-info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #3a87ad;
}

.alert-box {
  background-color: #fafafa;
  background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
  background-repeat: repeat-x;
  border: 1px solid #d4d4d4;
  -webkit-border-radius: 4px;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  color: #333;
  padding: 4px 2px 2px 4px;
  display: -webkit-box;
}

.alert-box-icon {
  width: 20px;
  height: 16px;
}

.alert-box-body {
  -webkit-box-flex: 1;
}

.alert-box-close {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  background: url(qrc:/images/close.png) no-repeat center;
}

.alert-box-close:hover {
  background: url(qrc:/images/close-hover.png) no-repeat center;
}

.alert-box-info .alert-box {
  border: 1px solid #a8e2ff;
  background-image: -webkit-linear-gradient(top, #fbfeff, #e7f7ff);
  color: #004465;
}

.alert-box-info .alert-box-icon {
  background: url(qrc:/images/information.png) no-repeat left center;
}

.alert-box-warning .alert-box {
  border: 1px solid #e8d9c0;
  background-image: -webkit-linear-gradient(top, #fefdfc, #f9f5ed);
  color: #4b391b;
}

.alert-box-warning .alert-box-icon {
  background: url(qrc:/images/exclamation-circle.png) no-repeat left center;
}

.alert-box-success .alert-box {
  border: 1px solid #c6e2c7;
  background-image: -webkit-linear-gradient(top, #fefefe, #eff7ef);
  color: #234323;
}

.alert-box-success .alert-box-icon {
  background: url(qrc:/images/ok.png) no-repeat left center;
}

.alert-box-error .alert-box {
  border: 1px solid #e7c1c1;
  background-image: -webkit-linear-gradient(top, #fefcfc, #f8ecec);
  color: #4a1d1c;
}

.alert-box-error .alert-box-icon {
  background: url(qrc:/images/exclamation-red.png) no-repeat left center;
}

.alert-box-spinner .alert-box-icon {
  background: url(qrc:/images/spinner.gif) no-repeat left center;
}

.btn-toggle {
  padding: 2px;
  width: 7px;
  height: 7px;
  line-height: 0;
  vertical-align: bottom;
  margin-left: 2px;
}

#loading {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  z-index: 2000;
  display: -webkit-box;
  -webkit-box-pack: center;
}

#loading-body {
  display: none;
  background: #f9edbe;
  border: #f0c36d 1px solid;
  padding: 4px 12px 4px 4px;
  -webkit-border-radius: 4px;
  -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

#loading-text {
  display: inline-block;
  min-height: 16px;
  vertical-align: middle;
}

#loading-body .icon-spinner {
  background-image: url(qrc:/images/spinner-yellow.gif);
  display: inline-block;
}
