body[style="boss"] {
    background-color: #e1edf2;
    padding-bottom: 0;
 
}

body[style="boss"] .page_title{
    font-size: 4vw;
    line-height: 8vw;
    position: relative;
    color: #1f5079;
    font-weight: bold;
    text-align: center;
}
body[style="boss"] .top {
    display: flex !important;
    justify-content: center;
    padding: 6px;
    background: linear-gradient(0.25turn, #ffffff00, #ffffffff, #ffffff00);
    border-bottom: none;
}

body[style="boss"] .top .page-menu-item {
	display:block;
}

body[style="boss"] .top .logo,
body[style="boss"] .top .title{
display:none;
}
body[style="boss"] .top .page-menu-item div{
    padding: 5px 31px 4px;
    border-radius: 10px;
    font-size: 4vw;
    color: #0075a9;
    font-weight: bold;
}

body[style="boss"] .page_title {
display:block;
}
body[style="boss"] .top .page-menu-item div.active{
    background-color: #ff9933;
    color:#fff;
}
body[style="boss"][session="Jockey"] .top .page-menu-item div.Jockey{
    background-color: #ff9933;
    color:#fff;
}
body[style="boss"][session="Stable"] .top .page-menu-item div.Stable{
    background-color: #ff9933;
    color:#fff;
}

body[style="boss"] header.header{
    background-color: #fff;
    justify-content: space-around;
    border-bottom: none;
    padding-top: 2vw;
    border-radius: 5vw 5vw 0 0;
}
body[style="boss"] header a{
    width: 25%;
    /* max-width: 25%; */
}

body[style="boss"] .header-ctn {
    background-size: 100% auto;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    background-color: #70c2ca;
    padding-top: 5vw;
    border-radius: 5vw;
}



body[style="boss"] header div{
    color: #809eb5;
    font-weight: 600;
    font-size: 3.5vw;
    padding: 3vw 0;
    position: relative;
    height: auto;
}

body[style="boss"] header div.active{
    color: #000;
    background: transparent;
}

body[style="boss"] header div.active::after{
    content: ' ';
    height: 4px;
    width: 100%;
    background-color: #ff9933;
    border-radius: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
}
body[style="boss"] table tr td{
    border: none;
}
body[style="boss"] table thead tr{
    background: #d9d9d9;
    font-size: 3.5vw;
    font-weight: bold;
    color: #666666;
}

body[style="boss"]:not([page="odd"]) table :not(thead) tr:not(.thead):nth-child(odd),
body[style="boss"] .jockeyItem:nth-child(odd)  {
    background-color: #fbfbfb !important;
}

body[style="boss"] table tr.matchItemDetailHeader, body[style="boss"] table tr.matchItemDetail:last-of-type {
    border-bottom: 2px solid #0075a9;
}
body[style="boss"] table :not(thead) tr:nth-child(even){
    background: #f5f5f5;
}

body[style="boss"] .jockeyItem:nth-child(even) {
    background: #fff;
}

body[style="boss"][page="season"] table tr td.date img, body[style="boss"][page="season_detail"] img[src="img/more_down.png"], body[style="boss"][page="season_detail"] img[src="img/more_up.png"],body[style="boss"][page="odd"] img[src="img/more_down.png"], body[style="boss"][page="odd"] img[src="img/more_up.png"]{
    display: none;
}

.pastdtl{
    border: none;
    background-color: #e1edf2;
}
.pastdtl.win{
    border: none;
    background-color: #f3dcdc;
    color: #e60819;
}

body[style="boss"][page="season_detail"] .content_table thead tr td:last-of-type,
body[style="boss"][page="season_detail"] .content_table tr.matchItem td:last-of-type
{
    padding-right: 35px;
    position: relative;
}
body[style="boss"] table tr td.jockey div span.status{
    background-color: #ff9933;
    color: #000;
    font-weight: bold;
}
body[style="boss"][page="season"] table tr td.date{
    position: relative;
}
body[style="boss"][page="season"] table tr td.date::after,
body[style="boss"][page="season_detail"] .content_table tr.matchItem td:last-of-type:after,
body[style="boss"][page="odd"] table tbody[other="true"] tr:first-child td:first-child > div::after{
    content: ' ';
    display: block;
    position: absolute;
    top: 4px;
    bottom: 0;
    right: 3px;
    height: 10px;
    width: 10px;
    border-right: 3px solid #0075a9;
    border-bottom: 3px solid #0075a9;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
body[style="boss"][page="season"] table tr td.date::after{
    top: 14px;
    transform: rotate(315deg);
    -webkit-transform: rotate(315deg);
}

body[style="boss"][page="season_detail"] .content_table tr.matchItem.open td:last-of-type:after,
body[style="boss"][page="odd"] table tbody[other="true"].show-detail tr:first-child td:first-child > div::after{
    top: 13px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

body[style="boss"][page="odd"] table tbody[other="true"] tr:first-child td:first-child > div::after {
    position: relative;
    margin-top: -15px;
    margin-left: 13px;
}
body[style="boss"][page="odd"] table tbody:nth-child(even) {
    background-color:#f5f5f5;
}
body[style="boss"][page="odd"] table tbody:nth-child(odd) {
    background-color:#fbfbfb;
}
body[style="boss"][page="odd"] table tbody[other="true"] tr:not(:first-child), body[style="boss"][page="odd"] table tbody[other="true"] tr:nth-child(even):not(:first-child) {
    background-color:#f5f5f5;
}

.backCTN{
    display: none;
}
.backPage{
    position: absolute;
    top: 5px;
    left: 5%;
    display: block;
    background-image: url(https://racing.on.cc/inapp/inappracerecords/img/btn_prev.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 25px;
    height: 25px;
    background-size: 25px;
    transform: rotate(0);
    margin-left: 0;
    border-right: none;
    border-bottom: none;
}

body[style="boss"] .nav{
    background-color: #0075a9 !important;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}
body[style="boss"] .racing_date_title{
    padding: 8px 10px 8px 10px;
    background-color: transparent;
    color: #fff;
    border-radius: 0;
    min-width: 0;
}

body[style="boss"] .racing_date{
    width: 128%;
    margin-left: -26%;
}


.racing_date_title .arrow {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    transform: translateX(10px);
    -webkit-transform: translateX(10px);
    margin-bottom: 2px;
}

body[style="boss"] table tr td{
    padding: 7px 5px;
    line-height: 1.0em;
}

body[style="boss"] table :not(thead) tr.matchItemDetailHeader{
    background: #666666;
    font-size: 3.5vw;
    font-weight: bold;
    color: #d9d9d9; 
    border-bottom: none;
}

body[style="boss"] .jockeyItem .bar .headertag {
    background-image: url(./arrow_blue02_L.png);
}

body[style="boss"] .jockeyItem .bar .tailtag {
    background-image: url(./arrow_blue02.png);
}

body[style="boss"].appview .top {
    display: flex;
}

body[page="statistics"][style="boss"] table tbody tr.thead:first-child{
    background: #666666;
    font-size: 3.5vw;
    font-weight: bold;
    color: #d9d9d9; 
}

body[page="statistics"][style="boss"] table tbody tr.thead:first-child td:first-child{
    background: #d9d9d9;
    font-size: 3.5vw;
    font-weight: bold;
    color: #666666; 
}

body[page="statistics"][style="boss"] table tbody tr.thead:nth-child(2){
    background: #bdbdbd;
    font-size: 3.5vw;
    font-weight: bold;
    color: #666666; 
}

body[page="statistics"][style="boss"] table .matchItem .jockey .jockeyName {
    background-color: #70c2ca;
    color: #fff;
}

body[page="statistics"][style="boss"] .chartTitle{
    background-color: #e1edf2;
    color: #444444;
}

.chart-ctn{
    background-color: #fff;
}

 .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
       
        z-index: 9999; /* Ensure it's on top of everything */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Styling for the loading animation */
    .loader {
        border: 4px solid rgba(0, 0, 0, 0.3); /* Light border */
        border-top: 4px solid #ffffff; /* White top border */
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite; /* Animation for spinning effect */
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
	