/**
 * Default styles for the dygraphs charting library.
 */

.dygraph-legend {
  position: absolute;
  font-size: 14px;
  z-index: 10;
  width: 250px;  /* labelsDivWidth */
  /*
  dygraphs determines these based on the presence of chart labels.
  It might make more sense to create a wrapper div around the chart proper.
  top: 0px;
  right: 2px;
  */
  background: white;
  line-height: normal;
  text-align: left;
  overflow: hidden;
}

/* styles for a solid line in the legend */
.dygraph-legend-line {
  display: inline-block;
  position: relative;
  bottom: .5ex;
  padding-left: 1em;
  height: 1px;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  /* border-bottom-color is set based on the series color */
}

/* styles for a dashed line in the legend, e.g. when strokePattern is set */
.dygraph-legend-dash {
  display: inline-block;
  position: relative;
  bottom: .5ex;
  height: 1px;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  /* border-bottom-color is set based on the series color */
  /* margin-right is set based on the stroke pattern */
  /* padding-left is set based on the stroke pattern */
}

.dygraph-roller {
  position: absolute;
  z-index: 10;
}

/* This class is shared by all annotations, including those with icons */
.dygraph-annotation {
  position: absolute;
  z-index: 10;
  overflow: hidden;
}

/* This class only applies to annotations without icons */
/* Old class name: .dygraphDefaultAnnotation */
.dygraph-default-annotation {
  border: 1px solid black;
  background-color: white;
  text-align: center;
}

.dygraph-axis-label {
  /* position: absolute; */
  /* font-size: 14px; */
  z-index: 10;
  line-height: normal;
  overflow: hidden;
  color: black;  /* replaces old axisLabelColor option */
}

.dygraph-axis-label-x {
}

.dygraph-axis-label-y {
}

.dygraph-axis-label-y2 {
}

.dygraph-title {
  font-weight: bold;
  z-index: 10;
  text-align: center;
  /* font-size: based on titleHeight option */
}

.dygraph-xlabel {
  text-align: center;
  /* font-size: based on xLabelHeight option */
}

/* For y-axis label */
.dygraph-label-rotate-left {
  text-align: center;
  /* See http://caniuse.com/#feat=transforms2d */
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
}

/* For y2-axis label */
.dygraph-label-rotate-right {
  text-align: center;
  /* See http://caniuse.com/#feat=transforms2d */
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
}

.box-wrapper.add-data {
  padding-top: 0;
  padding-bottom: 0;
}

.add-data input,
.add-data button,
.add-data--progress-bar {
  display: block;
  margin-top: 15px;
  margin-bottom: 15px;
}

.add-data input[type="text"],
.add-data input[type="number"],
.add-data select {
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--grey);
  height: 42px;
  padding-left: 10px;
  padding-right: 10px;
}

.add-data button {
  border: 0;
  width: 100%;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 5px;
  height: 42px;
}

.add-data--cancel {
  display: block;
  margin-top: 15px;
  color: var(--blue);
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  cursor: pointer;
}

.add-data--progress-bar {
  box-sizing: content-box;
  height: 42px;
  border-radius: 5px;
  background: var(--grey);
}

.add-data--progress-bar.add-data--progress-bar--complete > span {
  background: var(--grey);
  color: var(--blue);
}

.add-data--progress-bar > span {
  display: inline-block;
  height: 42px;
  line-height: 42px;
  vertical-align: middle;
  color: var(--white);
  font-size: 16px;
  border-radius: 5px;
  background-color: var(--blue);
  position: relative;
  text-align: center;
}

.add-data--trim-graph,
.add-data--confirm-graph {
  top: 15px;
  bottom: 15px;
  width: 100%;
  position: absolute;
}

.add-data--trim-graph--wrapper,
.add-data--confirm-graph--wrapper {
  position: relative;
  height: 50vw;
}

.add-data--complete {
  display: inline-block;
  width: 100%;
  height: 42px;
  line-height: 42px;
  vertical-align: middle;
  color: var(--white);
  font-size: 16px;
  border-radius: 5px;
  background-color: var(--green);
  position: relative;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.box-wrapper.add-map {
  padding-top: 0;
  padding-bottom: 0;
}

.add-map input,
.add-map button {
  display: block;
  margin-top: 15px;
  margin-bottom: 15px;
}

.add-map input[type="text"],
.add-map input[type="number"] {
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--grey);
  height: 42px;
  padding-left: 10px;
  padding-right: 10px;
}

.add-map button {
  border: 0;
  width: 100%;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 5px;
  height: 42px;
}

.add-map--error {
  display: block;
  text-align: center;
  font-weight: bold;
  color: var(--red);
}

.add-map--coords {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.add-map--coords input {
  margin-top: 0;
  margin-bottom: 0;
}

.add-map--map-preview {
  width: 100%;
  margin-top: 15px;
}

/*!
 * Bootstrap Reboot v5.0.1 (https://getbootstrap.com/)
 * Copyright 2011-2021 The Bootstrap Authors
 * Copyright 2011-2021 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

hr {
  margin: 1rem 0;
  color: inherit;
  background-color: currentColor;
  border: 0;
  opacity: 0.25;
}

hr:not([size]) {
  height: 1px;
}

h6, h5, h4, h3, h2, h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }
}

h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  h2 {
    font-size: 2rem;
  }
}

h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  h3 {
    font-size: 1.75rem;
  }
}

h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  h4 {
    font-size: 1.5rem;
  }
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

abbr[title],
abbr[data-bs-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  cursor: help;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

ol,
ul {
  padding-left: 2rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

blockquote {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 0.875em;
}

mark {
  padding: 0.2em;
  background-color: #fcf8e3;
}

sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

a {
  color: #0d6efd;
  text-decoration: underline;
}
a:hover {
  color: #0a58ca;
}

a:not([href]):not([class]), a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

pre,
code,
kbd,
samp {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
  direction: ltr /* rtl:ignore */;
  unicode-bidi: bidi-override;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: 0.875em;
}
pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
}

