/*
  GPS Replay GPSREPLAY Custom CSS
  */

html, body {
	width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  display: block;
  font: 16px/26px -apple-system,Roboto,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}

.ui-widget {
  font: 16px/26px -apple-system,Roboto,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}

#gpsreplay-header-container {
    background: #002bd9;
    color: white;
    position: relative;
    height: 30px;
    border-bottom: 4px solid black;
    font-size: 20px;
    line-height: 30px;
}

.gpsreplay-result-search {
    width: 97%;
    margin: 3px;
}

.gpsreplay-event-search {
    width: 97%;
    margin: 3px;
    font-size: 1em;
}

.input-group {
  margin-top: 5px;
}

.form-control {
  width: 90%;
}

#gpsreplay-course-select, #gpsreplay-name-select {
  min-width: 200px;
  max-width: 200px;
}

#gpsreplay-manager-event-select {
  width: 100%;
}

#gpsreplay-new-comments {
	margin-top:10px;
	margin-bottom: 10px;
	width: 100%;
	height: 50px;
}


/* Playback controls live in the right-hand panel now, not a top bar */
#gpsreplay-animation-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #3a3a3a;
}

.gpsreplay-ani-row {
    background: transparent;
    color: #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    line-height: normal;
}

.row-1, .row-2, .row-3, .row-4 {
  border: none;
  font-size: 14px;
  color: #eee;
}

#gpsreplay-name-display-mode label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

#gpsreplay-resize-info {
	position: absolute;
  vertical-align: middle;
  padding-right: 10px;
}

#gpsreplay-header-left {
	position: absolute;
  vertical-align: middle;
  left: 35px;
}

#gpsreplay-header-brand {
  margin-left: 6px;
}

#gpsreplay-event-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.gpsreplay-button {
  background: silver;
  color: white;
	float: right;
	width: 30px;
	text-align: center;
	border-right: 4px solid darkgray;
}

.gpsreplay-button-left,
.gpsreplay-button-right {
  background: #333;
  color: #eee;
  float: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
}

.gpsreplay-wide-button {
  background: #333;
  color: #eee;
  float: none;
  min-width: 40px;
  height: 30px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.gpsreplay-button:hover  {
  color: darkgray;
}

.gpsreplay-button-left:hover,
.gpsreplay-button-right:hover {
  background: #444;
  color: #eee;
}

#btn-edit-delete-event, #btn-add-event {
    margin:0 auto;
    display:block;
}

#gpsreplay-about {
   position: absolute;
   right: 0;
   padding-right: 20px;
}

#gpsreplay-about-dialog {
	 font-size: 0.75em;
   display: none;
}

#gpsreplay-about-dialog hr {
	height: 10px;
	border: 0;
	box-shadow: 0 10px 10px -10px #8c8b8b inset;
}

#gpsreplay-about-dialog table {
  width: 100%;
}

#gpsreplay-about-dialog thead tr {
  background: #002bd9;
  color: #fff
}

#gpsreplay-about-dialog thead th {
  text-align: left;
}

#gpsreplay-about-dialog tbody td:nth-child(odd) {
  background: #ddd;
}

#gpsreplay-about-dialog tbody td:nth-child(even) {
  background: #eee;
}

#gpsreplay-about-dialog tbody td:first-child {
  width: 15%;
}

#gpsreplay-about-dialog tbody td {
  text-align: left;
}

.splitstable {
	 font-size: 0.75em;
}

.splitstable th {
  font-weight: bold;
  background-color: white;
}

.splitsname-row {
  background-color: #C0C0C0;
}

.splitstime-row {
  background-color: #E0E0E0;
}


.splitsdistance-row {
  background-color: white;
}

.showcourse {
	float: right;
}

.allitemsrow {
  font-weight: bold;
}

.gpsreplay-hr {
	margin-top: 10px;
	margin-bottom: 10px;
}

#gpsreplay-clock {
   font-weight: bold;
   font-size: 22px;
   color: #eee;
   text-align: left;
   float: none;
   margin: 0;
}

#gpsreplay-tails-type {
	padding: 0;
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#spn-tail-length {
  width: 30px;
}

#gpsreplay-tails-spinner {
  float: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gpsreplay-spinner {
  width: 40px;
}

.gpsreplay-run-green {
  color: #4caf50;
}

.gpsreplay-run-red {
  color: #f44336;
}

