.app-container {
    display: none;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: -40px;
}

#results-app .dt-paging nav {
    display: flex;
    margin-top: 1em;
    justify-content: center;
}
/*#results-app {display: none;}*/

table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sorting_desc:after, table.dataTable thead>tr>td.sorting_asc:before, table.dataTable thead>tr>td.sorting_desc:after {
    opacity: 1;
}
#results-table_info {display:none;}

.table-wrap {
    overflow-x: visible;
    overflow-y: visible;
}
#results-table {
    min-width: 1200px;
    width: 100% !important;
}

form#searchResults {
    margin-top: 12px;
}
input#searchInput-results {
    padding: 1em 0.5em;
    margin-bottom: 0.5em;
    width: 300px;
}
select#searchInput-select-results {
    border: solid 2px black;
    position: relative;
    top: -4px;
    border-radius: 3px;
    margin-right: -5px;
    padding: 8px;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
}
#print {
    transition: background-color 1s ease !important;
    height: 30px;
    background: none;
    color: var(--awb-color4);
    border: none;
    cursor: pointer;
}

/*MAKE IT BOLD*/
span.date,
span.surface,
span.track,
.tooltiptext > div > span {
    font-weight: 700;
}
span.date {
    background: linear-gradient(172deg, var(--awb-color5) 33%, var(--awb-color6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
span.raceName {
    font-style: italic;
}
span.distance {
    background: var(--awb-color3);
    color: black;
    -webkit-text-fill-color: black;
    border-radius: 24px;
    padding: 0.15em 0.75em;
    padding-right: 1.25em;
    font-weight: 700;
    top: -1px;
    position: relative;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));
}
span.surface.Turf {
    border: 4px solid #306030;
    color: #306030;
    -webkit-text-fill-color: #306030;
}
span.surface.Dirt {
    border: 4px solid #4f3a2b;
    color: #4f3a2b;
    -webkit-text-fill-color: #4f3a2b;
}
span.surface {
    position: relative;
    top: -2px;
    font-size: .65em;
    letter-spacing: 0.5px;
    border: 4px solid #351c75;
    color: #351c75;
    -webkit-text-fill-color: #351c75;
    border-radius: 20px;
    padding: 0.15em 0.75em;
    text-transform: uppercase;
    margin-left: -1em;
    background: var(--awb-color2);
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));
}
span.purseWrap{margin-left:8px;}
span.horseName {
    text-transform: uppercase;
    font-weight: 700;
}
span.scratched.horse {
    text-decoration: line-through;
}
span.odds {
    text-transform: uppercase;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-weight: 700;
    background: #EC2128;
    border-radius: 24px;
    padding: 0.18em 0.5em 0.15em;    
    font-size: 0.85em;
    position: relative;
    top: -1px;
}
span.finishValue {
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
    background: #EC2128;
    padding: 0.15em 0.5em;
    margin-left: 4px;
    border-radius: 24px;
}

