.scratched {
    background-color: whitesmoke;
    opacity: 0.6;
    text-decoration: line-through;
}

.tab_active{
    background: white !important;
    color: #444 !important;
    border-top: 3px solid orangered !important;
}

.desktop-container {
    display: block;
}

.mobile-container {
    display: none;
}

/*menu */
#menu a:active {
    background-color: lightseagreen !important;
}

#menu a:hover {
    background-color: lightseagreen !important;
}

.trial {
    color: darkgray;
    font-weight: 100;
    opacity: 0.8;
}

.turftrack {
    color: #00C000;
}

.awttrack {
    color: #CD853F;
}

#menu {
    margin-bottom: 20px;
}

/*end menu */
/* start racecard fieldset*/
.racecard_fieldset {
    box-shadow: 0 3px 3px 0 cadetblue;
}

.racecard_fieldset h5 {
    margin: 0px !important;
    padding: 1px !important;
}

/* end racecard fieldset*/

/* start racecardheader_container */
.racecardheader_container {
    display: flex;
    border-radius: 5px;
    margin-top: 10px;
}

.racecardheader_container p {
    margin-bottom: 0px;
    padding: 1px !important
}

.racecardheader_container h5 {
    margin: 0px !important;
    padding: 1px !important;
}

.racecardheader_container_left {
    flex: 0 0 85%;
    padding-left: 10px;
    padding-right: 10px;
}

.racecardheader_container_right {
    flex: 0 0 15%;
    text-align: center;
    padding-right: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px
}

/* end racecardheader_container */
.expandarrow {
    flex: 0 1 4%;
    color: #ff6d6d;
    font-size: 1.17em;
    padding-left: 2px;
    text-align: center;
}

#displayRaceCard {
    box-shadow: 0 1rem 1rem aliceblue;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}


.h2hlegend {
    margin: 0;
    padding: 0;
    background-color: #f9f9fa;
    border: 0px solid black;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
}

.h2hdiv {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 1px 1px 3px 1px gainsboro;
}

.h2hdiv tr th div div:nth-child(1) {
    flex: 0 1 15%;
}

.h2hdiv tr th div div:nth-child(2) {
    flex: 1 0 auto;
}

.h2hdiv tr th div div:nth-child(3) {
    flex: 0 1 75%;
    display: flex;
    gap: 10px;
}

.h2hdiv tr th div div:nth-child(3) div:nth-child(1) {
    flex: 0 1 10%;
}

.h2hdiv tr th div div:nth-child(3) div:nth-child(2) {
    flex: 1 0 auto;
}

.h2hdiv tr th div div:nth-child(3) div:nth-child(3) {
    flex: 1 0 auto;
}

.h2hdiv tr th div div:nth-child(3) div:nth-child(4) {
    flex: 0 1 73%;
}

#radio_h2h:checked~.parent_panel #panel_h2h {
    display: block;
    padding-top: 15px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

#panel_h2h table {
    margin-bottom: 1px;
}

#panel_h2h table tr td:nth-child(1) {
    /*pos */
    width: 5%;
}

#panel_h2h table tr td:nth-child(2) {
    /*horse */
    width: 22%;
    min-width: 22%;
}

#panel_h2h table tr td:nth-child(3) {
    /*draw */
    width: 5%;
}

#panel_h2h table tr td:nth-child(4) {
    /*jockey*/
    width: 17%;
}

#panel_h2h table tr td:nth-child(5) {
    /*last jockey*/
    width: 17%;
}

#panel_h2h table tr td:nth-child(6) {
    /*lbw*/
    width: 5%;
}

#panel_h2h table tr td:nth-child(7) {
    /*weight carried*/
    width: 10%;
}

#panel_h2h table tr td:nth-child(8) {
    /*time*/
    width: 5%;
}

#panel_h2h table tr td:nth-child(9) {
    /*win div */
    width: 6%;
}

#panel_h2h table tr td:nth-child(10) {
    /*rating */
    width: 7%;
}

#panel_h2h table tr td:nth-child(11) {
    /*rating*/
    width: 6%;
}

#panel_h2h tr td {
    padding: 5;
    border: none;
    outline: 1px solid #ededed;
}

#panel_h2h th {
    /* background-color: #005297; */
    background-color: #1e73be;
    color: white;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px;
}

#panel_h2h .jockey {}

#radio_h2h:checked~.racecard_menutabbar #tab_h2h {
    background: white;
    color: #444;
    border-top: 3px solid orangered;
}

#radio_h2h:checked~.racecard_menutabbar #tab_h2h {
    background: white;
    color: #444;
    border-top: 3px solid orangered;
}

.parent_panel {
    padding: 3px;
    padding-top: 0px !important;
}

.courseturf {
    color: lightgreen;
}

.courseawt {
    color: sandybrown;
}

.viewmoreruns {

    margin-bottom: 5px;
    text-align: end;
    margin-right: 5px;
}

#panel_racecard {
    margin-right: 2px;
}