.options {
  float: right;
  padding-right: 5px;
  margin-top: 5px;
  clear:both;
}

#gpsreplay-container {
	 height: 100%;
   width: 100%;
   position: relative;
   background: white;
   overflow: hidden;
   display: none;
}

#gpsreplay-info-panel {
   font-size: 0.75em;
   width: 280px;
   position: absolute;
   top: 0;
   left: 0;
   z-index: 100;
   height: 100%;
   background: #1f1f1f;
   color: #eee;
   box-sizing: border-box;
   overflow-x: hidden;
}

#gpsreplay-event-panel {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 8px;
}

#gpsreplay-track-panel {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#btn-back-to-events {
  margin: 10px;
  padding: 8px 12px;
  background: transparent;
  color: #eee;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  text-align: left;
  flex: 0 0 auto;
}

#btn-back-to-events:hover {
  background: #2c2c2c;
}

#gpsreplay-select-all-row {
  padding: 4px 14px 8px;
  border-bottom: 1px solid #3a3a3a;
  flex: 0 0 auto;
  font-size: 0.85em;
}

#gpsreplay-select-all-row label {
  cursor: pointer;
}

#gpsreplay-participant-list {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
}

.participant-row {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 6px;
  padding: 4px 2px;
  font-size: 1.1em;
}

.participant-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.participant-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-distance {
  flex: 0 0 auto;
  width: 52px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #aaa;
  font-size: 0.85em;
  white-space: nowrap;
}

/* Livelox-style docked settings panel on the right, instead of a modal dialog */
#gpsreplay-option-controls {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  z-index: 100;
  background: #1f1f1f;
  color: #eee;
  box-sizing: border-box;
  padding: 10px;
  overflow-y: auto;
  font-size: 1em;
}

#gpsreplay-option-controls label {
  line-height: 1.3;
}

#gpsreplay-option-controls .gpsreplay-spinner,
#gpsreplay-option-controls #spn-tail-length {
  width: 38px;
  height: 24px;
  margin: 0;
  padding: 2px 4px;
  line-height: normal;
  font-size: 12px;
  box-sizing: border-box;
  border: 1px solid #999;
  background: #fff;
  color: #000;
  vertical-align: middle;
  outline: none;
}

/* the browser's default focus outline draws outside the box and can look
   like it overflows a short input like these - use a contained box-shadow
   ring instead */
#gpsreplay-option-controls .gpsreplay-spinner:focus,
#gpsreplay-option-controls #spn-tail-length:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6 inset;
}

#gpsreplay-option-controls input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  vertical-align: middle;
  flex: 0 0 auto;
}

#gpsreplay-option-controls .ui-spinner {
  height: 26px;
  font-size: 12px;
  box-sizing: border-box;
  border: none;
  background: none;
  vertical-align: middle;
}

#gpsreplay-option-controls .ui-spinner-button {
  width: 16px;
  height: 12px;
}

#gpsreplay-option-controls .options {
  float: none;
  clear: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-right: 0;
}

#gpsreplay-event-list .ui-menu-item {
  list-style-image: none;
  text-align: left;
}

#gpsreplay-event-list .ui-menu-item a,
#gpsreplay-event-list .ui-menu-item-wrapper {
  text-decoration: none;
  color: #000;
  text-align: left;
}

#gpsreplay-event-list li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.06);
}

.gpsreplay-active-event {
   border: 2px solid #d97706;
}

#gpsreplay-hide-info-panel-control {
  position:absolute;
  left: 286px;
  top: 40px;
  z-index: 100;
  color: black;
  width: 20px;
  text-align: center;
  border: 1px solid #AAA;
  background: #E0E0E0;
}

#gpsreplay-hide-options-panel-control {
  position: absolute;
  right: 260px;
  top: 40px;
  z-index: 101;
  color: black;
  width: 20px;
  text-align: center;
  border: 1px solid #AAA;
  background: #E0E0E0;
  cursor: pointer;
}

#gpsreplay-map-canvas {
   position: absolute;
   z-index: 50;
}

.gpsreplay-progress-display {
   border: 1px solid darkgray;
   background: rgb(204 204 204);
   background: rgb(204 204 204 / 100%);
   padding : 2px;
   font:1.0em/1.0em Arial, sans-serif;
   text-align:center;
   height: auto;
   width: 200px;
   z-index: 90;
   position: absolute;
}

#gpsreplay-map-load-progress {
   top: 100px;
   left: 460px;
}

