body.page-template-schedule {
  /* background-color: #eee; */
}

.sc-page {
  padding: 50px 0;
}

.sc-flex {
  display: flex;
  flex-wrap: wrap;
}

.sc-container {
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  padding: 0 15px;
}

.sc-heading h1 {
  font-size: 40px;
  line-height: 1.5;
  color: #14ac00;
  font-weight: 700;
}

.sc-sidebar {
  width: 25%;
  padding: 0 15px;
}

.sc-main {
  width: 75%;
  padding: 0 15px;
}

.sc-btn {
  color: #ffffff;
  background-color: #14ac00;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  padding: 10px 15px;
  display: inline-block;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
}

.sc-sidebar-box {
  margin: 0 0 15px;
}

.sc-sidebar-box h2 {
  font-size: 20px;
  color: #333333;
  font-weight: 600;
  /* border-bottom: 1px solid #f3eeee; */
  padding: 0 5px 10px;
}

.sc-sidebar-box ul a {
  color: #333333;
  font-size: 13px;
  line-height: 1.2;
  display: block;
  padding: 0.5rem 1rem;
}

.sc-sidebar-box ul li.active a,
.sc-sidebar-box ul a:hover {
  background-color: #c8cdcd4d;
}

.sc-row {
  margin: 0 -15px;
}

.sc-box {
  margin: 0 0 20px;
}

.sc-box:has(ul.league-teams) {
  display: none;
}

.sc-box-inner {
  display: flex;
  flex-wrap: wrap;
  background-color: #ffffff;
}

.sc-box-heading {
  width: 100%;
  border-bottom: 1px solid #ebebeb;
}

.sc-box-heading h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  padding: 0;
}

.sc-cm .sc-box-body {
  /* padding: 12px; */
}

.sc-heading .sc-flex {
  align-items: center;
  justify-content: space-between;
}

.sc-leagues {
  margin: 0 0 10px;
}

.sc-leagues .sc-flex {
  gap: 15px;
}

.sc-leagues label {
  font-weight: bold;
}

.sc-tabs-header {
  margin: 0 0 10px;
}

.sc-tabs-header ul {
  display: flex;
  align-items: center;
  /* background-color: #14ac00ab; */
  background-color: #cccccc;
  overflow: hidden;
  justify-content: center;
}

.sc-tabs-header li {
  display: flex;
}

.sc-tabs-header a {
  color: #ffffff;
  padding: 10px 20px;
  display: inline-block;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}

.sc-tabs-header li.active a {
  background-color: #14ac00;
}

.sc-box-heading {
  margin: 0 0 20px;
}

.sc-box-heading>span {
  position: relative;
  display: inline-block;
  padding: 0 30px 0 15px;
}

.sc-box-heading>span::before {
  content: "";
  display: block;
  background-color: #14ac00;
  position: absolute;
  top: 0;
  left: -15px;
  bottom: 0;
  right: 10px;
  transform: skewX(30deg);
}

.sc-box-heading>span>span {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
  padding: 10px 10px;
  position: relative;
  z-index: 1;
}

.sc-box-body {
  width: 100%;
}

.league-team h3 {
  font-size: 18px;
}

.league-team:not(:last-child) {
  border-bottom: 1px solid #ebebeb;
}

.league-team-number {
  font-size: 18px;
  color: #333333;
  padding: 0 20px;
  font-weight: 600;
}

.league-team>div {
  align-items: center;
  padding: 12px 0;
}

.league-team a:hover {
  background-color: #c8cdcd33;
}

.league-team-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.league-team-details h3 {
  width: 100%;
  padding: 0;
  margin: 0 0 15px;
  font-weight: 600;
  font-size: 16px;
}

.league-team-details h3 {
  text-decoration: underline;
}

.league-team-details h3 a:hover {
  background-color: transparent;
}

.league-team-text {
  font-size: 14px;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-team-text svg {
  width: 23px;
}

.league-team-contact ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}

.league-team-contact a {
  display: flex;
  padding: 5px;
  border: 1px solid #14ac00;
  border-radius: 50%;
}