.racecard-left {
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.is-expanded {
    box-shadow: 0px 0px 2px lightgray !important;
}

/* racecard accordion */

.racecard_accordion {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

.accordion__item {
    /* box-shadow: 1px 2px 5px 0px lightgrey; */
    border-bottom: 1px solid #efefef;
}

.accordion__title {
    /* padding: 15px 15px 5px 40px; */
    padding: 1px 0px 1px 0px;
    display: block;
    position: relative;

}

.accordion__title h5 {
    /* border-bottom: 1px solid #fefffa; */
    display: inline-block;
}

.accordion__title:hover,
.accordion__title:focus {
    cursor: pointer;
    outline: none;
}

.accordion__title:hover h5,
.accordion__title:focus h5 {
    border-bottom-color: #a8bdc4;
    display: inline-block;
}

.accordion__content-inner {

    padding: 0px;
}

.accordion__content-inner p {
    margin-bottom: 0px;
}

.accordion__content {
    transition: height 0.3s ease-out;
    height: 0;
    overflow: hidden;
    margin: 0px;
    margin-left: 0px;
    margin-right: 0px;
    /* background-color: #FBFBFB; */
    background-color: whitesmoke;
    padding-left: 25px;
}

.accordion__item js-show-item-default span,
h5 {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline
}

/*accordion item */
.accordion_header {
    display: flex;
    align-items: center;
    gap: 3px;
}

.accordion_header div:nth-child(1) {
    flex: 0 1 6%;
    text-align: center;
}

.accordion_header div:nth-child(1) img {
    border: 0px solid #ddd;
    height: 36px;
    margin-top: 4px;
}

.accordion_header div:nth-child(2) {
    flex: 0 1 2.5%;
    font-size: 1.5em;
    height: 42px;
    text-align: center;
}

.accordion_header div:nth-child(3) {
    flex: 0 1 45%;
}

.accordion_header div:nth-child(3) div:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 5px;
}

.accordion_header div:nth-child(3) div:nth-child(2) {
    /*jockey trainer */
    font-size: inherit;
    height: inherit;
    text-align: inherit;
    margin-top: -5px;

    word-spacing: -0.5px;

}

.accordion_header div:nth-child(3) div:nth-child(2) div:nth-child(1) {
    display: flex;
    gap: 5px;
}

.accordion_header div:nth-child(3) div:nth-child(2) div:nth-child(1) div:nth-child(1) {
    flex: 0 1 2%;

}

.accordion_header div:nth-child(3) div:nth-child(2) div:nth-child(1) div:nth-child(2) {
    /*trainer*/
    flex: 1 0 auto;
    font-size: inherit;
    text-transform: inherit;
    margin-top: inherit;
}

.accordion_header div:nth-child(3) div:nth-child(2) div:nth-child(1) div:nth-child(3) {
    flex: 0 1 73%;
}

.accordion_header div:nth-child(3) div:nth-child(1) div:nth-child(1) {
    flex: 0 1 2%;
    font-size: 1.17em;
    color: orangered;
    display: block;
}

.accordion_header div:nth-child(3) div:nth-child(1) div:nth-child(2) {
    flex: 1 0 auto;
    font-size: 18px;

    height: inherit;
    text-align: left;
    margin-top: inherit;

    word-spacing: inherit;
}

.accordion_header div:nth-child(3) div:nth-child(1) div:nth-child(3) {
    flex: 0 1 73%;

    display: flex;
    gap: 6px;
}

.accordion_header div:nth-child(4) {
    flex: 0 1 41.5%;
}

.accordion_header div:nth-child(4) div:nth-child(1) {
    display: flex;
}

.accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(1) {
    flex: 0 1 60%;
    display: block;
    text-align: left;
    ;
}

.accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(2) {
    flex: 0 1 40%;
    font-size: inherit;
    height: inherit;
    text-align: left;
}

.accordion_header div:nth-child(5) {
    flex: 0 1 4%;
    color: #ff6d6d;
    font-size: 1.17em;
    padding-left: 2px;
    text-align: center;
}

.accordion_header div:nth-child(4) div:nth-child(2) {
    display: flex;
    font-size: inherit;
    height: inherit;
    text-align: left;

}

.accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) {
    flex: 0 1 60%;
    display: block;
    text-align: left;
}

.accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(2) {
    flex: 0 1 40%;
}

.racecard_stats_header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.racecard_stats {
    line-height: 1.5;
    margin-top: 5px;
}

.racecard_stats td {
    padding: 1px;
    overflow-x: inherit;
}

.racecard_stats fieldset {

    background-color: white;
    border: 1px solid whitesmoke;

}

.racecard_stats legend {
    color: darkolivegreen;
    font-weight: 600;
}

.racecard_stats td div:first-child {

    color: #444;
    padding: 1px;
}

.racecard_stats td div:nth-child(2) {
    padding: 3px;
}

.racecard_previous5runs {
    margin-bottom: 5px;
    margin-top: 5px;
}

.racecard_previous5runs fieldset {
    padding: 0.35em 0.625em 0.5em;
    background-color: white;
    border: 1px solid whitesmoke;
    margin-right: 0px;
    background-color: white;
}

.racecard_previous5runs legend {
    color: darkolivegreen;
    font-weight: 600;
}

.racecard_previous5runs .timeline .legend {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 1.1em;
    color: grey;
    display: flex;
}

.racecard_position {
    display: flex;
    flex-wrap: wrap;

}


.quickstats {
    color: black;
    border: 1px solid #edebeb;
    border-radius: 8px 8px 0 0;

    margin-bottom: 10px !important;
    box-shadow: 1px 1px 3px 1px gainsboro;
}

.quickstats table {
    font-family: Roboto, sans-serif;
    border-collapse: collapse;
    width: 100%;


    border-spacing: 10;
    box-sizing: border-box;
    margin: 0px !important;

    padding: 4px 8px;
    text-indent: 0;
    white-space: nowrap;
    margin-top: 10px;

}

.quickstats tbody {
    font-size: 13px;
}

.quickstats td {
    border: 0 !important;
    padding: 4px 8px;
    height: 30px;
}

.quickstats td:last-child {
    text-align: right;
}