#gpsreplay-load-progress {
   top: 200px;
   left: 460px;
}

.gpsreplay-gps-text {
  line-height: 1.75em;
}

.gpsreplay-gps-text ul {
  list-style-position: inside;
  margin: 0 0 0 15px;
  padding: 0;
}

.align-right {
   text-align: right;
}

.align-left {
   text-align: left;
}

.align-center {
  text-align: center;
}

#gpsreplay-replay-start-control {
  float: right;
  margin-right:5px
}

#gpsreplay-control-select {
  width: 80px;
}

.pushright {
	float: right;
}

.singlerow {
  display: table;
  margin: auto;
  width: 99%;
  padding: 0.5em;
  text-align: center;
}

.singlerowitem {
  display: table-cell;
}

#gpsreplay-manage-edit .ui-button {
	margin-top: 10px;
  margin-bottom: 10px;
}

/* mass start/real time icon colour */
.active {
	color: green;
}

/* light green background */
.valid {
  background-color: #9fc;
  border-radius: 3px;
}

.coursemenutable tbody tr:nth-child(odd) {
  background-color: #eee;
}

.coursemenutable tr, .coursemenutable td, .coursemenutable th {
	padding-left: 5px;
	padding-right: 5px;
	text-align: center;
}

/* apply style to first td or th element in table
/ which is Name in this case
*/
table.resulttable td,
table.resulttable th {
	padding-left: 5px;
	padding-right: 5px;
	text-align: center;
}

table.resulttable td + td,
table.resulttable th + th {
	width: 80%;
	text-align: left;
}

table.resulttable td + td + td,
table.resulttable th + th + th {
	text-align: center;
}

table.resulttable tbody tr:nth-child(odd) {
  background: #eee;
}

#gpsreplay-result-list .ui-accordion,
#gpsreplay-result-list .ui-accordion-content {
padding: 0;
}


#gpsreplay-select-gps-file .ui-button {
	width: 300px;
	margin-bottom: 10px;
}

#gpsreplay-button-bar .ui-button-text-icon-primary,
#gpsreplay-button-bar .ui-button-text-icons,
#gpsreplay-button-bar .ui-button-text {
	font-size: 0.75em;
	padding: .2em .2em .2em 1em;

}

#gpsreplay-clock-slider {
  margin: 0;
  flex: 1 1 auto;
  width: auto;
  float: none;
}

#gpsreplay-clock-slider .ui-state-default {
	background: silver;
	border: 4px solid darkgray;
}

#gpsreplay-clock-slider .ui-state-focus {
	outline: none;
}

#gpsreplay-clock-slider .ui-state-hover {
	background: darkgray;
}

#gpsreplay-clock-slider .ui-slider-handle {
width: 15px;
height: 20px;
}

#gpsreplay-tails-spinner .ui-state-default {
	background: silver;
	color: darkgray;
}

#gpsreplay-tails-spinner .ui-state-active {
	color: silver;
}

#gpsreplay-tails-spinner .ui-spinner input {
  font: 12px Helvetica, "Helvetica Neue", Arial, sans-serif;
}

#gpsreplay-event-comments {
	margin-top: 10px;
	margin-bottom: 10px;
	width: 95%;
	height: 50px;
}

#gpsreplay-add-new-event .ui-button {
  margin-top: 10px;
  margin-bottom: 10px;
}

#gpsreplay-new-event-details input {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* spinner icons */
#gpsreplay-tails-spinner .ui-icon,
#gpsreplay-tails-spinner .ui-widget-content .ui-icon {
	background-image: url("../img/ui-icons_222222_256x240.png");
}

#gpsreplay-tails-spinner .ui-widget-header .ui-icon {
	background-image: url("../img/ui-icons_222222_256x240.png");
}

#gpsreplay-tails-spinner .ui-state-default .ui-icon {
	background-image: url("../img/ui-icons_888888_256x240.png");
}

#gpsreplay-tails-spinner .ui-state-hover .ui-icon,
#gpsreplay-tails-spinner .ui-state-focus .ui-icon {
	background-image: url("../img/ui-icons_454545_256x240.png");
}

#gpsreplay-tails-spinner .ui-state-active .ui-icon {
	background-image: url("../img/ui-icons_454545_256x240.png");
}

#gpsreplay-tails-spinner .ui-state-highlight .ui-icon {
	background-image: url("../img/ui-icons_2e83ff_256x240.png");
}