/*TOOLTIP STYLING*/
.tooltip-icon {
  position: relative;
  display: inline-block;
  margin: 2px 4px;
  color: var(--awb-color5);background: linear-gradient(172deg, var(--awb-color5) 33%, var(--awb-color6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tooltip-icon .tooltiptext div {
    color: white !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white;
}
.tooltip-icon .tooltiptext div.otherDetails {
    background:white;
    padding:0.5em;
    margin-top:4px;
    color:black!important;
    -webkit-text-fill-color:black;
}
.salesHistory .tooltiptext > div {
    padding-left: 0.5em;
}
.obs-logo {
    width: 36px;
    top: 3px;
    position: relative;
}
.tooltip-icon:hover, .tooltip-icon.active {
    color: var(--awb-custom_color_1) !important;
    background: var(--awb-custom_color_1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: default;
}

.tooltiptext {
  visibility: hidden;
  background-color: #000;
  color: #fff;
  box-shadow: 4px 0px 12px var(--awb-color8);
  width: 380px;
  padding: 1em 1.5em;
  text-align: left;
  opacity: 0;  

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: 14px;
  left: -8px;
}

.tooltip-icon:hover .tooltiptext {
  visibility: visible;
  animation-name: tooltipFadeBtm;
  animation-duration: 0.5s;
  animation-delay: 0.25s;
  animation-fill-mode: forwards;
  -webkit-animation-name: tooltipFadeBtm;
  -webkit-animation-duration: 0.5s;
  -webkit-animation-delay: 0.25s;
  -webkit-animation-fill-mode: both;
}

.tooltiptext h6 {
    margin-top: 0px;
    margin-bottom: 0.5em;
    color: var(--awb-color4) !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--awb-color4);
    border-bottom: 1px solid !important;
}

.tooltiptext .certifications {
    text-align: end;
    position: absolute;
    right: 1.5em;
    top: 1em;
}
.certifications .cert {
    background: var(--awb-color5);
    padding: 0.25em 0.75em;
    border-radius: 8px;
    font-size: 0.85em;
    color: white;
    font-weight: bold;
}
.cert.obs.sale{
    background: #306030;
    padding: 0.25em 0.75em;
    border-radius: 8px;
    font-size: 0.85em;
    color: white;
    -webkit-text-fill-color:white;
    font-weight: bold; 
}

.tooltiptext > div > span {
    margin-left: 4px;
}

/* Tooltip animations*/
@keyframes tooltipFadeBtm {
  from {opacity: 0; top: -10px;}
  to {opacity: 1; top: 14px;}
}
@-webkit-keyframes tooltipFadeBtm {
  from {opacity: 0; top: -10px;}
  to {opacity: 1; top: 14px;}
}
table, table.dataTable {
  width: 100%;
  border: 2px solid var(--awb-color5);
  border-radius: 3px;
  border-collapse: collapse;
  background-color: #fff;
  font-size: 0.75em;
}
table.dataTable thead>tr>th.sorting, table.dataTable thead>tr>th.sorting_asc, table.dataTable thead>tr>th.sorting_desc, table.dataTable thead>tr>th.sorting_asc_disabled, table.dataTable thead>tr>th.sorting_desc_disabled, table.dataTable thead>tr>td.sorting, table.dataTable thead>tr>td.sorting_asc, table.dataTable thead>tr>td.sorting_desc, table.dataTable thead>tr>td.sorting_asc_disabled, table.dataTable thead>tr>td.sorting_desc_disabled {
    padding-right:10px;
}
th, table.dataTable th {
  background-color: var(--awb-color5);
  color: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  user-select: none;
}
table.dataTable th.sorting.sorting_asc,
table.dataTable th.sorting.sorting_desc {
    color: white;
}
table.dataTable th.index-0 {
    width: 60px;
    text-align: left;
}
table.dataTable th.index-1 {
    width: 90px;
}
table.dataTable th.index-2 {
    width: 220px;
}
table.dataTable th.index-3 {
    width: 312px;
}
table.dataTable th.index-4 {
    width: 150px;
}
table.dataTable th.index-5 {
    min-width: 172px;
}
table.dataTable th.index-6 {
    min-width: 172px;
}

table.dataTable td {
/*  background-color: #f9f9f9;*/
}

table.dataTable tr {
    border: 1px solid var(--awb-color8);
}
table.dataTable tr > td:nth-of-type(1),
table.dataTable tr > td:nth-of-type(6) {
    max-width: 124px;
}
table.dataTable tr > td:nth-of-type(2) {
    text-align:center;
}
table.dataTable tr > td:nth-of-type(6), table.dataTable tr > td:nth-of-type(7) {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
    max-width: 100px;
    flex-grow: 1;
    flex-basis: 0;
}
table.dataTable tr > td:nth-of-type(6):hover, table.dataTable tr > td:nth-of-type(7):hover {
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}
table.dataTable th,
table.dataTable td {
  min-width: 60px;
  padding: 8px 12px;
}

table.dataTable th.active {
  color: #fff;
}

table.dataTable th.active .arrow {
  opacity: 1;
}

.arrow {
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 0;
  margin-left: 5px;
  opacity: 0.66;
}

.arrow.asc {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid #fff;
}

.arrow.dsc {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #fff;
}

table.dataTable tr.row_2, 
table.dataTable tr.row_4, 
table.dataTable tr.row_6, 
table.dataTable tr.row_8 {
    background-color: aliceblue;
}

/*LOADING ANIMATION*/
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  margin: auto;
}
.lds-ripple div {
  position: absolute;
  border: 4px solid var(--awb-color4);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  4.9% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  5% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}
.disclaimer {
    margin-top: 20px;
    font-size: 0.75em;
    color: var(--awb-color8);
    padding: 1em;
}

span.obs.print-only {
    border: solid 2px black;
    border-radius: 16px;
    color: black;
    width: 36px;
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
    font-weight: 700;
    display:none;
}

@media only screen and (max-width:1260px){
    .table-wrap {
        overflow-x: scroll;
        overflow-y: clip;
        padding-bottom: 210px;
    }
}

@media only screen and (max-width:612px){
    #print {
        align-self: flex-end;
        margin-bottom: 12px;
    }
}

@media only print {
    .fusion-tb-header, .fusion-tb-footer, #searchEntries, .tooltip-icon, img.obs-logo, #print {
        display: none;
    }
    span.obs.print-only {display:inline-flex;}
/*    th, span.cert {color: var(--awb-color5) !important;}*/
    /*span.odds, span.finishValue {color:#EC2128 !important;-webkit-text-fill-color:#EC2128 !important;}
    span.cert.obs {color:#306030 !important; -webkit-text-fill-color:#306030 !important;}*/
}