.league-team-contact svg {
  width: 18px;
  height: 18px;
}

.sc-box-tab {
  align-items: center;
  color: #555e61;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  height: 28px;
  letter-spacing: 0.4px;
  padding-left: 12px;
  text-transform: uppercase;
  background-color: #eee;
  border-radius: 3px;
  margin: 0 0 5px;
}

.sc-match {
  border-bottom: 1px solid #ebebeb;
  padding: 10px;
}

.sc-match:hover {
  background-color: #c8cdcd33;
}

.sc-match:last-child {
  border: none;
}

.sc-match-item {
  display: flex;
  align-items: center;
}

.sc-match-names {
  color: #333333;
  font-size: 14px;
  min-width: 150px;
}

.sc-match-team {
  color: #333333;
  font-size: 12px;
  min-width: 150px;
}

.sc-match-scores span {
  color: #333333;
  display: inline-block;
  text-align: center;
  min-width: 30px;
}

.sc-match-item.sc-winner .sc-match-team {
  font-weight: 700;
  color: #14ac00;
}

.sc-league-search {
  margin: 0 0 15px;
}

.sc-league-search .select2-container {
  max-width: 100%;
  width: 100% !important;
}

.sc-league-search .select2-container .select2-selection--single {
  border: 1px solid #eee;
  padding: 5px 0;
  height: auto;
  color: #333333;
}

.sc-league-search .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #333333;
  font-size: 14px;
}

.sc-league-search .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 7px;
}

.sc-box-tab-wrapper:not(:last-child) {
  margin: 0 0 10px;
}

.sc-ptitle {
  font-size: 30px;
  color: #14ac00;
  margin: 0 0 10px;
  font-weight: 700;
  text-align: center;
  padding: 0;
}

.single-schedules .sc-wrapper {
  padding: 20px 0;
}

.single-schedules .sc-wrapper .sc-container {
  max-width: 1080px;
}

.sc-compare {
  display: flex;
  flex-wrap: wrap;
}

.sc-compare-it {
  width: 45%;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
}

.sc-compare-scores {
  width: 10%;
}

.sc-date {
  text-align: center;
  margin: 0 0 30px;
}

.sc-compare-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  position: relative;
}

.sc-compare-name {
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  font-weight: 600;
  background-color: #14ac00;
  color: #ffffff;
  padding: 10px 0;
  position: relative;
}

.sc-compare-score::before {
  content: "";
  display: block;
  width: 100%;
  height: 36px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: #14ac00;
}

.sc-compare-score:nth-child(1)::before {
  height: 41.5px;
}

.sc-compare-sumary {
  padding: 5px 0;
  border: 1px solid #eee;
}

.sc-compare-sumary p {
  text-align: center;
  padding: 0;
}

.sc-compare-court-heading h3 {
  text-align: center;
  background-color: #14ac00;
  color: #ffffff;
  font-size: 16px;
  padding: 10px 10px;
}

.sc-compare-court-content {
  border: 1px solid #eee;
  padding: 15px;
}

.sc-compare-court-content p {
  padding: 0;
  margin: 0 0 10px;
  line-height: 1.3;
}

