.main {
  position: absolute;
  top: 4rem;
  right: 0;
  bottom: 0;
  left: 80px;
  overflow-x: hidden;
  overflow-y: auto;
}

@media print, screen and (max-width: 767px) {
  .main {
    top: 0;
    left: 0;
  }
}

@page {
  size: A4;
  margin: 12.7mm 9.7mm;
}

@media print {
  .main {
    overflow: visible;
  }
}

.has-background-blue-light {
  background-color: #f5f8fa;
}

.bp3-slider-label {
  white-space: nowrap;
}

.small-date-picker-input .bp3-input {
  width: 100px;
}

.bp3-round .bp3-input  {
  padding-left: 38px !important;
}

.sidemenu {
  border-right: 1px solid #e9eef2;
  min-width: 200px;
}

.bp3-card.bp3-intent-primary {
  box-shadow: 0 0 0 1px rgba(19, 124, 189, 0.15), 0 1px 1px rgba(19, 124, 189, 0.2), 0 2px 6px rgba(19, 124, 189, 0.2);
}

.bp3-card.bp3-intent-primary:hover {
  box-shadow: 0 0 0 1px rgba(19, 124, 189, 0.1), 0 2px 4px rgba(19, 124, 189, 0.2), 0 8px 24px rgba(19, 124, 189, 0.2);
}

.bp3-card.has-round-borders {
  border-collapse: separate;
  border-radius: 15px;
  -moz-border-radius: 15px;
}

/* Make bp3-input-ghost behave more like bp3-input */

.bp3-input-ghost {
  font-size: 14px;
  font-weight: 400;
  .bp3-input-ghost::-webkit-input-placeholder {
    opacity: 1;
    color: rgba(92, 112, 128, 0.5); }
  .bp3-input-ghost::-moz-placeholder {
    opacity: 1;
    color: rgba(92, 112, 128, 0.5); }
  .bp3-input-ghost:-ms-input-placeholder {
    opacity: 1;
    color: rgba(92, 112, 128, 0.5); }
  .bp3-input-ghost::placeholder {
    opacity: 1;
    color: rgba(92, 112, 128, 0.5); }
}

.day-name {
  vertical-align: middle;
  text-align: center;
  line-height: 1;
}

.day-number {
  vertical-align: middle;
  text-align: center;
  line-height: 1;
  display: table-cell;
  cursor: pointer;
}

.week-number {
  vertical-align: middle;
  text-align: center;
  line-height: 1;
  font-weight: 600;
}

.day-number.outside {
  color: rgba(92, 112, 128, 0.5);
}

.day-number.hidden {
  color: transparent;
  background-color: transparent;
}

dl.inline {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  width: 300px;      /* set the container width*/
  overflow: visible;
}

dl.inline dt {
  flex: 0 0 50%;
  text-overflow: ellipsis;
  overflow: hidden;
}

dl.inline dd {
  flex: 0 0 50%;
  margin-left: auto;
  text-align: left;
  text-overflow: ellipsis;
  overflow: hidden;
}

.nowrap {
  white-space: nowrap;
}

.overflow-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/**
 * Settings
 */

.edit-title:hover .edit-title-button {
  opacity: 1;
}

.edit-title-button {
  position: absolute;
  opacity: 0;
}

.table.has-round-borders {
  border-collapse: separate;
  border-top-left-radius: 15px;
  -moz-border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  -moz-border-top-right-radius: 15px;
  /* blueprint card elevation 1 */
  box-shadow: 0 0 0 1px rgba(16,22,26,.1), 0 0 0 rgba(16,22,26,0), 0 1px 1px rgba(16,22,26,.2);
}

.color-palette {
  cursor: pointer;
  border: 1px solid rgba(16,22,26,.15);
  border-radius: 4px;
}

