@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,400;0,500;0,600;0,700;0,900;1,400&display=swap');

:root {
  --sidebar-width: 250px;
--row-height: 44px;
--border: 1px solid #e5e7eb;
--header-bg: #f8fafc;
--row-bg: #ffffff;
--row-alt-bg: #f9fafb;
--accent: #2563eb;
--col-width: 120px; /* Fixed width for each column */
}

body {
  font-family: "Poppins", sans-serif;
  xfont-family: 'Roboto', sans-serif;
  xfont-family: 'Source Sans Pro', sans-serif;
  xfont-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 14px;
  margin: 0px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  overscroll-behavior: none;
  line-height: 1.5em;
}

table {
  border-collapse: collapse;
  background: #fff;
  width: 100%;
}
.table-bordered {
  border-color: #fff !important;
}

th, td {
  xborder: 0px solid #eee;
  font-size: .8em; 
  padding: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

table table th, table table td {
  font-size: .7em;
  padding: .25em .75em;
}

sup {
  font-size: 0.7em;
  margin-left: 3px;
  top: -.3em;
  vertical-align: super;
}

.page-content {
  display: flex;
  flex-flow: column;
  gap: 1em;
  xwidth: 90%;
  margin: auto;
}
@media (max-width: 768px) {
  .page-content {
    width: auto;
  }
}

.layout-sidebar > .layout-main {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.toolbar {
  background: #dddddd;
  flex:0 0 100%;
  padding: .5em;
}

.well.login-box {
  background-color:#fff!important;
  border-radius:5px;
  border:#d1d1d1 solid 1px;
  margin:0 auto;
  padding: 15px;
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
}
.well.login-box legend {
  font-size:26px;
  text-align:center;
  font-weight:300;
}
.well.login-box label {
  font-size:14px;

}
.well.login-box input[type="text"] {
  box-shadow:none;
  border-color:#ddd;
  border-radius:0;
}

.well.welcome-text{
  font-size:21px;
}

/* Notifications */

.notification{
  position:fixed;
  top: 20px;
  right:0;
  background-color:#FF4136;
  padding: 20px;
  color: #fff;
  font-size:21px;
  display:none;
}
.notification-success{
  background-color:#3D9970;
}

.notification-show{
  display:block!important;
}

/*Loged in*/
.btn-default {
  color: #333;
  background-color: #f9f9f9;
  border-color: #ccc;
  border: 1px solid;
  text-align: center;
  cursor: pointer;
  color: #5e5e5e;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fefefe), color-stop(100%, #f9f9f9)), #f9f9f9;
  background: -moz-linear-gradient(#fefefe, #f9f9f9), #f9f9f9;
  background: -webkit-linear-gradient(#fefefe, #f9f9f9), #f9f9f9;
  background: linear-gradient(#fefefe, #f9f9f9), #f9f9f9;
  border-color: #c3c3c3 #c3c3c3 #bebebe;
  -moz-box-shadow: rgba(0, 0, 0, 0.06) 0 1px 0, rgba(255, 255, 255, 0.1) 0 1px 0 0 inset;
  -webkit-box-shadow: rgba(0, 0, 0, 0.06) 0 1px 0, rgba(255, 255, 255, 0.1) 0 1px 0 0 inset;
  box-shadow: rgba(0, 0, 0, 0.06) 0 1px 0, rgba(255, 255, 255, 0.1) 0 1px 0 0 inset;
}

.navbar-brand {
	padding: 0px;
}

.type-logo-small {
	background-color: #030369;
	color: #fff;
	margin-right: 10px;
	padding: 15px 12px;
	font-weight: bold;
	float: left;
}
.type-logo-full {
	overflow: hidden;
	font-weight: 600;
	padding: 3px 0px;
	font-size: 24px;
}
.type-logo-full span {
	display: block;
	font-size: 10px;
	font-style: italic;
	text-align: right;
	font-weight: 400;
	position: relative;
	top: -3px;
}

.cta-register {
	margin-bottom: 25px;
}
.cta-register a {
	background-color: #239248;
	color: #fff;
	display: inline-block;
	padding: 10px 25px;
	font-size: 15px;
	font-weight: bold;
	border-radius: 5px;
	width: 100%;
	max-width: 320px;
}

.introPromo {
	font-weight: 600;
	margin-bottom: 50px;
}

.login-main-content {
	position: relative;
}

.login header {
    background: #ccd5ed;
}
.login .navbar-brand {
	margin: 15px 0px;
}


.grid-header {
	background-color: #ccc;
	border-radius: 0px;
	margin: 15px 0px;
}
.card:first-child {
	margin-top: 0;
}
.card-top {
	font-weight: bold;
	padding: 10px 15px;
}
.card-body {
	background-color: #fff;
	padding: 0px;
}
.card-row {
	padding: 6px;
}


.admin-alert {
	background-color: #b5b5b5;
	text-align: center;
}

.message-alert {
	background-color: #e02626;
	text-align: center;
}
.message-alert .card-top {
	color: #fff;
}

#loginform {
	margin-top: 11px;
}

.main {
	padding: 75px 0px 25px 0px;
	position: relative;
}
.main-wrapper {
	height: 175px;
	position: absolute;
	top: 0px;
	right: 0px;
	left: 0px;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ccd5ed+0,7db9e8+100&1+0,0+100 */
	background: -moz-linear-gradient(top, rgba(204,213,237,1) 0%, rgba(125,185,232,0) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, rgba(204,213,237,1) 0%,rgba(125,185,232,0) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, rgba(204,213,237,1) 0%,rgba(125,185,232,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ccd5ed', endColorstr='#007db9e8',GradientType=0 ); /* IE6-9 */
}

.myHorses span img {
	float: left;
}
.myHorses .reduced {
	display: none;
}


.navbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.header {
  background: #fff;
  box-shadow: 0 5px 20px rgb(0 0 0 / 10%);
  display: block;
  height: 58px;
  margin-bottom: 0;
  padding: 0;
  position: fixed;
  -webkit-transition: all .2s ease;
  -o-transition: all .2s ease;
  transition: all .2s ease;
  width: calc(100% - 250px);
  z-index: 800;
}
.main-content {
  background-color: #e8e8e8;
	padding: 85px 40px 40px;
	min-height: calc(100vh - 50px);
}
footer {
	padding: 30px;
}

.header .header-container .nav-left, .header .header-container .nav-right {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    position: relative;
}
.header .header-container .nav-left {
    float: left;
    margin-left: 15px;
}
.header .header-container .nav-right {
    float: right;
    margin-right: 15px;
}
.header .header-container .nav-left, .header .header-container .nav-right {
    list-style: none;
}
.header .header-container .nav-left > li, .header .header-container .nav-right ul > li {
    float: left;
}
/*.header .header-container .nav-right > li:after {
	content: "|";
	float: left;
}*/
.header .header-container .nav-left > li > a, .header .header-container .nav-right ul > li > a,
.header .header-container .nav-left > li > span, .header .header-container .nav-right ul > li > span {
    color: #01080a;
    display: block;
    line-height: 58px;
    min-height: 58px;
    padding: 0 15px;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

svg:not(:root).svg-inline--fa {
    overflow: visible;
}
.svg-inline--fa.fa-w-14 {
    width: .875em;
}
svg:not(:root) {
    overflow: hidden;
}
.svg-inline--fa {
	color: #01080a;
  display: inline-block;
  font-size: inherit;
  height: 1em;
  overflow: visible;
  vertical-align: -.125em;
}

#sidebarCollapse {
	background-color: transparent;
	border: none;
	margin: 10px 0px;
}

.sidebar-logo .mobile-toggle {
    display: none;
    float: right;
    font-size: 18px;
    line-height: 64px;
}
.sidebar-logo .mobile-toggle a {
    color: #72777a;
}
.sidebar-logo a {
    display: inline-block;
    width: 100%;
}

.footer {
	background-color: #000;
	color: #fff;
	padding: 1em;
	text-align: center;
}


/*
    DEMO STYLE
*/

p {
    font-size: 1.1em;
    line-height: 1.7em;
    color: #333;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 0px;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

i,
span {
    display: inline-block;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
  background-color: #fbfbfb;
}
.wrapper.active .sidebar {
  min-width: 80px;
  max-width: 80px;
  text-align: center;
}
.wrapper.active .page-container {
  padding-left: 80px;
}
.active .header {
  width: calc(100% - 70px);
}
.wrapper.active .sidebar-header img {
  display: none;
}
.wrapper .sidebar-header span {
  display: none;
  background-color: #01080a;
  color: #fff;
  border-radius: 5px;
  font-size: 1.5em;
 }
.wrapper.active .sidebar-header span {
  display: block;
}

.sidebar {
	background-color: #0c420c; /* #0c6887 */
	xborder-right: 1px solid #ccc;
	bottom: 0;
	overflow: hidden;
	position: fixed;
	top: 0;
	-webkit-transition: all .2s ease;
	-o-transition: all .2s ease;
	transition: all .2s ease;
	width: var(--sidebar-width);
	z-index: 1000;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}
@media (max-width: 767.98px) {
    :is([data-layout=vertical],[data-layout=semibox]) .sidebar {
        margin-left: -100%;
        padding: 10px 0 20px 0;
    }
}

/*.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #020268;
    color: #fff;
    transition: all 0.3s;
}*/

/*.sidebar.active {
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}*/

.sidebar.active .sidebar-header h3,
.sidebar.active .CTAs {
    display: none;
}

.sidebar.active ul li a {
  padding: 20px 10px;
  text-align: center;
  font-size: 0.85em;
}

.sidebar.active ul li a i {
  margin-right: 0;
  display: block;
  font-size: 1.8em;
  margin-bottom: 5px;
}

.sidebar.active ul ul a {
  padding: 10px !important;
}

.sidebar.active .dropdown-toggle::after {
  top: auto;
  bottom: 10px;
  right: 50%;
  -webkit-transform: translateX(50%);
  -ms-transform: translateX(50%);
  transform: translateX(50%);
}

.sidebar .sidebar-header {
  padding: 1em .5em 1em .5em;
}

.sidebar ul.components {
  /*padding: 20px 0;*/
	overflow: auto;
	height: 100%;
}

.sidebar ul li a {
  display: block;
  color: #fff;
  padding: .75em 1em;
  text-align: left;
}
.sidebar ul li a:hover {
    color: #fff;
    background: #01080a;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar ul li.active>a,
.sidebar ul li.active>a[aria-expanded="true"] {
    background: #01080a;
    color: #fff;
}

.sidebar ul ul a {
  background: #a9c3a9;;
	color: #000;
  font-size: 12px;
  padding-left: 1.25em;
  padding-right: 1.25em;
  line-height: 32px;
}

a[data-toggle="collapse"],
a[data-bs-toggle="collapse"] {
    position: relative;
}

.active .sidebar ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.75em !important;
}
.active .sidebar .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}
.active .sidebar ul ul a {
    padding: 10px !important;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}


ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

.page-container {
	min-height: 100vh;
	/*padding-left: 250px;*/
	-webkit-transition: all .2s ease;
	-o-transition: all .2s ease;
	transition: all .2s ease;
}

@media (min-width: 768px) {
    .page-container {
        padding-left: var(--sidebar-width);
    }
}

.test {
  margin: 5px 0; display: flex; flex-direction: row; justify-content: space-between;
}

@media (max-width: 980px) {

.test {
  flex-direction: column;
}

  .gridView-responsive {
    display: block;
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .divtable .th.sticky {
    position: sticky;
    left: 0;
    z-index: 3;
    max-width: 120px;
    -webkit-box-shadow: 2px 0px 2px -2px #000000;
    box-shadow: 2px 0px 2px -2px #000000;
    background:#333333;
  }
  .divtable .td.sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    max-width: 120px;
    background-color: #fff;
    -webkit-box-shadow: 2px 0px 2px -2px #000000;
    box-shadow: 2px 0px 2px -2px #000000;
  }
  /*.divtable .tr:nth-child(2n+3) .td.sticky {background: #f1f1f1}*/

  .sticky {
  left: 0px;
  position: sticky;
  z-index: 1;
  background-color: #fff;
  border-right: 1px solid #747678;
  }

  html:not(.backstop) div, html:not(.backstop) span {
    scroll-margin: 2.5em 0 0 0;
    scroll-snap-margin: 2.5em 0 0 0;
  }
  .table_container {
    overflow: hidden;
  }
  .table_container_inner {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  .table_container_inner:after {
    background-repeat: repeat-y;
    content: "";
    height: 100%;
    position: absolute;
    right: -0.0625rem;
    top: 0;
    width: 1.25rem;

    background-image: -webkit-gradient(linear,right top,left top,color-stop(30%,rgba(133,130,140,.3)),to(rgba(223,223,232,.1)));
    background-image: -webkit-linear-gradient(right,rgba(133,130,140,.3) 30%,rgba(223,223,232,.1));
    background-image: -o-linear-gradient(right,rgba(133,130,140,.3) 30%,rgba(223,223,232,.1));
    background-image: linear-gradient(to left,rgba(133,130,140,.3) 30%,rgba(223,223,232,.1));
  }
  .table_container_inner {
    xwidth: 980px;
  }

}



.font-1 {font-size: 1em;}
.font-2 {font-size: 1.1em;}
.font-3 {font-size: 1.2em;}

.gridView-heading {
  font-size: 1.25em;
  padding: 0px 10px 15px 7px;
}
.gridView-heading span {
  font-weight: bold;
  text-transform: uppercase;
}
.gridView {

}

.content-frame {
  background-color: #fff;
  padding: 15px;
  max-width: 1200px;
  margin: auto;
  border-radius: 5px;
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.15);
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.15);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.15);
}

.divtable {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 15px;
  margin-bottom: 1em;
  padding: 1em;
}

.divtable .tr.headings,
.card-body .tr.headings {
  background:#333333;
  color: #fff;
  xpadding:.5rem;
}
.divtable .tr {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  width: 100%;
  clear: both;
  xbackground-color: #fff;
  border-bottom: 1px solid #ddd;
}
.divtable .tr.body:hover {
  background: #f1f1f1;
}
.divtable .tr:nth-child(even) {background: #f1f1f1}
.divtable .bg_even {background: #f1f1f1}
.divtable .th, .divtable .td {
  /*padding: 0.5rem 0.5rem;*/
  padding: 8px 6px;
  float: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.divtable .th { font-weight: normal; }

.divtable .number {
  text-align: right;
}

.divtable .miscPanel {
  background-color: #ddd;
  padding: 10px 0px;
  position: relative;
  -webkit-box-shadow: inset 0px -3px 4px -4px #000000;
  box-shadow: inset 0px -3px 4px -4px #000000;
}
.divtable .miscPanel:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  clear: both;
}
.divtable .miscPanel .heading {
  color: #b93535;
  font-size: 14px;
  font-weight: 700;
  margin: 0px;
  padding: 5px 10px;
  text-transform: uppercase;
}
.divtable .miscPanel .item {
  background-color: #fff;
  padding: .5em;
  margin: 10px;
}
.divtable .miscPanel span {
  font-weight: bold;
}
.divtable .miscPanel-grid {
  display: flex;
}

.divtable .mobile {
  display: none;
}

.inner {
  display: flex;
  flex-flow: column;
}
.inner > div {
  display: flex;
  justify-content: space-evenly;
  border-bottom: 1px solid #ddd;
}

.accordion-xs .tr {
  display: table;
}

@media (max-width: 600px) {
  .divtable .mobile {
    display: block;
  }
}

/* UI Kit Overrides */
.uk-table th {
  background-color: #ccc;
  color: #000;
  padding: 10px;
}
.uk-table td {
  font-size: 15px;
  padding: 7px 10px;
}

/* Tag Styles */
.tag-grid-wrapper {
  background: #fff;
  border: 1px solid #dedede;
  margin-bottom: 1em;
  padding: 1em;
  xmax-width: 350px;
  width: 100%;

  position: relative;
  right: 0;
  top: 0;
  /* height: 100%; */
  z-index: 1000;
}
.tag-grid-container {
  display: flex;
  flex-flow: row wrap;
  gap: 1em;
  margin: .75em 0;
}
.tag-container h4 {
  font-weight: bold;
}
#tagListPlayer > div,
#tagListQuick > div {
  display: flex;
}
#tagListPlayer > div a,
#tagListQuick > div a,
.temp-tag-grid a {
  background: #f5f5f5;
  border: 1px solid #c3c3c3;
  border-radius: 999em; /* "pill hack" */
  font-size: .75em;
  padding: .25em 1em;
  line-height: normal;
  display: flex;
  justify-content: center;
  cursor: pointer;
}
#tagListPlayer > div a:hover,
#tagListQuick > div a:hover,
.temp-tag-grid a:hover {
  background: #0c420c;
  color: #fff !important;
}

.temp-tag-container {
  display: flex;
  flex-direction: row;
  gap: 1em;
}
.temp-tag-container div {
  display: flex;
}

.temp-tag-grid {
  border: 1px solid #ccc;
  padding: .5em .75em;
}
.temp-tag-grid > .label {
  font-weight: bold;
  margin-bottom: .75em;
}
.temp-tag-grid .selected {
  background: #0c420c;
  color: #fff !important;
}

.d-table .hiddenRow {
    padding: 0 !important;
}

/* UI Kit Modal */
.uk-modal-dialog {
  width: 980px;
  min-height: 40vw;
}



/* Jockey Silk Colors - Background and Text Color Combinations */

.jockeysilk_colors_0 {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
}

.jockeysilk_colors_1 {
    background-color: #FF0000;
    color: #ffffff;
    font-weight: bold;
}

.jockeysilk_colors_2 {
    background-color: #FFFFFF;
    color: #000000;
    font-weight: bold;
}

.jockeysilk_colors_3 {
    background-color: #0000FF;
    color: #ffffff;
    font-weight: bold;
}

.jockeysilk_colors_4 {
    background-color: #FFFF00;
    color: #000000;
    font-weight: bold;
}

.jockeysilk_colors_5 {
    background-color: #006600;
    color: #ffffff;
    font-weight: bold;
}

.jockeysilk_colors_6 {
    background-color: #000000;
    color: #ffff00;
    font-weight: bold;
}

.jockeysilk_colors_7 {
    background-color: #FF3300;
    color: #000000;
    font-weight: bold;
}

.jockeysilk_colors_8 {
    background-color: #FF6699;
    color: #000000;
    font-weight: bold;
}

.jockeysilk_colors_9 {
    background-color: #0099CC;
    color: #000000;
    font-weight: bold;
}

.jockeysilk_colors_10 {
    background-color: #663399;
    color: #ffffff;
    font-weight: bold;
}

.jockeysilk_colors_11 {
    background-color: #999999;
    color: #990000;
    font-weight: bold;
}

.jockeysilk_colors_12 {
    background-color: #00FF00;
    color: #000000;
    font-weight: bold;
}

.jockeysilk_colors_13 {
    background-color: #660000;
    color: #ffffff;
    font-weight: bold;
}

.jockeysilk_colors_14 {
    background-color: #999999;
    color: #ffff00;
    font-weight: bold;
}

.jockeysilk_colors_15 {
    background-color: #99FFFF;
    color: #000000;
    font-weight: bold;
}

.jockeysilk_colors_16 {
    background-color: #99CCFF;
    color: #990000;
    font-weight: bold;
}

.jockeysilk_colors_17 {
    background-color: #000033;
    color: #ffffff;
    font-weight: bold;
}

.jockeysilk_colors_18 {
    background-color: #000000;
    color: #ffff00;
    font-weight: bold;
}

.jockeysilk_colors_19 {
    background-color: #000099;
    color: #ff0000;
    font-weight: bold;
}

.jockeysilk_colors_20 {
    background-color: #FF0066;
    color: #ffff00;
    font-weight: bold;
}




 
    .surf_dirt-mkw {
    background-color: rgb(255, 223, 0);
    color: black;
    }
    .surf_dirtoff-mkw {
    background-color: rgb(159, 159, 0);
    color: black;
    }.surf_turf-mkw {
    background-color: rgb(79, 255, 127);
    color: black;
    }.surf_turfoff-mkw {
    background-color: rgb(0, 207, 79);
    color: black;
    }.surf_poly-mkw {
    background-color: rgb(127,127,255);
    color: black;
    }.surf_polyoff-mkw {
    background-color: rgb(79,79, 207);
    color: black;
    }

        .surf_dirt-box {
            display: inline-block;
            background-color: #423203ff;
            color: #eeeeee;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        .surf_dirtoff-box {
            display: inline-block;
            background-color: #423203ff;
            color: #eeeeee;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }

        .surf_turf-box {
            display: inline-block;
            background-color: #1a4203ff;
            color: #eeeeee;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        .surf_turfoff-box {
            display: inline-block;
            background-color: #1a4203ff;
            color: #eeeeee;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }

        .surf_poly-box {
            display: inline-block;
            background-color: #1f0342ff;
            color: #eeeeee;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        .surf_polyoff-box {
            display: inline-block;
            background-color: #1f0342ff;
            color: #eeeeee;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }




        .sex-box {
            display: inline-block;
            background-color: #663399;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        .sex-M-box {
            display: inline-block;
            background-color: #777bf8ff;
            color: #333333;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        .sex-F-box {
            display: inline-block;
            background-color: #f897d9ff;
            color: #333333;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }
	
        		.pp-box {
            display: inline-block;
 
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        
		.age-box {
            display: inline-block;
            background-color: #669966;
            color: #000000;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }

        .sex-box {
            display: inline-block;
            background-color: #ff9999;
            color: #000000;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }

        .surf-box {
            display: inline-block;
            background-color: #cc9900;
            color: #000000;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        }

     .race-box {
            display: inline-block;
            background-color: #663399;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            margin-bottom: 2px;
        } 

        /* Stable Horse List Styles - Properly Prefixed */

.stable_horse_list_body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.stable_horse_list_container {
    max-width: 1600px;
    margin: 0 auto;
}

.stable_horse_list_header {
    background: linear-gradient(to bottom, #90EE90, #7CCD7C);
    border: 3px solid #228B22;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stable_horse_list_header h1 {
    margin: 0;
    font-size: 24px;
    color: #000;
}

.stable_horse_list_header_info {
    font-size: 14px;
    font-weight: bold;
}

.stable_horse_list_table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stable_horse_list_table th {
    background-color: #E8E8D0;
    padding: 8px 6px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #999;
    border-right: 1px solid #ccc;
    font-size: 13px;
}

.stable_horse_list_table td {
    padding: 8px 6px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #eee;
    font-size: 12px;
}

.stable_horse_list_table tr:hover {
    background-color: #f9f9f9;
}

.stable_horse_list_horse_name {
    color: #006400;
    font-weight: bold;
}

.stable_horse_list_badges {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.stable_horse_list_badge {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    border: 1px solid #000;
}

.stable_horse_list_badge_gp { 
    background-color: #FFD700; 
    color: black; 
}

.stable_horse_list_badge_sw { 
    background-color: #4169E1; 
}

.stable_horse_list_badge_250 { 
    background-color: #228B22; 
}

.stable_horse_list_badge_100 { 
    background-color: #228B22; 
}

.stable_horse_list_badge_500 { 
    background-color: #8B4513; 
}

.stable_horse_list_badge_gm { 
    background-color: #C0C0C0; 
    color: #000; 
}

.stable_horse_list_badge_star { 
    background-color: #FFD700; 
    color: #000; 
}

.stable_horse_list_badge_1m { 
    background-color: #4169E1; 
}

.stable_horse_list_status_active {
    color: #228B22;
    font-weight: bold;
}

.stable_horse_list_status_inactive {
    color: #999;
}

.stable_horse_list_money {
    text-align: right;
    font-weight: bold;
}

.stable_horse_list_center {
    text-align: center;
}

.stable_horse_list_right {
    text-align: right;
}

/* Expand/Collapse functionality */
.stable_horse_list_expand_toggle {
    cursor: pointer;
    color: #0066cc;
    font-weight: bold;
    user-select: none;
    display: none;
    padding: 4px 8px;
}

.stable_horse_list_expand_toggle:hover {
    color: #004499;
}

.stable_horse_list_expanded_info {
    display: none;
    padding: 12px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    grid-column: 1 / -1;
}

.stable_horse_list_expanded_info.stable_horse_list_show {
    display: block;
}

.stable_horse_list_expanded_row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.stable_horse_list_expanded_item {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.stable_horse_list_expanded_label {
    font-weight: 600;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stable_horse_list_expanded_value {
    font-size: 0.95rem;
}

/* Responsive column hiding - Progressive disclosure */
@media (max-width: 1400px) {
    .stable_horse_list_col_p,
    .stable_horse_list_col_s {
        display: none;
    }
    .stable_horse_list_expand_toggle {
        display: inline-block;
    }
}

@media (max-width: 1300px) {
    .stable_horse_list_col_bred {
        display: none;
    }
}

@media (max-width: 1200px) {
    .stable_horse_list_col_r {
        display: none;
    }
}

@media (max-width: 1100px) {
    .stable_horse_list_col_itm {
        display: none;
    }
}

@media (max-width: 1000px) {
    .stable_horse_list_col_usd {
        display: none;
    }
}

@media (max-width: 900px) {
    .stable_horse_list_col_w {
        display: none;
    }
}

@media (max-width: 800px) {
    .stable_horse_list_col_badges {
        display: none;
    }
}

@media (max-width: 700px) {
    .stable_horse_list_col_sex {
        display: none;
    }
}

@media (max-width: 650px) {
    .stable_horse_list_col_age {
        display: none;
    }
}

@media (max-width: 600px) {
    .stable_horse_list_col_last {
        display: none;
    }
}

@media (max-width: 550px) {
    .stable_horse_list_col_quick {
        display: none;
    }
}

@media (max-width: 500px) {
    .stable_horse_list_col_status {
        display: none;
    }
}

/* Extra small screens - final adjustments */
@media (max-width: 400px) {
    .stable_horse_list_table {
        font-size: 11px;
    }
    
    .stable_horse_list_table th,
    .stable_horse_list_table td {
        padding: 6px 4px;
    }
    
    .stable_horse_list_horse_name {
        font-size: 12px;
    }
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #dbdbdb #0c420c;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 16px;
  }

  *::-webkit-scrollbar-track {
    background: #0c420c;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #dbdbdb;
    border-radius: 10px;
    border: 3px solid #ffffff;
  }

.mobile-sticky-footer {
  display: none;
}

@media (max-width: 600px) {
  .mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    will-change: transform;
    transform: translateZ(0);
    display: flex;
    justify-content: center;
    height: 50px;
    box-shadow: 0 -2px 5px -2px #333;
    background-color: #fff;
  }
  .mobile-sticky-footer .nav {
    display: flex;
    justify-content: center;
    gap: 2em;
  }
  .mobile-sticky-footer .nav div {
    flex-grow: 1;
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .mobile-sticky-footer .nav div img {
    height: 20px;
    width: 100%;
  }
}


   .racesdrawn_body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #C8D5C8;
        }

        .racesdrawn_container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .racesdrawn_header {
            background: linear-gradient(to bottom, #90EE90, #7CCD7C);
            border: 3px solid #228B22;
            border-radius: 8px;
            padding: 15px 20px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .racesdrawn_header h1 {
            margin: 0;
            font-size: 24px;
            color: #000;
        }

        .racesdrawn_header_info {
            font-size: 14px;
            font-weight: bold;
        }

        .racesdrawn_info_box {
            background-color: #f5f5f5;
            padding: 15px 20px;
            border-radius: 5px;
            margin-bottom: 20px;
        }

        .racesdrawn_info_row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .racesdrawn_info_left {
            font-weight: bold;
        }

        .racesdrawn_info_right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .racesdrawn_weather_icons {
            display: flex;
            gap: 5px;
        }

        .racesdrawn_weather_icon {
            width: 30px;
            height: 30px;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
        }

        .racesdrawn_icon_blue { background-color: #4169E1; color: white; }
        .racesdrawn_icon_yellow { background-color: #FFD700; color: black; }
        .racesdrawn_icon_black { background-color: #000; color: white; }
        .racesdrawn_icon_teal { background-color: #008B8B; color: white; }
        .racesdrawn_icon_purple { background-color: #800080; color: white; }

        .racesdrawn_race_title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .racesdrawn_race_details {
            font-size: 14px;
            margin-bottom: 5px;
        }

        .racesdrawn_race_conditions {
            font-size: 13px;
            margin-bottom: 10px;
        }

        .racesdrawn_status_row {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            margin-top: 10px;
            align-items: center;
        }

        .racesdrawn_status_icon {
            width: 24px;
            height: 24px;
            background-color: #00FF00;
            border: 2px solid #000;
            border-radius: 3px;
            display: inline-block;
            margin-left: 10px;
            vertical-align: middle;
        }

        .racesdrawn_table {
            width: 100%;
            background-color: white;
            border-collapse: collapse;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .racesdrawn_table th {
            background-color: #E8E8D0;
            padding: 8px 6px;
            text-align: left;
            font-weight: bold;
            border-bottom: 2px solid #999;
            border-right: 1px solid #ccc;
            font-size: 13px;
        }

        .racesdrawn_table td {
            padding: 8px 6px;
            border-bottom: 0px solid #ddd;
            border-right: 0px solid #eee;
            font-size: 12px;
        }

        .racesdrawn_table tr:hover {
            background-color: #f9f9f9;
        }

        .racesdrawn_post_position {
            background-color: #FF0000;
            color: white;
            font-weight: bold;
            text-align: center;
            min-width: 25px;
        }

        .racesdrawn_post_position.racesdrawn_pp_1 { background-color: #FF0000; }
        .racesdrawn_post_position.racesdrawn_pp_2 { background-color: #FFFFFF; color: #000; }
        .racesdrawn_post_position.racesdrawn_pp_3 { background-color: #0000FF; }
        .racesdrawn_post_position.racesdrawn_pp_4 { background-color: #FFFF00; color: #000; }
        .racesdrawn_post_position.racesdrawn_pp_5 { background-color: #00FF00; color: #000; }
        .racesdrawn_post_position.racesdrawn_pp_6 { background-color: #000000; }
        .racesdrawn_post_position.racesdrawn_pp_7 { background-color: #FFA500; }
        .racesdrawn_post_position.racesdrawn_pp_8 { background-color: #FFC0CB; color: #000; }
        .racesdrawn_post_position.racesdrawn_pp_9 { background-color: #00FFFF; color: #000; }
        .racesdrawn_post_position.racesdrawn_pp_10 { background-color: #800080; }
        .racesdrawn_post_position.racesdrawn_pp_11 { background-color: #808080; }
        .racesdrawn_post_position.racesdrawn_pp_12 { background-color: #90EE90; color: #000; }
        .racesdrawn_post_position.racesdrawn_pp_13 { background-color: #8B4513; }
        .racesdrawn_post_position.racesdrawn_pp_14 { background-color: #FFD700; color: #000; }

        .racesdrawn_horse_name {
            color: #006400;
            font-weight: bold;
        }

        .racesdrawn_owner_name {
            color: #0000FF;
        }

        .racesdrawn_badges {
            display: flex;
            gap: 2px;
            flex-wrap: wrap;
        }

        .racesdrawn_badge {
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: bold;
            color: white;
            border: 1px solid #000;
        }

        .racesdrawn_badge_gp { background-color: #FFD700; color: black; }
        .racesdrawn_badge_sw { background-color: #4169E1; }
        .racesdrawn_badge_250 { background-color: #228B22; }
        .racesdrawn_badge_100 { background-color: #228B22; }
        .racesdrawn_badge_500 { background-color: #8B4513; }
        .racesdrawn_badge_gm { background-color: #C0C0C0; color: #000; }
        .racesdrawn_badge_star { background-color: #FFD700; color: #000; }
        .racesdrawn_badge_1m { background-color: #4169E1; }

        .racesdrawn_capper_icon {
            width: 25px;
            height: 22px;
            border-radius: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
            border: 2px solid #000;
        }

        .racesdrawn_capper_d { background-color: #000; color: #FFD700; }
        .racesdrawn_capper_r { background-color: #FF0000; color: #FFF; }

        .racesdrawn_capper_cell {
            display: flex;
            gap: 3px;
            align-items: center;
        }

        .racesdrawn_dollar {
            color: #228B22;
            font-size: 16px;
        }

        /* Responsive Design */
        @media (max-width: 1400px) {
            .racesdrawn_col_jockey { display: none; }
        }

        @media (max-width: 1300px) {
            .racesdrawn_col_bred { display: none; }
        }

        @media (max-width: 1200px) {
            .racesdrawn_col_owner { display: none; }
        }

        @media (max-width: 1100px) {
            .racesdrawn_col_usd { display: none;  text-align:right; }
        }

        @media (max-width: 1000px) {
            .racesdrawn_col_badges { display: none; }
        }

        @media (max-width: 900px) {
            .racesdrawn_col_im { display: none; }
        }

        @media (max-width: 850px) {
            .racesdrawn_col_sire { display: none; }
        }

        @media (max-width: 800px) {
            .racesdrawn_col_r { display: none; }
        }

        @media (max-width: 750px) {
            .racesdrawn_col_w { display: none; }
        }

        @media (max-width: 700px) {
            .racesdrawn_col_as { display: none; }
        }

        @media (max-width: 650px) {
            .racesdrawn_col_epnt { display: none; }
        }

        @media (max-width: 600px) {
            .racesdrawn_col_odds { display: none; text-align:right;}
        }

        @media (max-width: 550px) {
            .racesdrawn_col_capper { display: none; }
        }



    
        .race_upcoming_entries_body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .race_upcoming_entries_container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .race_upcoming_entries_header {
            background: linear-gradient(to bottom, #90EE90, #7CCD7C);
            border: 3px solid #228B22;
            border-radius: 8px;
            padding: 15px 20px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .race_upcoming_entries_header h1 {
            margin: 0;
            font-size: 24px;
            color: #000;
        }

        .race_upcoming_entries_header_info {
            font-size: 14px;
            font-weight: bold;
        }

        .race_upcoming_entries_info_box {
            background-color: #E8E8D0;
            padding: 15px 20px;
            border-radius: 5px;
            margin-bottom: 20px;
        }

        .race_upcoming_entries_info_row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .race_upcoming_entries_info_left {
            font-weight: bold;
        }

        .race_upcoming_entries_info_right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .race_upcoming_entries_weather_icons {
            display: flex;
            gap: 5px;
        }

        .race_upcoming_entries_weather_icon {
            width: 30px;
            height: 30px;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
        }

        .race_upcoming_entries_icon_blue { background-color: #4169E1; color: white; }
        .race_upcoming_entries_icon_yellow { background-color: #FFD700; color: black; }
        .race_upcoming_entries_icon_black { background-color: #000; color: white; }
        .race_upcoming_entries_icon_teal { background-color: #008B8B; color: white; }
        .race_upcoming_entries_icon_purple { background-color: #800080; color: white; }

        .race_upcoming_entries_race_title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .race_upcoming_entries_race_details {
            font-size: 14px;
            margin-bottom: 5px;
        }

        .race_upcoming_entries_race_conditions {
            font-size: 13px;
            margin-bottom: 10px;
        }

        .race_upcoming_entries_status_row {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            margin-top: 10px;
        }

        .race_upcoming_entries_table {
            width: 100%;
            background-color: white;
            border-collapse: collapse;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .race_upcoming_entries_table th {
            background-color: #E8E8D0;
            padding: 10px 8px;
            text-align: left;
            font-weight: bold;
            border-bottom: 0px solid #ccc;
            font-size: 14px;
        }

        .race_upcoming_entries_table td {
            padding: 10px 8px;
            border-bottom: 0px solid #ddd;
            font-size: 13px;
        }

        .race_upcoming_entries_table tr:hover {
            background-color: #f9f9f9;
        }

        .race_upcoming_entries_horse_name {
            color: #006400;
            font-weight: bold;
        }

        .race_upcoming_entries_badges {
            display: flex;
            gap: 3px;
        }

        .race_upcoming_entries_badge {
            padding: 3px 6px;
            border-radius: 3px;
            font-size: 11px;
            font-weight: bold;
            color: white;
        }

        .race_upcoming_entries_badge_gp { background-color: #FFD700; color: black; }
        .race_upcoming_entries_badge_sw { background-color: #4169E1; }
        .race_upcoming_entries_badge_250 { background-color: #228B22; }
        .race_upcoming_entries_badge_100 { background-color: #228B22; }

        .race_upcoming_entries_capper_icon {
            width: 30px;
            height: 25px;
            border-radius: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 16px;
            border: 2px solid #000;
        }

        .race_upcoming_entries_capper_d { background-color: #000; color: #FFD700; }
        .race_upcoming_entries_capper_t { background-color: #FFD700; color: #000; }

        .race_upcoming_entries_capper_cell {
            display: flex;
            gap: 3px;
            align-items: center;
        }

        .race_upcoming_entries_dollar {
            color: #228B22;
            font-size: 18px;
        }

        .race_upcoming_entries_scratched_section {
            margin-top: 20px;
        }

        .race_upcoming_entries_scratched_header {
            background-color: #E8E8D0;
            padding: 10px;
            text-align: center;
            font-weight: bold;
            border-top: 2px solid #ccc;
            border-bottom: 2px solid #ccc;
        }

        .race_upcoming_entries_scratched_row {
            background-color: #f0f0f0;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .race_upcoming_entries_col_notes { display: none; }
        }

        @media (min-width: 1200px) {
            .race_upcoming_entries_col_more { display: none; }
        }

        @media (max-width: 1100px) {
            .race_upcoming_entries_col_bred { display: none; }
        }

        @media (max-width: 1000px) {
            .race_upcoming_entries_col_owner { display: none; }
        }

        @media (max-width: 900px) {
            .race_upcoming_entries_col_usd { display: none; text-align:right;  }
        }

        @media (max-width: 800px) {
            .race_upcoming_entries_col_badges { display: none; }
        }

        @media (max-width: 700px) {
            .race_upcoming_entries_col_im { display: none; }
        }

        @media (max-width: 600px) {
            .race_upcoming_entries_col_r { display: none; }
        }

        @media (max-width: 550px) {
            .race_upcoming_entries_col_w { display: none; }
        }

        @media (max-width: 500px) {
            .race_upcoming_entries_col_as { display: none; }
        }

        @media (max-width: 450px) {
            .race_upcoming_entries_col_epnt { display: none; }
        }

        @media (max-width: 400px) {
            .race_upcoming_entries_col_capper { display: none; }
        }



        .raceresults_bot_body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .raceresults_bot_container {
            max-width: 1600px;
            margin: 0 auto;
        }

        .raceresults_bot_table {
            width: 100%;
            background-color: white;
            border-collapse: collapse;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .raceresults_bot_table th {
            background-color: #E8E8D0;
            padding: 8px 6px;
            text-align: left;
            font-weight: bold;
            border-bottom: 2px solid #999;
            border-right: 1px solid #ccc;
            font-size: 13px;
        }

        .raceresults_bot_table td {
            padding: 8px 6px;
            border-bottom: 1px solid #ddd;
            border-right: 1px solid #eee;
            font-size: 12px;
        }

        .raceresults_bot_table tr:hover {
            background-color: #f9f9f9;
        }

        .raceresults_bot_post_position {
            background-color: #FF0000;
            color: white;
            font-weight: bold;
            text-align: center;
            min-width: 30px;
        }

        .raceresults_bot_post_position.raceresults_bot_pp_1 { background-color: #FF0000; }
        .raceresults_bot_post_position.raceresults_bot_pp_2 { background-color: #FFFFFF; color: #000; border: 1px solid #000; }
        .raceresults_bot_post_position.raceresults_bot_pp_3 { background-color: #0000FF; }
        .raceresults_bot_post_position.raceresults_bot_pp_4 { background-color: #FFFF00; color: #000; }
        .raceresults_bot_post_position.raceresults_bot_pp_5 { background-color: #00FF00; color: #000; }
        .raceresults_bot_post_position.raceresults_bot_pp_6 { background-color: #000000; }
        .raceresults_bot_post_position.raceresults_bot_pp_7 { background-color: #FFA500; }
        .raceresults_bot_post_position.raceresults_bot_pp_8 { background-color: #FFC0CB; color: #000; }

        .raceresults_bot_horse_name {
            color: #006400;
            font-weight: bold;
        }

        .raceresults_bot_owner_name {
            color: #0000FF;
        }

        .raceresults_bot_sp_cell {
            font-weight: bold;
        }

        .raceresults_bot_sp_superscript {
            font-size: 10px;
            vertical-align: super;
        }

        .raceresults_bot_badges {
            display: flex;
            gap: 2px;
            flex-wrap: wrap;
        }

        .raceresults_bot_badge {
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: bold;
            color: white;
            border: 1px solid #000;
            display: inline-block;
        }

        .raceresults_bot_badge_gp { background-color: #FFD700; color: black; }
        .raceresults_bot_badge_sw { background-color: #4169E1; }
        .raceresults_bot_badge_500 { background-color: #8B4513; }
        .raceresults_bot_badge_gm { background-color: #C0C0C0; color: #000; }
        .raceresults_bot_badge_star { background-color: #FFD700; color: #000; }
        .raceresults_bot_badge_250 { background-color: #228B22; }

        /* Responsive Design */
        @media (max-width: 1400px) {
            .raceresults_bot_col_jockey { display: none; }
        }

        @media (max-width: 1300px) {
            .raceresults_bot_col_bred { display: none; }
        }

        @media (max-width: 1200px) {
            .raceresults_bot_col_badges { display: none; }
        }

        @media (max-width: 1100px) {
            .raceresults_bot_col_2nd { display: none; }
        }

        @media (max-width: 1000px) {
            .raceresults_bot_col_3rd { display: none; }
        }

        @media (max-width: 900px) {
            .raceresults_bot_col_1st { display: none; }
        }

        @media (max-width: 800px) {
            .raceresults_bot_col_owner { display: none; }
        }

        @media (max-width: 700px) {
            .raceresults_bot_col_as { display: none; }
        }

        @media (max-width: 600px) {
            .raceresults_bot_col_odds { display: none; text-align:right; }
        }
	
        .raceresults_top_body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .raceresults_top_container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .raceresults_top_header_section {
            background-color: #fff;
            padding: 15px 20px;
            margin-bottom: 10px;
            border-radius: 5px;
        }

        .raceresults_top_title_row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .raceresults_top_track_name {
            font-size: 20px;
            font-weight: bold;
            margin: 0;
        }

        .raceresults_top_datetime {
            font-size: 14px;
            margin: 5px 0;
        }

        .raceresults_top_weather_icons {
            display: flex;
            gap: 5px;
        }

        .raceresults_top_weather_icon {
            width: 30px;
            height: 30px;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 11px;
            color: white;
        }

        .raceresults_top_icon_g1 { background-color: #8B0000; }
        .raceresults_top_icon_r { background-color: #FFD700; color: #000; }
        .raceresults_top_icon_t { background-color: #006400; }
        .raceresults_top_icon_plus { background-color: #008B8B; }
        .raceresults_top_icon_op { background-color: #800080; }

        .raceresults_top_race_info {
            margin-top: 10px;
        }

        .raceresults_top_race_name {
            font-size: 18px;
            font-weight: bold;
            margin: 5px 0;
        }

        .raceresults_top_race_grade {
            font-size: 14px;
            margin: 3px 0;
        }

        .raceresults_top_race_restrictions {
            font-size: 13px;
            color: #666;
            margin: 3px 0;
        }

        .raceresults_top_race_distance {
            font-size: 13px;
            margin: 3px 0;
            display: flex;
            justify-content: space-between;
        }

        .raceresults_top_table {
            width: 100%;
            background-color: white;
            border-collapse: collapse;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-top: 10px;
        }

        .raceresults_top_table th {
            background-color: #E8E8E0;
            padding: 10px 8px;
            text-align: left;
            font-weight: bold;
            border-bottom: 2px solid #999;
            border-right: 1px solid #ccc;
            font-size: 14px;
        }

        .raceresults_top_table td {
            padding: 10px 8px;
            border-bottom: 1px solid #ddd;
            border-right: 1px solid #eee;
            font-size: 13px;
        }

        .raceresults_top_table tbody tr:nth-child(odd) {
            background-color: #f9f9f9;
        }

        .raceresults_top_table tbody tr:hover {
            background-color: #f0f0f0;
        }

        .raceresults_top_post_position {
            background-color: #FF0000;
            color: white;
            font-weight: bold;
            text-align: center;
            min-width: 30px;
        }

        .raceresults_top_post_position.raceresults_top_pp_1 { background-color: #FF0000; }
        .raceresults_top_post_position.raceresults_top_pp_8 { background-color: #FFC0CB; color: #000; }
        .raceresults_top_post_position.raceresults_top_pp_5 { background-color: #00FF00; color: #000; }

        .raceresults_top_horse_name {
            font-weight: bold;
        }

        .raceresults_top_stable_name {
            color: #0000FF;
        }

        .raceresults_top_money {
            color: #006400;
            font-weight: bold;
            text-align:right;
        }

        /* Responsive Design */
        @media (max-width: 900px) {
            .raceresults_top_col_stable { display: none; }
        }

        @media (max-width: 700px) {
            .raceresults_top_col_show { display: none; }
        }

        @media (max-width: 600px) {
            .raceresults_top_col_place { display: none; }
        }

        
/* stable entries start */

        .raceentries_page_container {
            font-family: Arial, sans-serif;
            max-width: 100%;
            margin: 0 auto;
            padding: 20px;
            background-color: #ffffff;
        }

        .raceentries_page_title {
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #000;
        }

        .raceentries_page_master-stable {
            text-align: center;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .raceentries_page_stable-name {
            font-weight: bold;
            color: #0066cc;
        }

        .raceentries_page_tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 10px;
            gap: 0;
        }

        .raceentries_page_tab {
            padding: 8px 20px;
            background-color: #fff;
            border: 1px solid #666;
            text-decoration: none;
            color: #0066cc;
            font-size: 13px;
            cursor: pointer;
        }

        .raceentries_page_tab:hover {
            background-color: #f0f0f0;
        }

        .raceentries_page_tab-active {
            background-color: #90ee90;
            color: #000;
            font-weight: bold;
        }

        .raceentries_page_table-wrapper {
            overflow-x: auto;
        }

        .raceentries_page_table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            background-color: #fff;
        }

        .raceentries_page_table thead {
            background-color: #228b22;
            color: #fff;
        }

        .raceentries_page_table th {
            padding: 8px 5px;
            text-align: center;
            font-weight: bold;
            border: none;
        }

        .raceentries_page_table td {
            padding: 8px 5px;
            border: none;
            text-align: center;
        }


        /* Post position styling */
        .raceentries_page_td-post {
            font-weight: bold;
            font-size: 16px;
        }


        /* Horse name styling */
        .raceentries_page_td-horse {
            font-weight: bold;
            text-align: left;
        }

        /* Type badges */
        .raceentries_page_type-mc {
            background-color: #0066cc;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            font-size: 11px;
        }

        .raceentries_page_type-c {
            background-color: #00aaaa;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            font-size: 11px;
        }

        /* Sex badges */
        .raceentries_page_sex-op {
            background-color: #0066cc;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            font-size: 11px;
        }

        /* Age badges */
        .raceentries_page_age-2 {
            background-color: #00aaaa;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            font-size: 11px;
        }

        /* Surface badges */
        .raceentries_page_surf-d {
            background-color: #8b4513;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: bold;
            font-size: 11px;
        }

        /* Action button */
        .raceentries_page_action-btn {
            background-color: #ffd700;
            border: 1px solid #daa520;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 16px;
            border-radius: 3px;
        }

        .raceentries_page_action-btn:hover {
            background-color: #ffed4e;
        }

        /* Responsive Design - Progressive column hiding */

        /* Show at 1200px */
        @media (min-width: 1200px) {
            .raceentries_page_th-more,
            .raceentries_page_td-more {
                display: none;
            }
        }


        @media (max-width: 1200px) {
            .raceentries_page_th-purse,
            .raceentries_page_td-purse {
                display: none;
            }
        }

        /* Hide Track at 1100px */
        @media (max-width: 1100px) {
            .raceentries_page_th-trk,
            .raceentries_page_td-trk {
                display: none;
            }
        }

        /* Hide Post at 1000px */
        @media (max-width: 1000px) {
            .raceentries_page_th-post,
            .raceentries_page_td-post {
                display: none;
            }
        }

        /* Hide Surf at 900px */
        @media (max-width: 900px) {
            .raceentries_page_th-surf,
            .raceentries_page_td-surf {
                display: none;
            }
        }

        /* Hide Age at 800px */
        @media (max-width: 800px) {
            .raceentries_page_th-age,
            .raceentries_page_td-age {
                display: none;
            }
        }

        /* Hide Cond at 700px */
        @media (max-width: 700px) {
            .raceentries_page_th-cond,
            .raceentries_page_td-cond {
                display: none;
            }
        }

        /* Hide Sex at 650px */
        @media (max-width: 650px) {
            .raceentries_page_th-sex,
            .raceentries_page_td-sex {
                display: none;
            }
        }

        /* Hide Dist at 600px */
        @media (max-width: 600px) {
            .raceentries_page_th-dist,
            .raceentries_page_td-dist {
                display: none;
            }
        }

        /* Hide M/L at 550px */
        @media (max-width: 550px) {
            .raceentries_page_th-ml,
            .raceentries_page_td-ml {
                display: none;
            }
        }

        /* Hide # at 500px */
        @media (max-width: 500px) {
            .raceentries_page_th-num,
            .raceentries_page_td-num {
                display: none;
            }
        }

        /* Hide Tag at 450px */
        @media (max-width: 450px) {
            .raceentries_page_th-tag,
            .raceentries_page_td-tag {
                display: none;
            }
        }

        /* Hide Type at 400px */
        @media (max-width: 400px) {
            .raceentries_page_th-type,
            .raceentries_page_td-type {
                display: none;
            }
            
            .raceentries_page_table {
                font-size: 12px;
            }
        }

        /* Mobile adjustments for remaining columns (Horse, C/R, Action) */
        @media (max-width: 350px) {
            .raceentries_page_table {
                font-size: 11px;
            }
            
            .raceentries_page_td-horse {
                font-size: 12px;
            }
            
            .raceentries_page_tabs {
                flex-wrap: wrap;
            }
            
            .raceentries_page_tab {
                font-size: 11px;
                padding: 6px 12px;
            }
        }

        /* Extra small screens */
        @media (max-width: 280px) {
            .raceentries_page_container {
                padding: 10px;
            }

            .raceentries_page_title {
                font-size: 18px;
            }

            .raceentries_page_master-stable {
                font-size: 12px;
            }

            .raceentries_page_table {
                font-size: 10px;
            }
            
            .raceentries_page_td-horse {
                font-size: 11px;
            }

            .raceentries_page_table th,
            .raceentries_page_table td {
                padding: 6px 3px;
            }
            
            .raceentries_page_tab {
                font-size: 10px;
                padding: 5px 8px;
            }

            .raceentries_page_action-btn {
                font-size: 14px;
                padding: 3px 6px;
            }
        }

        @media (max-width: 240px) {
            .raceentries_page_title {
                font-size: 16px;
                margin-bottom: 10px;
            }

            .raceentries_page_master-stable {
                font-size: 11px;
                margin-bottom: 10px;
            }

            .raceentries_page_table {
                font-size: 9px;
            }
            
            .raceentries_page_td-horse {
                font-size: 10px;
            }

            .raceentries_page_table th,
            .raceentries_page_table td {
                padding: 5px 2px;
            }

            .raceentries_page_tab {
                font-size: 9px;
                padding: 4px 6px;
            }

            .raceentries_page_action-btn {
                font-size: 12px;
                padding: 2px 4px;
            }
        }   
        
           .sirehotlist_body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .sirehotlist_container {
            max-width: 1600px;
            margin: 0 auto;
        }

        .sirehotlist_controls {
            background-color: white;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            border-radius: 5px;
        }

        .sirehotlist_controls_grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }

        .sirehotlist_control_group {
            display: flex;
            flex-direction: column;
        }

        .sirehotlist_control_label {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .sirehotlist_control_select {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 3px;
            font-size: 14px;
            background-color: white;
        }

        .sirehotlist_button_group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .sirehotlist_button {
            padding: 10px 20px;
            background-color: #2d5016;
            color: white;
            border: none;
            border-radius: 3px;
            font-weight: bold;
            cursor: pointer;
            font-size: 14px;
        }

        .sirehotlist_button:hover {
            background-color: #3d6816;
        }

        .sirehotlist_table {
            width: 100%;
            background-color: white;
            border-collapse: collapse;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .sirehotlist_table th {
            background-color: #E8E8D0;
            padding: 8px 6px;
            text-align: left;
            font-weight: bold;
            border-bottom: 2px solid #999;
            border-right: 1px solid #ccc;
            font-size: 13px;
        }

        .sirehotlist_table td {
            padding: 8px 6px;
            border-bottom: 1px solid #ddd;
            border-right: 1px solid #eee;
            font-size: 12px;
        }

        .sirehotlist_narrow_col {
            width: 50px;
            max-width: 50px;
        }

        .sirehotlist_center_col {
            text-align: center;
        }

        .sirehotlist_expand_col {
            width: 30px;
            text-align: center;
            cursor: pointer;
            color: #006400;
            font-weight: bold;
            user-select: none;
        }

        .sirehotlist_expand_col:hover {
            background-color: #e8e8d0;
        }

        .sirehotlist_detail_row {
            display: none;
            background-color: #f9f9f9;
        }

        .sirehotlist_detail_row.sirehotlist_show {
            display: table-row;
        }

        .sirehotlist_detail_cell {
            padding: 15px;
            border-bottom: 2px solid #999;
        }

        .sirehotlist_detail_content {
            font-size: 13px;
            color: #333;
        }

        .sirehotlist_detail_name {
            color: #006400;
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .sirehotlist_table tr:hover {
            background-color: #f9f9f9;
        }

        .sirehotlist_rank {
            text-align: center;
            font-weight: bold;
        }

        .sirehotlist_name {
            color: #006400;
            font-weight: bold;
        }

        .sirehotlist_cell_red {
            background-color: #FF0000;
            color: white;
            text-align: center;
            font-weight: bold;
        }

        .sirehotlist_cell_yellow {
            background-color: #FFFF00;
            color: black;
            text-align: center;
            font-weight: bold;
        }

        .sirehotlist_cell_green {
            background-color: #90EE90;
            color: black;
            text-align: center;
            font-weight: bold;
        }

        .sirehotlist_cell_plus {
            background-color: #90EE90;
            color: #006400;
            text-align: center;
            font-weight: bold;
        }

        .sirehotlist_right_col {
            text-align: right;
        }

        .sirehotlist_cell_minus {
            color: #FF0000;
            text-align: center;
            font-weight: bold;
        }

        .sirehotlist_toggle {
            display: none;
            margin-bottom: 10px;
        }

        .sirehotlist_toggle_button {
            width: 100%;
            padding: 12px;
            background-color: #2d5016;
            color: white;
            border: none;
            border-radius: 3px;
            font-weight: bold;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sirehotlist_toggle_icon {
            font-size: 18px;
        }

        .sirehotlist_controls_content {
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        /* Responsive Design */
        @media (max-width: 640px) {
            .sirehotlist_toggle {
                display: block;
            }

            .sirehotlist_controls_content {
                max-height: 0;
            }

            .sirehotlist_controls_content.sirehotlist_expanded {
                max-height: 1000px;
            }

            .sirehotlist_controls {
                padding: 10px;
            }

            .sirehotlist_controls_grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1100px) {
            .sirehotlist_col_rnrs { display: none; }
        }

        @media (max-width: 1000px) {
            .sirehotlist_col_rank { display: none; }
        }

        @media (max-width: 900px) {
            .sirehotlist_col_sr { display: none; }
        }

        @media (max-width: 800px) {
            .sirehotlist_col_dt { display: none; }
        }

/* stable entries  end */

/* Mobile-Friendly Responsive Styles for Horse Stable List */

        .stable_horse_list_expand_toggle {
        cursor: pointer;
        color: #0066cc;
        font-weight: bold;
        user-select: none;
        display: none;
        padding: 4px 8px;
        }

        .stable_horse_list_expand_toggle:hover {
        color: #004499;
        }

        .stable_horse_list_expanded_info {
        display: none;
        padding: 12px;
        background-color: #f8f9fa;
        border-top: 1px solid #dee2e6;
        grid-column: 1 / -1;
        }

        .stable_horse_list_expanded_info.stable_horse_list_show {
        display: block;
        }

        .stable_horse_list_expanded_row {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 8px;
        }

        .stable_horse_list_expanded_item {
        display: flex;
        flex-direction: column;
        min-width: 80px;
        }

        .stable_horse_list_expanded_label {
        font-weight: 600;
        font-size: 0.75rem;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 4px;
        }

        .stable_horse_list_expanded_value {
        font-size: 0.95rem;
        }

        /* Responsive column hiding */
        @media (max-width: 1400px) {
        .stable_horse_list_col_p,
        .stable_horse_list_col_s {
            display: none;
        }
        .stable_horse_list_expand_toggle {
            display: inline-block;
        }
        }

        @media (max-width: 1300px) {
        .stable_horse_list_col_bred {
            display: none;
        }
        }

        @media (max-width: 1200px) {
        .stable_horse_list_col_r {
            display: none;
        }
        }

        @media (max-width: 1100px) {
        .stable_horse_list_col_itm {
            display: none;
        }
        }

        @media (max-width: 1000px) {
        .stable_horse_list_col_usd {
            display: none;
        }
        }

        @media (max-width: 900px) {
        .stable_horse_list_col_w {
            display: none;
        }
        }

        @media (max-width: 800px) {
        .stable_horse_list_col_badges {
            display: none;
        }
        }

        @media (max-width: 700px) {
        .stable_horse_list_col_sex {
            display: none;
        }
        }

        @media (max-width: 650px) {
        .stable_horse_list_col_age {
            display: none;
        }
        }

        @media (max-width: 600px) {
        .stable_horse_list_col_last {
            display: none;
        }
        }

        @media (max-width: 550px) {
        .stable_horse_list_col_quick {
            display: none;
        }
        }

        @media (max-width: 500px) {
        .stable_horse_list_col_status {
            display: none;
        }
        }

        .claims_th-expand,
.claims_td-expand {
    display: none;
    width: 40px;
    text-align: center;
}

.claims_expand-header {
    font-size: 14px;
}

.claims_expand-btn {
    background-color: #0066cc;
    color: white;
    border: 1px solid #0052a3;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.claims_expand-btn:hover {
    background-color: #0052a3;
}

.claims_expand-btn.claims_expanded {
    transform: rotate(180deg);
}

.claims_detail-row {
    background-color: #f9f9f9;
}

.claims_detail-cell {
    padding: 15px !important;
}

.claims_detail-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.claims_detail-item {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.claims_detail-label {
    font-weight: bold;
    color: #228b22;
    font-size: 11px;
    margin-bottom: 4px;
}

.claims_detail-value {
    font-size: 13px;
    color: #333;
}

/* Show expand column when any column is hidden */
@media (max-width: 1200px) {
    .claims_th-expand,
    .claims_td-expand {
        display: table-cell;
    }
}

.jockey_detail_row {
  grid-column: 1 / -1;
  display: none;
  background-color: #f5f5f5;
  padding: 15px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.jockey_detail_row.jockey_show {
  display: block;
}


.stable_page_container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stable_page_header {
    background: linear-gradient(135deg, #1a7a1a 0%, #2d9b2d 100%);
    color: white;
    padding: 25px;
    border-radius: 8px 8px 0 0;
}

.stable_page_header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.stable_page_header_info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stable_page_info_card {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.stable_page_info_card.stable_page_clickable {
    cursor: pointer;
    transition: background 0.3s;
}

.stable_page_info_card.stable_page_clickable:hover {
    background: rgba(255,255,255,0.25);
}

.stable_page_info_label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stable_page_info_value {
    font-size: 18px;
    font-weight: bold;
}

.stable_page_credits {
    font-size: 24px;
    color: #ffd700;
}

.stable_page_credits_hidden {
    font-size: 14px;
    color: #ffd700;
}

.stable_page_status_inactive {
    color: #ff6b6b;
    font-weight: bold;
}

.stable_page_actions {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.stable_page_btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.stable_page_btn_primary {
    background: #1a7a1a;
    color: white;
}

.stable_page_btn_primary:hover {
    background: #145c14;
}

.stable_page_btn_secondary {
    background: #2d9b2d;
    color: white;
}

.stable_page_btn_secondary:hover {
    background: #247d24;
}

.stable_page_btn_settings {
    background: #666;
    color: white;
    margin-left: auto;
}

.stable_page_btn_settings:hover {
    background: #555;
}

.stable_page_content {
    padding: 25px;
}

.stable_page_section {
    margin-bottom: 30px;
}

.stable_page_section_title {
    font-size: 20px;
    color: #1a7a1a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a7a1a;
}

.stable_page_table_wrapper {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.stable_page_table {
    width: 100%;
    border-collapse: collapse;
}

.stable_page_table thead {
    background: #1a7a1a;
    color: white;
}

.stable_page_table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.stable_page_table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap;
}

.stable_page_table tbody tr:hover {
    background: #f9f9f9;
}

.stable_page_table tbody tr:last-child td {
    border-bottom: none;
}

.stable_page_expand_btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #1a7a1a;
    padding: 0 5px;
    transition: transform 0.3s;
    display: none;
}

.stable_page_expand_btn:hover {
    color: #2d9b2d;
}

.stable_page_expand_btn.stable_page_expanded {
    transform: rotate(180deg);
}

.stable_page_expand_col {
    display: none;
    width: 40px;
}

.stable_page_detail_row {
    display: none;
    background: #f0f8f0;
}

.stable_page_detail_row.stable_page_show {
    display: table-row;
}

.stable_page_detail_cell {
    padding: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.stable_page_detail_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stable_page_detail_item {
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.stable_page_detail_label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stable_page_detail_value {
    font-size: 14px;
    font-weight: 600;
    color: #1a7a1a;
}

/* RACING STATISTICS - Hide order: P&S (1st), Residency, A&I, W, ITM% (last) */
@media (max-width: 1200px) {
    .stable_page_racing_col_p,
    .stable_page_racing_col_s { display: none; }
    .stable_page_racing_expand_col { display: table-cell; }
    .stable_page_racing_expand_btn { display: inline-block; }
}

@media (max-width: 1100px) {
    .stable_page_racing_col_residency { display: none; }
}

@media (max-width: 1000px) {
    .stable_page_racing_col_a,
    .stable_page_racing_col_i { display: none; }
}

@media (max-width: 900px) {
    .stable_page_racing_col_w { display: none; }
}

@media (max-width: 800px) {
    .stable_page_racing_col_itm { display: none; }
}

/* FINANCIAL OVERVIEW - Hide order: +$5Max/Dy (1st), PndAuct, PndClm, PndPnt, USD (last) */
@media (max-width: 1200px) {
    .stable_page_fin_col_5max { display: none; }
    .stable_page_fin_expand_col { display: table-cell; }
    .stable_page_fin_expand_btn { display: inline-block; }
}

@media (max-width: 1100px) {
    .stable_page_fin_col_pndauct { display: none; }
}

@media (max-width: 1000px) {
    .stable_page_fin_col_pndclm { display: none; }
}

@media (max-width: 900px) {
    .stable_page_fin_col_pndpnt { display: none; }
}

@media (max-width: 800px) {
    .stable_page_fin_col_usd { display: none; }
}

.stable_page_settings_panel {
    display: none;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.stable_page_settings_panel.stable_page_active {
    display: block;
}

.stable_page_form_group {
    margin-bottom: 20px;
}

.stable_page_form_label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.stable_page_form_input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.stable_page_form_help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.stable_page_form_actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.stable_page_note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 13px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .stable_page_header {
        padding: 15px;
    }

    .stable_page_header h1 {
        font-size: 20px;
    }

    .stable_page_header_info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stable_page_info_card {
        padding: 10px;
    }

    .stable_page_info_value {
        font-size: 16px;
    }

    .stable_page_actions {
        padding: 15px;
    }

    .stable_page_btn_settings {
        margin-left: 0;
        width: 100%;
    }

    .stable_page_content {
        padding: 15px;
    }

    .stable_page_section_title {
        font-size: 18px;
    }

    .stable_page_table {
        font-size: 12px;
    }

    .stable_page_table th,
    .stable_page_table td {
        padding: 8px 6px;
    }

    .stable_page_settings_panel {
        padding: 15px;
    }

    .stable_page_form_input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stable_page_actions {
        flex-direction: column;
    }

    .stable_page_btn {
        width: 100%;
    }
}

  .breeding_scratch_container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .breeding_scratch_header {
            background: #228B22;
            color: white;
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .breeding_scratch_header_left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .breeding_scratch_close_btn {
            background: rgba(0, 0, 0, 0.2);
            border: none;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            transition: background 0.2s;
        }

        .breeding_scratch_close_btn:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        .breeding_scratch_stable {
            font-size: 16px;
            font-weight: 500;
        }

        .breeding_scratch_header_right {
            display: flex;
            gap: 20px;
            font-size: 14px;
        }

        .breeding_scratch_content {
            padding: 30px;
        }

        .breeding_scratch_info_section {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .breeding_scratch_info_grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .breeding_scratch_info_row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .breeding_scratch_info_item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .breeding_scratch_info_label {
            font-size: 12px;
            color: #666;
            text-transform: uppercase;
            font-weight: 600;
        }

        .breeding_scratch_info_value {
            font-size: 16px;
            color: #333;
            font-weight: 500;
        }

        .breeding_scratch_form_section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .breeding_scratch_field {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .breeding_scratch_field.breeding_scratch_hidden {
            display: none;
        }

        .breeding_scratch_field_label {
            font-size: 14px;
            color: #333;
            font-weight: 600;
        }

        .breeding_scratch_select,
        .breeding_scratch_input {
            padding: 10px 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.2s;
            background: white;
        }

        .breeding_scratch_select:focus,
        .breeding_scratch_input:focus {
            outline: none;
            border-color: #228B22;
        }

        .breeding_scratch_age_wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .breeding_scratch_age_select {
            width: 70px;
        }

        .breeding_scratch_age_note {
            font-size: 13px;
            color: #666;
            flex-basis: 100%;
        }

        .breeding_scratch_radio_group {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .breeding_scratch_radio_label {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-size: 14px;
        }

        .breeding_scratch_radio_label input[type="radio"] {
            cursor: pointer;
            width: 16px;
            height: 16px;
        }

        .breeding_scratch_error {
            color: #dc3545;
            font-size: 13px;
            margin-top: 4px;
            font-weight: 600;
        }

        .breeding_scratch_cost_section {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .breeding_scratch_cost_title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #333;
        }

        .breeding_scratch_cost_row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #e0e0e0;
            font-size: 14px;
        }

        .breeding_scratch_cost_row:last-child {
            border-bottom: none;
            font-weight: 600;
            margin-top: 5px;
        }

        .breeding_scratch_footer {
            background: #f9f9f9;
            padding: 20px 30px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            border-top: 1px solid #e0e0e0;
        }

        .breeding_scratch_footer_alert {
            background: #f8d7da;
            border: 2px solid #dc3545;
            color: #721c24;
            padding: 12px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            display: none;
        }

        .breeding_scratch_footer_alert.breeding_scratch_show {
            display: block;
        }

        .breeding_scratch_footer_content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .breeding_scratch_message {
            flex: 1;
            color: #333;
            font-size: 14px;
        }

        .breeding_scratch_breed_btn {
            background: #228B22;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }

        .breeding_scratch_breed_btn:hover {
            background: #1a6b1a;
        }

        .breeding_scratch_breed_btn:active {
            transform: scale(0.98);
        }

        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            .breeding_scratch_header {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            .breeding_scratch_header_right {
                width: 100%;
                justify-content: space-between;
            }

            .breeding_scratch_content {
                padding: 20px;
            }

            .breeding_scratch_form_section {
                grid-template-columns: 1fr;
            }

            .breeding_scratch_footer_content {
                flex-direction: column;
                align-items: stretch;
            }

            .breeding_scratch_breed_btn {
                width: 100%;
            }
        }

        @media (max-width: 600px) {
            .breeding_scratch_info_row {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0;
            }

            .breeding_scratch_container {
                border-radius: 0;
            }
        }


.hof_title{text-align:center;font-size:20px;font-weight:700;margin-bottom:20px;color:#2d5016;}

.hof_table_wrapper{background:white;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden;}
.hof_table_container{overflow-x:auto;}
.hof_table{width:100%;border-collapse:collapse;font-size:13px;}
.hof_table thead{background:linear-gradient(180deg,#2d5016,#1f3a0f);color:white;}
.hof_table th{padding:10px 12px;text-align:left;font-weight:600;font-size:12px;white-space:nowrap;}
.hof_table td{padding:10px 12px;vertical-align:middle;border-bottom:1px solid #e9ecef;}
.hof_table tbody tr:hover{background:#f8f9fa;}
.hof_table tbody tr:nth-child(4n+1){background:#ffffff;}
.hof_table tbody tr:nth-child(4n+3){background:#f9f9f9;}

.hof_horse_name{color:#0066cc;font-weight:600;cursor:pointer;}
.hof_owner_name{color:#28a745;cursor:pointer;}
.hof_expand_btn{background:#ffc107;border:none;padding:4px 10px;font-weight:bold;border-radius:4px;cursor:pointer;font-size:12px;}

.hof_hidden_row{display:none;background:#fff9e6;}
.hof_hidden_row.hof_show{display:table-row;}
.hof_hidden_row td{padding:15px 12px;border-bottom:1px solid #e9ecef;}

.hof_hidden_data{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px 20px;}
.hof_hidden_item{display:flex;gap:8px;}
.hof_hidden_label{font-weight:600;color:#6c757d;min-width:70px;}

.hof_badges{display:flex;gap:4px;align-items:center;flex-wrap:wrap;}
.hof_badge_icon{width:24px;height:24px;border-radius:3px;display:inline-block;}
.hof_badge_hof{background:linear-gradient(135deg,#8b4789,#4a2c88);border:2px solid gold;}
.hof_badge_star{background:linear-gradient(135deg,#ffd700,#ffed4e);border:2px solid #ff8c00;}
.hof_badge_1m{background:linear-gradient(135deg,#4169e1,#87ceeb);border:2px solid #000080;}
.hof_badge_1{background:#343a40;color:white;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:11px;}
.hof_badge_letter{background:#ffc107;color:#000;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:11px;}

.hof_best{font-size:11px;color:#6c757d;text-align:center;}

@media(max-width:800px){.hof_hide_800{display:none}}
@media(max-width:600px){.hof_hide_600{display:none}}



.ratings_filters{display:flex;gap:15px;margin-bottom:15px;flex-wrap:wrap;align-items:center;}
.ratings_filter_select{padding:8px 12px;border:1px solid #ced4da;border-radius:6px;font-size:14px;background:white;cursor:pointer;}
.ratings_update_btn{padding:8px 20px;border:none;background:#28a745;color:white;font-weight:600;border-radius:6px;cursor:pointer;font-size:14px;}
.ratings_update_btn:hover{background:#218838;}

.ratings_title{text-align:center;font-size:16px;font-weight:600;margin-bottom:10px;color:#495057;}
.ratings_subtitle{text-align:center;font-size:14px;color:#6c757d;margin-bottom:5px;}

.ratings_table_wrapper{background:white;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden;}
.ratings_table_container{overflow-x:auto;}
.ratings_table{width:100%;border-collapse:collapse;font-size:13px;}
.ratings_table thead{background:linear-gradient(180deg,#2d5016,#1f3a0f);color:white;}
.ratings_table th{padding:10px 8px;text-align:center;font-weight:600;font-size:12px;white-space:nowrap;}
.ratings_table td{padding:10px 8px;text-align:center;vertical-align:middle;border-bottom:1px solid #e9ecef;}
.ratings_table tbody tr:hover{background:#f8f9fa;}

.ratings_horse_name{color:#0066cc;font-weight:600;cursor:pointer;text-align:left;}
.ratings_expand_btn{background:#ffc107;border:none;padding:4px 10px;font-weight:bold;border-radius:4px;cursor:pointer;font-size:12px;}

.ratings_hidden_row{display:none;background:#fff9e6;}
.ratings_hidden_row.ratings_show{display:table-row;}
.ratings_hidden_row td{padding:15px 12px;border-bottom:1px solid #e9ecef;}

.ratings_hidden_data{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px 20px;}
.ratings_hidden_item{display:flex;gap:8px;justify-content:space-between;}
.ratings_hidden_label{font-weight:600;color:#6c757d;}
.ratings_hidden_value{color:#495057;}

.ratings_points{font-weight:700;color:#28a745;}

@media(max-width:1200px){.ratings_hide_1200{display:none}}
@media(max-width:1000px){.ratings_hide_1000{display:none}}
@media(max-width:800px){.ratings_hide_800{display:none}}
@media(max-width:600px){.ratings_hide_600{display:none}}
@media(max-width:400px){.ratings_hide_400{display:none}}



.pstats_title{text-align:center;font-size:18px;font-weight:700;margin-bottom:10px;color:#2d5016;}
.pstats_subtitle{text-align:center;font-size:12px;color:#6c757d;margin-bottom:15px;}

.pstats_filters_container{margin-bottom:15px;}
.pstats_filters_toggle{display:none;padding:10px 16px;background:#28a745;color:white;border:none;border-radius:6px;font-weight:600;cursor:pointer;margin-bottom:10px;width:100%;}
.pstats_filters_toggle:hover{background:#218838;}
.pstats_filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.pstats_filter_select{padding:6px 10px;border:1px solid #ced4da;border-radius:4px;font-size:13px;background:white;cursor:pointer;}
.pstats_update_btn{padding:6px 16px;border:none;background:#28a745;color:white;font-weight:600;border-radius:4px;cursor:pointer;font-size:13px;}
.pstats_update_btn:hover{background:#218838;}

.pstats_table_wrapper{background:white;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden;}
.pstats_table_container{overflow-x:auto;}
.pstats_table{width:100%;border-collapse:collapse;font-size:13px;}
.pstats_table thead{background:linear-gradient(180deg,#2d5016,#1f3a0f);color:white;}
.pstats_table th{padding:8px 10px;text-align:center;font-weight:600;font-size:11px;white-space:nowrap;border-right:1px solid rgba(255,255,255,0.1);}
.pstats_table th:first-child,
.pstats_table th:nth-child(2){text-align:left;}
.pstats_table th:last-child{border-right:none;background:transparent;width:40px;}
.pstats_table td{padding:8px 10px;vertical-align:middle;border-bottom:1px solid #e9ecef;text-align:center;}
.pstats_table td:first-child,
.pstats_table td:nth-child(2){text-align:left;}
.pstats_table tbody tr:hover{background:#f8f9fa;}
.pstats_table tbody tr:nth-child(2n){background:#f9f9f9;}

.pstats_master_name{color:#0066cc;font-weight:600;cursor:pointer;}
.pstats_rank{color:#6c757d;font-weight:600;}
.pstats_money{color:#28a745;font-weight:600;}
.pstats_expand_btn{background:#ffc107;border:none;padding:4px 10px;font-weight:bold;border-radius:4px;cursor:pointer;font-size:12px;}

.pstats_hidden_row{display:none;background:#fff9e6;}
.pstats_hidden_row.pstats_show{display:table-row;}
.pstats_hidden_row td{padding:15px 12px;border-bottom:1px solid #e9ecef;}

.pstats_hidden_data{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px 15px;}
.pstats_hidden_item{display:flex;gap:8px;justify-content:space-between;}
.pstats_hidden_label{font-weight:600;color:#6c757d;}
.pstats_hidden_value{color:#495057;}


@media(max-width:1200px){.pstats_hide_1200{display:none !important;}}
@media(max-width:1000px){.pstats_hide_1000{display:none !important;}}
@media(max-width:900px){.pstats_hide_900{display:none !important;}}
@media(max-width:800px){.pstats_hide_800{display:none !important;}}
@media(max-width:700px){.pstats_hide_700{display:none !important;}}
@media(max-width:600px){.pstats_hide_600{display:none !important;}}
@media(max-width:500px){.pstats_hide_500{display:none !important;}}

@media(max-width:700px){
  .pstats_filters_toggle{display:block;}
  .pstats_filters{display:none;padding:10px;background:#f8f9fa;border-radius:6px;}
  .pstats_filters.pstats_filters_open{display:flex;}
  .pstats_update_btn{width:100%;margin-top:10px;}
}


.watchlist_controls{display:flex;gap:10px;margin-bottom:15px;flex-wrap:wrap;}
.watchlist_btn{padding:10px 20px;border:none;cursor:pointer;font-size:14px;border-radius:6px;font-weight:500;background:white;color:#495057;box-shadow:0 1px 3px rgba(0,0,0,.1);}
.watchlist_btn:hover{background:#f8f9fa;}
.watchlist_btn.watchlist_active{background:#28a745;color:white;font-weight:600;}

.watchlist_table_wrapper{background:white;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden;}
.watchlist_table_container{overflow-x:auto;}
.watchlist_table{width:100%;border-collapse:collapse;font-size:13px;}
.watchlist_table thead{background:linear-gradient(180deg,#2d5016,#1f3a0f);color:white;}
.watchlist_table th{padding:10px 12px;text-align:left;font-weight:600;font-size:12px;white-space:nowrap;}
.watchlist_table td{padding:10px 12px;vertical-align:middle;border-bottom:1px solid #e9ecef;}
.watchlist_table tbody tr:hover{background:#f8f9fa;}
.watchlist_table tbody tr:nth-child(4n+3){background:#fffef0;}
.watchlist_table tbody tr:nth-child(4n+3):hover{background:#fffadb;}

.watchlist_horse_name{color:#0066cc;font-weight:600;cursor:pointer;}
.watchlist_expand_btn{background:#ffc107;border:none;padding:4px 10px;font-weight:bold;border-radius:4px;cursor:pointer;font-size:12px;}

.watchlist_hidden_row{display:none;background:#fff9e6;}
.watchlist_hidden_row.watchlist_show{display:table-row;}
.watchlist_hidden_row td{padding:15px 12px;border-bottom:1px solid #e9ecef;}

.watchlist_hidden_data{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px 20px;}
.watchlist_hidden_item{display:flex;gap:8px;}
.watchlist_hidden_label{font-weight:600;color:#6c757d;min-width:60px;}

.watchlist_badge{padding:3px 8px;font-size:11px;font-weight:600;border-radius:3px;display:inline-block;text-align:center;min-width:30px;}
.watchlist_badge_mc{background:#6c757d;color:white;}
.watchlist_badge_c{background:#17a2b8;color:white;}
.watchlist_badge_f{background:#ff6b9d;color:white;}
.watchlist_badge_dark{background:#343a40;color:white;}

.watchlist_price{font-weight:700;color:#28a745;font-size:13px;}
.watchlist_time{font-size:12px;color:#6c757d;}

.watchlist_action_icon{width:24px;height:24px;cursor:pointer;}

@media(max-width:1200px){.watchlist_hide_1200{display:none}}
@media(max-width:1000px){.watchlist_hide_1000{display:none}}
@media(max-width:800px){.watchlist_hide_800{display:none}}
@media(max-width:600px){.watchlist_hide_600{display:none}}



.auctions_controls{display:flex;gap:15px;margin-bottom:15px;flex-wrap:wrap;}
.auctions_control_group{display:flex;gap:8px;background:white;padding:4px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.1);}
.auctions_btn{padding:7px 16px;border:none;background:transparent;cursor:pointer;font-size:13px;border-radius:4px;font-weight:500;color:#495057;}
.auctions_btn:hover{background:#f8f9fa;}
.auctions_btn.auctions_active{background:#28a745;color:white;font-weight:600;}

.auctions_table_wrapper{background:white;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden;}
.auctions_table_container{overflow-x:auto;}
.auctions_table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;}
.auctions_table thead{background:linear-gradient(180deg,#2d5016,#1f3a0f);color:white;}
.auctions_table th{padding:10px 12px;text-align:left;font-weight:600;font-size:12px;text-transform:uppercase;white-space:nowrap;}
.auctions_table td{padding:10px 12px;vertical-align:middle;}
.auctions_table tbody tr:hover{background:#f8f9fa;}

.auctions_horse_name{color:#0066cc;font-weight:600;cursor:pointer;}
.auctions_expand_btn{background:#ffc107;border:none;padding:4px 10px;font-weight:bold;border-radius:4px;cursor:pointer;}

.auctions_hidden_row{display:none;background:#fff9e6;}
.auctions_hidden_row.auctions_show{display:table-row;}
.auctions_hidden_row td{padding:15px 12px;}

.auctions_hidden_data{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px 20px;}
.auctions_hidden_item{display:flex;gap:8px;}
.auctions_hidden_label{font-weight:600;color:#6c757d;min-width:70px;}

.auctions_form_icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;border-radius:3px;margin-right:2px;}
.auctions_form_q{background:#6c757d;color:white;}
.auctions_form_d{background:#ffc107;color:black;}
.auctions_form_t{background:#28a745;color:white;}

.auctions_badge{padding:2px 6px;font-size:10px;font-weight:600;margin-right:3px;border-radius:3px;}
.auctions_badge_new{background:#007bff;color:white;}
.auctions_badge_clm{background:#6c757d;color:white;}

.auctions_bid_amount{font-weight:700;color:#28a745;font-size:13px;align-items:right}
.auctions_closes_time{font-size:12px;color:#6c757d;}

@media(max-width:1400px){.auctions_hide_1400{display:none}}
@media(max-width:1200px){.auctions_hide_1200{display:none}}
@media(max-width:1000px){.auctions_hide_1000{display:none}}
@media(max-width:800px){.auctions_hide_800{display:none}}
@media(max-width:600px){.auctions_hide_600{display:none}}


        .breeding_scratch_container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .breeding_scratch_header {
            background: #228B22;
            color: white;
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .breeding_scratch_header_left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .breeding_scratch_close_btn {
            background: rgba(0, 0, 0, 0.2);
            border: none;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            transition: background 0.2s;
        }

        .breeding_scratch_close_btn:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        .breeding_scratch_stable {
            font-size: 16px;
            font-weight: 500;
        }

        .breeding_scratch_header_right {
            display: flex;
            gap: 20px;
            font-size: 14px;
        }

        .breeding_scratch_content {
            padding: 30px;
        }

        .breeding_scratch_info_section {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .breeding_scratch_info_grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .breeding_scratch_info_row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .breeding_scratch_info_item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .breeding_scratch_info_label {
            font-size: 12px;
            color: #666;
            text-transform: uppercase;
            font-weight: 600;
        }

        .breeding_scratch_info_value {
            font-size: 16px;
            color: #333;
            font-weight: 500;
        }

        .breeding_scratch_form_section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .breeding_scratch_field {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .breeding_scratch_field.breeding_scratch_hidden {
            display: none;
        }

        .breeding_scratch_field_label {
            font-size: 14px;
            color: #333;
            font-weight: 600;
        }

        .breeding_scratch_select,
        .breeding_scratch_input {
            padding: 10px 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.2s;
            background: white;
        }

        .breeding_scratch_select:focus,
        .breeding_scratch_input:focus {
            outline: none;
            border-color: #228B22;
        }

        .breeding_scratch_age_wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .breeding_scratch_age_select {
            width: 70px;
        }

        .breeding_scratch_age_note {
            font-size: 13px;
            color: #666;
            flex-basis: 100%;
        }

        .breeding_scratch_radio_group {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .breeding_scratch_radio_label {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-size: 14px;
        }

        .breeding_scratch_radio_label input[type="radio"] {
            cursor: pointer;
            width: 16px;
            height: 16px;
        }

        .breeding_scratch_error {
            color: #dc3545;
            font-size: 13px;
            margin-top: 4px;
            font-weight: 600;
        }

        .breeding_scratch_cost_section {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .breeding_scratch_cost_title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #333;
        }

        .breeding_scratch_cost_row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #e0e0e0;
            font-size: 14px;
        }

        .breeding_scratch_cost_row:last-child {
            border-bottom: none;
            font-weight: 600;
            margin-top: 5px;
        }

        .breeding_scratch_footer {
            background: #f9f9f9;
            padding: 20px 30px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            border-top: 1px solid #e0e0e0;
        }

        .breeding_scratch_footer_alert {
            background: #f8d7da;
            border: 2px solid #dc3545;
            color: #721c24;
            padding: 12px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            display: none;
        }

        .breeding_scratch_footer_alert.breeding_scratch_show {
            display: block;
        }

        .breeding_scratch_footer_content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .breeding_scratch_message {
            flex: 1;
            color: #333;
            font-size: 14px;
        }

        .breeding_scratch_breed_btn {
            background: #228B22;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }

        .breeding_scratch_breed_btn:hover {
            background: #1a6b1a;
        }

        .breeding_scratch_breed_btn:active {
            transform: scale(0.98);
        }

        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            .breeding_scratch_header {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            .breeding_scratch_header_right {
                width: 100%;
                justify-content: space-between;
            }

            .breeding_scratch_content {
                padding: 20px;
            }

            .breeding_scratch_form_section {
                grid-template-columns: 1fr;
            }

            .breeding_scratch_footer_content {
                flex-direction: column;
                align-items: stretch;
            }

            .breeding_scratch_breed_btn {
                width: 100%;
            }
        }

        @media (max-width: 600px) {
            .breeding_scratch_info_row {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0;
            }

            .breeding_scratch_container {
                border-radius: 0;
            }
        }


.brp_body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f5f5f5;
  padding: 15px;
  line-height: 1.5;
}

.brp_container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.brp_header {
  background: linear-gradient(180deg, #2d5016, #1f3a0f);
  color: white;
  padding: 20px;
}

.brp_summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.brp_summary_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.brp_summary_label {
  font-weight: 500;
  opacity: 0.9;
}

.brp_summary_value {
  font-weight: 700;
  font-size: 1.1em;
}

.brp_controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.brp_control_group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brp_control_group label {
  font-weight: 500;
}

.brp_select {
  padding: 8px 12px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: white;
  border-radius: 6px;
  font-size: 16px;
  min-width: 80px;
}

.brp_select option {
  color: #333;
}

.brp_btn {
  padding: 10px 24px;
  border: none;
  background: #ffc107;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.brp_btn:hover {
  background: #ffcd38;
  transform: translateY(-1px);
}

.brp_btn:active {
  transform: translateY(0);
}

.brp_races {
  padding: 20px;
}

.brp_race_header {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  padding: 12px;
  background: #f8f9fa;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 2px solid #2d5016;
  margin-bottom: 10px;
}

.brp_race_header_item {
  text-align: center;
}

.brp_race_row {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

.brp_race_row:hover {
  background: #f8f9fa;
}

.brp_race_visible {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  padding: 12px;
  align-items: center;
  cursor: pointer;
}

.brp_race_cell {
  text-align: center;
}

.brp_race_cell select {
  width: 100%;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.brp_race_cost {
  font-weight: 700;
  color: #2d5016;
}

.brp_copy_btn {
  background: #28a745;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.brp_copy_btn:hover {
  background: #218838;
}

.brp_race_hidden {
  display: none;
  padding: 20px;
  background: #fff9e6;
  border-top: 1px solid #e0e0e0;
}

.brp_race_hidden.brp_show {
  display: block;
}

.brp_hidden_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.brp_hidden_item {
  display: flex;
  gap: 10px;
}

.brp_hidden_label {
  font-weight: 600;
  color: #666;
  min-width: 80px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .brp_body {
    padding: 10px;
  }
  
  .brp_header {
    padding: 15px;
  }
  
  .brp_summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .brp_controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .brp_control_group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .brp_select,
  .brp_btn {
    width: 100%;
  }
  
  .brp_race_header {
    display: none;
  }
  
  .brp_race_visible {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }
  
  .brp_race_cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .brp_race_cell::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 10px;
  }
  
  .brp_race_cell select {
    max-width: 60%;
  }
  
  .brp_hidden_grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brp_summary_item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
