@-webkit-keyframes connecting {
      0% {background-color: #666;}
     50% {background-color: yellow;}
     100% {background-color: #666;}
}

/**
 * Index
 *
 */
.btn-bar {
	margin-bottom:15px;
	padding:15px 10px;
	background-color: #eee;
	background-color: rgba(255,255,255,0.4);
	border: 1px solid #ddd;
	border-color: rgba(0,0,0,0.1);
	overflow: hidden;
}
.btn-bar .left {
	width:30%;
	float: left;
}
.btn-bar .right {
	width:70%;
	float: right;
	text-align: right;
}

.btn-bar a {
	cursor: pointer;
	text-decoration: none;
}
.btn-bar input.submit {
	padding: 6px 9px;
}
.btn-bar .back {
	background: #555;
}

.sm-site {
	float: left;
	margin: 0 10px 10px;
	width: 120px;
	height: 200px;
	background-color: #333;
	border: 1px solid #ddd;
	border: 1px solid rgba(0,0,0,0.3);
	border-radius:3px;
	box-shadow: 0 2px 3px rgba(0,0,0,0.3);
	position: relative;
}

.sm-site a.details {
	position: absolute;
	top:0;
	bottom:25px;
	left:0;
	right:0;
	z-index: 10;
}
.sm-site a.details span {
	display: none;
}
#mainContent .sm-site h3 {
	font-family: Helvetica Light, Helvetica, sans-serif;
	font-weight: 100;
	font-size: 1em;
	padding:3px 2px;
	margin:0;
	color:#ccc;
	position: absolute;
	left:0;
	bottom:25px;
	right:0;
	text-align: center;
	z-index: 5;
	background: rgba(0,0,0,0.7);
}
.sm-site .thumbnail {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center 0;
	position: absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	z-index:2;
	opacity:0.9;
}
#mainContent .sm-site:hover h3{
	z-index: 5;
}
.sm-site:hover .thumbnail {
	opacity: 0.2;
}

.mainHeading {
	margin: 5px 0 22px 0;
	font-weight: 100;
	font-size: 2.2em;
	font-family: Helvetica Light, Helvetica, sans-serif;
}
.mainHeading.channel {
	padding-bottom:20px;
	border-bottom:1px solid #ccc;
	margin-bottom:20px;
}
.dynamicDataWrapper {
	min-height: 200px;
}
.loading .dynamicDataWrapper {
	background: url("../images/loading.gif") center center no-repeat;
}
.loading.first-load .dynamicDataWrapper{
	background: none;
}
.dynamicData{
	display: none
}
.loading-finished .dynamicData {
	display: block;
}
.mainHeading span {
	font-size: 0.5em;
	padding:5px 10px;
	background:rgba(0,0,0,0.3);
	color:#fff;
	border-radius: 4px;
	position: relative;
	top:-3px;
}
#mainContent .pageContents p.communication-error-notice {
	padding:50px 20px;
	font-size:1.5em;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	color:red;
	color:rgba(255,0,0,0.2);
	text-align:center;

}

.channel {
    margin: 40px 0 20px;
}
.channel:first-child {
	margin-top:0;
}

