body {
	height: 100%;
	min-height: 100%;
	background-color: #f9f9f9;
}

html {
	min-height: 100%;
	height: 100% !important;
	-webkit-overflow-scrolling: touch;
}

#loading-screen {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
	background-color: #f9f9f9;
	transform: unset !important;
}

#loading-screen>div {
    height: 100%;
}

#loading-screen img {
    width: 300px;
}

.loading {
    width: 60px;
    white-space: nowrap;
}

.loading:after {
    display: inline-block;
    animation: dotty steps(1, end) 1s infinite;
    content: '';
}

@keyframes dotty {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

#wrap {
  	min-height: 100%;
  	height: auto;
    margin-bottom: -57px;
}

#wrap:after {
    content: "";
    display: block;
    height: 57px;
}

#wrap.compressed-footer {
    margin-bottom: -81px;
}

#wrap.compressed-footer:after {
    height: 81px;
}

#wrap.no-footer {
    margin-bottom: 0;
}

#wrap.no-footer:after {
    height: 0;
}

#footer {
    background-color: #f5f5f5;
    /* background-color: #03426d; */
    border-top: 1px solid #ddd;
    color: #6c757d !important;
}

#footer a {
    color: #6c757d !important;
}

.header-padding {
	height: 50px;
}

#header {
	position: fixed;
	z-index: 100;
    background-color: #03426d;
    color: #fff;
	font-size: 16px;
	font-weight: bold;
	line-height: 50px;

	width: 100%;
	height: 50px;
	/* padding: 0 5px 0 20px; */
}

.header-title {
    position: absolute;
    float: left;
    text-overflow: ellipsis;
    padding-right: 8rem;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
}

#open-menu {
	background: center center no-repeat transparent;
	background-image: url("../images/menu.png");

	display: block;
	width: 40px;
	height: 40px;
	float: left;
	margin-left: 5px;
    margin-top: 4px;
}

#logo {
	max-width: 150px;
}

#mobile-logo {
    position: absolute;
    right: 5px;
	/*float: right;*/
	max-width: 70px;
	padding: 3px;
}

#logo-rate-result {
    position: absolute;
    right: 80px;
    padding: .7em;
    height: 100%;
    min-width: 62px;
    line-height: 1;
}

.banner-notices {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    /* background-color: #ea8206; */
    /* color: #fff; */
    background-color: #fff;
    color: #ea8206;
    z-index: 100;
}

.banner-notices > div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.finalised-notice {
    background-color: #03426d;
    color: #fff;
}

.finalised-notice .custom-control-label::before {
    background-color: #787878 !important;
    border-color: #787878 !important;
}

#cookie-consent {
    position: sticky;
    bottom: 0;
    width: 100%;
    /* height: 50px; */
    background-color: rgba(3, 66, 109, 1);
    color: #fff;
    padding: 1rem 1.5rem;
    z-index: 999; /* Just below loading screen */
}

#cookie-consent .consent-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.controls-table,
.controls-bar {
	width: 100%;
	background-color: #fff;
}

.controls-table td {
    padding: 0;
}

.controls-table label {
	font-weight: normal;
	margin: 0;
}

.controls-table input,
.controls-table select,
.controls-bar select {
    border: none;
    border-radius: 0;
}

.controls-table .input-group-text,
.controls-bar .input-group-text {
    border: none;
    background-color: unset;
}

.controls-bar>*:not(:first-child) {
    border-left: 1px solid #ccc;
}

.merged-controls span,
.merged-controls a {
    border-radius: 0 !important;
    border-bottom: none;
}

.record-button-cell {
	vertical-align: middle !important;
	width: 1%; /* Forces width to be the least possible while still fitting content */
}

.record-button {
    background-repeat: no-repeat;
    background-size: auto 108%;
    /* background-color: transparent !important; */
    /* color: #fff !important; */
}

.time-options button {
    line-height: 1;
    padding: 0rem 0.2rem;
}

.time-options i.fa-fw {
    margin-left: -.5em;
    margin-right: .5em;
}

.pointer {
	cursor: pointer;
}

.provisional-time,
.provisional-time ::after {
    color: #ea8206;
}

.boat-number-cell {
	padding: 2px !important;
	font-size: 20px;
	font-weight: bold;
	max-width: 150px;
    height: 75px;
}