.sc-compare-score-it {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.sc-compare-score-it span {
  display: block;
  /* border-bottom: 1px solid #eee; */
  text-align: center;
  position: relative;
}

.sc-compare-score-it:nth-child(2) span::after {
  display: none;
}

.sc-compare-score-it span::after {
  content: "-";
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.sc-compare-box.sc-winner {
  position: relative;
}

.sc-compare-it-winning::before,
.sc-compare-box.sc-winner:after {
  content: "";
  display: block;
  width: 20%;
  height: auto;
  position: absolute;
  top: 60%;
  right: 0;
  transform: translate(0, -50%);
  background-image: url(../images/win.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 1 / 1;
}

.sc-compare-it-winning::before {
  top: 20px;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 1;
  display: none;
}

.ts-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.ts-table {
  border: 1px solid #eee;
  margin: 0 0 80px;
}

.ts-table-tr,
.ts-table-th {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.ts-table-tr:last-child {
  border-bottom: none;
}

.ts-table-th .ts-table-td {
  text-align: center;
  font-weight: 600;
  padding: 8px 3px;
  border-right: 1px solid #eee;
  color: #000;
}

.ts-table-tr .ts-table-td {
  text-align: center;
  font-weight: 400;
  padding: 8px 3px;
  border-right: 1px solid #eee;
}

.ts-table-tr .ts-table-td:last-child,
.ts-table-th .ts-table-td:last-child {
  border-right: none;
}

.ts-table-tr .ts-table-td:nth-child(1) {
  font-weight: 700;
}

.ts-table-tr .ts-table-td:nth-child(1),
.ts-table-th .ts-table-td:nth-child(1) {
  width: 40px;
}

.ts-table-tr .ts-table-td:nth-child(2),
.ts-table-th .ts-table-td:nth-child(2) {
  width: calc(100% - 360px);
}

.ts-table-tr .ts-table-td:nth-child(3),
.ts-table-th .ts-table-td:nth-child(3) {
  width: 120px;
}

.ts-table-tr .ts-table-td:nth-child(4),
.ts-table-th .ts-table-td:nth-child(4) {
  width: 100px;
}

.ts-table-tr .ts-table-td:nth-child(5),
.ts-table-th .ts-table-td:nth-child(5) {
  width: 100px;
}

.teams-stadings {
  padding: 40px 0 80px;
}

.teams-stadings li {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin: 0 0 20px;
}

.teams-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #14ac00;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  padding: 10px;
  aspect-ratio: 1/1;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  height: 110%;
}

.team-name {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  padding: 0 10px 0 70px;
  border: 1px solid #f7f7f7;
  min-height: 50px;
  font-weight: 600;
  color: #000;
  font-size: 20px;
}

.team-name a {
  color: #333333;
}

.team-name a:hover {
  color: #14ac00;
  text-decoration: underline;
}

.team-score,
.team-matches {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #14ac00;
  color: #ffffff;
  margin-left: 10px;
  min-height: 40px;
  position: relative;
}

.teams-stadings li:nth-child(1) .team-matches::before,
.teams-stadings li:nth-child(1) .team-score::before {
  content: "Score";
  position: absolute;
  display: block;
  bottom: calc(100% + 10px);
  width: 100%;
  left: 0;
  right: 0;
  text-align: center;
  color: #14ac00;
  font-weight: 700;
  border-bottom: 2px solid #14ac00;
  padding: 5px;
  box-sizing: border-box;
}

.teams-stadings li:nth-child(1) .team-matches::before {
  content: "Matches";
}

.sc-filter {
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.sc-filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.sc-filter-label {
  font-weight: 600;
}

.league-select {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.league-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #14ac00;
  border-width: 0 1px 1px;
  border-radius: 0 0 3px 3px;
  z-index: 10;
  overflow: hidden;
}

.league-select-options ul {
  list-style: none;
  padding: 0;
}

.league-select-options a {
  padding: 10px 15px;
  display: block;
  color: #333333;
  background-color: #ffffff;
}

.league-select-options li.active a,
.league-select-options a:hover {
  background-color: #f7f7f7;
}

.league-select-heading {
  padding: 5px 40px 5px 15px;
  border: 1px solid #14ac00;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.league-select.opened .league-select-heading {
  border-radius: 3px 3px 0 0;
}

.league-select-heading::after {
  content: "\25BC";
  color: #14ac00;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translate(0, -50%);
}

.data-empty p {
  text-align: center;
  font-size: 20px;
  margin: 20px 0 80px;
}

/* Card wrapper */

.sc-page .card {
  background: #fff;
  border-radius: 0.25rem;
  /* rounded-2xl */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: none;
  border-radius: 0;
}

/* Accordion button */
.sc-page .card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  background-color: #14ac00;
  border-radius: 0;
  color: #fff;
  /* text-gray-800 */
}

.sc-page .card-content-empty,
.sc-page .card-content-excerpt {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Icon transition */
.sc-page .card-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
  /* text-gray-500 */
  transition: transform 0.3s ease;
  display: none;
}

.sc-page .card-header svg.rotate {
  transform: rotate(180deg);
}

/* Accordion content */
.sc-page .card-content {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  /* border-gray-200 */
  display: none;
}

.sc-page .card-content.open {
  display: block;
}

/* Grid layout */
.sc-page .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Match card */

.sc-page .match {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}

.sc-page .match:hover {
  background: #f9fafb;
  /* hover:bg-gray-50 */
}

.sc-page .match p {
  margin: 0;
  padding: 0;
}

.sc-page .match .title {
  font-weight: 600;
  color: #374151;
  /* text-gray-700 */
}

.sc-page .match .subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  /* text-gray-500 */
}

.sc-page .section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  color: #111827;
}

/* Team card */
.sc-page .team-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 0.25rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-page .team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.sc-page .team-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.sc-page .team-rank {
  font-weight: 700;
  font-size: 1.2rem;
  color: #14ac00;
  /* xanh đậm */
  min-width: 2rem;
}

.sc-page .team-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  text-decoration: none;
  border: none;
  padding: 0;
  min-height: unset;
}

