/* Styles to override and extend the SME util module styles. */

.ui-autocomplete-loading {
  background: var(--primary-white) url("../user_admin/style/ui-anim_basic_16x16.gif") right center no-repeat;
} 

.tc-editing-note {
  margin: 8px 0 14px 0;
  text-align: center;
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 600;
}

.tc-setup-title {
  margin: 0 0 8px 0;
  color: var(--primary-text);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.2;
}

.tc-page-info {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 10px;
  background: var(--primary-surface);
}
.tc-page-info p {
  margin: 0;
  color: var(--primary-blue);
  font-size: 14px;
  line-height: 1.4;
}
.tc-page-info i {
  color: var(--primary-1);
}

.tc-team-constraints-title {
  margin: 0 0 10px 0;
  color: var(--primary-text);
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 700;
  line-height: 1.25;
}
 
.tc-ranking-widget {
  width: 100%;
  margin-top: 14px; 
}
.tc-ranking-widget-label {
  margin: 0;
  display: block;
  color: var(--primary-text);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}
.tc-ranking-widget-body {
  margin-top: 8px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 8px;
  background: var(--primary-surface);
  padding: 12px;
  border: 1px solid #dddddd;
}
.tc-ranking-widget-empty {  
  margin: 0;
  color: var(--primary-blue);
  font-style: italic;
}
.tc-ranking-row {
  position: relative;
  display: block;
  margin: 0 0 10px 0;
  padding: 12px 44px 12px 14px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 6px;
  background: var(--primary-white);
  cursor: pointer;
}
.tc-ranking-row:last-child {
  margin-bottom: 0;
}
.tc-ranking-row-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tc-ranking-row-checkmark {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 1px solid var(--primary-surface-inverse);
  background: var(--primary-surface-inverse);
}
.tc-ranking-row:hover .tc-ranking-row-input ~ .tc-ranking-row-checkmark {
  background: var(--primary-4);
}
.tc-ranking-row .tc-ranking-row-input:checked ~ .tc-ranking-row-checkmark {
  background: var(--primary-1);
  border-color: var(--primary-1);
}
.tc-ranking-row-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px; 
  height: 11px;
  border: solid var(--primary-white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.tc-ranking-row .tc-ranking-row-input:checked ~ .tc-ranking-row-checkmark:after {
  display: block;
}
.tc-ranking-row-title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-text);
}
.tc-ranking-row-desc {
  display: block;
  margin-top: 4px;
  color: var(--primary-blue);
  font-size: 13px;
  line-height: 1.35; 
} 

.tc-selected-row {
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 10px;
  background: var(--primary-surface);
}
.tc-selected-label {
  margin: 0 0 8px 0;
  display: block;
  color: var(--primary-text);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}
.tc-selected-row .form-control {
  border: 2px solid var(--primary-3);
  border-radius: 8px;
  background: var(--primary-white);
  color: var(--primary-text);
  box-shadow: inset 0 0 0 1px var(--primary-surface-inverse);
}
.tc-selected-row .form-control:hover {
  border-color: var(--primary-1);
}
.tc-selected-row .form-control:focus {
  border-color: var(--primary-1);
  box-shadow: inset 0 0 0 1px var(--primary-3);
}
.tc-selected-row .form-control[readonly] {
  border-color: var(--primary-3);
  background: var(--primary-white);
  color: var(--primary-blue);
}
.tc-selected-row.matchTypeBlock p {
  margin: 8px 0 0 0;
  color: var(--primary-blue);
}
.tc-selected-row .tc-selected-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-1);
  cursor: pointer;
}
.tc-selected-row .tc-selected-checkbox[disabled] {
  cursor: not-allowed;
}
.tc-selected-row:not(.tc-selected-row-visibility) {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #dddddd;
}
.tc-selected-row:not(.tc-selected-row-visibility) .tc-selected-label {
  margin: 0;
}
.tc-selected-row:not(.tc-selected-row-visibility) .tc-selected-checkbox {
  justify-self: center;
}
.tc-selected-row-visibility .tc-setting-options-compact {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 999px;
  background: var(--primary-surface);
}
.tc-selected-row-visibility .tc-setting-options-compact .tc-setting-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.tc-selected-row-visibility .tc-setting-options-compact .tc-setting-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.tc-selected-row-visibility .tc-setting-options-compact .tc-setting-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 108px;
  padding: 0 16px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 999px;
  background: var(--primary-white);
  color: var(--primary-text);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
}
.tc-selected-row-visibility .tc-setting-options-compact .tc-setting-option:hover span {
  border-color: var(--primary-3);
  background: var(--primary-4);
}
.tc-selected-row-visibility .tc-setting-options-compact .tc-setting-radio:checked + span {
  border-color: var(--primary-1);
  background: var(--primary-1);
  color: var(--primary-white);
  box-shadow: 0 6px 12px var(--primary-surface-inverse-transparent);
}
.tc-selected-row-visibility .tc-setting-options-compact .tc-setting-radio:focus-visible + span {
  outline: 2px solid var(--primary-3);
  outline-offset: 2px;
}  

