/* standalone specific styles */
body.ka-dashboard {
  background: #f1f1f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  overflow-y: scroll;
  padding: 12px;
}
.ka-dashboard a {
  color: #3858e9;
}
.ka-dashboard input,
.ka-dashboard select {
  font-size: 14px;
  font-family: inherit;
  font-weight: inherit;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #8c8f94;
  background-color: #fff;
  color: #2c3338;
  box-shadow: none;
  line-height: 2;
}
.ka-dashboard select {
  padding: 0 24px 0 8px;
  -webkit-appearance: none;
  background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
  background-size: 16px 16px;
}
.ka-dashboard input {
  padding: 0 8px;
}
.ka-dashboard .button,
.ka-dashboard .button-secondary {
  color: #2271b1;
  border-color: #2271b1;
  background: #f6f7f7;
  vertical-align: top;
}
.ka-dashboard .button,
.ka-dashboard .button-primary,
.ka-dashboard .button-secondary {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  -webkit-appearance: none;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
}

h1.ka-logo,
.ka-logo {
  line-height: 32px;
}
.ka-logo::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' data-name='Layer 1'%3E%3Ccircle shape-rendering='geometricPrecision' cx='32' cy='32' r='32' style='display:inline;fill:%23b60205;fill-opacity:1;stroke-width:1.01241'/%3E%3Cpath d='M48.42 20.641a.6.6 0 0 0-.66.15L31.984 37.736l-7.36-7.36a.6.6 0 0 0-.848 0l-8.4 8.4a.6.6 0 0 0-.176.424v3.6a.6.6 0 0 0 .6.6h32.4a.6.6 0 0 0 .6-.6V21.2a.6.6 0 0 0-.38-.559z' style='fill:%23fff;fill-opacity:1;stroke-width:.6'/%3E%3Cpath d='M48.42 20.641a.6.6 0 0 0-.66.15L31.984 37.736l5.664 5.664H48.2a.6.6 0 0 0 .6-.6V21.2a.6.6 0 0 0-.38-.559z' style='fill:%23fff;fill-opacity:1;stroke-width:.6'/%3E%3C/svg%3E%0A");
  background-size: contain;
  margin-right: 18px;
  float: left;
  visibility: visible;
}
.ka-admin-wrap {
  display: flex; flex-flow: row wrap; gap: 2em;
}
.ka-admin-main {
  max-width: 920px;
  font-size: 14px;
}
.ka-admin-main p { font-size: 14px; }
.ka-admin-main h3 { font-size: 16px; }
.ka-admin-sidebar > div {
  margin-top: 4em;
}
@media(min-width: 1600px) {
  .ka-admin-sidebar { max-width: 480px; padding-left: 2em; border-left: 1px solid #ddd; }
  .ka-admin-sidebar > div { border-bottom: 1px solid #ddd; margin-top: 2em; padding-bottom: 1em; }
}

/* dashboard & admin nav */
.ka-dashboard-nav {
  display: flex;
  gap: 12px;
  flex-direction: column-reverse;
  align-items: flex-start;
}
.ka-dashboard-nav--left {
  display: flex;
  gap: 12px;
  flex-flow: row wrap;
}
@media (min-width: 840px) {
  .ka-dashboard-nav {
    flex-direction: row;
  }
  .ka-admin-nav {
    margin-left: auto;
  }
}
.ka-admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ka-dashboard-nav li {
  line-height: 34px;
  display: inline-block;
  margin: 0 0 0 6px;
}
.ka-admin-nav a.current {
  color: black;
}

.ka-settings--label {
  display: block;
  font-weight: bold;
  margin: 0 0 4px 0;
  padding: 0;
}
.ka-setings--cb-label {
  margin-right: 12px;
}
.ka-admin-container .description {
  font-size: 14px;
}


/** Chart */
.ka-chart {
  overflow: visible;
  min-height: 200px;
}
.ka-chart--tooltip {
  position: absolute;
  z-index: 9991; /* above wp admin menu */
}
.ka-chart--tooltip-box {
  background: rgba(46, 54, 63, 0.96);
  box-shadow: 2px 2px 12px 0 rgba(0,0,0,0.5);
  border-radius: 4px;
  color: #EEE;
}
.ka-chart--tooltip-heading {
  font-weight: 600;
  padding: 12px;
  line-height: 1;
}
.ka-chart--tooltip-content {
  padding: 6px 12px;
  width: 50%;
  display: block;
  flex: 1;
}
.ka-chart--tooltip-content {
  border-top: 3px solid transparent;
}
.ka-chart--tooltip-amount {
  color: #FFF;
  font-weight: bold;
}
.ka-chart--tooltip-arrow {
  width: 0;
  height: 0;
  margin-left: auto;
  margin-right: auto;
  /* css trick to create a downward pointing triangle */
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(46, 54, 63, 0.96);
}
.ka--pageviews {
  border-top-color: #72aee6;
  fill: #72aee6;
}
.ka--visitors {
  border-top-color: #2271b1;
  fill: #2271b1;
}
.weekend .ka--visitors {
  fill: #195585;
}
.ka-chart-group-by { font-size: 12px; color: #757575; text-align: right; margin-top: -1em;  }
.ka-chart-group-by a { color: #757575; }

/** Dashboard */
.dashboard_page_koko-analytics {
  overflow-x: hidden
}
.ka-dashboard-components {
  display: grid;
  grid-gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}

/** Page filter */
.ka-page-filter {
  border: 1px solid #DDD;
  background: hsl(205.2, 100%, 93.9%);
  border-radius: 6px;
  line-height: 20px;
  display: inline-block;
  padding: 6px;
}
.ka-page-filter--close {
  text-decoration: none;
  font-weight: normal;
  margin-left: 2px;
  color: #666;
  padding: 4px;
  cursor: pointer;
  opacity: 0.5;
}
.ka-page-filter--close:hover,
.ka-page-filter--close:focus {
  opacity: 1;
}
.page-filter-active tr  {
  opacity: 0.5;
}
.page-filter-active tr.page-filter-active  {
  opacity: 1;
}

/** Tabular components */
.ka-table {
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
}
.ka-table td,
.ka-table th {
  border-top: 1px solid #efefef;
  text-align: right;
  padding: 6px 8px;
  width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ka-table th {
  background: #2e363f;
  border-color: #2e363f;
  color: white;
}
@media (min-width: 1200px) {
  .ka-table td,
  .ka-table th {
    width: 120px;
  }
}
/* fix borders for table header */
.ka-table th:first-of-type {
  border-radius: 4px 0 0 0;
}
.ka-table th:last-of-type {
  border-radius: 0 4px 0 0;
}
/* rank column */
.ka-table th:first-child,
.ka-table td:first-child {
  width: 18px;
}
/* page title / referrer url / event param column */
.ka-table td[colspan],
.ka-table td:nth-child(2),
.ka-table th:nth-child(2) {
  text-align: left;
  width: auto;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}


/* on small screens, replace pageview & visitor column headers with an icon */
@media (max-width: 800px) {
  .ka-table th.ka-th-visitors,
  .ka-table th.ka-th-pageviews {
    font-size: 0;
    width: 45px;
  }

  .ka-th-visitors:before,
  .ka-th-pageviews:before{
    content: "";
    display: inline-block;
    width: 18px;
    height: 16px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .ka-th-visitors:before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjQgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTIyNCAyNTZBMTI4IDEyOCAwIDEgMCAyMjQgMGExMjggMT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EuMi0yMC4zLTMuM2MtNS41LTEuOC0xMS45IDEuNi0xMS43IDcuNGMuMyA2LjkgMS4zIDEzLjggMy4yIDIwLjdjMTMuNyA1MS4yIDY2LjQgODEuNiAxMTcuNiA2Ny45czgxLjYtNjYuNCA2Ny45LTExNy42Yy0xMS4xLTQxLjUtNDcuOC02OS40LTg4LjYtNzEuMWMtNS44LS4yLTkuMiA2LjEtNy40IDExLjdjMi4xIDYuNCAzLjMgMTMuMiAzLjMgMjAuM3oiLz48L3N2Zz4=');
  }
}

/* Pagination component */
.ka-pagination {
  display: flex;
  border-top: 1px solid #eee;
  padding: 6px 12px;
}
.ka-pagination--next {
  margin-left: auto;
}


/** Totals Component */
.ka-totals {
  background: #2e363f;
  color: white;
  padding: 24px;
  margin: 12px 0;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.ka-totals tbody {
  display: flex;
  flex-flow: row wrap;
  gap: 48px;
}
.ka-totals--label {
  color: #EEE;
  margin-bottom: 6px;
  font-size: 14px;
}
.ka-totals--amount {
  display: block;
  line-height: 48px;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 6px;
  min-width: 160px;
}
.ka-totals--change {
  font-size: 16px;
  margin-left: 6px;
  font-weight: normal;
  vertical-align: top;
  letter-spacing: normal;
  color: #aaa;
}
.ka-up .ka-totals--change {
  color: limegreen;
}
.ka-down .ka-totals--change {
  color: #fb7272;
}
.ka-totals--subtext {
  color: #DDD;
}


/** Datepicker component */
.ka-datepicker--label {
  cursor: pointer;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: inline-block;
  background: white;
  line-height: 20px;
}
.ka-datepicker--label:hover {
  background: #eee;
}
.ka-datepicker--label:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='0' fill='none' width='20' height='20'/%3E%3Cg%3E%3Cpath d='M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z'/%3E%3C/g%3E%3C/svg%3E");
  content: "";
  display: inline-block;
  line-height: 1;
  speak: never;
  width: 20px;
  height: 20px;
  vertical-align: top;
  margin-right: 4px;
}
.ka-datepicker--dropdown {
  background: white;
  width: auto;
  z-index: 20;
  border-radius: 6px;
  position: absolute;
  margin-top: 6px;
  box-shadow: 2px 2px 12px 0 rgba(0, 0, 0, 0.5);
}
.ka-datepicker--quicknav {
  background: #2e363f;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  font-size: 1.1em;
}
a.ka-datepicker--quicknav-next.disabled,
a.ka-datepicker--quicknav-prev.disabled {
  cursor: not-allowed;
}
a.ka-datepicker--quicknav-prev,
a.ka-datepicker--quicknav-next {
  color: white;
  cursor: pointer;
  height: 20px;
  line-height: 1;
  vertical-align: middle;
  font-size: 0;
}
.ka-datepicker--quicknav-prev:hover,
.ka-datepicker--quicknav-prev:focus,
.ka-datepicker--quicknav-next:hover,
.ka-datepicker--quicknav-next:focus {
  color: white;
}
.ka-datepicker--quicknav-prev:before,
.ka-datepicker--quicknav-next:after {
  font-size: 12px;
  vertical-align: top;
  display: inline-block;
  line-height: 10px;
}
.ka-datepicker--quicknav-prev:before {
  content: "◀";
  margin-right: 12px;
  padding: 4px 12px 4px 0;
}
.ka-datepicker--quicknav-next:after {
  content: "▶";
  margin-left: 12px;
  padding: 4px 0 4px 12px;
}
.ka-datepicker--dropdown-content {
  padding: 12px;
}
.ka-datepicker--dropdown-content label {
  font-weight: bold;
  font-size: 1em;
  display: block;
}

/* General styles / Utility classes */
.ka-box {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  grid-column: span 6;
}
@media (min-width: 1200px) {
  .ka-box{
    grid-column: span 3;
  }
}

.ka-ul li {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.ka-ul span {
  min-width: 24px;
  display: inline-block;
  text-align: right;
}
.ka-margin-s {
  margin: 1em 0;
}
.ka-margin-m {
  margin: 2em 0;
}
.ka-margin-l {
  margin: 4em 0;
}
.ka-right {
  float: right;
}

/* export button */
.ka-export {
  cursor: pointer;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: inline-block;
  background: white;
  line-height: 20px;
  color: inherit;
}
.ka-export:hover {
  background: #eee;
}

.ka-export:before {
  content: "";
  display: inline-block;
  line-height: 1;
  speak: never;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-download' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z'/%3E%3C/svg%3E");
}

/* upgrade to pro */
.ka-pro-cta {
  border: 1px solid #ddd;
  background: #fcf8e3;
  padding: 2em;
}
.ka-pro-cta h2:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' data-name='Layer 1'%3E%3Ccircle shape-rendering='geometricPrecision' cx='32' cy='32' r='32' style='display:inline;fill:%23b60205;fill-opacity:1;stroke-width:1.01241'/%3E%3Cpath d='M48.42 20.641a.6.6 0 0 0-.66.15L31.984 37.736l-7.36-7.36a.6.6 0 0 0-.848 0l-8.4 8.4a.6.6 0 0 0-.176.424v3.6a.6.6 0 0 0 .6.6h32.4a.6.6 0 0 0 .6-.6V21.2a.6.6 0 0 0-.38-.559z' style='fill:%23fff;fill-opacity:1;stroke-width:.6'/%3E%3Cpath d='M48.42 20.641a.6.6 0 0 0-.66.15L31.984 37.736l5.664 5.664H48.2a.6.6 0 0 0 .6-.6V21.2a.6.6 0 0 0-.38-.559z' style='fill:%23fff;fill-opacity:1;stroke-width:.6'/%3E%3C/svg%3E%0A")  no-repeat;
  background-position: middle center;
  background-size: 16px 16px;
  margin-right: 12px;
  vertical-align: middle;
}
.ka-pro-cta > *:first-child { margin-top: 0; }
.ka-pro-cta > *:last-child { margin-bottom: 0; }


@view-transition {
 navigation: auto;
}