.quickstats span {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.quickstats thead th:first-child {
    /* border-top-left-radius: 8px;
            border-top-right-radius: 8px; */

}


.quickstats th {

    padding: 6px 8px;

}


.quickstats tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* start timeline */
.timeline {

    font-size: 0.95em;
}

.timeline .line1 {
    display: flex;
}

.timeline li {
    line-height: 18px;
    margin: 0px;
    padding: 0px;
}

.timeline .firstcol {
    flex: 0 0 10%;
    padding-left: 5px;
}

.timeline .content {
    flex: 0 0 90%;
    border-left: 2px solid lightgrey;
    padding-left: 19px;
}

.timeline ul {
    list-style-type: none;

    padding: 0px;
    margin: 0px;

    margin-bottom: 0px;
}

.timeline ul li {
    position: relative;

    transition: .5s;
    margin-bottom: 2px;

    margin-left: 0px;
}

.timeline ul li:nth-child(even) {
    background-color: whitesmoke;
}

.timeline span {
    display: inline-block;
    background-color: slategray;

    padding: 0px 10px;

    text-align: center;
}

.timeline ul li .content h3 {
    color: #34ace0;
    padding-top: 5px;
}

.timeline .racecard_previous5runs_list li .li-row {
    /*li-row*/
    display: flex;
    padding: 1px;
    align-items: center;
}

.timeline .racecard_previous5runs_list li .li-row .firstcol {
    /*firstcol*/
    flex: 0 0 10%;
    padding-left: 5px;
}

.timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(1) {
    gap: 2px;
    font-size: 1.1em;
}

.timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(2) {
    font-size: 0.9em;
    display: flex;
    gap: 3px;
}

.timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(2) div:nth-child(1) {
    font-size: inherit;
}

.timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(2) div:nth-child(2) {
    font-size: inherit;
    display: block;
}

.timeline .racecard_previous5runs_list li .li-row .content {
    flex: 0 0 90%;
    border-left: 2px solid lightgrey;
    padding-left: 19px;
}

.timeline .racecard_previous5runs_list li .li-row .content::before {
    position: absolute;
    content: '';
    width: 10px;
    height: 10px;
    background-color: gainsboro;
    border-radius: 50%;
    /* left: -27px; */
    left: 9.5%;
    transition: .5s;
    top: 0px;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 {
    display: flex;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(1) {
    flex: 0 0 22%;
    display: flex;
    letter-spacing: -0.5px;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(1) div:nth-child(1) {
    flex: 1 0 55%;
    display: block;

    letter-spacing: -0.5px;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(1) div:nth-child(2) {
    flex: 0 0 45%;
    display: block;


}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) {
    flex: 0 0 11%;
    display: flex;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) div:nth-child(1) {
    flex: 0 0 65%;
    display: block;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) div:nth-child(2) {
    flex: 0 0 35%;
    display: block;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) div:nth-child(2) b {
    border-radius: 5%;
    padding: 1px;
    padding-left: 7px;
    padding-right: 7px;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(3) {
    flex: 0 0 8%;
    text-align: end;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(4) {
    flex: 0 0 6%;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(5) {
    flex: 0 0 4%;


}


.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(6) {
    flex: 0 0 5%;
    text-align: left;


}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(7) {
    flex: 0 0 7%;
}

.timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(8) {
    flex: 0 0 36%;
}

.timeline .racecard_previous5runs_list li .li-row .content .line2 {
    display: flex;
    align-items: center;

}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(1) {
    flex: 0 0 4%;
}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(2) {
    flex: 0 0 16%;
}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(2) .racecard_position>div {
    flex: 0 0 28%;
    border-width: 0 1px 1px 0;
    border-color: #dee2e6;
    border-style: solid;
    text-align: center;
    /* padding: 1.8px; */
    font-size: 0.95em;
}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(3) {
    flex: 0 0 2%;
    text-align: left;
}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(4) {
    flex: 0 0 8%;
}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(5) {
    flex: 0 0 6%;
    text-align: end;
}


.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(6) {
    flex: 0 0 5%;
    text-align: end;

}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(7) {
    flex: 0 0 6%;

}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(8) {
    flex: 0 0 4%;


}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(9) {
    flex: 0 0 5%;
    padding-left: 0px;
    text-align: end;
    letter-spacing: -0.6px;


}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(10) {
    flex: 0 0 7%;
    padding-left: 0px;
}


.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(11) {
    flex: 0 0 34%;

}

.timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(12) {
    flex: 0 0 2%;

}

.break {
    flex-basis: 100%;
    height: 0;
}

fieldset {
    width: 100%;
    min-width: 0;
}

.statblock {
    border-radius: 5px;
    flex: 0 0 90%;
    margin: 0px;
}

.statblock div:nth-child(1) {
    display: flex;
    gap: 0.3px;
}

.statblock div:nth-child(2) {
    margin-top: 0px;
    display: flex;
    justify-content: center;
}

.statblock aside {
    /* box-shadow: 5px 5px 3px rgb(0 0 0 / 10%); */
    box-shadow: 1px 0px 10px 0px lightgrey;
}

.statblock ul {
    margin: 0;
}

.statblock ul li {
    margin: 0;
    line-height: 1.5;
}

.statblock h2 {
    margin: 0;
    background-color: gainsboro;
}

.statblock .overflow-hidden {
    overflow: hidden;
}

.statblock .br-5 {
    border-radius: 5px;
}

.statblock .ba {
    border-style: solid;
    border-width: 2px;
    border-color: #cbccce;
}

.statblock .ttu {
    text-transform: uppercase;
}

.statblock .pv2 {
    padding-bottom: 4px !important;
    padding-top: 4px !important;
}

.statblock .h9 {
    font-size: 0.8em;
    background-color: #9e9e9e;
    color: white;
    font-weight: 600;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.statblock .n9 {
    font-size: 0.58em;
}

.statblock .h9,
.statblock .n9 {
    line-height: 10px;
}

.statblock .ph4 {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.statblock .pv3 {
    padding-bottom: 6px !important;
    padding-top: 6px !important;
}

.statblock .list {
    list-style-type: none;
}

.statblock .justify-between {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.statblock .flex {
    display: flex;
}

.statblock .flex-expand {

    flex: 0 1 25%;
}

.statblock .tc {
    text-align: center !important;
}

.statblock .te {
    text-align: end !important;
}

.statblock .clr-gray-04,
.statblock .hover\:clr-gray-04:hover {
    color: #6c6d6f;
}

.statblock .n2 {
    font-size: 15px;
}

.statblock .clr-gray-02,
.statblock .hover\:clr-gray-02:hover {
    color: #2b2c2d;
}

.circle-text {
    font: inherit !important;
}

.circle-text-racecard-mobile {
    border: 0px solid grey;
    background: #E8E8E8;
    height: 1em;
    border-radius: 50%;
    text-align: center;
    padding-top: 2px;
}

.circle-text-racecard-mobile {
    padding-top: 0px !important;
}

/* This class will be applied to the whole child-panel content */
.child-panel {
    position: relative;
    overflow: hidden;
    /* Ensures content stays within bounds of the container */
}

/* The overlay that covers the content when restricted */
.restricted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    /* Apply blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* Ensure it appears on top of the content */
}

.restricted-overlay.pastperf {
    position: relative;
}

.restricted-overlay.pastperf .restricted-message {
    position: absolute;
    z-index: 9;
}

.restricted-overlay.pastperf .racecard_previous5runs {
    width: 100%;
    filter: blur(5px);
}

/* The message box */
.restricted-message {
    text-align: center;
    color: #fff;
    background-color: #1e73be;
    /* background for the message */
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 0.25rem 0.25rem 0.125rem rgba(57, 147, 213, 0.1), 0 0.375rem 0.75rem -0.125rem rgba(57, 147, 213, 0.4);
}

.td-page-content .restricted-message p {
    color: #ffffff;
    margin-bottom: 15px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.td-page-content .restricted-message p:last-child {
    margin-bottom: 0px;
}

.restricted-message .fa-lock:before {
    content: "\f023";
}

/* Link styling within the message */
.restricted-message a {
    color: #FFFFFF;
    /* text-transform: uppercase; */
    font-weight: 700;
}

.restricted-message strong {
    color: #FFFFFF;
}

.restricted-message a:hover {
    /* box-shadow: 0 0.25rem 0.25rem 0.125rem rgba(57,147,213,0.1),0 0.375rem 0.75rem -0.125rem rgba(57,147,213,0.4); */
    color: #FFF200;
}

.restricted-message a.rs-btn {
    background: #222222;
    padding: 5px 8px;
    border-radius: 5px;
    margin-top: 5px;
    display: block;
    width: 100%;
}

span.sm-txt {
    font-size: 14px;
    background: transparent;
}

.restricted-message a.rgs-btn {
    background: lightseagreen;
    border-radius: 5px;
    padding: 10px;
    filter: drop-shadow(0px 1px 3px #222222);
}

.restricted-message a.rgs-btn:hover {
    background: white;
}

.restricted-message a.rgs-btn:hover strong {
    color: #1e73be;
}

.restricted-message a.lg-btn {
    text-transform: unset;
    text-decoration: underline;
}


.scratched {
    background-color: whitesmoke;
    opacity: 0.6;
    text-decoration: line-through;
}


@media (max-width: 375px) {
    #displayRaceCard {
        letter-spacing: -0.7px;
    }

    .racecard_menutabbar {
        letter-spacing: -0.5px;
    }

}

/*mobile css*/
@media (max-width: 1200px) {
    .only_desktop {
        display: none !important;
    }
    
    .only_mobile {
        display: block !important;
    }

    .only_mobile_display {
        display: block !important;
    }

    .desktop-container {
        display: none;
    }

    .mobile-container {
        display: block;
    }

    .header_menutab_wrapper .owl_parent {
        min-height: unset;
    }
    
    /*menu */
    #menu a:active {
        background-color: lightseagreen !important;
    }

    #menu a:hover {
        background-color: lightseagreen !important;
    }

    .trial {
        color: darkgray;
        font-weight: 100;
        opacity: 0.8;
    }

    .turftrack {
        color: #00C000;
    }

    .awttrack {
        color: #CD853F;
    }

    #menu {
        margin-bottom: 20px;
    }


    .quickstats {
        color: black;
        border: 1px solid #edebeb;
        /* border-radius: 8px 8px 0 0; */

        margin-bottom: 10px !important;
        box-shadow: 1px 1px 3px 1px gainsboro;
    }

    .quickstats table {
        font-family: Roboto, sans-serif;
        border-collapse: collapse;
        width: 100%;


        border-spacing: 10;
        box-sizing: border-box;
        margin: 0px !important;

        padding: 4px 8px;
        text-indent: 0;
        white-space: nowrap;
        margin-top: 10px;

    }

    .quickstats tbody {
        font-size: 13px;
    }

    .quickstats td {
        border: 0 !important;

        height: 30px;
    }

    .quickstats td:last-child {
        text-align: right;
    }

    .quickstats span {
        font-size: 13px;
        font-weight: 700;
        color: white;
    }

    .quickstats thead th:first-child {
        /* border-top-left-radius: 8px;
            border-top-right-radius: 8px; */
    }

    .quickstats th {

        padding: 7px 8px;

    }

    .quickstats tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    /*end menu */
    /* start racecard fieldset*/
    .racecard_fieldset {
        box-shadow: 0 3px 3px 0 cadetblue;
    }

    .racecard_fieldset h5 {
        margin: 0px !important;
        padding: 1px !important;
    }

    /* end racecard fieldset*/

    /* start racecardheader_container */
    .racecardheader_container {
        display: flex;
        border-radius: 5px;
        margin-top: 10px;
    }

    .racecardheader_container p {
        margin-bottom: 0px;
        padding: 1px !important
    }

    .racecardheader_container h5 {
        margin: 0px !important;
        padding: 1px !important;
    }

    .racecardheader_container_left {
        flex: 0 0 85%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .racecardheader_container_right {
        flex: 0 0 15%;
        text-align: center;
        padding-right: 1px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px
    }

    /* end racecardheader_container */
    .expandarrow {
        flex: 0 1 4%;
        color: #ff6d6d;
        font-size: 1.17em;
        padding-left: 2px;
        text-align: center;
    }

    #displayRaceCard {
        box-shadow: 0 1rem 1rem aliceblue;
        font-family: "Roboto", Helvetica, Arial, sans-serif;
    }


    .h2hlegend {
        margin: 0;
        padding: 0;
        background-color: #f9f9fa;
        border: 0px solid black;
        font-size: 0.75rem;
        font-weight: 600;
        text-align: left;
    }

    .h2hdiv {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        margin-bottom: 20px;
        box-shadow: 1px 1px 3px 1px gainsboro;
    }

    .h2hdiv tr th div div:nth-child(1) {
        flex: 0 1 8%;
    }

    .h2hdiv tr th div div:nth-child(2) {
        flex: 1 0 auto;
    }

    .h2hdiv tr th div div:nth-child(3) {
        flex: 0 1 77%;
        display: flex;
        gap: 10px;
    }

    .h2hdiv tr th div div:nth-child(3) div:nth-child(1) {
        flex: 0 1 6%;
    }

    .h2hdiv tr th div div:nth-child(3) div:nth-child(2) {
        flex: 1 0 auto;
    }

    .h2hdiv tr th div div:nth-child(3) div:nth-child(3) {
        flex: 1 0 auto;
    }

    .h2hdiv tr th div div:nth-child(3) div:nth-child(4) {
        flex: 0 1 73%;
    }

    #radio_h2h:checked~.parent_panel #panel_h2h {
        display: block;
        padding-top: 15px;
        font-family: "Roboto", Helvetica, Arial, sans-serif;
        font-size: 14px;
    }

    #panel_h2h table {
        margin-bottom: 1px;
    }

    #panel_h2h table tr td:nth-child(1) {
        /*pos */
        width: 5%;
    }

    #panel_h2h table tr td:nth-child(2) {
        /*horse */
        width: 22%;
        min-width: 22%;
    }

    #panel_h2h table tr td:nth-child(3) {
        /*draw */
        width: 5%;
    }

    #panel_h2h table tr td:nth-child(4) {
        /*jockey*/
        width: 17%;
    }

    #panel_h2h table tr td:nth-child(5) {
        /*last jockey*/
        width: 17%;
    }

    #panel_h2h table tr td:nth-child(6) {
        /*lbw*/
        width: 5%;
    }

    #panel_h2h table tr td:nth-child(7) {
        /*weight carried*/
        width: 10%;
    }

    #panel_h2h table tr td:nth-child(8) {
        /*time*/
        width: 5%;
    }

    #panel_h2h table tr td:nth-child(9) {
        /*win div */
        width: 6%;
    }

    #panel_h2h table tr td:nth-child(10) {
        /*rating */
        width: 7%;
    }

    #panel_h2h table tr td:nth-child(11) {
        /*rating*/
        width: 6%;
    }

    #panel_h2h tr td {
        padding: 5;
        border: none;
        outline: 1px solid #ededed;
    }

    #panel_h2h th {
        /* background-color: #005297; */
        background-color: #1e73be;
        color: white;
        font-size: 13.5px;
        font-weight: 500;
        padding: 8px;
    }

    #panel_h2h .jockey {}

    #radio_h2h:checked~.racecard_menutabbar #tab_h2h {
        background: white;
        color: #444;
        border-top: 3px solid orangered;
    }

    #radio_h2h:checked~.racecard_menutabbar #tab_h2h {
        background: white;
        color: #444;
        border-top: 3px solid orangered;
    }

    .parent_panel {
        padding: 3px;
        padding-top: 0px !important;
    }

    .courseturf {
        color: lightgreen;
    }

    .courseawt {
        color: sandybrown;
    }

    .viewmoreruns {

        margin-bottom: 5px;
        text-align: end;
        margin-right: 5px;
    }

    #panel_racecard {
        margin-right: 2px;
    }

    .racecard-left {
        font-family: "Roboto", Helvetica, Arial, sans-serif;
    }

    .is-expanded {
        box-shadow: 0px 1px 5px rgb(0 0 0 / 50%) !important;
    }

    /* racecard accordion */

    .racecard_accordion {
        margin: 0;
        padding: 0;
        border: 0;
        vertical-align: baseline;
    }

    .accordion__item {
        box-shadow: 1px 2px 5px 0px lightgrey;
    }

    .accordion__title {
        /* padding: 15px 15px 5px 40px; */
        padding: 1px 0px 1px 0px;
        display: block;
        position: relative;

    }

    .accordion__title h5 {
        /* border-bottom: 1px solid #fefffa; */
        display: inline-block;
    }

    .accordion__title:hover,
    .accordion__title:focus {
        cursor: pointer;
        outline: none;
    }

    .accordion__title:hover h5,
    .accordion__title:focus h5 {
        border-bottom-color: #a8bdc4;
        display: inline-block;
    }

    .accordion__content-inner {
        /* padding: 0 40px 10px 40px; */
        padding: 0px;
    }

    .accordion__content-inner p {
        margin-bottom: 0px;
    }

    .accordion__content {
        transition: height 0.3s ease-out;
        height: 0;
        overflow: hidden;
        margin: 1px;
        margin-left: 0px;
        margin-right: 0px;
        /* background-color: #FBFBFB; */
        background-color: whitesmoke;
        padding-left: 25px;
    }

    .accordion__item js-show-item-default span,
    h5 {
        margin: 0;
        padding: 0;
        border: 0;
        vertical-align: baseline
    }

    /*accordion item */
    .accordion_header {
        display: flex;
        align-items: center;
        gap: 3px;
    }





    .accordion_header div:nth-child(4) {
        flex: 0 1 45%;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) {
        /*jockey trainer */
        font-size: inherit;
        height: inherit;
        text-align: inherit;
        margin-top: -5px;

        word-spacing: -0.5px;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) {
        display: flex;
        gap: 5px;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) div:nth-child(1) {
        flex: 0 1 2%;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) div:nth-child(2) {
        /*trainer*/
        flex: 1 0 auto;
        font-size: inherit;
        text-transform: inherit;
        margin-top: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) div:nth-child(3) {
        flex: 0 1 73%;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(1) {
        flex: 0 1 2%;
        font-size: 1.17em;
        color: orangered;
        display: block;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(2) {
        flex: 1 0 auto;
        font-size: 1.16em;
        text-transform: uppercase;
        height: inherit;
        text-align: left;
        margin-top: inherit;

        word-spacing: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(3) {
        flex: 0 1 73%;

        display: flex;
        gap: 6px;
    }

    .accordion_header div:nth-child(4) {
        flex: 0 1 41.5%;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) {
        display: flex;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(1) {
        flex: 0 1 60%;
        display: block;
        text-align: left;
        ;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(2) {
        flex: 0 1 40%;
        font-size: inherit;
        height: inherit;
        text-align: left;
    }

    .accordion_header div:nth-child(5) {
        flex: 0 1 4%;
        color: #ff6d6d;
        font-size: 1.17em;
        padding-left: 2px;
        text-align: center;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) {
        display: flex;
        font-size: inherit;
        height: inherit;
        text-align: left;
        gap: 5px;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) {
        flex: 0 1 60%;
        display: block;
        text-align: left;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(2) {
        flex: 0 1 40%;
    }

    .racecard_stats_header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .racecard_stats {
        line-height: 1.5;
        margin-top: 5px;
    }

    .racecard_stats td {
        padding: 1px;
        overflow-x: inherit;
    }

    .racecard_stats fieldset {
        /* font-weight: 500; */
        background-color: white;
        border: 1px solid whitesmoke;
        /* box-shadow: 1px 5px 5px gainsboro; */
        /* box-shadow: 1px 0px 10px 0px lightgrey; */
    }

    .racecard_stats legend {
        color: darkolivegreen;
        font-weight: 600;
    }

    .racecard_stats td div:first-child {
        /* background-color: #eee; */
        color: #444;
        padding: 1px;
    }

    .racecard_stats td div:nth-child(2) {
        padding: 3px;
    }

    .racecard_previous5runs {
        margin-bottom: 5px;
        margin-top: 5px;
    }

    .racecard_previous5runs fieldset {
        padding: 0.35em 0.625em 0.5em;
        background-color: white !important;
        border: 1px solid whitesmoke;
        margin-right: 0px;

    }

    .racecard_previous5runs legend {
        color: darkolivegreen;
        font-weight: 600;
    }

    .racecard_previous5runs .timeline .legend {
        margin-top: 12px;
        margin-bottom: 12px;
        font-size: 1.1em;
        color: grey;
        display: flex;
    }

    .racecard_position {
        display: flex;
        flex-wrap: wrap;

        /* justify-content: right; */
    }

    /* start timeline */
    .timeline {
        /* color: #fff; */
        /* padding: 10px 20px; */
        /* padding: 5px; */
        /* box-shadow:0px 0px 10px rgb(0 0 0 / 10%); */
        font-size: 0.95em;
    }

    .timeline .line1 {
        display: flex;
    }

    .timeline li {
        line-height: 18px;
        margin: 0px;
        padding: 0px;
    }

    .timeline .firstcol {
        flex: 0 0 10%;
        padding-left: 5px;
    }

    .timeline .content {
        flex: 0 0 90%;
        border-left: 2px solid lightgrey;
        padding-left: 19px;
    }

    .timeline ul {
        list-style-type: none;
        /* border-left: 2px solid lightgrey; */
        padding: 0px;
        margin: 0px;
        /* box-shadow: 1px 0px 3px gainsboro; */
        margin-bottom: 0px;
    }

    .timeline ul li {
        position: relative;
        /* border-radius: 8px; */
        transition: .5s;
        margin-bottom: 2px;
        /* box-shadow: 0px 0px 3px rgb(0 0 0 / 10%); */
        margin-left: 0px;
    }

    .timeline ul li:nth-child(even) {
        background-color: whitesmoke;
    }

    .timeline span {
        display: inline-block;
        background-color: slategray;
        /* border-radius: 25px; */
        padding: 0px 10px;
        /* margin-right: 5px; */
        text-align: center;
    }

    .timeline ul li .content h3 {
        color: #34ace0;
        padding-top: 5px;
    }

    .timeline .racecard_previous5runs_list li .li-row {
        /*li-row*/
        display: flex;
        padding: 1px;
        align-items: center;
    }

    .timeline .racecard_previous5runs_list li .li-row .firstcol {
        /*firstcol*/
        flex: 0 0 10%;
        padding-left: 5px;
    }

    .timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(1) {
        gap: 2px;
        font-size: 1.1em;
    }

    .timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(2) {
        font-size: 0.9em;
        display: flex;
        gap: 3px;
    }

    .timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(2) div:nth-child(1) {
        font-size: inherit;
    }

    .timeline .racecard_previous5runs_list li .li-row .firstcol div:nth-child(2) div:nth-child(2) {
        font-size: inherit;
        display: block;
    }

    .timeline .racecard_previous5runs_list li .li-row .content {
        flex: 0 0 90%;
        border-left: 2px solid lightgrey;
        padding-left: 19px;
    }

    .timeline .racecard_previous5runs_list li .li-row .content::before {
        position: absolute;
        content: '';
        width: 10px;
        height: 10px;
        background-color: gainsboro;
        border-radius: 50%;
        /* left: -27px; */
        left: 9.5%;
        transition: .5s;
        top: 0px;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 {
        display: flex;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(1) {
        flex: 0 1 21%;
        display: flex;
        gap: 10px;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) {
        flex: 0 1 15%;
        display: flex;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) div:nth-child(1) {
        flex: 0 1 55%;
        display: block;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) div:nth-child(2) {
        flex: 0 1 45%;
        display: block;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(2) div:nth-child(2) b {
        border-radius: 5%;
        padding: 1px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(3) {
        flex: 0 1 7%;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(4) {
        flex: 0 1 4%;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(5) {
        flex: 0 1 7%;
        display: flex;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(5) div:nth-child(1) {
        flex: 1 0 20%;
        display: block;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(5) div:nth-child(2) {
        flex: 1 0 80%;
        /* text-align: end; */
        display: block;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(6) {
        flex: 0 1 6%;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line1 div:nth-child(7) {
        flex: 0 1 40%;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 {
        display: flex;
        align-items: center;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(1) {
        flex: 0 1 4%;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(2) {
        flex: 0 1 17%;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(2) .racecard_position>div {
        flex: 0 0 28%;
        border-width: 0 1px 1px 0;
        border-color: #dee2e6;
        border-style: solid;
        text-align: center;
        padding: 1.8px;
        font-size: 0.95em;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(3) {
        flex: 0 1 15%;
        text-align: left;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(4) {
        flex: 0 1 5%;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(5) {
        flex: 0 1 8%;
        text-align: end;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(6) {
        flex: 0 1 9%;
        padding-left: 1px;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(7) {
        flex: 0 1 38%;
        padding-left: 16px;
    }

    .timeline .racecard_previous5runs_list li .li-row .content .line2 div:nth-child(8) {
        flex: 0 1 3%;
    }


    .break {
        flex-basis: 100%;
        height: 0;
    }

    fieldset {
        width: 100%;
        min-width: 0;
    }

    .statblock {
        border-radius: 5px;
        flex: 0 0 90%;
        margin: 0px;
    }

    .statblock div:nth-child(1) {
        display: flex;
        gap: 0.3px;
    }

    .statblock div:nth-child(2) {
        margin-top: 0px;
        display: flex;
        justify-content: center;
    }

    .statblock aside {
        /* box-shadow: 5px 5px 3px rgb(0 0 0 / 10%); */
        box-shadow: 1px 0px 10px 0px lightgrey;
    }

    .statblock ul {
        margin: 0;
    }

    .statblock ul li {
        margin: 0;
        line-height: 1.5;
    }

    .statblock h2 {
        margin: 0;
        background-color: gainsboro;
    }

    .statblock .overflow-hidden {
        overflow: hidden;
    }

    .statblock .br-5 {
        border-radius: 5px;
    }

    .statblock .ba {
        border-style: solid;
        border-width: 2px;
        border-color: #cbccce;
    }

    .statblock .ttu {
        text-transform: uppercase;
    }

    .statblock .pv2 {
        padding-bottom: 4px !important;
        padding-top: 4px !important;
    }

    .statblock .h9 {
        font-size: 0.8em;
        background-color: #9e9e9e;
        color: white;
        font-weight: 600;
        font-family: "Roboto", Helvetica, Arial, sans-serif;
    }

    .statblock .n9 {
        font-size: 0.58em;
    }

    .statblock .h9,
    .statblock .n9 {
        line-height: 10px;
    }

    .statblock .ph4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .statblock .pv3 {
        padding-bottom: 6px !important;
        padding-top: 6px !important;
    }

    .statblock .list {
        list-style-type: none;
    }

    .statblock .justify-between {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .statblock .flex {
        display: flex;
    }

    .statblock .flex-expand {
        /* -webkit-box-flex: 1;
        -ms-flex: 1 0 auto; */
        flex: 0 1 25%;
    }

    .statblock .tc {
        text-align: center !important;
    }

    .statblock .te {
        text-align: end !important;
    }

    .statblock .clr-gray-04,
    .statblock .hover\:clr-gray-04:hover {
        color: #6c6d6f;
    }

    .statblock .n2 {
        font-size: 15px;
    }

    .statblock .clr-gray-02,
    .statblock .hover\:clr-gray-02:hover {
        color: #2b2c2d;
    }

    .circle-text {
        font: inherit !important;
    }

    .circle-text-racecard-mobile {
        border: 0px solid grey;
        background: #E8E8E8;
        height: 1em;
        border-radius: 50%;
        text-align: center;
        padding-top: 2px;
    }

    .circle-text-racecard-mobile {
        padding-top: 0px !important;
    }


    #menu {
        margin-bottom: 15px;
    }

    .racecard_fieldset {
        border: 1px solid gainsboro;
        padding: 0.35em 0.1em 0em;
        margin: 1px;
        box-shadow: none;
        font-size: 14px;
    }


    .racecardheader_container {
        border-radius: 5px;
        margin-top: 0px;
        margin-right: 6px;
        margin-left: 10px;
        margin-bottom: 12px;
    }

    #displayRaceCard {
        box-shadow: 0 1rem 1rem aliceblue;
        margin-top: -2px;
    }

    .viewmoreruns {
        margin-bottom: 5px;
        text-align: end;
        margin-right: 5px;
        font-size: 12px;
    }

    .h2hdiv {
        padding-top: 10px;

        margin-bottom: 0px;
        box-shadow: none;
    }

    .h2hdiv_table tbody {
        font-size: 13.5px;
    }

    .h2hdiv_header {
        font-size: 12.5px;
        display: flex;
        gap: 5px;
        background-color: #1e73be;
        color: white;
        padding: 3px;

    }

    .h2hdiv_table {
        overflow-x: scroll;

        margin-top: -1px;
        background-color: white;
    }

    .h2hdiv_table td:nth-child(1) {
        background-color: white !important;
        position: -webkit-sticky;
        position: sticky;

        min-width: 33px !important;
        max-width: 37px !important;
        left: -0.01px;
        letter-spacing: -1px;

    }

    .h2hdiv_table td:nth-child(2) {
        background-color: white !important;
        position: -webkit-sticky;
        position: sticky;
        min-width: 150px !important;
        max-width: 200px !important;
        left: 35px;
    }

    .h2hdiv_table td:nth-child(3) {
        background-color: white !important;
        position: -webkit-sticky;
        position: sticky;
        min-width: 35px !important;
        max-width: 40px !important;
        left: 184px;
        border-right: 1px solid black;

    }

    .circle-text {
        font: 0.8rem "arial" !important;
    }

    .timeline .line1 {
        gap: 1px;
    }

    .timeline .line1 div:nth-child(1) {
        flex: 0 0 32%;
        display: flex;
    }

    .racecard-left {
        font-family: Roboto, sans-serif !important;
        word-spacing: 0px;
    }

    .w3-green-alternate {
        background-color: #fff !important;
        color: #4CAF50 !important;
    }

    .statblock div:nth-child(2) {
        display: block;
    }

    .statblock aside {
        box-shadow: none;
    }

    .statblock .ba {
        /* border: 1px solid whitesmoke; */
        border: none;
    }

    .statblock .br-5 {
        border-radius: 2px;
    }

    .statblock .h9 {
        opacity: 1;
        font-size: 11px;
        font-weight: 500;
        /* line-height: 6px; */
        padding-left: 3px !important;
    }

    .statblock .pv3 {
        padding: 0px !important;
        padding-left: 2px !important;
        padding-right: 8px !important;
    }

    .statblock .tc {
        text-align: left !important;
    }

    .td-container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    #panel_h2h th {
        padding: 0px;
        padding-left: 2px;

    }

    #panel_racecard {
        margin-right: 0px;
    }

    .ipredictor {
        margin: 2px;
        margin-top: 5px;
    }

    .td-container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .racecard_menutabbar {
        box-shadow: none !important;
    }


    .parent_panel {
        min-height: 100px !important;
    }

    /* .formguide-raceday-header {
        font-size: 1em;
    } */

    /* .formguide-raceday-header-blue {
        font-size: 1em;
    } */

    .td-racecard-roundedge {
        border: none !important;
    }

    .racecard_accordion {
        font-size: 15px;
        border-top: 1px solid floralwhite;
    }

    .horse_name {
        font-size: 16px;

        text-transform: uppercase;
    }

    .racecard_menu_tabitem,
    .racecard_menu_tabitem_AUS {
        padding: 4px 7px !important;
        margin-right: -1px !important;
        /* margin-bottom: 1px; */
        font-size: 14px !important;
    }

    #panel_h2h table {
        margin-bottom: 6px;
        margin-top: -1px;
    }

    #panel_h2h tr td {
        padding: 2;
    }

    #radio_h2h:checked~.parent_panel #panel_h2h {
        padding-top: 0px;
    }

    .parent_panel {
        padding: 0px !important;

    }

    .racecard-header-bold {
        font-size: 1rem !important;
    }

    .roboto-095 {
        font-size: 0.9em !important;
    }

    h6 {
        margin-bottom: 5px;
    }

    .circle-text {
        height: 15px !important;
        width: 20px !important;
    }

    .racecard_stats {
        margin: 0px;
        font-size: 12.5px;
        /* border-top: 1px solid gainsboro; */

        line-height: 1.5;
    }

    .racecard_stats fieldset {
        padding: 0.1em 0.3em 0em;
        border: 1px solid whitesmoke;
        margin-top: 3px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .racecard_previous5runs {
        margin: 0px;

        margin-top: 8px;
    }

    .racecard_previous5runs fieldset {
        background-color: white;
        padding: 0.1em 0em 0em;
        border: 1px solid whitesmoke;
        margin-top: 3px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .racecard_previous5runs .firstcol {
        flex: 0 0 12%;
        padding-left: 1px;
    }

    .timeline {
        margin: 0px;
        font-size: 12.5px;
    }

    .timeline .content {
        flex: 0 0 88%;
        border-left: none;
        padding-left: 0px;
    }

    .timeline .content:before {
        display: none;
        position: absolute;
        content: '';
        width: 6px;
        height: 6px;
        background-color: gainsboro;
        border-radius: 50%;
        /* left: -27px; */
        left: 10.5%;
        transition: .5s;
        top: 0px;
    }

    .timeline .li-row {
        gap: 2px;
        padding: 2px;
        padding-left: 2px;
        line-height: 16px;
        justify-content: center;
        display: flex;
    }

    .racecard_position {
        justify-content: end;
    }

    .racecard_position>div {
        padding: 0px;
        flex: 0 0 31.5%;
        padding-left: 2px;
        padding-right: 2px;
        letter-spacing: -1px;
    }

    .timeline ul li {
        box-shadow: none;
    }

    .timeline ul {
        margin-bottom: 5px;
    }

    .circle-text-racecard-mobile {
        padding-top: 0px !important;
        height: 1.5em !important;
    }

    .mobile_jockey {
        /* letter-spacing: -0.3px; */
    }

    .mobile_bet_number {
        flex: 0 1 5%;
        text-align: center;
        font-size: 25px;
        height: 45px;
    }



    /*accordion */
    .accordion_header:after {
        align-self: center;
        font-size: 15px;
        margin-top: -20px;
    }

    .accordion__title {
        padding: 0px;
        box-shadow: none;
    }

    .accordion-dark-grey {
        border-radius: 5px !important;
    }

    .accordion__item {
        box-shadow: none;
        border-bottom: 1px solid #efefef;
        margin-right: 0px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .accordion__content {
        margin: 0px;
        padding-left: 0px;
    }

    .accordion_header {
        display: flex;
        align-items: center;
        gap: 0px;
    }

    .accordion_header div:nth-child(1) {
        /*col1 */
        flex: 0 0 10%;
        text-align: center;
    }

    .accordion_header div:nth-child(1) img {
        border: 0px solid #ddd;
        height: 33px;
        margin-top: inherit;
    }

    .accordion_header div:nth-child(2) {
        /*col2 */
        flex: 0 1 6%;
        height: inherit;
        display: flex;
        flex-direction: column;

        font-size: 23px;

        text-align: center;

    }

    .accordion_header div:nth-child(2) div:nth-child(1) {
        flex: inherit;
        /*col2 */
        display: block;
        align-items: center;
        gap: 0px;
        font-size: 25px;

    }

    .accordion_header div:nth-child(2) div:nth-child(1) i {
        font-size: 12px;
        margin-left: 0px;
        margin-right: 0px;
        width: 3px;
    }

    .accordion_header div:nth-child(2) div:nth-child(2) {
        /*col2 below bet number */
        flex: inherit;
        display: block;
        font-size: 17px;
    }

    .accordion_header div:nth-child(2) div:nth-child(3) {
        /*col2 below bet number */
        flex: inherit;
        display: block;
        font-size: inherit;
    }

    .accordion_header div:nth-child(3) {
        /*col3 */
        flex: 1 0 3%;
        padding-left: 0px;
    }

    .accordion_header div:nth-child(4) {
        /*col3 */
        flex: 1 1 80%;
        padding-left: 0px;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) {
        /*col3  line1*/
        display: flex;
        gap: 5px;
        align-items: center;
        text-align: inherit;
    }


    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(1) {
        /*horsename and updown*/
        display: flex;
        flex: 1 0 auto;
        color: inherit;
        text-align: center;
        font-size: 16px;

        text-transform: uppercase;
    }


    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(1) div:nth-child(1) {
        /* horsename*/
        display: block;
        flex: 1 0 97%;
        color: inherit;
        text-align: left;
        font-size: inherit;
        font-weight: 600;

        text-transform: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(2) {
        /*barrier age rtg*/
        flex: 0 1 77%;
        display: flex;
        align-items: center;
        gap: 2px;
        flex-direction: inherit;

        font-size: 14px;

        height: inherit;
        text-align: inherit;
        text-transform: inherit;
        margin-top: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(2) div:nth-child(1) {
        /*barrier */
        flex: 1 0 auto;
        display: block;
        color: inherit;
        text-align: inherit;
        font-size: 15px;
        margin-right: 2px;
        text-transform: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(2) div:nth-child(2) {
        /*age*/
        flex: 1 0 auto;
        display: block;
        align-items: inherit;
        gap: inherit;

        margin-top: inherit;
        font-size: inherit;

        height: inherit;
        text-align: left;
        text-transform: inherit;
        letter-spacing: -1px;
    }

    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(2) div:nth-child(4) {
        /*age*/
        flex: 0 1 80%;
        display: block;
        align-items: inherit;
        gap: inherit;

        margin-top: inherit;
        font-size: 13px;

        height: inherit;
        text-align: end;
        text-transform: inherit;
    }


    .accordion_header div:nth-child(4) div:nth-child(1) div:nth-child(3) {
        flex: 0 1 80%;
        text-align: end;

        display: block;
        gap: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) {
        /*col3  line2*/
        margin-top: -3px;
        font-size: 15px;

        align-items: self-start;
        display: block;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) {
        display: flex;
        gap: 5px;

    }


    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) div:nth-child(1) {
        /*trainer*/
        flex: 1 0 auto;
        display: block;
        align-items: inherit;
        gap: inherit;

        height: inherit;
        text-align: inherit;
        gap: 0px;
        font-size: 14px;
        text-transform: none;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) div:nth-child(2) {
        /*jockey*/
        flex: 0 1 66%;
        text-align: inherit;

        display: inherit;
        margin-top: inherit;
        gap: 0px;
        font-size: 14px;
    }

    .accordion_header div:nth-child(4) div:nth-child(2) div:nth-child(1) div:nth-child(3) b {}

    .accordion_header div:nth-child(4) div:nth-child(3) {
        /*line3*/
        margin-top: -3px;
        font-size: 15px;

        padding-left: 0px;
    }

    .accordion_header div:nth-child(4) div:nth-child(3) div:nth-child(1) {
        /*col3 line3 item1*/
        display: flex;
        gap: 0px;
        align-items: inherit;
        text-align: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(3) div:nth-child(1) div:nth-child(1) {
        /*col3 line3 item1 item1*/
        flex: 0 1 0%;
        display: block;
        gap: inherit;
        align-items: inherit;
        text-align: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(3) div:nth-child(1) div:nth-child(2) {
        /*career*/
        /*col3 line3 item1 item2*/
        flex: 1 0 auto;
        display: inherit;
        align-items: inherit;
        gap: inherit;
        font-size: 14px;

        height: inherit;
        text-align: inherit;
        text-transform: inherit;
        margin-top: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(3) div:nth-child(1) div:nth-child(3) {
        /*last 10 and arrow*/
        /*col3 line3 item1 item3*/
        flex: 0 1 66%;
        display: flex;
        text-align: inherit;

        margin-top: inherit;
        font-size: inherit;

        padding-left: inherit;
    }

    .accordion_header div:nth-child(4) div:nth-child(3) div:nth-child(1) div:nth-child(3) div:nth-child(1) {
        /*col3 line3 item1 item3*/
        /*last 10 */
        flex: 0 0 90%;
        display: block;

        align-items: inherit;
        text-align: inherit;
        font-size: 14px;
    }

    .accordion_header div:nth-child(4) div:nth-child(3) div:nth-child(1) div:nth-child(3) div:nth-child(2) {
        /*col3 line3 item1 item3*/
        /*arrow */
        margin-left: auto;
        color: #ff6d6d;
        margin-right: 5px;
        flex: inherit;
        display: block;
        text-align: end;
        font-size: inherit;
    }

    /* This class will be applied to the whole child-panel content */
    .child-panel {
        position: relative;
        overflow: hidden;
        /* Ensures content stays within bounds of the container */
    }

    /* The overlay that covers the content when restricted */
    .restricted-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(5px);
        /* Apply blur effect */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
        /* Ensure it appears on top of the content */
    }

    .restricted-overlay.pastperf {
        position: relative;
    }

    .restricted-overlay.pastperf .restricted-message {
        position: absolute;
        z-index: 9;
    }

    .restricted-overlay.pastperf .racecard_previous5runs {
        width: 100%;
        filter: blur(5px);
    }

    /* The message box */
    .restricted-message {
        text-align: center;
        color: #fff;
        background-color: #1e73be;
        /* background for the message */
        padding: 10px;
        border-radius: 8px;
        font-size: 15px;
        box-shadow: 0 0.25rem 0.25rem 0.125rem rgba(57, 147, 213, 0.1), 0 0.375rem 0.75rem -0.125rem rgba(57, 147, 213, 0.4);
    }

    .td-page-content .restricted-message p {
        color: #ffffff;
        margin-bottom: 15px;
        font-family: "Roboto", Helvetica, Arial, sans-serif;
    }

    .td-page-content .restricted-message p:last-child {
        margin-bottom: 0px;
    }

    .restricted-message .fa-lock:before {
        content: "\f023";
    }

    /* Link styling within the message */
    .restricted-message a {
        color: #FFFFFF;
        text-decoration: none;
        font-weight: 700;
    }

    .restricted-message strong {
        color: #FFFFFF;
    }

    .restricted-message a.rgs-btn {
        background: lightseagreen;
        padding: 10px;
        border-radius: 5px;
        filter: drop-shadow(0px 3px 5px #222222);
    }

    .restricted-message a.lg-btn {
        text-decoration: underline;
    }

    .restricted-message a:hover {
        box-shadow: 0 0.25rem 0.25rem 0.125rem rgba(57, 147, 213, 0.1), 0 0.375rem 0.75rem -0.125rem rgba(57, 147, 213, 0.4);
        color: #FFF200;
    }

    .restricted-message a.rs-btn {
        background: #222222;
        padding: 5px 8px;
        border-radius: 5px;
        margin-top: 5px;
    }

    .restricted-message p .sm-txt {
        font-size: 12px;
        background: transparent;
    }

    .restricted-message p .sm-txt {
        font-size: 12px;
        background: transparent;
    }

    @media (max-width: 480px) {

        .racecard_menu_tabitem,
        .racecard_menu_tabitem_AUS {
            font-size: 12px !important;
        }
    }

}