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