.tc-editor-frame {
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 10px;
  background: var(--primary-surface);
  border: 1px solid #dddddd;
}

.tc-tournament-settings {
  margin-top: 8px;
}
.tc-tournament-settings .tc-setting-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 10px;
  background: var(--primary-surface);
  border: 1px solid #dddddd;
}
.tc-tournament-settings .tc-setting-row:last-child {
  margin-bottom: 0;
}
.tc-tournament-settings .tc-setting-label {
  margin: 0;
  color: var(--primary-text);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}
.tc-tournament-settings .tc-setting-checkbox,
.tc-tournament-settings .tc-setting-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-1);
  cursor: pointer;
}
.tc-tournament-settings .tc-setting-row-visibility {
  grid-template-columns: 1fr;
}
.tc-tournament-settings .tc-setting-options {
  display: inline-flex;
  justify-content: center ;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 999px;
  background: var(--primary-surface);
}



.tc-tournament-settings .tc-setting-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.tc-tournament-settings .tc-setting-option .tc-setting-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.tc-tournament-settings .tc-setting-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 110px;
  padding: 0 16px;
  border: 1px solid var(--primary-surface-inverse);
  border-radius: 999px;
  background: var(--primary-white);
  color: var(--primary-text);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
}
.tc-tournament-settings .tc-setting-option:hover span {
  border-color: var(--primary-3);
  background: var(--primary-4);
}
.tc-tournament-settings .tc-setting-option .tc-setting-radio:checked + span {
  border-color: var(--primary-1);
  background: var(--primary-1);
  color: var(--primary-white);
  box-shadow: 0 6px 12px var(--primary-surface-inverse-transparent);
}
.tc-tournament-settings .tc-setting-option .tc-setting-radio:focus-visible + span {
  outline: 2px solid var(--primary-3);
  outline-offset: 2px;
}

#tournamentForm .tc-form-action {
  display: block;
  width: min(100%, 220px);
  margin: 10px auto 0;
  min-height: 52px;
  border-radius: 10px;
  /* border: 1px solid var(--primary-surface-inverse); */
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-white);
  /* box-shadow: 0 6px 12px var(--primary-surface-inverse-transparent); */
  transition: transform 0.15s ease;
  background: var(--primary-1);

}
#tournamentForm .tc-form-action:hover {
  transform: translateY(-1px);
}
#tournamentForm .tc-form-action i {
  color: var(--primary-white);
}
#tournamentForm .tc-form-action-save {
  margin-top: 12px;
  background: var(--primary-1);
}
#tournamentForm .tc-form-action-delete {
  margin-top: 8px;
  background: var(--primary-red);
}
@media (max-width: 640px) {
  .tc-selected-row:not(.tc-selected-row-visibility) {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tc-selected-row:not(.tc-selected-row-visibility) .tc-selected-label {
    margin: 0 0 4px 0;
  }
  .tc-selected-row:not(.tc-selected-row-visibility) .tc-selected-checkbox {
    justify-self: start;
  }
  .tc-selected-row-visibility .tc-setting-options-compact {
    border-radius: 14px;
  }
  .tc-selected-row-visibility .tc-setting-options-compact .tc-setting-option span {
    min-width: 96px;
    min-height: 36px;
    padding: 0 12px;
  }
  .tc-tournament-settings .tc-setting-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tc-tournament-settings .tc-setting-options {
    display: flex;
    border-radius: 14px;
  }
  .tc-tournament-settings .tc-setting-option span {
    min-width: 98px;
    min-height: 38px;
    padding: 0 12px;
  }
  #tournamentForm .tc-form-action {
    width: 100%;
    max-width: 320px;
  }
}


      