.sc-page .team-name:hover {
  color: #14ac00;
  text-decoration: underline;
}

.sc-page .captain {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.2rem 0 0;
}

/* Action icons */
.sc-page .team-actions {
  display: flex;
  gap: 0.5rem;
}

.sc-page .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #14ac00;
  color: #14ac00;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.sc-page .icon-btn:hover {
  background: #14ac00;
  color: #fff;
}

.sc-sidebar {
  background: #fff;
  font-family: "Inter", sans-serif;
}

.sc-sidebar-box+.sc-sidebar-box {
  margin-top: 1.5rem;
}

/* Tiêu đề */
.sc-sidebar h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

/* Dropdown league */
.sc-league-search select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-league-search select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* List các league */
.league-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.league-list li {
  margin-bottom: 0.5rem;
}

.league-list a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.league-list a:hover {
  background: #f3f4f6;
  color: #111827;
}

.league-list li.active a {
  background: #2563eb;
}

/* Button */
.sc-btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  color: #fff;
  background: #22c55e;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sc-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

#top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  /* bar height */
  z-index: 99999;
  pointer-events: none;
}

/* The bar itself */
.tp-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #059669);
  /* green gradient */
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
  transition: width 250ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms;
  transform-origin: left;
}

/* small spinner circle on right (optional) */
.tp-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-top-color: #059669;
  opacity: 0;
  transition: opacity 200ms;
  animation: tp-spin 0.8s linear infinite;
  pointer-events: none;
}

@keyframes tp-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* hidden state */
#top-progress.hidden .tp-bar {
  opacity: 0;
  width: 0 !important;
}

#top-progress.hidden .tp-spinner {
  opacity: 0;
}

/* visible spinner */
#top-progress.show-spinner .tp-spinner {
  opacity: 1;
}

/* small mobile tweak */
@media (max-width: 480px) {
  .tp-spinner {
    right: 8px;
    width: 12px;
    height: 12px;
    border-width: 1.5px;
  }
}

.league-it-inner {
  background-color: #ffffff;
  border-radius: 15px 15px 15px 15px;
  overflow: hidden;
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  display: flex;
  align-items: stretch;
}

