.table-with-sorting th.sortable {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.table-with-sorting th.sortable::after {
  font-family: "FontAwesome";
  content: "\f0dc"; /* fa-sort */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #464646;
}

.table-with-sorting th.sortable.asc::after {
  content: "\f0de"; /* fa-sort-asc */
}

.table-with-sorting th.sortable.desc::after {
  content: "\f0dd"; /* fa-sort-desc */
}

#search-filter-form-145529 ul .chosen-container a {
  height: 31px;
  background: #fff;
  border: 1px solid #b7b7b7;
  border-radius: 0;
  line-height: 31px;
  font-weight: normal;
  box-shadow: none;
}
#search-filter-form-145529 .sf-field-sort_order .sf-input-select {
  display: none;
}

/* === Trainer dropdown styling === */

/* Hide the first "Trainer" item in the dropdown */
.chosen-drop .chosen-results li:first-child {
  display: none !important;
}
.chosen-drop .chosen-results li {
  font-weight: normal;
}
/* Change hover background color */
.chosen-drop .chosen-results li.active-result:hover {
  background: #56236d !important;
  color: #fff !important; /* optional: make text white on hover */
}

/* li.sf-field-sort_order {
  display: none !important;
} */

/* width */
.table-with-sorting th:nth-child(1),
.table-with-sorting td:nth-child(1) {
  width: 3%;
}

.table-with-sorting th:nth-child(2),
.table-with-sorting td:nth-child(2) {
  width: 25%;
}

.table-with-sorting th:nth-child(3),
.table-with-sorting td:nth-child(3) {
  width: 12%;
}

.table-with-sorting th:nth-child(4),
.table-with-sorting td:nth-child(4) {
  width: 8%;
}

.table-with-sorting th:nth-child(5),
.table-with-sorting td:nth-child(5) {
  width: 6%;
}

.table-with-sorting th:nth-child(6),
.table-with-sorting td:nth-child(6) {
  width: 13%;
}

.table-with-sorting th:nth-child(7),
.table-with-sorting td:nth-child(7) {
  width: 15%;
}
@media (max-width: 768px) {
  .table-with-sorting th:nth-child(4),
  .table-with-sorting td:nth-child(4) {
    min-width: 100px;
  }
  .table-with-sorting th:nth-child(5),
  .table-with-sorting td:nth-child(5) {
    min-width: 80px;
  }
}

/* 3/11 fix */
/* .fc-event-main small {
  display: none !important;
} */
.page-template-page-horse-trackwork .trackwork-title-text {
  display: none;
}
.fc-event-main small {
  font-size: 10px;
  padding-bottom: 5px;
}
.fc-daygrid-day-frame.fc-scrollgrid-sync-inner {
  display: flex;
  flex-direction: column;
}
#ht-calendar.fc .fc-daygrid-day-frame {
  max-height: unset !important;
  min-height: 150px;
}
.fc .fc-daygrid-day-frame {
  min-height: unset;
}
.fc-scrollgrid-sync-table {
  height: 550px !important;
}
@media (max-width: 768px) {
  .trackwork-title-text {
    white-space: normal;
    font-size: 10px;
  }
  .fc-event-main small {
    font-size: 8px;
  }
  #ht-calendar.fc .fc-daygrid-day-frame {
    min-height: 130px;
  }

  /* mobile scroll */
  .page-template-page-horse-trackwork .fc-col-header,
  .page-template-page-horse-trackwork .fc-scrollgrid-sync-table,
  .page-template-page-horse-trackwork .fc-dayGridMonth-view.fc-view.fc-daygrid {
    min-width: 550px;
  }
  .page-template-page-horse-trackwork .fc-view-harness.fc-view-harness-active {
    overflow-x: auto;
  }
}
.fc-event-main small {
  white-space: normal;
}

.inactive-video {
  pointer-events: none;
  background: #fff;
}

.inactive-video img {
  opacity: 0;
  filter: grayscale(100%);
}