#gpsreplay-tails-spinner .ui-state-error .ui-icon,
.ui-state-error-text .ui-icon {
	background-image: url("../img/ui-icons_cd0a0a_256x240.png");
}

/* allow close button on dialog to be hidden
 * see http://api.jqueryui.com/dialog
 */
.no-close .ui-dialog-titlebar-close {
display: none;
}

/*
 * prevent selection of objects everywhere
 */
body {
  -ms-user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.selectable {
  -ms-user-select: all;
  -webkit-user-select: all;
  -khtml-user-select: all;
  -moz-user-select: all;
  -webkit-touch-callout: all;
  -webkit-user-drag: all;
  user-select: all;
}

.manage-input {
  margin-top: 3px;
  margin-right: 3px;
  width: 200px;
}

.manage-label {
  margin-left: 3px;
}

#gpsreplay-draw label {
  margin-left: 3px;
}

.no-top-margin {
  margin-top: 0;
  margin-bottom: 2px;
}

#gpsreplay-manage-create {
  padding-right: 5px;
}

#gpsreplay-manage-create > div::after {
  display: block;
  content: "";
  clear: both;
}

#gpsreplay-manage-create div, #gpsreplay-manage-map div, #gpsreplay-manage-edit div {
  margin-top: 5px;
}

.manage-file-input {
  margin-top: 4px;
  margin-bottom: 4px;
  width: 200px;
}

.manage-file-input-div {
  height: 41px;
}

.manage-file-label {
  margin-top: 9px;
  margin-bottom: 9px;
}

.manage-event-edit-div {
  height: 30px;
  }

.manage-event-edit-div label, .manage-event-edit-div input {
  display: inline-block;
}

.manage-event-edit-div label {
  width: 80px;
}

#manage-edit-options input {
  width: 220px;
}

#manage-edit-options .ui-accordion-content {
  padding: 1em 0.5em;
}

#gpsreplay-draw .ui-button {
  margin-left: 5px;
  margin-top: 5px;
}

textarea {
  width: 95%;
  height: 100px;
}

#gpsreplay-event-selected {
  width: 95%;
}

#gpsreplay-world-file-map {
  height: 180px;
}

.gpsreplay-first {
  color: darkblue;
  font-weight: bold;
}

.gpsreplay-second {
  color: red;
  font-weight: bold;
}

.gpsreplay-third {
  color: green;
  font-weight: bold;
}

.gpsreplay-lost-time {
  background-color: #fde;
}

.gpsreplay-results-table-container {
  height: 100%;
}

#gpsreplay-results-grid-wrapper {
  height: 200px;
}

.gpsreplay-event-stats-table {
  display: grid;
  grid-template-columns: 1fr 5fr;
  column-gap: 5px;
  row-gap: 5px;
  padding: 10px 0;
}

.gpsreplay-event-stats-table .header {
  font-weight: bold;
  background-color: #AAA;
  padding: 5px;
}

.gpsreplay-event-stats-table .item {
  background-color: #D8D8D8;
  padding: 5px;
}

.gpsreplay-comments-table {
  display: grid;
  grid-template-columns: 1fr 1fr 4fr;
  column-gap: 5px;
  row-gap: 5px;
  padding: 10px 0;
}

.gpsreplay-comments-table .header {
  font-weight: bold;
  background-color: #AAA;
  padding: 5px;
}

.gpsreplay-comments-table .item {
  background-color: #D8D8D8;
  padding: 5px;
}

.gpsreplay-overlay-details-table {
  display: grid;
  grid-template-columns: 1fr 2fr 4fr 1fr;
}

.overlay-bar {
  background-color: var(--overlay-colour);
  margin: 5px;
}

.gpsreplay-info {
  display: grid;
  grid-template-columns: 1fr 3fr;
}

#gpsreplay-course-filter-table {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  row-gap: 10px;
  column-gap: 10px;
}

.filter-item {
  align-self: center;
  line-height: 1.5em;
}

.gpsreplay-unused-map-table {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  margin-bottom: 15px;
}

.gpsreplay-unused-map-table .title {
  font-weight: bold;
}

.gpsreplay-control-slider-grid {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: center;
}

#gpsreplay-iterations {
  width: 100px;
}

div[data-filter="true"] {
  display: grid;
}

div[data-filter="false"] {
  display: none;
}
