.popover {
  max-width: 350px;
  width: auto;
}

.app-matrix {
	margin:5px;
}

.app-link {
	-moz-border-radius: 5px;
	border-radius: 5px;
	border: 1px solid #fff;
	display: inline-block;
	vertical-align: top;
	height: 100px;
	width: 100px;
	text-align:center;
}

.app-link:hover {
}

.sq-widget {
	padding: 0px 10px;
}

.sq-diagram {
	padding-top: 4px;
	height: 100%;
}

.sq-header {
	background: #fff;
}

.app-icon {
	display: inline-block;
	vertical-align: middle;
	color:white;
	margin-top:10px;
	padding-top:12px;
	height: 64px;
	width: 64px;
}

.app-name {
	display: block;
	line-height: 20px;
	overflow: hidden;
	white-space: nowrap;
	width: 100px;
	text-overflow: ellipsis;
	color:white;
}

.sq-header tr td {
	border-right: 2px solid #f1f2f7;
	border-top: 1px solid #f1f2f7;
}

.sq-header tr td:last-of-type {
	border-right: none;
}

.sq-error {
    color: red;
    background-color: #fff;
    position : absolute;
    z-index:1;
    padding : 3px;
    display : none;
}

.sq-wait {
    position : absolute;
    z-index:1;
    display : none;
    color : orange;
    padding : 3px;
    margin : 3px;
    background-color: #fff;
    border : solid 1px #DDD;
}

#sq-loading {
    position : absolute;
    z-index:1;
    top:50%;
	left:50%;
}

.sq-main {
    display : none;
}

.sq-sankey {
    padding-top : 0px;
}

.sankey-header {
	marging : 2px;
	padding : 2px;
	border : solid 1px #DDD;
}

.sankey-header-label {
	font-size: large;
}

.datePickerPanels {
    text-align: center;
}

.startDatePicker {
	display: inline-block;
}

.endDatePicker {
    display: inline-block;
}

.continuousFacetContainer {
	text-align: left;
}

#sq-viewport {
	height:100%;
  position: relative;
}

#chart {
	height: 500px;
}

.node rect {
  cursor: move;
  fill-opacity: .9;
  shape-rendering: crispEdges;
}

.node text {
  pointer-events: none;
  text-shadow: 0 1px 0 #fff;
}

.link {
  fill: none;
  stroke: #000;
}

.link:hover {
  stroke-opacity: .8;
  stroke: #000;
}

/* ======================
   ==== range slider ====
   ====================== */

input[type="range"] {
    -webkit-appearance: none;
    background-color: #cccccc;
    height: 11px;
    width: 170px;
    border-radius: 5px;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.6);
}

input[type="range"]::-moz-range-track {
    -webkit-appearance: none;
    background-color: #cccccc;
    height: 11px;
    width: 170px;
    border-radius: 5px;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.6);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width:20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 1px 2px 3px rgba(0,0,0,0.6);
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    width:20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 1px 2px 3px rgba(0,0,0,0.6);
}

/* filterp anel */

.filter-panel {
	border-bottom: 1px solid #c8c8c8;
	border-top: 1px solid #c8c8c8;
	margin:0px;
	margin-bottom:5px;
	box-shadow:inset 0 0 10px rgba(0,0,0,0.2);
	background-color:#eeeeee;
}

.filter-panel:focus {
    background:initial;
    color:initial;
}

.filter-panel .panel-heading {
	background-color:transparent;
}

.filter-panel .panel-footer {
	background-color:transparent;
}

/* color scale */

td.color-scale {
	font-size:6px;
	padding:0px;
	border:0px;
}

td.color-scale-selected {
	font-size:6px;
	padding:0px;
	border-top:2px solid;
	border-bottom:2px solid;
}

div.color-scale {
	padding-top:3px;
}

/* Percentage */
#percentage-display {
	width: 73px;
	height: 19px;
	background: #cccccc;

	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;
	position: relative;

	box-shadow: inset 1px 1px 3px rgba(0,0,0,0.6);
}

#percentage-display .title {
	top: -23px;
    position: absolute;
    left: 7px;
}