.color-swatch {
  display: block;
  position: relative;
  border: 1px solid rgba(16,22,26,.15);
  border-top-width: 0;
  border-bottom-width: 0;
  height: 30px;

  &:first-child {
    border-top-width: 1px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
  }

  &:last-child {
    border-bottom-width: 1px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
  }
}

/**
 * Scatter Plot
 */

.axis path,
.axis line {
  fill: none;
  stroke: #B3B3B3;
  shape-rendering: crispEdges;
}
.axis text {
  font-size: 10px;
  fill: #6B6B6B;
}

.category-legend text {
  font-size: 10px;
  fill: #6B6B6B;
}

.legend-circle {
  stroke-width:1;
  stroke: #999;
  stroke-dasharray: 2 2;
  fill:none;
}

.legend-line {
  stroke-width: 1;
  stroke: #D1D1D1;
  shape-rendering: crispEdges;
}

.legend-text {
  fill: #949494;
  text-anchor: start;
  font-size: 9px;
}

.legend-title {
  fill: #1A1A1A;
  color: #1A1A1A;
  text-anchor: middle;
  font-size: 10px;
}

.guide {
  pointer-events: none;
  font-size: 14px;
  font-weight: 600;
}

/**
 * Vega tooltip
 */

.vg-tooltip {
  visibility: hidden;
  padding: 6px;
  border-radius: 3px;
  position: fixed;
  z-index: 2000;
  font-family: sans-serif;
  font-size: 11px;

  /* The default look of the tooltip is the same as .light-theme
  but it can be overwritten by .dark-theme */
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9d9d9;
  color: black;
}
.vg-tooltip td.key, .vg-tooltip td.value {
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-tooltip td.key {
  color: #808080;
  max-width: 150px;
  text-align: right;
  padding-right: 1px;
}
.vg-tooltip td.value {
  max-width: 200px;
  text-align: left;
}

/* Dark and light color themes */
.vg-tooltip.dark-theme {
  background-color: rgba(64, 64, 64, 0.9);
  border: none;
  color: white;
}
.vg-tooltip.dark-theme td.key {
  color: #bfbfbf;
}
.vg-tooltip.light-theme {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9d9d9;
  color: black;
}
.vg-tooltip.light-theme td.key {
  color: #808080;
}


/* Basic style for email reports visualization */
table.intercom-container td {
  background-color: #00afc4;
  padding: 12px 35px;
  border-radius: 3px;
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
}

.content-td .intercom-h2b-button {
  font-size: 14px;
  color: #FFF;
  font-weight: bold;
  display: inline-block;
  text-decoration: none;
  background-color: #00afc4;
  border: none !important;
  padding: 13px 35px;
}

a.intercom-h2b-button {
  background-color: #00afc4;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.2);
  color:#fff;
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  min-height: 20px;
  text-decoration: none;
}

.content-td .intercom-h2b-button:hover {
  background-color:#00cde5;
}

.message_footer_table .avatar {
  -ms-interpolation-mode: bicubic;
  -webkit-background-clip: padding-box;
  -webkit-border-radius: 20px;
  background-clip: padding-box;
  border-radius: 20px;
  display: inline-block;
  height: 40px;
  max-width: 100%;
  outline: none;
  text-decoration: none;
  width: 40px;
}

div.locarise-report-header {
  background-color: white;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dbdbdb;
}

div.user-info-entry {
  padding-top: 10px;
}

label.bp3-control.bp3-switch.bp3-inline.target-inline-switch {
  padding-left: 5px;
  margin-bottom: 0;
}

.indicate-rank-number {
  font-size: 30px !important;
  height: 40px;
  font-weight: bold;
  padding-left: 11px;
  width: 40px;
  color: white;
  border-radius: 20px;
  background-color: #137cbd;
}

/* Non-ideal states */
.non-ideal-margin-top-small {
  margin-top: 50px;
}

.non-ideal-margin-top-big {
  margin-top: 100px;
}

.non-ideal-margin-top-bigger {
  margin-top: 200px;
}

.bottom-0 {
  position: absolute;
  bottom: 0;
}

.height-340 {
  height: 340px;
}

/* Business hours calendar */
.business-hours-calendar {
  width: 100%;
}

.business-hours-calendar .month-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 40px;
}

