/*
 * Base structure
 */


/* Move down content because we have a fixed navbar that is 50px tall */
html {
    background-color: #F5F6F8;
}

body {
    font-family: 'Open Sans', sans-serif;
    /*font-size: .875rem;*/
    color: #1C3649;
    background-color: #F5F6F8;
}

body a {
  color: #3977D4;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

/*
 * Global add-ons
 */

.sub-header {
    border-bottom: 1px solid #eee;
}

.dtr-dropping-above {
  margin-top: 200px;
}

.dtr-dropping-below {
  margin-bottom: 200px;
}

.funnel-option{
  border: 1px solid black;
  padding: 1px 2px 1px 2px;
  border-radius: 3px;
  margin-right: 4px;
  white-space: nowrap;
  display: inline-block
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */

#main-nav {
    border-bottom: #E0E3E8 solid 1px;
    background: #FFFFFF;
    padding: 0;
}

#main-nav a {
    color: #1C3649;
}

#main-nav li a {
    padding: 15px 28px 16px;
    line-height: 32px;
}

#main-nav .nav li a:focus, .nav li a:hover {
    background-color: #FFFFFF;
}

#main-nav li.active {
    font-weight: 700;
}

#main-nav li.active .active-indicator {
    background: #FFFFFF;
    height:3px;
}

#main-nav li.active .active-indicator {
    background: #3977D4;
}


#main-nav li.active i {
    color: #3977D4;
}

#main-nav .navbar-brand {
    border-right:  #E0E3E8 solid 1px;
    height: 65px;
    line-height: 32px;
    padding: .8em;
}

#main-nav button.navbar-toggle {
    color: #3977D4;
}

#sub-navbar li.active a {
    color: #3977D4;
}

#sub-navbar a {
    color: #1C3649;
}

#sub-navbar li.active {
    font-weight: 700;
}

#sub-navbar .nav li a:focus, .nav li a:hover {
    background-color: #FFFFFF;
}

#sub-navbar {
    background-color: #FFFFFF;
    margin-bottom: 0;
    border-bottom: #E0E3E8 solid 1px;
}

#sub-navbar .logo-offset {
    width: 150px;
}

#select-nav {
    min-height: 60px;
    color:#797979;
}

.logout {
  cursor: pointer;
}

/*
 * Create Message From Template
 */

.template-button:hover{
    background-color: #eceef7;
}

.template-button{
    cursor: pointer;
}

/*
 * Sidebar
 */


/* Hide for mobile, show later */

.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto;
        /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }
}


/* Sidebar navigation */

.nav-sidebar {
    margin-right: -21px;
    /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}

.nav-sidebar>li>a {
    padding-right: 20px;
    padding-left: 20px;
}

.nav-sidebar>.active>a,
.nav-sidebar>.active>a:hover,
.nav-sidebar>.active>a:focus {
    color: #fff;
    background-color: #428bca;
}


/*
 * Main content
 */

.main {
    padding: 20px;
}

@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}

.content-body {
    background-color: #F5F6F8;
    padding-top: 66px
}

.main .page-header {
    margin-top: 0;
}

.tab-head {
    border-top: solid 1px #E0E3E8;
    border-left: solid 1px #E0E3E8;
    background: #FFFFFF;
}

.tab-head.active {
    border-bottom: none;
}

.tab-head.first {
    border-top-left-radius: 12px;
}

.tab-head.last {
    border-right: solid 1px #E0E3E8;
    border-top-right-radius: 12px;
}

.tab-head.empty {
    border: none;
    background-color: #F5F6F8;
}

.tab-head .count {
    margin-top: 5px;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
}

.tab-head.active .count {
    font-weight: 700;
}

.tab-head .title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
    margin-bottom: 5px;
    color: #98A1B8;
}

.tab-head.active .title {
    color: #1C3649;
}

.tab-head .active-indicator {
    background: #FFFFFF;
    height:3px;
}

.tab-head.active .active-indicator {
    background: #3977D4;
}