/* -------- */
/* support */
/* ------- */
/*  */
/* ................................ */
/* make trainer table more visisble */
/* ................................. */
.detail_horse_list table.dataTable thead > tr > th.sorting_asc:before {
  opacity: 1 !important;
}
.detail_horse_list table.dataTable thead > tr > th.sorting.sorting_asc:after {
  opacity: 0 !important; /* Hide desc indicator when asc is active */
}
.detail_horse_list table.dataTable thead > tr > th.sorting.sorting_desc:before {
  opacity: 0 !important; /* Hide asc indicator when desc is active */
}
.detail_horse_list table.dataTable thead > tr > th.sorting.sorting_desc:after {
  opacity: 1 !important;
}
/* Inactive sorting columns - show both with low opacity */
.detail_horse_list table.dataTable thead > tr > th.sorting:before,
.detail_horse_list table.dataTable thead > tr > th.sorting:after {
  opacity: 1 !important;
}
/* .................................................. */
/* trainer, single horse & joeckey house table merge */
/* ................................................. */
.pl-red-last {
  color: red;
  font-weight: 600;
}
/* single horse */
table.stdtb thead td.pl-merge-hidden {
  min-height: 50px;
  border: 0;
}
/* single trainer, jockey */
table.stdtb thead td.pl-merge-hidden.jockey,
table.stdtb thead td.pl-merge-hidden.trainer {
  width: 100% !important;
  border: solid 1px #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  align-items: center;
  display: flex !important;
}
td.pl-merge-hidden,
th.pl-merge-hidden {
  display: block !important;
}
td.pl-original,
th.pl-original,
td.running-original,
th.running-original {
  display: none !important;
}
/* ----------------- */
/* single horse page */
/* ----------------- */
.single-horses h2 {
  font-weight: bold !important;
  color: #000;
}
.single-horses span.oldname {
  font-style: italic;
  color: #464646;
}
.single-horses .stc-bread {
  display: none;
}

/* ------------------------------- */
/* trackwork page add share button */
/* ------------------------------- */
.trackwork-share-btn {
  display: none !important;
}

/* single horses rating show updated rating value */
/* .rating.updated-rating {
  color: transparent !important;
} */
.rating.updated-rating .js-updated-rating {
  margin-top: -10% !important;
  display: none;
}

/* ------------------------------- */
/* jockey page */
/* ------------------------------- */
@media (max-width: 768px) {
  .single-jockeys .trainer-all.stc-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }
  .single-jockeys .trainer-all.stc-table th:nth-child(12),
  .single-jockeys .trainer-all.stc-table th:nth-child(13) {
    white-space: normal;
    min-width: 100px;
  }
}

/* ------------------------------- */
/* single horse ---logo */
/* ------------------------------- */
.single-horse-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.single-horses .breadcrumbs {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
}
@media (min-width: 1000px) {
  .single-horses .single-horse-header .alownerjersey,
  .single-horses .single-horse-header .horse-logo-item--desktop {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }
  .single-horses .single-horse-header .horse-logo-item--desktop {
    visibility: visible !important;
    height: auto;
    max-width: none;
    object-fit: contain;
    /* margin-left: 20px; */
  }
  .single-horses .single-horse-header .horse-logo-item {
    visibility: hidden;
  }
  .single-horses .single-horse-header .single-horse {
    max-width: 250px;
  }
  .single-horses .single-horse-header .horse-logo-item--desktop img {
    width: 50px;
    margin-right: 5px;
  }
  .single-horses .single-horse-header .alownerjersey img:last-child {
    margin-right: 10px;
  }
}
.single-horses .breadcrumbs .horse-logo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.single-horses .breadcrumbs .horse-header-logo img {
  width: 50px;
  height: auto;
  max-width: none;
  object-fit: contain;
}
@media (max-width: 768px) {
  .single-horses .breadcrumbs .horse-logo-item {
    display: inline;
  }

  .single-horses .breadcrumbs .horse-header-logo img {
    width: 35px;
  }
  .single-horses .breadcrumbs {
    justify-content: space-between;
    padding-left: 0;
  }
  .single-horses .breadcrumbs .header-share {
    margin-bottom: 0;
  }
  .single-horse-header {
    display: block;
  }
  .single-horses .breadcrumbs .horse-logo-item {
    margin-left: 0;
  }
  .single-horse-header .alownerjersey img {
    max-width: 30px;
  }
}

