/* ═══ REMOVED: Lines 1-33 — handled by ehr_ CSS files ═══ */

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 removed from global scope — was forcing ALL table cells
     site-wide to never wrap, conflicting with horsepage responsive column sizing.
     nowrap is set explicitly on the specific tables that need it. */
}

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;
}

/* ═══ REMOVED: Lines 64-75 — handled by ehr_ CSS files ═══ */

.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;
}
/* ═══ REMOVED: Lines 295-400 — handled by ehr_ CSS files ═══ */
/*
    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;
}
/* ═══ REMOVED: Lines 440-684 — handled by ehr_ CSS files ═══ */


.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 {
}

/* ═══ REMOVED: Lines 780-790 — handled by ehr_ CSS files ═══ */
.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%;
    table-layout: fixed;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Column widths for table-layout:fixed.
   Horse name gets a percentage to take remaining space.
   Data columns get small fixed widths.
   NOTE: Adjust these based on actual content. */
.stable_horse_list_table > thead > tr > th:first-child {
    width: 30%;  /* Horse name column — 30% leaves more room for data columns */
}
.stable_horse_list_col_quick   { width: 70px; }
.stable_horse_list_col_status  { width: 60px; }
.stable_horse_list_col_age     { width: 35px; }
.stable_horse_list_col_sex     { width: 35px; }
.stable_horse_list_col_bred    { width: 40px; }
.stable_horse_list_col_last    { width: 45px; }
.stable_horse_list_col_r       { width: 28px; }
.stable_horse_list_col_w       { width: 28px; }
.stable_horse_list_col_p       { width: 28px; }
.stable_horse_list_col_s       { width: 28px; }
.stable_horse_list_col_usd     { width: 55px; }
.stable_horse_list_col_itm     { width: 40px; }
.stable_horse_list_col_badges  { width: 75px; }
.stable_horse_list_col_expand  { width: 30px; }

