


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

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

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

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

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

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


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

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


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

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

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

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

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

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

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

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

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



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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

        .breeding_scratch_content {
            padding: 30px;
        }

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

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

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

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

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

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

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

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

        .breeding_scratch_field.breeding_scratch_hidden {
            display: none;
        }

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

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

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

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

        .breeding_scratch_age_select {
            width: 70px;
        }

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

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

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

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

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

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

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

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

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

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

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

        .breeding_scratch_footer_alert.breeding_scratch_show {
            display: block;
        }

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

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

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

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

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

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

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

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

            .breeding_scratch_content {
                padding: 20px;
            }

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

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

            .breeding_scratch_breed_btn {
                width: 100%;
            }
        }

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

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

            .breeding_scratch_container {
                border-radius: 0;
            }
        }


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

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

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

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

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

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

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

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

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

.brp_control_group label {
  font-weight: 500;
}

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

.brp_select option {
  color: #333;
}

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

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

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

.brp_races {
  padding: 20px;
}

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

.brp_race_header_item {
  text-align: center;
}

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

.brp_race_row:hover {
  background: #f8f9fa;
}

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

.brp_race_cell {
  text-align: center;
}

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

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

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

.brp_copy_btn:hover {
  background: #218838;
}

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

.brp_race_hidden.brp_show {
  display: block;
}

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

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

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

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

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



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

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

.sharebid_title {
  text-align: center;
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
}

.sharebid_controls {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
}

.sharebid_control_group {
  display: flex;
  gap: 8px;
  background: white;
  padding: 6px;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.sharebid_separator {
  width: 2px;
  background: #ddd;
  margin: 0 10px;
}

.sharebid_control_link {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  user-select: none;
  color: #333;
  text-decoration: none;
  display: inline-block;
}

.sharebid_control_link:hover {
  background: #f0f0f0;
}

.sharebid_control_active {
  background: #90EE90 !important;
  color: #000 !important;
  font-weight: 600 !important;
}

.sharebid_content {
  overflow-x: auto;
}

.sharebid_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto;
}

.sharebid_table thead {
  background: #006400;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sharebid_table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.sharebid_table th:last-child {
  border-right: none;
}

.sharebid_table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  white-space: nowrap;
}

.sharebid_table tbody tr {
  transition: background 0.2s;
}

.sharebid_table tbody tr:hover {
  background: #f8f9fa;
}

.sharebid_table tbody tr:nth-child(4n+1),
.sharebid_table tbody tr:nth-child(4n+2) {
  background: #f0fff0;
}

.sharebid_table tbody tr:nth-child(4n+1):hover,
.sharebid_table tbody tr:nth-child(4n+2):hover {
  background: #e0f0e0;
}

.sharebid_table tbody tr.sharebid_inactive {
  background: #f5f5f5;
}

.sharebid_table tbody tr.sharebid_inactive:hover {
  background: #ebebeb;
}

.sharebid_delete_btn {
  background: transparent;
  color: #006400;
  border: 1px solid #006400;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  transition: all 0.2s;
}

.sharebid_delete_btn:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.sharebid_status_active {
  color: #006400;
  font-weight: 600;
}

.sharebid_status_inactive {
  color: #666;
  font-style: italic;
}

.sharebid_deactivate_btn {
  background: #f0f0f0;
  border: 1px solid #999;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.sharebid_deactivate_btn:hover {
  background: #e0e0e0;
}

.sharebid_expand_cell {
  width: 50px;
  min-width: 50px;
  padding: 5px !important;
}

.sharebid_expand_btn {
  background: #ffc107;
  border: none;
  padding: 4px 8px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  width: 100%;
}

.sharebid_expand_btn:hover {
  background: #ffcd38;
}

.sharebid_hidden_row {
  display: none;
  background: #fffbf0;
}

.sharebid_hidden_row.sharebid_show {
  display: table-row;
}

.sharebid_hidden_row td {
  padding: 15px;
  overflow-x: auto;
}

.sharebid_hidden_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}

.sharebid_hidden_item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.sharebid_hidden_label {
  font-weight: 700;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
}