.league-date {
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  background-color: #14ac00;
  padding-top: 20px;
  padding-right: 5px;
  padding-bottom: 20px;
  padding-left: 5px;
  margin-right: 15px;
  margin-bottom: 0px;
  width: 150px;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.league-date span {
  font-size: 60px;
  line-height: 48px;
}

.league-details {
  font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  color: #292121;
  line-height: 26px;
  width: calc(100% - 150px);
}

.league-title {
  font-size: 24px;
  color: #292121;
  line-height: 1.2;
  padding: 0;
  margin: 0 0 5px;
}

.league-match {
  color: #14ac00 !important;
  font-size: 16px;
  color: #292121;
  line-height: 26px;
}

.sc-compare-it-winning {
  position: relative;
}

.sc-winner-img {
  display: none;
}

.sc-winner-img img {
  width: 100px;
  display: none;
}

.sc-compare-name>span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.winner-banner {
  display: inline-block;
  background: linear-gradient(90deg, #28a745, #5cd65c);
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.winner-trophy {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #28a745;
  margin-top: 30px;
  padding: 15px;
  border-top: 2px dashed #28a745;
}

.sc-center {
  text-align: center;
}

.table {
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}

.table-tr {
  display: flex;
  flex-wrap: wrap;
}

.table-td {
  width: calc(100% / 3);
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-width: 0 1px 1px 0;
  margin: -1px -1px 0 0;
}

.table-td:last-child {
  border-width: 0 0 1px 0;
  margin-right: -3px;
  width: calc(100% / 3 + 3px);
}

.table-td a {
  color: #6b7280;
  text-decoration: underline;
}

.table-head .table-td {
  font-weight: 600;
  color: #000;
}

.sc-teams {
  padding: 30px 0 0;
}

.sc-teams .table-td {
  width: calc((100% - 40px) / 3);
}

.sc-teams .table-td:first-child {
  width: 40px;
  text-align: center;
}

.ht-table tbody td[data-label="Result"] {
  text-transform: capitalize;
}

.ts-team {
  padding: 0 0 40px;
}

.ts-back {
  margin: 30px 0 0;
  position: relative;
  z-index: 1;
}

.ts-team .sc-ptitle {
  margin: 10px 0 0;
}

.ts-team hr {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
}

.ts-team .table-td hr:last-child {
  display: none;
}

.ts-team .table-td {
  width: 70%;
}

.ts-team .table-td:first-child {
  width: 20%;
  text-align: center;
}

.ts-team .table-td:last-child {
  width: 10%;
  text-align: center;
}

.ts-back a {
  display: inline-flex;
  align-items: center;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  gap: 10px;
}

.ts-back-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: 1px solid #14ac00;
  border-radius: 100%;
  align-items: center;
  justify-content: center;
}

.ts-back-icon svg {
  width: 20px;
}

.ts-back-icon path {
  fill: #14ac00;
}

.table-match .table-td {
  width: calc(100% / 6);
}

.ht-table.ht-table2 thead th {
  font-weight: 600 !important;
}

.ht-table.ht-table2 tbody td,
.ht-table.ht-table2 thead th {
  background-color: transparent !important;
  border: 1px solid #e5e7eb !important;
}

.ht-table3 {
  width: 100%;
  border-collapse: collapse;
}

.ht-table3 td,
.ht-table3 th {
  border: 1px solid #cccccc;
  padding: 10px;
  text-align: center;
}

.ht-table3 th {
  border-color: #14ac00;
  background-color: #14ac00;
  color: #fff !important;
  font-weight: bold;
}

.ht-table3 th:not(:last-child) {
  border-right: 1px solid #cccccc;
}

.ht-table3 {
  margin: 0 0 30px;
}

.ht-table3 a:hover {
  text-decoration: underline;
}

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

.page-id-987506170 .ts-container,
.ts-team .ts-container {
  margin-bottom: 140px;
}

.mfc-page {
  padding: 20px 0 50px;
}

.mfc-page hr {
  border-color: #0000001c;
  border-width: 1px 0 0;
}

.mfc-page h2 {
  font-weight: 600;
  text-align: center;
  background-color: #14ac00;
  color: #fff;
  padding: 15px 0;
  margin: 0 0 20px;
}

.mfc-page h3 {
  font-size: 18px;
}

.mfc-page table {
  width: 100%;
}

.mfc-page table th,
.mfc-page table td {
  text-align: center;
  border: 1px solid #6b7280;
  padding: 10px;
  line-height: 1.3;
}

.mfc-page td:not(.wpdt-cell-no-btn) a {
  padding: 10px;
  color: #fff;
  background-color: #14ac00;
  outline: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
  font-size: 14px;
  display: block;
}

.mfc-page td:not(.wpdt-cell-no-btn) a:hover {
  opacity: 0.8;
}

.mfc-popup {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgb(0 0 0 / 50%);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  display: none;
}

.mfc-popup-container {
  width: 100%;
  max-width: 500px;
  background-color: #ffffff;
  height: 100vh;
  overflow: hidden;
  overflow-y: auto;
}

.mfc-popup-container h4 {
  padding: 15px;
  font-size: 20px;
  background-color: #14ac00;
  color: #ffffff;
}

.mfc-popup thead th {
  font-size: 14px;
}

.mfc-team {
  margin: 0 0 20px;
}

.mfc-team:not(:has(tbody)) {
  /* display: none; */
}

.mfc-matches input[name="save_watch"] {
  font-size: 18px;
  padding: 10px 20px;
}

.mfc-matches *.remove-btn {
  font-size: 13px;
  font-weight: 400;
  text-decoration: none !important;
}

.mfc-matches *.remove-btn:hover {
  opacity: 0.5;
}

.mfc-matches *.remove-btn,
.mfc-logout a,
.mfc-filter-icon,
.mfc-matches button {
  padding: 0;
  width: 30px;
  height: 30px;
  padding: 5px;
  background-color: #14ac00;
  border: none;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
  border-radius: 3px;
  cursor: pointer;
  display: block;
}

.mfc-logout a:hover,
.mfc-filter button:hover,
.mfc-matches tfoot input:hover,
.mfc-matches button:hover {
  opacity: 0.5;
}

.mfc-matches tbody .text {
  display: inline-block;
  padding: 5px;
  min-width: 50px;
  box-sizing: border-box;
  border: 1px solid transparent;
}

.mfc-matches tbody input {
  border: 1px solid #cccccc;
  font-weight: 700;
  color: #666666;
  padding: 3.5px 5px;
  width: 100%;
  max-width: 50px;
  font-size: 16px;
  box-sizing: border-box;
}

.mfc-matches tbody tr:has(input[type="number"]) .text {
  display: none;
}

.mfc-matches button:not(.active) svg:nth-child(2) {
  display: none;
}

.mfc-matches button.active svg:first-child {
  display: none;
}

.mfc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mfc-filter button,
.mfc-matches tfoot input {
  width: auto;
  color: #ffffff;
  padding: 5px 15px;
  background-color: #14ac00;
  color: #fff;
  border: none;
  outline: none;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
  border-radius: 3px;
  cursor: pointer;
}

.mfc-matches tbody td[colspan="6"] {
  text-align: center;
  color: #000;
  font-weight: bold;
  background-color: #cccccc !important;
}

.mfc-filter {
  position: relative;
  margin: 0 0 20px;
}

.mfc-filter-options {
  padding: 15px;
  border: 1px solid #f9f9f9;
  position: absolute;
  top: 100%;
  right: 0;
  width: 500px;
  background-color: #fff;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translate(0, 10px);
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

.mfc-filter-options.active {
  transform: translate(0, 0);
  opacity: 1;
  pointer-events: all;
}

.mfc-filter-option {
  width: calc(50% - 5px);
  display: flex;
  flex-direction: column;
}

.mfc-filter-option input {
  font-size: 16px;
  padding: 5px 10px;
  border: 1px solid #cccccc;
}

.table-sort-inner {
  display: flex;
  flex-direction: column;
}

.table-sort-inner>div {
  width: 25px;
  height: 20px;
  overflow: hidden;
  cursor: pointer;
}

.table-sort-inner>div.active path,
.table-sort-inner>div:hover path {
  fill: #292121;
}

.table-sort-up {
  display: flex;
  align-items: flex-start;
  padding-bottom: 3px;
}

.table-sort-down {
  display: flex;
  align-items: flex-end;
  padding-top: 3px;
}

td.wpdt-cell {
  font-weight: 400;
}

.wpdt-cell-nowrap {
  white-space: nowrap;
}

.wpdt-cell-sort {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pt-0 {
  padding-top: 0;
}

.sc-schedules {
  width: 100%;
}

.single-sc-page .ts-container {
  max-width: 1080px;
}

.ht-table3 th.wpdt-bp {
  border: none;
  background-color: transparent;
  color: #000 !important;
  font-weight: bold;
  font-size: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.mfc-sets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -10px;
}

.mfc-sets label span {
  font-weight: 600;
  font-size: 14px;
}

.mfc-sets label {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  gap: 5px;
  border-right: 1px solid #ccc;
}

.mfc-sets label:last-child {
  border-right: 0;
}

.mfc-sets label select {}

.mfc-sets label select:not(.active) {
  appearance: none;
  border: none;
  font-weight: 700;
  pointer-events: none;
  background-color: transparent;
}


.mfc-sets label input {
  text-align: center;
  border-color: #ccc transparent transparent;
  background-color: transparent;
  pointer-events: none;
}

.mfc-sets label input.active {
  border-color: #ccc;
  pointer-events: all;
}

.mfc-sets label input[type=number]::-webkit-outer-spin-button,
.mfc-sets label input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mfc-sets label input[type=number] {
  -moz-appearance: textfield;
}

.mm-page {
  padding: 0 0 100px;
}

.mfc-sets:has(.player_label) {
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
}

.mfc-sets label.player_label {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  border: none;
  margin: 0 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.sets-btn {
  display: flex;
  flex-direction: row;
  gap: 10px;
  border-top: 1px solid #555e61;
  padding: 10px 0 0;
  margin: 10px 0 0;
}

.sets-btn button {
  font-size: 12px;
  padding: 5px 10px !important;
}

.mfc-matches *.remove-btn,
.sets-btn button,
.mfc-matches button.remove-match,
.mfc-matches button.submit-btn,
.mfc-matches button.create-match {
  width: auto;
  height: auto;
  padding: 10px;
  color: #fff;
}

.mfc-matches button.create-match {
  float: left;
}

.mfc-matches *.remove-btn,
.mfc-matches button.remove-match {
  background-color: red !important;
  float: left;
}

td.no-p {
  padding: 0 !important;
  border: none !important;
}

td.no-p table {
  border: none !important;
}

.wpdt-match label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
}

.sets-btn button {
  width: auto !important;
  height: auto !important;
  padding: 5px !important;
}

.sets-btn button.set-remove {
  background-color: red;
}

.wpdt-match-sets label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  gap: 5px;
  margin: 0;
}

.wpdt-match-sets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

input.wpdt-cell-btn,
button.wpdt-cell-btn {
  width: auto !important;
  height: auto !important;
  color: #fff !important;
  padding: 10px !important;
  max-width: unset !important;
  background-color: #14ac00;
  border: none;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
  border-radius: 3px;
  cursor: pointer;
  display: block;
}

.wpdt-match>label>span:nth-child(2) {
  flex-grow: 1;
}

.wpdt-match>label select {
  width: 100%;
  padding: 9px;
}

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

.field-group {
  display: flex;
  gap: 5px;
  margin: 0 0 20px;
}

.field-group label {
  font-size: 16px;
  font-weight: 600;
  width: 150px;
  text-align: left;
}

.field-group input,
.field-group select {
  flex-grow: 1;
  padding: 8px 10px !important;
  font-size: 16px;
  max-width: 100% !important;
  width: auto !important;
}

.player-filter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.player-filter form select {
  padding: 8px 10px !important;
  font-size: 16px;
  line-height: 1;
}

.player-filter form a,
.player-filter form button {
  padding: 8px 15px !important;
  font-size: 16px;
  color: #fff;
  background-color: #14ac00;
  border: none;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
  border-radius: 3px;
  cursor: pointer;
  min-height: 42px;
}

.success-message {
  background-color: #d1fae5;
  color: #065f46;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0 0;
  border: 1px solid #10b981;
}

.up-link {
  display: flex;
  justify-content: flex-end;
}

.up-link a {
  text-align: right;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

@media (min-width: 992px) {
  .sc-schedules {
    padding: 40px 0 0;
  }
}

@media (max-width: 991px) {
  .mfc-page td {
    font-size: 16px;
  }

  .sc-sidebar {
    width: 100%;
  }

  .page-id-987506170 .ts-container,
  .ts-team .ts-container {
    margin-bottom: 100px;
  }

  .sc-main {
    width: 100%;
  }

  .league-list {
    display: none;
  }

  .sc-page {
    padding: 20px 0 50px;
  }

  .et-l--header>.et_builder_inner_content {
    z-index: 100;
  }

  .teams-stadings {
    padding: 0px 0 60px;
  }

  .sc-teams {
    padding: 0 0 0;
  }

  .sc-filter {}

  .sc-filter-field {
    flex-direction: column;
  }

  .sc-teams .ht-table td::before {
    display: none;
  }

  .sc-teams .ht-table.ht-table2 tbody td,
  .sc-teams .ht-table.ht-table2 thead th,
  .sc-teams .ht-table td {
    padding: 0;
    border: none !important;
    box-shadow: none;
  }

  .sc-teams .ht-table tr {
    border: none;
    padding: 0;
    box-shadow: none;
    margin: 0 0 10px !important;
  }

  .sc-teams table {
    border: none !important;
  }


}

@media (max-width: 768px) {
  .field-group label {
    font-size: 14px;
    max-width: 80px;
    line-height: 1.3;
  }

  form#update-player {
    padding: 15px 0;
  }

  .ts-container.player-ts-container {
    padding: 25px 15px 0;
  }

  .mfc-matches *.remove-btn,
  .mfc-matches button.submit-btn {
    padding: 5px 10px;
  }

  .field-group input,
  .field-group select {
    font-size: 12px !important;
  }

  .league-select-heading {
    font-size: 14px;
  }

  .league-select-options a {
    font-size: 12px;
  }

  .ht-table.ht-table3 thead {
    display: unset;
  }

  .ht-table.ht-table3 tr {
    padding: 0;
    display: table-column !important;
  }

  .ht-table.ht-table3 thead th,
  .ht-table.ht-table3 thead th {
    display: table-column !important;
  }

  .entry-content thead th,
  .entry-content tr th {
    padding: 6px 12px;

  }

  .entry-content tr td {
    padding: 6px 12px;
  }

  .ht-table3.ht-table-team td,
  .ht-table3.ht-table-team th {
    border: 1px solid #cccccc;
    padding: 4px !important;
    text-align: center;
    font-size: 8px;
  }

  .ht-cont-sp .et_pb_row {
    width: 90%;
  }

  .ht-table3 td,
  .ht-table3 th {
    padding: 4px;
    font-size: 12px;
  }

  .mfc-page td:not(.wpdt-cell-no-btn) a {
    font-size: 10px;
    padding: 5px;
  }

  .mfc-page th,
  .mfc-page td {
    font-size: 12px;
  }

  .mfc-page table th,
  .mfc-page table td {
    padding: 10px;
    font-size: 16px;
  }

  .mfc-page td:not(.wpdt-cell-no-btn) a {
    font-size: 8px;
    text-align: center;
  }

  body:has(.mfc-page) .container {
    width: 100%;
    padding: 0 15px;
  }

  .mfc-matchs thead th:last-child {
    width: 80px !important;
  }

  .mfc-filter-options {
    width: 80vw;
  }

  .mfc-filter-option {
    width: 100%;
  }

  .mfc-page h2 {
    font-size: 16px;
    padding: 8px 0;
  }

  .mfc-filter button,
  .mfc-matches tfoot input {
    font-size: 12px;
  }

  .mfc-logout a,
  .mfc-filter-icon,
  .mfc-matches button {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mfc-page table th:last-child {
    width: 40px !important;
  }

  .player-filter form a,
  .player-filter form button,
  .player-filter form select {
    font-size: 14px;
    height: 42px;
  }

  .success-message {
    margin: 0;
    font-size: 14px;
    padding: 10px;
  }
}

@media (max-width: 575px) {
  .wpdt-match>label {
    flex-direction: column;
    align-items: flex-start;
  }

  .wpdt-match>label>span:nth-child(2) {
    width: 100%;
  }
}