.stable_horse_list_table th {
    background-color: #E8E8D0;
    padding: 8px 6px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #999;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Any hidden TH/TD in the stable table must also have width:0
   so table-layout:fixed doesn't allocate dead whitespace for them */
.stable_horse_list_table th[style*="display: none"],
.stable_horse_list_table td[style*="display: none"],
.stable_horse_list_table th[style*="display:none"],
.stable_horse_list_table td[style*="display:none"] {
    width: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.stable_horse_list_table td {
    padding: 8px 6px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.stable_horse_list_horse_name {
    color: #006400;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.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: 10px;
    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: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    margin-top: 4px;
}

/* Fight style_more.css: .stable_horse_list_horse_detail_cell div { width: 100% }
   Grid items need width:auto so auto-fill can create multiple columns */
.stable_horse_list_expanded_row > div {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.stable_horse_list_expanded_item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    border-left: 3px solid #4a8c5c;
}

.stable_horse_list_expanded_label {
    font-weight: 700;
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stable_horse_list_expanded_value {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

 

/* 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;
    }
}

/* Scope to ONLY the cell itself and its direct child wrapper div.
   The old rule matched all descendant divs + tables which forced width:100%
   on every internal horsepage element, overriding the responsive column-hiding
   system and causing all PP columns to display regardless of viewport size. */
.stable_horse_list_horse_detail_cell > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 🍞 BREADCRUMB: With table-layout:fixed + width:100%, the table always
   fills its container. The detail row's colspan="100" now spans the full
   table width, giving horsepage the space it needs. */
.stable_horse_list_horse_detail_row {
    width: 100% !important;
    background-color: #ffffff !important;
}

/* 🍞 BREADCRUMB: ehr_content.css:82 has:
       .stable_horse_list_table td:first-child { display: flex }
   This matches the detail cell TD because it's the only (thus first) child
   in the detail row. display:flex on the TD breaks the horsepage layout
   by making horsepage_wrapper a flex item instead of a normal block child.
   Fix: reset to table-cell on the detail cell specifically. */
.stable_horse_list_horse_detail_cell {
    display: table-cell !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   FIGHTING style_more.css
   
   style_more.css has these rules we can't edit:
     .stable_horse_list_horse_detail_cell div   { width: 100% !important; max-width: 100% !important }
     .stable_horse_list_horse_detail_cell table  { width: 100% !important; table-layout: auto !important }
     .stable_horse_list_horse_detail_cell > *    { width: 100% !important }
   
   Hostile specificity: (0,1,1) with !important.
   
   width:100% is FINE for most block-level divs (they naturally fill their parent).
   It BREAKS flex-row children and grid children, forcing them to stack vertically.
   
   Strategy: Only override width on divs that are children of multi-column 
   flex/grid containers. Use specificity (0,2,1) to beat (0,1,1).
   ═══════════════════════════════════════════════════════════════════════ */

/* --- horsepage_top: 3-column flex layout (identity | stats | right) --- */
.stable_horse_list_horse_detail_cell .horsepage_top {
    display: flex !important;
    flex-wrap: wrap !important;
}
.stable_horse_list_horse_detail_cell .horsepage_top > div {
    width: auto !important;
    max-width: none !important;
}
/* Restore the specific flex sizing on each column.
   Identity uses ~30% to roughly align with the stable table's 30% horsename column.
   Stats and right split the remaining ~70% (matching the data columns area).
   At narrow widths, flex-wrap kicks in. */
.stable_horse_list_horse_detail_cell .horsepage_identity {
    flex: 0 1 30% !important;
    width: 30% !important;
    max-width: 30% !important;
    min-width: 180px !important;
}
.stable_horse_list_horse_detail_cell .horsepage_stats_col {
    flex: 1 1 35% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}
.stable_horse_list_horse_detail_cell .horsepage_right_col {
    flex: 1 1 28% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* --- horsepage_image_block: image + owner/breeder side by side --- */
.stable_horse_list_horse_detail_cell .horsepage_image_block > div {
    width: auto !important;
    max-width: none !important;
}

/* --- PP detail grid: cards should wrap in multi-column grid --- */
.stable_horse_list_horse_detail_cell .horsepage_pp_detail_grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    min-width: 0 !important;
    /* Ensure grid doesn't use intrinsic sizing to blow out the table */
    width: 100% !important;
}
.stable_horse_list_horse_detail_cell .horsepage_pp_detail_grid > div {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* The PP detail row's TD (colspan) needs a definite width for CSS Grid's
   auto-fill to calculate how many columns fit. In table-layout:auto, the TD
   has no definite width, so auto-fill falls back to 1 column.
   Fix: give the TD width:100% AND overflow:hidden. The overflow creates a
   block formatting context that gives the grid a definite width to work with,
   while preventing the grid from expanding the TD beyond the table. */
.stable_horse_list_horse_detail_cell .horsepage_pp_detail_row > td {
    width: 100% !important;
    overflow: hidden !important;
    /* Give the grid breathing room */
    padding: 10px 12px !important;
}

/* --- Owner grid children --- */
.stable_horse_list_horse_detail_cell .horsepage_owner_grid > div {
    width: auto !important;
    max-width: none !important;
}

/* --- RAFI two-column layout --- */
.stable_horse_list_horse_detail_cell .horsepage_rafi_2col > div {
    width: auto !important;
    max-width: none !important;
}
.stable_horse_list_horse_detail_cell .horsepage_rafi_body > div {
    width: auto !important;
    max-width: none !important;
}

/* --- Dam header (label + button side by side) --- */
.stable_horse_list_horse_detail_cell .horsepage_dam_header > * {
    width: auto !important;
    max-width: none !important;
}

/* --- Badges row --- */
.stable_horse_list_horse_detail_cell .horsepage_badges > * {
    width: auto !important;
    max-width: none !important;
}

/* --- Control/checkbox rows --- */
.stable_horse_list_horse_detail_cell .horsepage_control_row > * {
    width: auto !important;
    max-width: none !important;
}
.stable_horse_list_horse_detail_cell .horsepage_checkbox_row > * {
    width: auto !important;
    max-width: none !important;
}

/* --- PP icon row --- */
.stable_horse_list_horse_detail_cell .horsepage_pp_icons > * {
    width: auto !important;
    max-width: none !important;
}

/* --- Stat grid (the 2x4 stat cards) --- */
.stable_horse_list_horse_detail_cell .horsepage_stat_grid {
    display: grid !important;
}
.stable_horse_list_horse_detail_cell .horsepage_stat_grid > div {
    width: auto !important;
    max-width: none !important;
}

/* --- RAFI tabs, selects, buttons --- */
.stable_horse_list_horse_detail_cell .horsepage_rafi_tabs > * {
    width: auto !important;
    max-width: none !important;
}
.stable_horse_list_horse_detail_cell .horsepage_rafi_select_row > * {
    width: auto !important;
    max-width: none !important;
}
.stable_horse_list_horse_detail_cell .horsepage_rafi_buttons > * {
    width: auto !important;
    max-width: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   HORSEPAGE RESPONSIVE INSIDE DETAIL CELL
   These handle the 3→2→1 column transition for the horsepage_top flex
   layout when inside the stable list's detail cell.
   ═══════════════════════════════════════════════════════════════════════ */

/* At ~1100px: right column wraps below, identity + stats stay side by side */
@media (max-width: 1100px) {
    .stable_horse_list_horse_detail_cell .horsepage_identity {
        flex: 0 1 35% !important;
        width: 35% !important;
        max-width: 35% !important;
    }
    .stable_horse_list_horse_detail_cell .horsepage_stats_col {
        flex: 1 1 55% !important;
    }
    .stable_horse_list_horse_detail_cell .horsepage_right_col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* At ~768px: everything stacks to single column */
@media (max-width: 768px) {
    .stable_horse_list_horse_detail_cell .horsepage_identity {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .stable_horse_list_horse_detail_cell .horsepage_stats_col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .stable_horse_list_horse_detail_cell .horsepage_right_col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 1300px) {
    .stable_horse_list_col_bred {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 1200px) {
    .stable_horse_list_col_r {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 1100px) {
    .stable_horse_list_col_itm {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 1000px) {
    .stable_horse_list_col_usd {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    .stable_horse_list_col_w {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 800px) {
    .stable_horse_list_col_badges {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    .stable_horse_list_col_sex {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 650px) {
    .stable_horse_list_col_age {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .stable_horse_list_col_last {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 550px) {
    .stable_horse_list_col_quick {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .stable_horse_list_table > thead > tr > th:first-child {
        width: 70%;
    }
}

@media (max-width: 500px) {
    .stable_horse_list_col_status {
        display: none;
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .stable_horse_list_table > thead > tr > th:first-child {
        width: 90%;
    }
}

/* 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;
            width: 100%;
        }

        .stable_horse_list_expanded_info.stable_horse_list_show {
        display: block;
        }

        .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);
    display: flex;
    flex-direction: column;
}

.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 !important;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
    margin: 0 25px 20px 25px;
}

.stable_page_settings_panel.stable_page_active {
    display: block  !important;
}

.stable_page_form_group {
    margin-bottom: 20px;
}

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

.stable_page_form_input {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.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_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}}