.boat-number {
	display: block;
	width: 100%;
	height: 100%;
    overflow: auto;
	background-repeat: no-repeat;
    background-size: auto 100%;
    background-color: transparent;
    padding-top: 5px;
    padding-right: 5px;
	text-indent: 20px;
	color: white;
	text-shadow:
		-1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000,
		1px 1px 0 #000;
}
.boat-number-expanded {
    padding-top: 15px;
    text-indent: 30px;
}

.blade-cell {
    margin: 0 !important;
    padding: 0 !important;
}

.blade-icon {
    max-width: 160px;
}

.flag-cell {
    padding: .5rem !important;
    text-align: center;
}

.flag-icon {
    height: 3rem;
}

.timing-table .table-striped tr:nth-of-type(even) td,
#analytics-table.table-striped tr:nth-of-type(even) td {
    border-top: none;
}

.details-cell {
    white-space: normal;
    line-height: 1.4;
}

.form-signin {
	max-width: 330px;
	padding: 15px;
	margin: 0 auto;
}

.form-signin .form-signin-heading {
	margin-bottom: 10px;
}

.form-signin .form-control {
	position: relative;
	height: auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 10px;
	font-size: 16px;
}

.form-signin .form-control:focus {
	z-index: 2;
}

.form-signin input[type="text"] {
	margin-bottom: -1px;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.form-signin button[type="submit"] {
	margin-top: 10px;
}

.table {
	white-space: nowrap;
}

.row_divider {
	border-top: 3px solid #bbb;
}

.gold:after,
.silver:after,
.bronze:after {
	content: "";
    display: block;
    float: left;
    width: 24px;
    height: 24px;
    margin: 0 6px 0 0;
}
.gold:after {
    background: url("../images/medal-gold-24.png") no-repeat;
}
.silver:after {
    background: url("../images/medal-silver-24.png") no-repeat;
}
.bronze:after {
    background: url("../images/medal-bronze-24.png") no-repeat;
}

#analytics-table th {
	cursor: pointer;
}

.arrow-down:after, .arrow-up:after, .no-arrow:after {
	/* position: relative; */
	padding-left: 3px;
}

.arrow-down:after {
	content: "▾";
}

.arrow-up:after {
	content: "▴";
}

.no-arrow:after {
	content: " ";
}

.img-fluid.float-left {
    float: none !important;
	margin: 0 0 10px 0;
}

.img-fluid.float-right {
    float: none !important;
	margin: 0 0 10px 0;
}

.table-form input[type="text"],
.table-form input[type="email"],
.table-form select {
    min-width: 120px;
}

.table-form input[type="number"] {
    min-width: 80px;
}

.btn-circle {
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    background-color: #fff;
}

a.btn-circle {
    line-height: 2.75rem;
}

.btn-circle:disabled {
    opacity: 1;
    background-color: #fff;
    cursor: default;
}

.stepper:before {
    top: 2rem;
    position: relative;
    content: " ";
    width: 100%;
    height: 1px;
    background-color: #ccc;
    z-index: 0;
}

.handle {
    cursor: grab;
}

.boat-number-cell.editable-cell {
    background-image: unset;
    background-color: unset;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 60px;
}

.editable-cell {
    cursor: pointer;
    vertical-align: middle !important;
}

.controls-cell {
    vertical-align: middle !important;
    padding: 0 0.5rem !important;
    width: 1px; /* Minimum to fit contents */
}

.controls-cell i.fa-fw {
    cursor: pointer;
}

tr.selected {
    background-color: rgba(234, 130, 6, .2) !important;
}

.select2-results__option span,
.select2-selection__rendered span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select2-results__option img,
.select2-selection__rendered img {
    height: 25px;
    margin-left: .3rem;
    margin-right: .3rem;
}

.select2-result-text {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-result-icon {
    margin-left: 0 !important;
}

.inline-desc-image {
    height: 20px;
}

.clock-time {
    color: grey;
}

.nav-icon-left {
    margin-right: 0.5rem;
}

.nav-icon-right {
    height: 20px;
    float: right;
}

.log-cell-expanded {
    white-space: normal;
}

.log-cell-collapsed {
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-details-header label {
    font-weight: normal;
}

.hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: visibility 0s .2s, opacity .2s linear !important;
}

.visible {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity .2s linear !important;
}

.drop-shadow {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.navbar-hscroll {
    white-space: nowrap;
    overflow-x: auto;
}

.navbar-hscroll li {
    display: inline-block;
    float: none;
}

#stopwatch-clock {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    padding-left: .1em;
    padding-right: .1em;
}

#stopwatch-controls {
    position: sticky;
    bottom: 0;
    height: 140px;
    width: 100%;
    padding: 2em;
    background-color: #fff;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    z-index: 10;
    display: grid;
    grid-column-gap: 1em;
    grid-template-columns: auto auto auto 0;
    touch-action: manipulation;
    overflow: hidden;
}