.sharebid_hidden_value {
  font-weight: 500;
  font-size: 14px;
  word-wrap: break-word;
}

.sharebid_no_results {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}

.sharebid_divider {
  height: 5px;
  width: 99%;
  padding: 7px;
  margin: 0 auto;
}

.sharebid_line {
  height: 1px;
  background-color: #666666;
  width: 99%;
  margin: 0 auto;
}

.sharebid_page_info {
  height: 30px;
  text-align: center;
  padding: 10px;
}

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

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

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

@media (max-width: 800px) {
  .sharebid_hide_800 { display: none !important; }
  .sharebid_table {
    font-size: 12px;
  }
  .sharebid_table th,
  .sharebid_table td {
    padding: 8px 4px;
  }
  .sharebid_table td {
    white-space: normal;
  }
}

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

@media (max-width: 600px) {
  .sharebid_hide_600 { display: none !important; }
  .sharebid_table {
    font-size: 11px;
  }
  .sharebid_hidden_grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .sharebid_hidden_row td {
    padding: 12px;
  }
}

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

@media (max-width: 400px) {
  .sharebid_hide_400 { display: none !important; }
  .sharebid_body {
    padding: 5px;
  }
  .sharebid_hidden_grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sharebid_hidden_row td {
    padding: 10px;
  }
}



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

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

.breeding_myshares_title {
  font-size: 20px;
  font-weight: 700;
  color: #2d5016;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
}

.breeding_myshares_filters {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: #f8f9fa;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
}