#percentage-display:after {
	content: 'OFF';
	font: 10px/26px Arial, sans-serif;
	position: absolute;
	right: 10px;
	top: -3px;
	z-index: 0;
	font-weight: bold;
	text-shadow: 1px 1px 0px rgba(255,255,255,.15);
}

#percentage-display:before {
	content: 'ON';
	font: 10px/26px Arial, sans-serif;
    top: -3px;
    color: #fff;
	position: absolute;
	left: 10px;
	z-index: 0;
	font-weight: bold;
}

#percentage-display label {
	display: block;
	width: 22px;
    box-shadow: 1px 2px 3px;
	height: 20px;
	top: -1px;

	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;

	-webkit-transition: all .4s ease;
	-moz-transition: all .4s ease;
	-o-transition: all .4s ease;
	-ms-transition: all .4s ease;
	transition: all .4s ease;
	cursor: pointer;
	position: absolute;
	left: 3px;
	z-index: 1;
    background: #ffffff;
}

#percentage-display input[type=checkbox] {
    display: none;
}

#percentage-display input[type=checkbox]:checked + label {
	left: 30px;
}

/* threshold */
#threshold {
	position:absolute;
	bottom:0px;
	right:0px;
	margin:10px;
	margin-bottom:0px;
	float:right;
}

.circle {
    border-radius: 50%;
}

/* ======================
   ======= D3 TIP =======
   ====================== */

   @-webkit-keyframes bounceIn {
    0% {
      opacity: 0;
    }

    70% {
      opacity: 0;
    }

    100% {
      opacity: 1
    }
  }

  @keyframes bounceIn {
    0% {
      opacity: 0;
    }

    70% {
      opacity: 0;
    }

    100% {
      opacity: 1
    }
  }


  .d3-tip.animate {
    animation: bounceIn .7s linear;
    -webkit-animation: bounceIn .7s linear;
  }


.d3-tip {
  line-height: 1;
  font-weight: bold;
  padding: 12px;
  background: rgba(248, 248, 248, 1);
  color: #222;
  border-radius: 2px;
  box-shadow: -10px 10px 5px rgba(100,100,100,0.6);
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 20px;
  width: 100%;
  line-height: 1;
  color: rgba(248, 248, 248, 1);
  position: absolute;
  pointer-events: none;
  text-align: left;
}

/* Eastward tooltips */
.d3-tip.e:after {
  content: "\25C0";
  margin: -8px 0 0 0;
  top: 50%;
  left: -12px;
}

.d3-tip.se:after {
  content: "\25C0";
  margin: -8px 0 0 0;
  top: 20px;
  left: -12px;
}

.d3-tip.ne:after {
  content: "\25C0";
  margin: -8px 0 0 0;
  bottom: 20px;
  left: -12px;
}

/* ========================
   ==== CSS loader ========
   ======================== */

 .sq-loading {
  position:absolute;
  width:100%;
  top:40%;
 }
 /*
 .loader {
  font-size: 10px;
  margin: 5em auto;
  text-indent: -9999em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #1aadd0;
  background: -moz-linear-gradient(left, #1aadd0 10%, rgba(255, 255, 255, 0) 42%);
  background: -webkit-linear-gradient(left, #1aadd0 10%, rgba(255, 255, 255, 0) 42%);
  background: -o-linear-gradient(left, #1aadd0 10%, rgba(255, 255, 255, 0) 42%);
  background: -ms-linear-gradient(left, #1aadd0 10%, rgba(255, 255, 255, 0) 42%);
  background: linear-gradient(to right, #1aadd0 10%, rgba(255, 255, 255, 0) 42%);
  position: relative;
  -webkit-animation: load3 1.4s infinite linear;
  animation: load3 1.4s infinite linear;
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #1aadd0;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: #F1F2F7;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
*/

.spinner {
  margin: 100px auto;
  width: 400px;
  height: 100px;
  text-align: center;
  font-size: 10px;
}

.spinner > div {
	margin-left:10px;
  background-color: rgba(26, 173, 208, .5);
  height: 100%;
  width: 10px;
  display: inline-block;

  -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
  animation: stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.0) }
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.0);
    -webkit-transform: scaleY(0.0);
  }  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}
