/* Form Editing Utility */
.was-invalid, .is-invalid {
	border-color: #dc3545!important;
}

.invalid-tooltip {
	display: flex;
}

.invalid-tooltip span {
	padding: .25rem .5rem;
	color: #fff;
	background-color: rgba(220,53,69,.9);
	border-radius: 0 .25rem .25rem .25rem;
	z-index: 5;
}

/* Table utility */
.min-width-cell {
	width: 0;
	white-space: nowrap;
}

.w-100px {
	width: 100px;
}

/* Results */
.driver-info-tag {
	color: #FFF;
	background-color: rgba(144,141,249,0.65);
	padding-left: 0.25em;
	padding-right: 0.25em;
}

.edit-number-field-value-input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.edit-number-field-value-accept-button,
.edit-number-field-value-cancel-button,
.edit-number-field-value-dq-button {
	border: 1px solid rgba(0,0,0,0.3);
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	margin-left: -1px;
}

.edit-number-field-value-accept-button:hover,.edit-number-field-value-accept-button:active {
	background-color: rgba(0,200,0,0.3);
}
.edit-number-field-value-cancel-button:hover,.edit-number-field-value-cancel-button:active {
	background-color: rgba(200,0,0,0.3);
}
.edit-number-field-value-dq-button:hover,.edit-number-field-value-dq-button:active {
	background-color: rgba(0,0,200,0.3);
}

.aggregate-field-display.error {
	color: #dc3545;
}
/*
 * Tablesorter jQuery plugin styling - START
 * Ref: https://github.com/Mottie/tablesorter/blob/master/css/theme.default.css
 */
.tablesorter.tablesorter-default .tablesorter-header:not(.tablesorter-noSort) {
  cursor: pointer;
}

/* Default arrows to show is sortable and/or not currently sorted */
.tablesorter.tablesorter-default .tablesorter-header:not(.tablesorter-noSort) .tablesorter-header-inner::after,
.tablesorter.tablesorter-white .tablesorter-header:not(.tablesorter-noSort) .tablesorter-header-inner::after {
  display: inline-block;
  content: "";
  width: 7px;
  height: 9px;
  margin-left: 5px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
}
/* - black (unsorted) double arrow */
.tablesorter.tablesorter-default .tablesorter-header:not(.tablesorter-noSort) .tablesorter-header-inner::after {
  background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
}
/* - white (unsorted) double arrow */
.tablesorter.tablesorter-white .tablesorter-header:not(.tablesorter-noSort) .tablesorter-header-inner::after {
  background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
}

/* Arrow to show is sorted ascending */
/* - black asc arrow (fixed this so it's actually centered) */
.tablesorter.tablesorter-default .tablesorter-header.tablesorter-headerAsc .tablesorter-header-inner::after {
  background-image: url("data:image/gif;base64,R0lGODlhFQAEAPAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI+AywnaYnhUMopbAQA7");
}
/* - white asc arrow (fixed this so it's actually centered) */
.tablesorter.tablesorter-white .tablesorter-header.tablesorter-headerAsc .tablesorter-header-inner::after {
  background-image: url("data:image/gif;base64,R0lGODlhFQAEAPAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI+AywnaYnhUMopbAQA7")
}

/* Arrow to show is sorted descending */
/* - black desc arrow */
.tablesorter.tablesorter-default .tablesorter-header.tablesorter-headerDesc .tablesorter-header-inner::after {
  background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
}
/* - white desc arrow */
.tablesorter.tablesorter-white .tablesorter-header.tablesorter-headerDesc .tablesorter-header-inner::after {
  background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
}

/* Tablesorter jQuery plugin styling - END */

.results-day-title {
  font-size: 1.7em;
  font-weight: bold;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

.results-day-fieldset {
  margin-bottom: 50px!important;
  border: 2px solid #cecece;
  background: #f8f9fa;
}

.results-day-fieldset table {
	margin-top: 10px;
}

.live-results-table th {
	background-color: #081432;
	color: #63cadb;
	font-size: 2rem;
}

/* .live-results-table td {
	background-color: rgba(99, 202, 219, 0.3);
	color: #081432;
} */

.live-results-heading,
.previous-days-title {
	font-size: 2.5rem;
	/* color: #081432; */
}

.previous-days-title {
	margin-top: 50px;
}

.previous-day-heading:not(:first-of-type) {
  	margin-top: 50px;
}

.previous-day-heading,
.live-results-heading {
	margin-bottom: 25px;
}

#race-results-accordion-table th {
	background-color: #081432;
	border: 2px solid #081432;
	color: #fff;
}

#race-results-accordion-table .accordion-nested-row {
  display: none;
}
#race-results-accordion-table .accordion-parent-row {
  cursor: pointer;
}
#race-results-accordion-table .accordion-parent-row:hover {
  background: #f0f0f0;
}

.race-caption-bold {
  font-weight: bold;
  font-size: 1.2em;
}

.nested-order-item-table caption {
	margin-top: 30px;
	margin-bottom: 30px;
}

.nested-order-item-table {
	border: 2px solid #081432;
}

/* .nested-table-cell {
	border: 2px solid #63cadb;
} */

.accordion-parent-row {
	font-weight: 700;
}

.racing-results-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    border: 1px solid rgba(216, 217, 224, 0.8);
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 30px;
    gap: 1.5rem;
}

.racing-results-form .form-submit {
    align-self: flex-end;
    margin-bottom: 5px;
}

#race-results-accordion-table .accordion-parent-row.odd {
    background-color: rgba(99, 202, 219, 0.5);
    border: 2px solid rgba(99, 202, 219, 0.5);
    color: #081432;
}

#race-results-accordion-table .accordion-parent-row.odd:nth-of-type(4n-1) {
    background-color: #eee !important; 
    border: 2px solid #eee !important;
}

.accordion-arrow-cell {
  width: 2.5em;
}
.accordion-arrow {
  margin-right: 0.5em;
}

.results-accordion-header {
  padding: 10px;
  background-color: #081432;
  border-bottom: 1px solid #fff;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.results-accordion-section:first-of-type .results-accordion-header {
  margin-top: 15px;
}

.results-accordion-section th {
  background-color: rgba(99, 202, 219, 0.5);
}

.trackside-highlight-row {
  background-color: rgba(99, 202, 219, 0.8) !important;
  font-weight: 700;
  color: #081432;
}