.breeding_myshares_filter_group {
  display: flex;
  gap: 5px;
  background: white;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.breeding_myshares_filter_link {
  padding: 7px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.breeding_myshares_filter_link:hover {
  background: #f8f9fa;
}

.breeding_myshares_filter_active {
  background: #28a745 !important;
  color: white !important;
  font-weight: 600 !important;
}

.breeding_myshares_divider {
  height: 5px;
  width: 99%;
  padding: 7px;
  margin: 0 auto;
}

.breeding_myshares_line {
  height: 1px;
  background-color: #666666;
  width: 99%;
  margin: 0 auto;
}

.breeding_myshares_page_info {
  text-align: center;
  padding: 15px;
  font-weight: 600;
  color: #2d5016;
}

.breeding_myshares_table_wrapper {
  background: white;
  overflow: hidden;
}

.breeding_myshares_table_container {
  overflow-x: auto;
}

.breeding_myshares_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.breeding_myshares_table thead {
  background: linear-gradient(180deg, #2d5016, #1f3a0f);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.breeding_myshares_table th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.breeding_myshares_table th:last-child {
  border-right: none;
}

.breeding_myshares_table td {
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
}

.breeding_myshares_table tbody tr {
  transition: background 0.2s;
}

.breeding_myshares_table tbody tr:hover {
  background: #f8f9fa;
}

.breeding_myshares_table tbody tr:nth-child(4n+1),
.breeding_myshares_table tbody tr:nth-child(4n+2) {
  background: #f9f9f9;
}

.breeding_myshares_table tbody tr:nth-child(4n+1):hover,
.breeding_myshares_table tbody tr:nth-child(4n+2):hover {
  background: #f0f0f0;
}

.breeding_myshares_sire_name {
  color: #0066cc;
  font-weight: 600;
}

.breeding_myshares_mysire_name {
  color: #28a745;
  font-weight: 600;
}

.breeding_myshares_badge {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
  display: inline-block;
}

.breeding_myshares_badge_d {
  background: #6c757d;
  color: white;
}

.breeding_myshares_badge_t {
  background: #28a745;
  color: white;
}

.breeding_myshares_badge_r {
  background: #ffc107;
  color: #000;
}

.breeding_myshares_badge_s {
  background: #ffd700;
  color: #000;
}

.breeding_myshares_expand_btn {
  background: #ffc107;
  border: none;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}

.breeding_myshares_expand_btn:hover {
  background: #ffcd38;
}

.breeding_myshares_hidden_row {
  display: none;
  background: #fff9e6;
}

.breeding_myshares_hidden_row.breeding_myshares_show {
  display: table-row;
}

.breeding_myshares_hidden_row td {
  padding: 15px 12px;
}

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

.breeding_myshares_hidden_item {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.breeding_myshares_hidden_label {
  font-weight: 600;
  color: #6c757d;
  font-size: 11px;
}

.breeding_myshares_hidden_value {
  color: #495057;
  font-size: 11px;
}

.breeding_myshares_no_results {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}

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

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

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

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

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



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

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

.breeding_mares_title {
  font-size: 20px;
  font-weight: 700;
  color: #2d5016;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
}

.breeding_mares_filters_container {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.breeding_mares_filters_toggle {
  display: none;
  padding: 10px 16px;
  background: #2d5016;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
}

.breeding_mares_filters_toggle:hover {
  background: #1f3a0f;
}

.breeding_mares_filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  margin-bottom: 15px;
}

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

.breeding_mares_filter_label {
  font-weight: 700;
  color: #2d5016;
  font-size: 14px;
}

.breeding_mares_filter_input {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.breeding_mares_filter_input:focus {
  outline: none;
  border-color: #2d5016;
}

.breeding_mares_filter_select {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.breeding_mares_filter_select:focus {
  outline: none;
  border-color: #2d5016;
}

.breeding_mares_divider {
  height: 5px;
  width: 99%;
  padding: 7px;
  margin: 0 auto;
}

.breeding_mares_line {
  height: 1px;
  background-color: #666666;
  width: 99%;
  margin: 0 auto;
}

.breeding_mares_button_group {
  display: flex;
  gap: 5px;
  background: white;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  justify-content: center;
}

.breeding_mares_button_link {
  padding: 7px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.breeding_mares_button_link:hover {
  background: #f8f9fa;
}

.breeding_mares_button_active {
  background: #28a745 !important;
  color: white !important;
  font-weight: 600 !important;
}

.breeding_mares_page_info {
  text-align: center;
  padding: 15px;
  font-weight: 600;
  color: #2d5016;
}

.breeding_mares_table_wrapper {
  background: white;
  overflow: hidden;
}

.breeding_mares_table_container {
  overflow-x: auto;
}

.breeding_mares_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.breeding_mares_table thead {
  background: linear-gradient(180deg, #2d5016, #1f3a0f);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.breeding_mares_table td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
}

.breeding_mares_table tbody tr {
  transition: background 0.2s;
}

.breeding_mares_table tbody tr:hover {
  background: #f8f9fa;
}

.breeding_mares_table tbody tr:nth-child(4n+1),
.breeding_mares_table tbody tr:nth-child(4n+2) {
  background: #f9f9f9;
}

.breeding_mares_table tbody tr:nth-child(4n+1):hover,
.breeding_mares_table tbody tr:nth-child(4n+2):hover {
  background: #f0f0f0;
}

.breeding_mares_horse_name {
  color: #2d5016;
  font-weight: 700;
  font-size: 14px;
}

.breeding_mares_owner_name {
  color: #0066cc;
  font-weight: 600;
  font-size: 12px;
}

.breeding_mares_sire_name {
  color: #6c757d;
  font-size: 12px;
}

.breeding_mares_expand_btn {
  background: #ffc107;
  border: none;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.breeding_mares_expand_btn:hover {
  background: #ffcd38;
}

.breeding_mares_hidden_row {
  display: none;
  background: #fff9e6;
}

.breeding_mares_hidden_row.breeding_mares_show {
  display: table-row;
}

.breeding_mares_hidden_row td {
  padding: 15px 12px;
  border-bottom: 1px solid #e9ecef;
}

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

.breeding_mares_hidden_item {
  display: flex;
  gap: 8px;
}

.breeding_mares_hidden_label {
  font-weight: 600;
  color: #6c757d;
  min-width: 70px;
}

.breeding_mares_no_results {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}

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

@media (max-width: 800px) {
  .breeding_mares_hide_800 { display: none !important; }
  .breeding_mares_filters_toggle { display: block; }
  .breeding_mares_filters { display: none; padding: 10px; margin-top: 10px; }
  .breeding_mares_filters.breeding_mares_filters_open { display: grid; }
}

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

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

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


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

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

.breeding_sire_list_title {
  font-size: 20px;
  font-weight: 700;
  color: #2d5016;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
}

.breeding_sire_list_filters_container {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.breeding_sire_list_filter_row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.breeding_sire_list_filter_group {
  display: flex;
  gap: 5px;
  background: white;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.breeding_sire_list_filter_link {
  padding: 7px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.breeding_sire_list_filter_link:hover {
  background: #f8f9fa;
}

.breeding_sire_list_filter_active {
  background: #28a745 !important;
  color: white !important;
  font-weight: 600 !important;
}

.breeding_sire_list_filter_separator {
  padding: 7px 5px;
  color: #6c757d;
  font-weight: 500;
}

.breeding_sire_list_search_group {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.breeding_sire_list_search_label {
  font-weight: 600;
  color: #2d5016;
  font-size: 13px;
}

.breeding_sire_list_search_input {
  padding: 6px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
  width: 150px;
}

.breeding_sire_list_select {
  padding: 6px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}

.breeding_sire_list_divider {
  height: 5px;
  width: 99%;
  padding: 7px;
  margin: 0 auto;
}

.breeding_sire_list_line {
  height: 1px;
  background-color: #666666;
  width: 99%;
  margin: 0 auto;
}

.breeding_sire_list_page_info {
  text-align: center;
  padding: 15px;
  font-weight: 600;
  color: #2d5016;
}

.breeding_sire_list_table_wrapper {
  background: white;
  overflow: hidden;
}

.breeding_sire_list_table_container {
  overflow-x: auto;
}

.breeding_sire_list_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.breeding_sire_list_table thead {
  background: linear-gradient(180deg, #000066, #000044);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.breeding_sire_list_table th {
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

.breeding_sire_list_table td {
  padding: 8px;
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
  font-size: 12px;
}

.breeding_sire_list_table tbody tr {
  transition: background 0.2s;
}

.breeding_sire_list_table tbody tr:hover {
  background: #f8f9fa;
}

.breeding_sire_list_table tbody tr:nth-child(4n+1),
.breeding_sire_list_table tbody tr:nth-child(4n+2) {
  background: #f9f9f9;
}

.breeding_sire_list_table tbody tr:nth-child(4n+1):hover,
.breeding_sire_list_table tbody tr:nth-child(4n+2):hover {
  background: #f0f0f0;
}

.breeding_sire_list_sire_name {
  color: #2d5016;
  font-weight: 700;
  text-align: left;
}

.breeding_sire_list_mysire_name {
  color: #0066cc;
  font-weight: 600;
  text-align: left;
}

.breeding_sire_list_expand_btn {
  background: #ffc107;
  border: none;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}

.breeding_sire_list_expand_btn:hover {
  background: #ffcd38;
}

.breeding_sire_list_hidden_row {
  display: none;
  background: #fff9e6;
}

.breeding_sire_list_hidden_row.breeding_sire_list_show {
  display: table-row;
}

.breeding_sire_list_hidden_row td {
  padding: 15px 12px;
  border-bottom: 1px solid #e9ecef;
}

.breeding_sire_list_hidden_data {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px 20px;
}

.breeding_sire_list_hidden_item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breeding_sire_list_hidden_label {
  font-weight: 600;
  color: #6c757d;
  font-size: 10px;
  text-transform: uppercase;
}

.breeding_sire_list_hidden_value {
  font-size: 12px;
  color: #495057;
}

.breeding_sire_list_no_results {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}

/* Responsive column hiding - in order specified */
@media (max-width: 1200px) {
  .breeding_sire_list_hide_1200 { display: none !important; }
}

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

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

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

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

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

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

/* ===== HORSE DETAIL ROW - Dynamic Content Full Width ===== */
.stable_horse_list_horse_detail_row {
    display: none;
}

.stable_horse_list_horse_detail_cell {
    padding: 0 !important;
    border: none !important;
    background: white !important;
}




/* Force ALL dynamically loaded content to take full available width */
.stable_horse_list_horse_detail_cell > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* For tables loaded inside - critical for nested tables */
.stable_horse_list_horse_detail_cell table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}

/* For divs loaded inside */
.stable_horse_list_horse_detail_cell div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* Header Section */
.creditbuy_header {
    background: linear-gradient(135deg, #2d7a3e 0%, #3d9a4f 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.creditbuy_header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
}

/* Info Cards */
.creditbuy_info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.creditbuy_card {
    background: rgba(45, 122, 62, 0.15);
    border: 2px solid rgba(45, 122, 62, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.creditbuy_card-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.creditbuy_card-value {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.creditbuy_highlight {
    color: #ffeb3b;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Button Group */
.creditbuy_button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.creditbuy_btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.creditbuy_btn-primary {
    background-color: #2d7a3e;
    color: white;
}

.creditbuy_btn-primary:hover {
    background-color: #236230;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.creditbuy_btn-secondary {
    background-color: #666;
    color: white;
}

.creditbuy_btn-secondary:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.creditbuy_btn-submit {
    background-color: #2d7a3e;
    color: white;
    font-size: 16px;
    padding: 14px 32px;
}

.creditbuy_btn-submit:hover {
    background-color: #236230;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Notice Boxes */
.creditbuy_notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.creditbuy_notice-warning {
    background-color: #fff9e6;
    border-left-color: #ffc107;
    color: #856404;
}

/* Content Section */
.creditbuy_content-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.creditbuy_content-section h2 {
    color: #2d7a3e;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #2d7a3e;
    padding-bottom: 10px;
}

.creditbuy_intro {
    margin-bottom: 30px;
}

.creditbuy_intro p {
    margin: 10px 0;
}

/* Form Styles */
.creditbuy_form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.creditbuy_form-group {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.creditbuy_form-label {
    font-weight: 600;
    color: #2d7a3e;
    padding-top: 8px;
    text-align: right;
}

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

.creditbuy_stable-name {
    font-weight: 600;
    color: #333;
    padding: 8px 0;
}

.creditbuy_input {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    width: 200px;
    transition: border-color 0.3s ease;
}

.creditbuy_input:focus {
    outline: none;
    border-color: #2d7a3e;
}

.creditbuy_input-hint {
    color: #666;
    font-size: 13px;
}

.creditbuy_form-note {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 3px solid #2d7a3e;
}

.creditbuy_form-note p {
    margin: 0;
    color: #333;
}

.creditbuy_form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Additional Info */
.creditbuy_additional-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.creditbuy_additional-info p {
    margin: 10px 0;
}

.creditbuy_additional-info a {
    color: #2d7a3e;
    text-decoration: none;
    font-weight: 600;
}

.creditbuy_additional-info a:hover {
    text-decoration: underline;
}

/* Important Notice Box */
.creditbuy_important-notice {
    background: #ffebee;
    border: 3px solid #d32f2f;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.creditbuy_important-notice h3 {
    color: #d32f2f;
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 15px;
}

.creditbuy_important-notice p {
    margin: 12px 0;
    color: #333;
}

.creditbuy_important-notice ul {
    margin: 15px 0;
    padding-left: 25px;
}

.creditbuy_important-notice li {
    margin: 8px 0;
    color: #333;
}

.creditbuy_important-notice a {
    color: #d32f2f;
    font-weight: 600;
    text-decoration: none;
}

.creditbuy_important-notice a:hover {
    text-decoration: underline;
}

/* Login Message */
.creditbuy_login-message {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.creditbuy_login-message p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .creditbuy_header h1 {
        font-size: 22px;
    }
    
    .creditbuy_form-group {
        grid-template-columns: 1fr;
    }
    
    .creditbuy_form-label {
        text-align: left;
        padding-top: 0;
    }
    
    .creditbuy_button-group {
        flex-direction: column;
    }
    
    .creditbuy_btn {
        width: 100%;
        text-align: center;
    }
}

/* PayPal Purchase Table */
.creditbuy_paypal-table {
    overflow-x: auto;
    margin: 20px 0;
}

.creditbuy_table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.creditbuy_table thead {
    background-color: #2d7a3e;
    color: white;
}

.creditbuy_table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.creditbuy_table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

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

.creditbuy_table tbody tr:hover {
    background-color: #e8f5e9;
}

.creditbuy_table td {
    padding: 12px 15px;
    text-align: center;
}

.creditbuy_amount {
    font-weight: 600;
    color: #2d7a3e;
    background-color: #f0f7f1 !important;
    text-align: right;
}

.creditbuy_credits {
    text-align: right;
    color: #333;
}

.creditbuy_total-credits {
    font-weight: 600;
    text-align: right;
    color: #2d7a3e;
}

.creditbuy_paypal-cell {
    text-align: center;
}

.creditbuy_paypal-cell form {
    display: inline-block;
    margin: 5px 0;
}

.creditbuy_paypal-cell input[type="image"] {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.creditbuy_paypal-cell input[type="image"]:hover {
    transform: scale(1.05);
}

/* Check/Money Order Info */
.creditbuy_check-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #2d7a3e;
}

.creditbuy_check-info h3 {
    color: #2d7a3e;
    margin-top: 0;
    font-size: 18px;
}

.creditbuy_address {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    margin: 15px 0;
    text-align: center;
}

.creditbuy_address strong {
    color: #333;
    line-height: 1.8;
}

/* Info Notice Box */
.creditbuy_notice-info {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
}

/* Additional responsive styles for table */
@media (max-width: 768px) {
    .creditbuy_table {
        font-size: 13px;
    }
    
    .creditbuy_table th,
    .creditbuy_table td {
        padding: 8px 6px;
    }
}

/* Credit Card Purchase Form Styles - All classes prefixed with ccbuy_ */

/* Main container */
.ccbuy_container {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Error messages */
.ccbuy_error {
    text-align: center;
    padding: 20px;
    color: #cc0000;
    font-weight: bold;
}

.ccbuy_error_message {
    background-color: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Content wrapper */
.ccbuy_content {
    padding: 20px 0;
}

/* Database update alert */
.ccbuy_alert {
    background-color: #bb6666;
    border: 1px solid #000000;
    padding: 15px;
    margin: 20px 0;
    color: #000000;
}

.ccbuy_alert strong {
    font-weight: bold;
}

/* Purchase summary section */
.ccbuy_purchase_summary {
    margin: 20px 0;
    line-height: 1.6;
}

.ccbuy_purchase_summary p {
    margin: 10px 0;
}

.ccbuy_purchase_summary strong {
    font-weight: bold;
}

.ccbuy_bonus {
    color: #2e7d32;
    font-weight: bold;
}

.ccbuy_cost {
    font-size: 1.1em;
    margin-top: 15px;
}

/* Form styling */
.ccbuy_form {
    margin: 20px 0;
}

/* Submit button */
.ccbuy_submit_btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 12px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ccbuy_submit_btn:hover {
    background-color: #45a049;
}

.ccbuy_submit_btn:active {
    background-color: #3d8b40;
}

/* Timestamp section */
.ccbuy_timestamp {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-left: 4px solid #ff9800;
    font-size: 0.95em;
}

.ccbuy_timestamp strong {
    font-weight: bold;
}

/* Notice box */
.ccbuy_notice {
    background-color: #ee9999;
    border: 1px solid #000000;
    padding: 20px;
    margin: 20px 0;
}

.ccbuy_notice_title {
    color: #000000;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.ccbuy_notice p {
    margin: 10px 0;
    line-height: 1.5;
}

.ccbuy_notice_list {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.ccbuy_notice_list li {
    margin: 8px 0;
    line-height: 1.4;
}

/* Links */
.ccbuy_link {
    color: #1976d2;
    text-decoration: underline;
}

.ccbuy_link:hover {
    color: #1565c0;
}

.ccbuy_link:visited {
    color: #7b1fa2;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .ccbuy_container {
        width: 95%;
        padding: 10px 0;
    }
    
    .ccbuy_submit_btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .ccbuy_notice_title {
        font-size: 1.3em;
    }
}

/* Print styles */
@media print {
    .ccbuy_submit_btn {
        display: none;
    }
    
    .ccbuy_alert,
    .ccbuy_notice {
        border: 2px solid #000000;
    }
}


/* Enhanced Account Settings Styles */

.stable_page_current_info {
    background: #f0f8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #2d9b2d;
}

.stable_page_info_row {
    margin-bottom: 15px;
}

.stable_page_info_row:last-child {
    margin-bottom: 0;
}

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

.stable_page_info_highlight_label {
    font-size: 13px;
    font-weight: 700;
    color: #1a7a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stable_page_info_highlight_value {
    font-size: 18px;
    font-weight: 700;
    color: #0c420c;
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: 2px solid #1a7a1a;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.stable_page_subsection_title {
    font-size: 22px;
    color: #0c420c;
    margin-bottom: 20px;
    font-weight: 700;
}

.stable_page_change_section {
    background: #fafafa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.stable_page_change_heading {
    font-size: 18px;
    color: #1a7a1a;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #2d9b2d;
}

.stable_page_required {
    color: #d32f2f;
    font-weight: 700;
}

.stable_page_error_message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
    min-height: 18px;
}

.stable_page_password_requirements {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
}

.stable_page_requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.stable_page_requirement.stable_page_valid {
    color: #2d9b2d;
}

.stable_page_requirement.stable_page_invalid {
    color: #d32f2f;
}

.stable_page_req_icon {
    font-weight: 700;
    font-size: 14px;
    width: 16px;
    display: inline-block;
    text-align: center;
}

.stable_page_requirement.stable_page_valid .stable_page_req_icon {
    color: #2d9b2d;
}

.stable_page_requirement.stable_page_invalid .stable_page_req_icon {
    color: #d32f2f;
}

.stable_page_form_input.stable_page_error {
    border-color: #d32f2f;
}

/* Update existing form input max-width */
.stable_page_form_input {
    max-width: 500px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stable_page_info_highlight_value {
        font-size: 14px;
        padding: 8px 12px;
    }

        /* ADD to the 768px media query: */
    .stable_page_settings_panel {
        padding: 15px;
        margin: 0 10px 20px 10px;
    }

    .stable_page_change_section {
        padding: 15px;
    }
    
    .stable_page_form_input {
        max-width: 100%;
    }
}

.stable_page_form_input:focus {
    outline: none;
    border-color: #1a7a1a;
}

/* PayPal Modern Checkout — Delta CSS */

/* Button containers need a minimum width for PayPal's SDK */
.creditbuy_paypal-btn {
    min-width: 200px;
    max-width: 300px;
    display: inline-block;
    vertical-align: middle;
}

/* Status messages shown after payment actions */
.creditbuy_status {
    font-size: 12px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1.4;
}

.creditbuy_status-processing {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
}

.creditbuy_status-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #28a745;
}

.creditbuy_status-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #dc3545;
}

/* Adjust table cell to accommodate the PayPal button */
.creditbuy_paypal-cell {
    min-width: 220px;
}


.passcard_error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

.passcard_error_msg {
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.passcard_error_msg.passcard_visible {
    display: block;
}

/* =====================================================
   racelist_closed_entrow.css
   Styles for the expanded detail row (entrow_) 
   in races_list.j2
   ===================================================== */

.racelist_closed_detail_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 12px 16px;
    background-color: #f5f7ee;
    border-left: 4px solid #3cb043;
    border-radius: 0 0 6px 6px;
    font-family: inherit;
    font-size: 0.88em;
}

.racelist_closed_detail_group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.racelist_closed_detail_label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.racelist_closed_detail_value {
    font-size: 1em;
    color: #222;
    font-weight: 500;
}

.racelist_closed_detail_value.racelist_closed_highlight {
    color: #3cb043;
    font-weight: 700;
}

.racelist_closed_detail_value a {
    color: #2a52be;
    text-decoration: none;
}

.racelist_closed_detail_value a:hover {
    text-decoration: underline;
}

.racelist_closed_section_divider {
    width: 100%;
    border: none;
    border-top: 1px solid #dde5c8;
    margin: 6px 0;
}

.racelist_closed_badges_wrap {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}


.stable_page_transfer_panel {
    padding: 20px;
    margin-bottom: 20px;
}