.business-hours-calendar .current-month {
  color: #4a4a4a;
  font-size: 20px;
  font-weight: 400;
}

.business-hours-calendar th {
  text-align: center;
}

.business-hours-calendar .weekday {
  color: #106ba3;
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 4px;
}

.business-hours-calendar td {
  background: white;
  border: 2px solid #f6f6f6;
  width: 14.2857143%;
}

.business-hours-calendar td .bp3-popover-wrapper {
  display: block;
  padding: 10px;
}

.business-hours-calendar td .bp3-popover-target {
  display: block;
  cursor: pointer;
}

.business-hours-calendar .outside {
  color: #ccc;
}

.business-hours-calendar .selected {
  outline: 2px solid #8A9BA8;
}

/* Grid SVG additions */
@keyframes grid-active-node-animation {
  0% {stroke: white};
  33% {stroke: #137cbd};
  66% {stroke: #137cbd};
  100% {stroke: white};
}

.grid-selected-node {
  stroke-width: 0.5;
  animation: grid-active-node-animation 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-cobalt{
  0% {stroke: white};
  33% {stroke: #104CB3};
  66% {stroke: #104CB3};
  100% {stroke: white};
}

.grid-selected-node-cobalt {
  stroke: #104CB3;
  stroke-width: 0.5;
  animation: grid-active-node-animation-cobalt 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-forest {
  0% {stroke: white};
  33% {stroke: #108D1B};
  66% {stroke: #108D1B};
  100% {stroke: white};
}

.grid-selected-node-forest {
  stroke: #108D1B;
  stroke-width: 0.5;
  animation: grid-active-node-animation-forest 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-gold {
  0% {stroke: white};
  33% {stroke: #C08500};
  66% {stroke: #C08500};
  100% {stroke: white};
}

.grid-selected-node-gold {
  stroke: #C08500;
  stroke-width: 0.5;
  animation: grid-active-node-animation-gold 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-vermilion {
  0% {stroke: white};
  33% {stroke: #B82000};
  66% {stroke: #B82000};
  100% {stroke: white};
}

.grid-selected-node-vermilion {
  stroke: #B82000;
  stroke-width: 0.5;
  animation: grid-active-node-animation-vermilion 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-violet {
  0% {stroke: white};
  33% {stroke: #762076};
  66% {stroke: #762076};
  100% {stroke: white};
}

.grid-selected-node-violet {
  stroke: #762076;
  stroke-width: 0.5;
  animation: grid-active-node-animation-violet 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-turquoise {
  0% {stroke: white};
  33% {stroke: #009A8B};
  66% {stroke: #009A8B};
  100% {stroke: white};
}

.grid-selected-node-turquoise {
  stroke: #009A8B;
  stroke-width: 0.5;
  animation: grid-active-node-animation-turquoise 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-rose {
  0% {stroke: white};
  33% {stroke: #C21356};
  66% {stroke: #C21356};
  100% {stroke: white};
}

.grid-selected-node-rose {
  stroke: #C21356;
  stroke-width: 0.5;
  animation: grid-active-node-animation-rose 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-lime {
  0% {stroke: white};
  33% {stroke: #82A617};
  66% {stroke: #82A617};
  100% {stroke: white};
}

.grid-selected-node-lime {
  stroke: #82A617;
  stroke-width: 0.5;
  animation: grid-active-node-animation-lime 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-sepia {
  0% {stroke: white};
  33% {stroke: #7D4914};
  66% {stroke: #7D4914};
  100% {stroke: white};
}

.grid-selected-node-sepia {
  stroke: #7D4914;
  stroke-width: 0.5;
  animation: grid-active-node-animation-sepia 1.2s infinite ease-in-out;
}

@keyframes grid-active-node-animation-indigo {
  0% {stroke: white};
  33% {stroke: #583EC0};
  66% {stroke: #583EC0};
  100% {stroke: white};
}

.grid-selected-node-indigo {
  stroke: #583EC0;
  stroke-width: 0.5;
  animation: grid-active-node-animation-indigo 1.2s infinite ease-in-out;
}

.rv-hint {
  z-index: 1000;
}

.wide-column {
  width: 600px;
}

@media screen and (max-width: 768px) {
  .wide-column {
    width: 400px;
  }
}

@media screen and (min-width: 1280px) {
  .wide-column {
    width: 700px;
  }
}

@media screen and (min-width: 1472px) {
  .wide-column {
    width: 1000px;
  }
}

.bp3-select-popover .bp3-menu:not(:first-child) {
  padding-top: 5px;
}

.bp3-select-popover .bp3-menu {
  max-width: 400px;
  max-height: 300px;
  overflow: auto;
  padding: 0;
}

.bp3-menu {
  margin: 0;
  border-radius: 3px;
  background: #fff;
  min-width: 180px;
  padding: 5px;
  list-style: none;
  text-align: left;
  color: #182026;
}

.map-panel {
  position: absolute;
  z-index: 1;
  background-color: white;
  transition: 0.5s;
  -webkit-box-shadow: 0 2px 4px rgba(10, 10, 10, 0.1);
  box-shadow: 0 2px 4px rgba(10, 10, 10, 0.1);
}

/* WIP: Code from blueprint drawer component */
.map-panel.map-panel-enter {
  -webkit-transform:translateX(-100%);
  transform:translateX(-100%);
}

.map-panel.map-panel-enter-active {
  -webkit-transform:translateX(0);
  transform:translateX(0);
  -webkit-transition-property:-webkit-transform;
  transition-property:-webkit-transform;
  transition-property:transform;
  transition-property:transform, -webkit-transform;
  -webkit-transition-duration:200ms;
  transition-duration:200ms;
  -webkit-transition-timing-function:cubic-bezier(0.4, 1, 0.75, 0.9);
  transition-timing-function:cubic-bezier(0.4, 1, 0.75, 0.9);
  -webkit-transition-delay:0;
  transition-delay:0;
}

.map-panel.map-panel-exit {
  -webkit-transform:translateX(0);
  transform:translateX(0);
}

.map-panel.map-panel-exit-active{
  -webkit-transform:translateX(-100%);
  transform:translateX(-100%);
  -webkit-transition-property:-webkit-transform;
  transition-property:-webkit-transform;
  transition-property:transform;
  transition-property:transform, -webkit-transform;
  -webkit-transition-duration:100ms;
  transition-duration:100ms;
  -webkit-transition-timing-function:cubic-bezier(0.4, 1, 0.75, 0.9);
  transition-timing-function:cubic-bezier(0.4, 1, 0.75, 0.9);
  -webkit-transition-delay:0;
  transition-delay:0;
}

.mapboxgl-ctrl-logo {
  display: none !important;
}

.fade-in {
  animation: fadeInAnimation 4s ease-in forwards;
}

@keyframes fadeInAnimation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.vertical {
  -webkit-writing-mode: vertical-rl;
  -moz-writing-mode: vertical-rl;
  -ms-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

label.navbar-label {
  color: #5c7080;
  margin-bottom: 0;
}

@media print, screen and (max-width: 728px){
  label.navbar-label {
    color: #5c7080;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
}

label.navbar-label .bp3-input {
  margin-top: 0;
}

label.navbar-label .bp3-button-group {
  margin-top: 0;
}

label.navbar-label .bp3-popover-wrapper {
  margin-top: 0;
}

.vega-embed {
  width: 100%;
  height: 100%;
}

.has-tabs-justified .bp3-tab-list {
  justify-content: space-between;
}