/* new horse logo */
/* .single-horses .horse-title-wrap {
  display: flex;
}
.single-horses .horse-logo-item.logo-jersey {
  display: flex;
  margin-left: 10px;
  align-items: flex-end;
}
.single-horses .horse-logo-item.logo-jersey img {
  width: 50px;
  height: 50px;
  margin: 0 5px;
  object-fit: contain;
} */

/* api dividen horse */
.custom-dividend-table.api-dividend-table td:nth-child(3) {
  text-align: center;
}

/* ------------------------------------------------------ */
/*  horse sorting */
/* ----------------------------------------------------- */
.sticky-table.single-horses thead td {
  position: relative;
  cursor: pointer;
  padding-right: 18px;
}
.sticky-table.single-horses thead td:not(.minvideo2)::after {
  content: "▲";
  position: absolute;
  right: 6px;
  opacity: 0.35;
  font-size: 8px;
}
.sticky-table.single-horses thead td:not(.minvideo2):hover::after {
  opacity: 0.8;
}
.sticky-table.single-horses thead td.sort-asc::after {
  content: "▲";
  opacity: 1;
}
.sticky-table.single-horses thead td.sort-desc::after {
  content: "▼";
  opacity: 1;
}
.sticky-table.single-horses thead td.minvideo2 {
  cursor: default !important;
  padding-right: 0 !important;
}
.sticky-table.single-horses thead td.minvideo2::after {
  content: none !important;
  display: none !important;
}

/* Fix table header vertical alignment */
.sticky-table.single-horses table.stdtb thead tr:first-child > td {
  vertical-align: bottom !important;
  padding-bottom: 8px !important;
  display: table-cell !important;
}

/* ------------------------------------------------------ */
/* Trainer sorting — 
/* ----------------------------------------------------- */
.single-trainers .sticky-table thead td {
  position: relative;
  padding-right: 18px;
}
.single-trainers .sticky-table thead td:not(.minvideo)::after {
  content: "▲";
  position: absolute;
  right: 6px;
  opacity: 0.35;
  font-size: 8px;
}
.single-trainers .sticky-table thead td:not(.minvideo):hover::after {
  opacity: 0.8;
}
.single-trainers .sticky-table thead td.sort-asc::after {
  content: "▲";
  opacity: 1;
}
.single-trainers .sticky-table thead td.sort-desc::after {
  content: "▼";
  opacity: 1;
}
.single-trainers .sticky-table thead td.minvideo::after {
  content: none !important;
  display: none !important;
}
/*  */
.single-trainers .detail_horse_list .pl-merge-hidden.trainer {
  width: 80px !important;
}

/* ----------------------------------- */
/* daily trackwork share video button */
/* --------------------------------- */
.horse-scene-sec .hsb-foot-div {
  display: flex;
  align-items: center;
}
.horse-scene-sec .hsb-foot-link {
  display: flex;
  align-items: center;
  flex: 1;
}
.horse-scene-sec .hsb-share-btn {
  position: relative;
  left: -10%;
  cursor: pointer;
}
.hsb-share-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}
.hsb-share-icon:hover {
  transform: scale(1.7);
}
.horse-scene-sec .hsb-share-popup {
  display: none;
  position: absolute;
  right: 0;
  top: 25px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  min-width: 150px;
  z-index: 999;
  border-radius: 10px;
  padding: 10px;
}
.horse-scene-sec .hsb-share-popup div {
  padding: 8px 12px;
}
.horse-scene-sec .hsb-share-popup div:hover {
  color: #af2b3b;
}
.hsb-foot-div:hover {
  background-color: rgb(0 0 0 / 10%);
}

/* 12.3.26 website update  */
/* hide "x" in prettyphoto */
#fancybox-close span {
  display: none;
}
/* .declaration-row {
  min-width: 50vw !important;
}
.declaration-row,
.declaration-row .vc_column_container {
  width: 100% !important;
}
@media only screen and (max-width: 678px) {
  .declaration-row {
    padding-left: 15px;
  }
} */
.widget_nice_navigation ul.children {
  padding-left: 0 !important;
}