.main-tab-content {
    border: solid 1px #E0E3E8;
    background: #FFFFFF;
    border-radius: 12px;
}

.no-bottom-radius {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.no-top-radius {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.divider-controls-left {
  padding-top: 15px;
  border-left: solid 1px #E0E3E8;
}

.divider-controls-right {
  padding-top: 15px;
  border-right: solid 1px #E0E3E8;
}

.controlled-header {
  padding-top: 15px;
}

.graph-title {
  padding-top: 10px;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}

.placeholders h4 {
    margin-bottom: 0;
}

.placeholder {
    margin-bottom: 20px;
}

.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

.funnel-summary .summary{
  font-size: 13px;
}

/*
 * Simple Vertical Timeline
 */

 ul.timeline {
  list-style-type: none;
  position: relative;
}
ul.timeline:before {
  content: ' ';
  background: #d4d9df;
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 400;
  margin-top: 2px;
}
ul.timeline > li {
  margin: 20px 0;
  padding-left: 20px;
}
ul.timeline > li:before {
  content: ' ';
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 3px solid #3977D4;
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
  margin-top: 2px;
}

ul.timeline > li.indented {
  padding-left: 50px;
}



/* 
 * Bootstrap fixes
 */

.feature-color {
    height: 20px;
    width: 20px;
    border: 1px grey solid;
    border-radius: 50%;
}

.align-header-button {
    margin-top: 18px;
}

.select2 > .select2-choice.ui-select-match {
    /* Because of the inclusion of Bootstrap */
    height: 29px;
}

.selectize-control > .selectize-dropdown {
    top: 36px;
}

/*
 * InApp editor
 */

.select-button:hover{
    background-color: #fafafa;
}

.select-button{
    cursor: pointer;
}

.template-select img {
    margin-bottom: .75rem;
}

.show-hide-text-editors {
  position: absolute;
  right: 25px;
  bottom: 300px;
  z-index: 300;
  border: solid #646667 2px;
  background: #f9f9f9;
  padding: 3px;
  border-top-left-radius: 2px;
  border-top-right-radius: 3px;
  border-bottom: 1px dashed rgba(170,170,170,0.7);
}

.preview-background {
  background: repeating-linear-gradient( 45deg, #90b5ff, #90b5ff 10px, #85a7ea 10px, #85a7ea 20px );
}

/*
 * Workflow
 */

.grid-background {
    background: linear-gradient(-90deg, rgba(0, 0, 0, .03) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px), linear-gradient(-90deg, rgba(0, 0, 0, .03) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px), linear-gradient(transparent 3px, transparent 3px, transparent 78px, transparent 78px), linear-gradient(-90deg, transparent 1px, transparent 1px), linear-gradient(-90deg, transparent 3px, transparent 3px, transparent 78px, transparent 78px), linear-gradient(transparent 1px, transparent 1px), transparent;
    background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px;
    display: inline-flex;
    height: -webkit-calc(100vh - 190px);
    height: -moz-calc(100vh - 190px);
    height: calc(100vh - 190px);
    width: 100%;
    overflow: scroll;
    cursor: default;
}


/*
 * TreeView
 */


/*.btn {
    margin-right: 8px;
}*/

.angular-ui-tree-handle {
    background: #f8faff;
    border: 1px solid #dae2ea;
    color: #7c9eb2;
    padding: 10px 10px;
}

.angular-ui-tree-handle:hover {
    color: #438eb9;
    background: #f4f6f7;
    border-color: #dce2e8;
}

.angular-ui-tree-placeholder {
    background: #f0f9ff;
    border: 2px dashed #bed2db;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

tr.angular-ui-tree-empty {
    height: 100px
}

.group-title {
    background-color: #687074 !important;
    color: #FFF !important;
}


/* --- Tree --- */

.tree-node {
    border: 1px solid #dae2ea;
    background: #f8faff;
    color: #7c9eb2;
}

.nodrop {
    background-color: #f2dede;
}

.tree-node-content {
    margin: 10px;
}

.tree-handle {
    padding: 10px;
    background: #428bca;
    color: #FFF;
    margin-right: 10px;
}

.angular-ui-tree-handle:hover {}

.angular-ui-tree-placeholder {
    background: #f0f9ff;
    border: 2px dashed #bed2db;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.btn span.glyphicon {
    opacity: 0;
}

.btn.active span.glyphicon {
    opacity: 1;
}

.btn-red {
    color: #fff;
    background-color: #c9302c;
}

.btn-redish-purple {
    color: #fff;
    background-color: #fd17d6;
}

.btn-purple {
    color: #fff;
    background-color: #8f2ac3;
}

.btn-blue {
    color: #fff;
    background-color: #3071a9;
}

.btn-teal {
    color: #fff;
    background-color: #31b0d5;
}

.btn-green {
    color: #fff;
    background-color: #4cae4c;
}

.btn-lime {
    color: #fff;
    background-color: #72f35b;
}

.btn-yellow {
    color: #fff;
    background-color: #f7ff79;
}

.btn-orange {
    color: #fff;
    background-color: #ec971f;
}

.btn-brown {
    color: #fff;
    background-color: #bd5832;
}

#createTagPopin {
    position: absolute;
    left: 50%;
    margin-left: -312px;
    height: 500px;
    top: 50%;
    margin-top: -250px;
    z-index: 2000;
}

.inappEditor{
    margin-top: 50px;
}

.match-values{
  display: inline-block;
  vertical-align: sub;
}

.add-rule-wrapper{
  border: green solid 1px;
  border-radius: 18px;
  width: 35px;
  height: 35px;
  display: inline-block;
  padding-top: 1px;
}

.join-rule-wrapper{
  border: grey solid 1px;
  border-radius: 18px;
  width: 36px;
  height: 36px;
  display: inline-block;
  padding-top: 2px;
  padding-left: 2px;
}

.join-rule-wrapper-text {
  color: white;
  background: grey;
  border-radius: 15px;
  height: 30px;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 700;
  width: 30px;
}

.ui-select-match-item{
  padding: 2px;
}

.btn-group-just-text, .btn-group-vertical-just-text {
    display: inline-block;
    position: relative;
    vertical-align: text-bottom;
    border-bottom: dotted #212529 1px;
}

.btn-group-just-text a.btn-just-text {
    display: inline-block;
    padding:0;
    margin: 0 0 -1px;
    border-width: 0;
    font-size: initial !important;
    text-shadow: none !important;
    background-color:inherit !important;
    font-size: inherit !important;
    line-height: initial !important;
}

.input-just-text-box{
    display: inline-block;
    border-bottom: dotted #212529 1px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    height: 24px;
    background: transparent;
    display: inline-block;
}

.input-just-text{
    display: inline;
    background: transparent;
    margin: 0 0 -1px;
    border: none;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

.input-just-text:focus {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.codeWindow{
    height:168px;
    overflow: hidden;
}

.small-pills > li > a{
    padding: 5px 10px;
}

.tabset, .tab-content, .tab-pane, .tabbable {
  height:100%;
}

.CodeMirror { 
    height: 100%; 
}

.CodeMirror-lines {
    padding: 4px 0
}

.CodeMirror pre {
    padding: 0 4px
}

.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler {
    background-color: white
}

.CodeMirror-gutters {
    border-right: 1px solid #ddd;
    background-color: #f7f7f7;
    white-space: nowrap
}

.CodeMirror-linenumber {
    padding: 0 3px 0 5px;
    min-width: 20px;
    text-align: right;
    color: #999;
    white-space: nowrap
}

.CodeMirror-guttermarker {
    color: black
}

.CodeMirror-guttermarker-subtle {
    color: #999
}

.CodeMirror-cursor {
    border-left: 1px solid black;
    border-right: none;
    width: 0
}

.CodeMirror div.CodeMirror-secondarycursor {
    border-left: 1px solid silver
}

.cm-fat-cursor .CodeMirror-cursor {
    width: auto;
    border: 0 !important;
    background: #7e7
}

.cm-fat-cursor div.CodeMirror-cursors {
    z-index: 1
}

.cm-animate-fat-cursor {
    width: auto;
    border: 0;
    -webkit-animation: blink 1.06s steps(1) infinite;
    animation: blink 1.06s steps(1) infinite;
    background-color: #7e7
}

@-webkit-keyframes blink {
    50% {
        background-color: transparent
    }
}

@keyframes blink {
    50% {
        background-color: transparent
    }
}

.cm-tab {
    display: inline-block;
    text-decoration: inherit
}

.CodeMirror-rulers {
    position: absolute;
    left: 0;
    right: 0;
    top: -50px;
    bottom: -20px;
    overflow: hidden
}

.CodeMirror-ruler {
    border-left: 1px solid #ccc;
    top: 0;
    bottom: 0;
    position: absolute
}

div.CodeMirror span.CodeMirror-matchingbracket {
    color: #0f0
}

div.CodeMirror span.CodeMirror-nonmatchingbracket {
    color: #f22
}

.CodeMirror-matchingtag {
    background: rgba(255,150,0,0.3)
}

.CodeMirror-activeline-background {
    background: #e8f2ff
}

.CodeMirror {
    position: relative;
    overflow: hidden;
    background: white
}

.CodeMirror-scroll {
    overflow: scroll !important;
    margin-bottom: -30px;
    margin-right: -30px;
    padding-bottom: 30px;
    height: 100%;
    outline: none;
    position: relative
}

.CodeMirror-sizer {
    position: relative;
    border-right: 30px solid transparent
}

.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler {
    position: absolute;
    z-index: 6;
    display: none
}

.CodeMirror-vscrollbar {
    right: 0;
    top: 0;
    overflow-x: hidden;
    overflow-y: scroll
}

.CodeMirror-hscrollbar {
    bottom: 0;
    left: 0;
    overflow-y: hidden;
    overflow-x: scroll
}

.CodeMirror-scrollbar-filler {
    right: 0;
    bottom: 0
}

.CodeMirror-gutter-filler {
    left: 0;
    bottom: 0
}

.CodeMirror-gutters {
    position: absolute;
    left: 0;
    top: 0;
    min-height: 100%;
    z-index: 3
}

.CodeMirror-gutter {
    white-space: normal;
    height: 100%;
    display: inline-block;
    vertical-align: top;
    margin-bottom: -30px
}

.CodeMirror-gutter-wrapper {
    position: absolute;
    z-index: 4;
    background: none !important;
    border: none !important
}

.CodeMirror-gutter-background {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4
}

.CodeMirror-gutter-elt {
    position: absolute;
    cursor: default;
    z-index: 4
}

.CodeMirror-gutter-wrapper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.CodeMirror-lines {
    cursor: text;
    min-height: 1px
}

.CodeMirror pre {
    border-radius: 0;
    border-width: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    white-space: pre;
    word-wrap: normal;
    line-height: inherit;
    color: inherit;
    z-index: 2;
    position: relative;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    font-variant-ligatures: contextual
}

.CodeMirror-wrap pre {
    word-wrap: break-word;
    white-space: pre-wrap;
    word-break: normal
}

.CodeMirror-linebackground {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0
}

.CodeMirror-linewidget {
    position: relative;
    z-index: 2;
    overflow: auto
}

.CodeMirror-code {
    outline: none
}

.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber {
    box-sizing: content-box
}

.CodeMirror-measure {
    position: absolute;
    width: 100%;
    height: 0;
    overflow: hidden;
    visibility: hidden
}

.CodeMirror-cursor {
    position: absolute;
    pointer-events: none
}

.CodeMirror-measure pre {
    position: static
}

div.CodeMirror-cursors {
    visibility: hidden;
    position: relative;
    z-index: 3
}

div.CodeMirror-dragcursors {
    visibility: visible
}

.CodeMirror-focused div.CodeMirror-cursors {
    visibility: visible
}

.CodeMirror-selected {
    background: #d9d9d9
}

.CodeMirror-focused .CodeMirror-selected {
    background: #d7d4f0
}

.CodeMirror-crosshair {
    cursor: crosshair
}

.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection {
    background: #d7d4f0
}

.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection {
    background: #d7d4f0
}

.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection {
    background: #d7d4f0
}

.cm-searching {
    background: #ffa;
    background: rgba(255,255,0,0.4)
}

.cm-force-border {
    padding-right: .1px
}

@media print {
    .CodeMirror div.CodeMirror-cursors {
        visibility: hidden
    }
}

.cm-tab-wrap-hack:after {
    content: ''
}

span.CodeMirror-selectedtext {
    background: none
}

.CodeMirror {
    font: 15px/1.5 Monaco, MonoSpace;
    background: none;
    height: 100%
}

.CodeMirror-gutters {
    border: 0;
    background: none
}

div.CodeMirror span.CodeMirror-matchingbracket {
    color: inherit
}

.CodeMirror-matchingtag {
    background: none
}

.CodeMirror-sizer {
    margin-bottom: 0 !important
}

.CodeMirror-dialog {
    background: #eee;
    padding: 5px;
    font-size: 0.9rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    color: black
}

.CodeMirror-dialog .CodeMirror-search-hint {
    display: none
}

.CodeMirror-dialog .CodeMirror-search-field {
    width: 250px !important;
    font: 0.9rem/1.3 Monaco, MonoSpace
}

.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler {
    background-color: transparent
}

.CodeMirror-linewidget {
    overflow: hidden
}

.CodeMirror-foldmarker {
    color: blue;
    text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
    font-family: arial;
    line-height: .3;
    cursor: pointer
}

.CodeMirror-foldgutter {
    width: .7em
}

.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded {
    cursor: pointer
}

.CodeMirror-placeholder {
    opacity: 0.5
}

.CodeMirror-foldgutter-open:after {
    font-family: sans-serif;
    content: "\25BE"
}

.CodeMirror-foldgutter-folded:after {
    font-family: sans-serif;
    content: "\25B8"
}

.CodeMirror-hints {
    position: absolute;
    z-index: 10;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 2px;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
    border-radius: 3px;
    max-height: 20em;
    overflow-y: auto
}

.CodeMirror-hints .CodeMirror-hint {
    margin: 2px 0;
    font-size: 0.9rem;
    padding: 0 4px;
    border-radius: 2px;
    white-space: pre;
    cursor: pointer
}

.CodeMirror-simplescroll-horizontal div,.CodeMirror-simplescroll-vertical div {
    position: absolute;
    background-clip: padding-box !important
}

.CodeMirror-simplescroll-horizontal div {
    border-bottom: 4px solid transparent
}

.CodeMirror-simplescroll-vertical div {
    border-right: 4px solid transparent
}

.CodeMirror-simplescroll-horizontal,.CodeMirror-simplescroll-vertical {
    position: absolute;
    z-index: 6
}

.CodeMirror-simplescroll-horizontal {
    bottom: 0;
    left: 0;
    height: 9px
}

.CodeMirror-simplescroll-horizontal div {
    bottom: 0;
    height: 100%
}

.CodeMirror-simplescroll-vertical {
    right: 0;
    top: 0;
    width: 9px
}

.CodeMirror-simplescroll-vertical div {
    right: 0;
    width: 100%
}

.CodeMirror-linewidget+.CodeMirror-linewidget .inline-editor-error {
    border-top: 1px solid #ff4949
}

.CodeMirror-linewidget+.CodeMirror-linewidget .inline-editor-error.yellow {
    border-top-color: #d2c676
}


.CodeMirror-foldmarker {
    color: blue;
    text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
    font-family: arial;
    line-height: .3;
    cursor: pointer
}

.CodeMirror-foldgutter {
    width: .7em
}

.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded {
    cursor: pointer
}

.CodeMirror-foldgutter-open:after {
    content: "\25BE"
}

.CodeMirror-foldgutter-folded:after {
    content: "\25B8"
}