.channel .meta {
    border-bottom: none;
}
#mainContent .channel p.meta {
    border: none;
}
.dynamicData h2 {
    font-weight: 400;
    font-family: Helvetica Light, Helvetica, sans-serif;
    margin-bottom: 20px;
    font-size: 1.7em;
}
.sitesStatusBlock {
	position: absolute;
	top:0;
	left: 35px;
	right:35px;
	border-radius: 0 0 5px 5px;
	background: #000;
	height:15px;
	z-index: 15;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.sm-site .status {
	position: absolute;
	top:3px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background:#555;
}
table .status {

	display: inline-block;
	height:12px;
	width:12px;
	border-radius:50%;
	background-color: #555;
}
.sm-site .status.live {
	left: 10px;
}
.sm-site .status.connecting {
	left: 22px;
}
.sm-site .status.offline {
	left: 34px;
}

.status.live.active {
	background-color:#0DD30D;
	z-index: 20;
}
.status.connecting.active {
	background-color:yellow;
	-webkit-animation: connecting 1.5s infinite ease-in-out;
	z-index: 20;
}
.status.offline.active {
	background-color:red;
	z-index: 20;
}
.sm-site .app_version_wrapper {
	position: absolute;
	top: 40px;
	bottom:25px;
	left:0;
	right:0;
	z-index: 1;
}
.sm-site .app_version {
	position: absolute;
	width: 100%;
	text-align: center;
	font-size: 4em;
	font-weight: bold;
	color: #999;
	z-index: 15;
	background-color: transparent;
}

.sm-site a.button {
	margin:0;
	text-align: center;
	font-size:0.8em;
	width: 60px;
	height: 17px;
	padding:6px 0px 1px;
	z-index: 5;
	position: absolute;
	color:#fff;
	border-top:1px solid #444;
	background-color: #303030;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#303030), to(#000000)); /* Safari 4+, Chrome */
  background-image: -webkit-linear-gradient(top, #303030, #000000); /* Chrome 10+, Safari 5.1+, iOS 5+ */
  background-image:    -moz-linear-gradient(top, #303030, #000000); /* Firefox 3.6-15 */
  background-image:      -o-linear-gradient(top, #303030, #000000); /* Opera 11.10-12.00 */
  background-image:         linear-gradient(to bottom, #303030, #000000); /* Firefox 16+, IE10, Opera 12.50+ */
}

.sm-site a.button.view {
	left: 0;
	bottom: 0;
	width:59px;
	border-right:1px solid #333;
}
.sm-site a.button.login {
	right: 0;
	bottom: 0;
}

#mainContent .pageContents p{
	font-size: 1.1em;
	font-family: Helvetica Neue, Helvetica, sans-serif;
}

.columns {
	overflow: hidden
}
.columns .right {
	float: right;
	width: 49%;
}
.columns .left {
	float: left;
	width: 49%;
}

.label {
	font-size: 11.844px;
	font-weight: bold;
	line-height: 14px;
	color: white;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	white-space: nowrap;
	vertical-align: baseline;
	background-color: #999;

	padding: 2px 4px 2px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
.label.label-success {
	background-color: #468847;
}
.label.label-negative {
	background-color: #B94A48;
}

.dynamicData dt {
	display: block;
	background: rgba(0,0,0,0.1);
	font-size: 1.4em;
	padding:10px;
	margin-bottom: 1px;
	cursor: pointer;
}
.dynamicData dt:hover {
	background-color: rgba(0,0,0,0.17);
}
.dynamicData dt.open {
	margin-bottom: 10px;
	background-color: #666;
	color:#fff;
}

.dynamicData dd {
	display: none;
	margin: 0;
}



/**
 * Add Site
 *
 */
p.error {
	color:red;
	font-weight: bold;
}
.payload_settings_wrapper {
	float: right;
	margin: 0px 0 20px 20px;
	width: 40%;
}
.payload_settings_wrapper .label {
	display: block;
	margin: 0;
	padding:5px 10px 4px ;
	background: #eee;
	border-top: #ccc 1px solid;
	border-left: #ddd 1px solid;
	border-right: #ddd 1px solid;
	color: #555;
	text-shadow: none;
	font-weight: normal;
	background-color: #ffffff;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#dbdbdb)); /* Safari 4+, Chrome */
	background-image: -webkit-linear-gradient(top, #ffffff, #dbdbdb); /* Chrome 10+, Safari 5.1+, iOS 5+ */
	background-image:    -moz-linear-gradient(top, #ffffff, #dbdbdb); /* Firefox 3.6-15 */
	background-image:      -o-linear-gradient(top, #ffffff, #dbdbdb); /* Opera 11.10-12.00 */
	background-image:         linear-gradient(to bottom, #ffffff, #dbdbdb); /* Firefox 16+, IE10, Opera 12.50+ */
}
#payload_settings {
	width: 100%;
	padding: 10px;
	font-family: monospace;
	background: #444;
	color:#fff;
	font-size: 0.9em;
	border-radius:0;
	border-color: #ddd;
	margin:0;
}
#payload_settings {
	border-width: 1px;
}


/* Site Details */
.columns.nav .left {
	width: 20%;
	padding-bottom:20px;
}
.columns.nav .right {
	width:78%;
}

.nav ul {
	list-style: none;
	margin:0;
	padding:0;
}
.nav ul li{
	margin-bottom: 1px
}
.nav li a{
	text-decoration: none;
	display: block;
	padding: 10px;
	background-color: rgba(255,255,255,0.6);
	border-right: 1px solid rgba(0,0,0,0.1);
}

.nav li a:hover {
	background-color: rgba(0,0,0,0.01)
}
.nav li.active a {
	background: #E7174B;
	border-right: none;
	color: white;
}
.nav ul.bottom {
	margin-top:100px;
}
.nav ul.bottom li{
	border: none;
}
.nav ul.bottom a{
	border: none;
	background-color: rgba(255,0,0,0.4);
	color:#fff;
	display: inline;
}
.nav ul.bottom a:hover{
	background-color: red;
}
.site-details {
	position: relative;
}
.site-details h1 {
	margin-bottom: 10px;
}
#mainContent .site-details p.meta {
	font-size: 0.9em;
	padding: 0 0 10px 0;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

.statusBlock {
	position: absolute;
	top:0;
	right:0;
}
.statusBlock .status {
	width:20px;
	height:20px;
	border-radius:50%;
	background-color: #555;
	display: block;
	position: absolute;
	z-index: 10;
	-webkit-transition-property: right, height, width, top, background-color;
	-webkit-transition-duration: 0.7s;
	-webkit-transition-timing-function:  ease-in-out;
}

.statusBlock .status.live {
	right:60px;
}
.statusBlock .status.connecting {
	right:30px;
}
.statusBlock .status.offline {
	right:0;
}

.statusBlock.loaded .status.live,
.statusBlock.loaded .status.connecting,
.statusBlock.loaded .status.offline {
	top:1px;
	right:1px;
	width:18px;
	height:18px;
}
.statusBlock.loaded .status.live.active,
.statusBlock.loaded .status.connecting.active,
.statusBlock.loaded .status.offline.active {
	top:0px;
	right:0px;
	width:20px;
	height:20px;
}

.connection-stats {
	position: absolute;
	right:0;
	font-size: 0.9em;
}
.connection-stats ul {
	list-style: none;
	padding: 0;
	margin:0;
}
.connection-stats ul li {
	float: left;
	margin-right:10px;
	font-style: italic;
	color:#999;
}

table.mainTable.fieldTable thead {
	background: none;
}
table.mainTable.fieldTable th,
table.mainTable tbody th {
	background-image: none;
	background-color: rgba(0,0,0,0.1);
	border-left: 1px solid #ccc;
	border-bottom:1px solid #ccc;
	cursor: auto;
	color:#5F6C74;

}
table.mainTable.fieldTable th:last-child,
table.mainTable tbody th:last-child {
	border-right: 1px solid #ccc !important;
}
table.mainTable thead tr:first-child th {
	border-top:1px solid #ccc;
}
.statTable tr:first-child td,
.statTable tr:first-child th {
	border-top: 1px solid #D0D7DF;
}
.channelTemplate {
	display: none;
}

/* Sync */

#syncWrapper {
	overflow: hidden;
	margin: 0 auto;
	min-height:300px;
	padding:10px 0;
	background: url(../images/loading.gif) no-repeat -100px center;
}

#syncWrapper.initialLoad {
	background-position: center 100px;
}
#syncWrapper.initialLoad {
	background-position: center 50px;
}
#syncWrapper.initialLoad * {
	display: none;
}
#syncWrapper .site {
	width: 42%;

	float:left;
}
#syncWrapper .gutter {
	width: 16%;
	min-height:10px;
	float:left;
	padding: 5px 0;
	margin-top:-5px;
	background-color: rgba(0,0,0,0.7);
	border-radius: 4px;
	box-shadow: 0 0 3px rgba(0,0,0,0.7)
}
#syncWrapper .site .site-header {
	background-color: rgba(0,0,0,0.2);
}
#sm-fieldgroup {
	display: none;
}
#syncWrapper .site .site-header,
#syncWrapper .gutter .gutter-header {
	text-align: center;
	padding: 17px 5px;
	height:18px;
}
#syncWrapper .site.left .site-header {
	border-radius: 5px 0 0 0;
}
#syncWrapper .site.right .site-header {
	border-radius: 0 5px 0 0;
}
#syncWrapper .gutter .gutter-header.double select {
	position: relative;
	top: -15px;
	display: block;
	margin:0 auto;
	max-width: 100%;
}
#syncWrapper .no-results {
	display: none;
	float: left;
	width: 100%;
	text-align: center;
	font-weight: bold;
	opacity: 1;
	color: rgba(0, 0, 0, 0.2);
	font-size: 1.5em;
	padding: 20px 0;
}
#syncWrapper.no-results .no-results {
	display: block;
}
#syncWrapper .gutter .gutter-header.double #sm-fieldgroup {
	margin-top: 7px;

}
#sm-site1-body,
#sm-site2-body {
	position: relative;
	overflow: hidden;
}
.sm-sync-block {
	height:20px;
	width: 100%;
	padding:5px 0;
	text-align: center;
	border-bottom:0;
	background-color: rgba(0,0,0,0.1);
	font-size: 1.4em;
	margin-bottom:1px;
	position: relative;
}

.sm-sync-block.blank {
	background-color: transparent;
}
.sm-sync-block.error {
	background-color: rgba(255,0,0,0.6);
	color:#fff;
}
.sm-sync-block .meta {
	position: absolute;
	top:6px;
	font-size: 0.7em;
	background: rgba(0, 0, 0, 0.15);
	padding: 2px 5px;
	border-radius: 7px;
	color: #EEE;
	min-width: 15px;
}
#sm-site1-body .meta {
	right:20px;
}
#sm-site2-body .meta {
	left:20px;
}
.sm-sync-btn {
	position: absolute;
	top:0;
	bottom:0;
	width:50%;
	background-position: center center;
	background-repeat: no-repeat;
	cursor: pointer;
}
.sm-sync-btn:hover {
	background-color: #363636;
}
.sm-sync-btn.btn-left {
	left:0;
	right:auto;
	background-image: url("../images/arrow-left.png");
}
.sm-sync-btn.btn-right {
	right:0;
	left:auto;
	background-image: url("../images/arrow-right.png");
}