code {
  font-size: 0.875em;
  color: #d63384;
  word-wrap: break-word;
}
a > code {
  color: inherit;
}

kbd {
  padding: 0.2rem 0.4rem;
  font-size: 0.875em;
  color: #fff;
  background-color: #212529;
  border-radius: 0.2rem;
}
kbd kbd {
  padding: 0;
  font-size: 1em;
  font-weight: 700;
}

figure {
  margin: 0 0 1rem;
}

img,
svg {
  vertical-align: middle;
}

table {
  caption-side: bottom;
  border-collapse: collapse;
}

caption {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #6c757d;
  text-align: left;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

[role=button] {
  cursor: pointer;
}

select {
  word-wrap: normal;
}
select:disabled {
  opacity: 1;
}

[list]::-webkit-calendar-picker-indicator {
  display: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: calc(1.275rem + 0.3vw);
  line-height: inherit;
}
@media (min-width: 1200px) {
  legend {
    font-size: 1.5rem;
  }
}
legend + * {
  clear: left;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

[type=search] {
  outline-offset: -2px;
  -webkit-appearance: textfield;
}

/* rtl:raw:
[type="tel"],
[type="url"],
[type="email"],
[type="number"] {
  direction: ltr;
}
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::file-selector-button {
  font: inherit;
}

::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}

output {
  display: inline-block;
}

iframe {
  border: 0;
}

summary {
  display: list-item;
  cursor: pointer;
}

progress {
  vertical-align: baseline;
}

[hidden] {
  display: none !important;
}
:root {
  --nav-height: 65px;
  --blue: #1e77c5;
  --grey: #e1e4e7;
  --light-grey: #f1f4f7;
  --green: #1abe4b;
  --white: #ffffff;
  --red: #eb3636;
  --black: #404040;
}

body {
  overflow: hidden;
}

.app {
  height: calc(100vh - var(--nav-height));
  overflow: auto;
  padding: 15px;
}

.app > h1 {
  margin: -15px -15px 15px -15px;
  text-align: center;
  background: var(--grey);
  padding: 15px;
}

nav {
  background: var(--blue);
  height: var(--nav-height);
  display: flex;
  flex-direction: column;
}

nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
}

nav .menu a {
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  margin-left: 1em;
  margin-right: 1em;
}

nav .menu a:hover {
  color: var(--white);
  text-decoration: none;
}

nav .menu svg {
  width: 16px;
  height: 16px;
}

nav .menu span {
  display: block;
  text-align: center;
  margin-top: 0.25em;
}

nav small {
  display: inline-block;
  text-align: center;
  height: 20px;
  line-height: 20px;
  vertical-align: middle;
  width: 100%;
  font-size: 10px;
  color: var(--white);
  opacity: 0.5;
}

.box-wrapper {
  border: 1px solid var(--grey);
  border-radius: 10px;
  padding: 15px;
  position: relative;
}

.box-wrapper + .box-wrapper {
  margin-top: 15px;
}

.hidden {
  display: none !important;
}

.dygraph-annotation {
  line-height: 16px;
}

.update-available--wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.update-available--box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  max-width: 80%;
  background-color: var(--white);
  border-radius: 8px;
  text-align: center;
}

.update-available--box p {
  color: var(--red);
  font-weight: bold;
}

.update-available--box .update-available--action {
  border: 0;
  background-color: var(--green);
  color: var(--white);
  border-radius: 5px;
  height: 42px;
  line-height: 42px;
  vertical-align: middle;
  display: inline-block;
  padding-left: 25px;
  padding-right: 25px;
  cursor: pointer;
}

.dygraph-legend {
  left: auto !important;
  right: -16px !important;
  border: 1px solid var(--grey);
  padding: 1em;
  top: -16px !important;
}

.dygraph-legend > span {
  display: block;
}

.run-selection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 15px;
  row-gap: 15px;
}

@media (min-width: 600px) {
  .run-selection {
    grid-template-columns: repeat(6, 1fr);
  }
}

.run-selection input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.run-selection label {
  background-color: var(--light-grey);
  border: 1px solid var(--grey);
  border-radius: 20px;
  height: 40px;
  display: inline-block;
  text-align: center;
  line-height: 40px;
  vertical-align: middle;
}

.run-selection input:checked + label {
  background-color: var(--run-colour);
  color: var(--white);
}

.splash {
  display: block;
  font-family: "Roboto script=latin rev=5";
  font-weight: 900;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 48px;
  color: var(--blue);
  text-shadow: var(--black) 1px 1px 1px;
  text-transform: uppercase;
}

.gps--maps, .gps--events {
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--grey);
  height: 42px;
  padding-left: 10px;
  padding-right: 10px;
}

.gps--trace {
  width: 100%;
  height: 50vh;
}

.gps--maps {
  margin-top: 15px;
}

.gps--timeline--slider {
  width: 100%;
}

.gps--timeline--time {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 0.5em;
}

.gps--trace--control {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.speed--events {
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--grey);
  height: 42px;
  padding-left: 10px;
  padding-right: 10px;
}

.speed--graph-wrapper {
  position: relative;
  height: min(56.25vw, calc(100vh - 30px - var(--nav-height)));
}

.speed--graph-wrapper > div {
  top: 15px;
  bottom: 15px;
  width: calc(100% - 30px);
  position: absolute;
}