#stopwatch-controls button:nth-of-type(1) { grid-column: 1; }
#stopwatch-controls button:nth-of-type(2) { grid-column: 2; }
#stopwatch-controls button:nth-of-type(3) { grid-column: 3; }

#stopwatch-mem-pullout {
    position: absolute;
    right: -25px;
    transform: rotate(-90deg);
    top: calc(50% - 19px);
}

.square-top-corners {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

#rate-result {
    height: 100%;
    min-width: 62px;
}

.stopwatch-card-title {
    position: absolute;
    left: 1em;
    top: .5em;
    color: #6c757d;
    font-size: 80%;
    font-weight: 400;
}

.stopwatch-card-footer {
    position: absolute;
    right: 1em;
    bottom: .5em;
    color: #6c757d;
    font-size: 80%;
    font-weight: 400;
}

.checkbox-no-label label::before,
.checkbox-no-label label::after {
    left: -1.5rem !important;
}

.edit-times-table input {
    border: 0;
    border-right: 1px solid rgb(206, 212, 218);
    border-radius: 0;
}

.table-striped-3 tbody tr:nth-child(3n-2) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-striped-3 tbody tr:nth-child(3n) td {
    border: none;
}

.tooltip-wide .tooltip-inner {
    max-width: 300px;
}

#donate-button {
    display: inline-block;
}






/* Vue transitions */
.slide-fade-enter-active, .slide-fade-leave-active {
    transition: all .3s ease;
}
.slide-fade-enter, .slide-fade-leave-to {
    transform: translateX(10px);
    opacity: 0;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity .5s ease;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}


/* Override mmenu styles */
.mm-menu_offcanvas {
	width: 80vw;
}

.mm-navbars_top .mm-navbar {
	height: 120px;
	padding: 0;

	background-image: url("../images/background.jpg");
	background-repeat: no-repeat;
	background-position: 40% 60%;
	background-size: cover;
}

.mm-page {
	height: 100% !important;
}

/* .mm-listitem_selected>.mm-listitem__text {
	background: unset;
} */


/* Override select2 styles */
.select2 {
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group.is-invalid .select2-selection {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-group.is-invalid .select2-selection__arrow {
    padding-right: 5rem;
}

.form-group.is-invalid .select2-selection:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

.form-group.is-valid .select2-selection {
    border-color: #28a745;
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem); */
}

/* .form-group.is-valid .select2-selection__arrow {
    padding-right: 5rem;
} */

.form-group.is-valid .select2-selection:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40,167,69,.25);
}


/**
 * Override reCAPTCHA styles
 */
.grecaptcha-badge { visibility: hidden; }


/**
 * Override Bootstrap styles
 */
.table-sm td, .table-sm th {
	padding-left: .75rem;
	padding-right: .75rem;
}

.b-table-sticky-header, .table-responsive, [class*=table-responsive-] {
	margin-bottom: 0;
}

h3 {
    margin-top: .5rem;
}

.list-group-flush:last-of-type .list-group-item:last-of-type {
    border-bottom-width: 0;
}

.bv-no-focus-ring:focus {
    outline: none;
}

/* Material-style cards */
.card {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    border-radius: 2px;
    background-clip: padding-box;
    border: none;
}

.card .card-footer {
    border-top: 1px solid rgba(160, 160, 160, 0.2);
    background-color: unset;
}

/* Material-style modals */

.modal-content {
    border: none;
    border-radius: 2px;
    box-shadow: 0 40px 77px rgba(0, 0, 0, 0.22), 0 27px 24px rgba(0, 0, 0, 0.2);
}

.modal-header {
    min-height: 16px;
    padding: 24px;
    border-bottom: none;
}

.modal-title {
    font-weight: 500;
    font-size: 21px;
}

.modal-body {
    padding: 0 24px;
}

.modal-body p:last-child,
.modal-body .lead:last-child {
    margin-bottom: 0;
}

.modal-footer {
    border-top: none;
    margin-top: 24px;
}
