html,
body {
  height: 100%;
  min-height: 100vh;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.portal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  padding-top: 0;
  width: 100%;
}

.portal-footer-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  line-height: 1.4;
}

.portal-footer-muted {
  color: #86868b;
  white-space: nowrap;
}

.portal-footer a {
  font-weight: 400;
}

.portal-footer-brand,
.portal-footer-credit {
  align-items: baseline;
  display: flex;
  gap: 0.35rem;
}

@media (max-width: 575.98px) {
  .landing-header-container {
    padding-top: 0 !important;
  }

  .portal-footer .footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .portal-footer-inner {
    align-items: center;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .portal-footer-brand,
  .portal-footer-credit {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .portal-footer-credit {
    white-space: nowrap;
  }
}

.portal-page-content {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

.cookie-consent {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: 960px;
  padding: 1rem;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 9999999;
}

@supports (backdrop-filter: blur(16px)) {
  .cookie-consent {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.86);
  }
}

.cookie-consent {
  bottom: 1rem;
}

.cookie-consent-text {
  color: #1d1d1f;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.625rem;
}

.cookie-consent-button {
  align-items: center;
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.4rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.cookie-consent-button:hover {
  transform: translateY(-1px);
}

.cookie-consent-button:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.25);
  outline-offset: 2px;
}

.cookie-consent-accept {
  background: #188c52;
  color: #ffffff;
}

.cookie-consent-accept:hover {
  background: #147945;
}

.cookie-consent-decline {
  background: #f2f2f7;
  color: #424245;
}

.cookie-consent-decline:hover {
  background: #e5e5ea;
}

.navbar-header {
  align-items: center;
  display: flex;
}

.portal-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.6rem;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 2.5rem;
  padding-bottom: 0;
  padding-top: 0;
}

.portal-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 2rem;
  width: 2rem;
}

.portal-brand-short {
  display: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar-toggler {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: none;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.14);
}

.navbar-toggler-icon {
  height: 1.15rem;
  width: 1.15rem;
}

@media (max-width: 991.98px) {
  .navbar-header {
    justify-content: space-between;
    width: 100%;
  }

  .portal-brand {
    font-size: 1.05rem;
    gap: 0.55rem;
    margin-right: 0;
    min-height: 2.75rem;
  }

  .portal-brand-logo {
    height: 2.25rem;
    width: 2.25rem;
  }

  .portal-brand-full {
    display: none;
  }

  .portal-brand-short {
    display: inline;
  }
}

#search-form {
  margin: 0px !important;
}

#search-form .input-group:focus-within {
  border-radius: 6px;
  outline: 2px solid #777;
}

#search-form .form-control {
  border-color: #e9e9e9;
  border-right: 0;
}

#search-form .form-control:focus {
  border-color: #e9e9e9;
  border-right: 0;
  box-shadow: none;
  outline: 0;
}

#search-form .portal-search-button:focus {
  border-color: var(--bs-border-color);
  box-shadow: none;
  outline: 0;
}

.portal-search-button {
  background: #ffffff;
  border-color: var(--bs-border-color);
  border-left: 0;
  color: #6e7781;
}

.portal-search-button:hover,
.portal-search-button:focus {
  background: #ffffff;
  border-color: var(--bs-border-color);
  border-left: 0;
  color: #424a53;
}

.portal-search-button:focus {
  box-shadow: none;
}

.ui-widget.ui-widget-content {
  border-radius: 4px;
  top: 51px !important;
  z-index: 2000;
}

.ui-autocomplete.ui-widget.ui-widget-content {
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.language-switcher {
  align-items: center;
  display: flex;
  margin-bottom: 0;
  margin-top: 0;
}

.language-switcher .language-current {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--bs-navbar-color, rgba(255, 255, 255, 0.75));
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  gap: 0.5rem;
  line-height: 1.5;
  min-height: 2.375rem;
  padding: 0;
}

.language-switcher .language-current:hover,
.language-switcher .language-current:focus {
  background: transparent;
  box-shadow: none;
  color: var(--bs-navbar-hover-color, #ffffff);
}

.language-switcher .language-current:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.language-switcher .lang-flag {
  border-radius: 2px;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  display: block;
  height: 1.45rem;
  width: 1.95rem;
}

.landing-hero {
  align-items: stretch;
  background: #f7fbfd;
  border: 1px solid rgba(13, 110, 253, 0.1);
  border-radius: 18px;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  margin: 1rem 0 2rem;
  overflow: hidden;
  padding: 1.25rem;
}

.landing-hero-copy {
  align-content: center;
  display: grid;
  padding: 1.25rem;
}

.landing-title {
  align-items: center;
  display: flex;
  font-size: 2.15rem;
  font-weight: 700;
  gap: 0.875rem;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 42rem;
}

.landing-title-logo {
  display: block;
  flex: 0 0 auto;
  height: 5.4rem;
  width: 5.4rem;
}

.landing-title a {
  color: #1f7d9a;
}

.landing-intro {
  color: #2f3a40;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  max-width: 58rem;
}

.landing-actions {
  align-content: center;
  display: grid;
  gap: 0.75rem;
}

.landing-action {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 125, 154, 0.1);
  border-radius: 14px;
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
}

.landing-action-primary {
  background: #ffffff;
  border-color: rgba(31, 125, 154, 0.18);
}

.landing-icon {
  align-items: center;
  background: #edf8fb;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 2.25rem;
  font-size: 1.1rem;
  height: 2.25rem;
  justify-content: center;
  line-height: 1;
  width: 2.25rem;
}

.landing-line {
  color: #233036;
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}

.landing-action-cta a {
  color: #188c52;
}

@media (min-width: 992px) {
  .landing-hero {
    margin-top: 1.75rem;
    padding: 1.5rem;
  }

  .landing-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 575.98px) {
  .cookie-consent {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-left: 0;
    border-right: 0;
    bottom: 0;
    gap: 0.875rem;
    grid-template-columns: 1fr;
    padding: 1rem;
    width: 100%;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    width: 100%;
  }

  .cookie-consent-button {
    border-radius: 12px;
    font-size: 0.875rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    white-space: normal;
  }

  .landing-hero {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-left: -12px;
    margin-right: -12px;
    margin-top: 0;
    padding: 1rem 12px;
  }

  .landing-hero-copy {
    padding: 0.25rem 0 0;
  }

  .landing-title {
    font-size: 2rem;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
  }

  .landing-title-logo {
    height: 2.5rem;
    width: 2.5rem;
  }

  .landing-intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .landing-action {
    border-radius: 12px;
    padding: 0.875rem;
  }
}

:root,
[data-bs-theme="light"] {
  --datatable-header-color: #212529;
}

[data-bs-theme="dark"] {
  --datatable-header-color: #ffffff;
}

table.dataTable thead th {
  background: none !important;
  color: var(--datatable-header-color) !important;
  border: none !important;
}

.logo-container.big {
  width: 100px;
  height: 100px;
}

a {
  text-decoration: none;
}

.table > :not(caption) > * > * {
  padding: 1rem !important;
}

div.table-responsive > div.dataTables_wrapper > div.row {
  margin: 0.5rem 0 !important;
}

[data-bs-toggle="tooltip"] {
  display: inline-block !important;
  position: relative !important;
}

.btn-action-icon {
  min-height: 30px;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
}

.dataTable td,
.dataTable th {
  vertical-align: middle !important;
}

.tournament-place-field input[type="text"] {
  max-width: 30px !important;
}

.errorlist {
  margin: 0 !important;
}

.asteriskField {
  color: var(--bs-danger);
  margin-left: 0.15rem;
}

#div_id_captcha .captcha {
  display: block;
  height: auto;
  margin-bottom: 0.5rem;
  min-width: 180px;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
  border-color: var(--bs-danger);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);
}

/*
Tournaments classes
*/
.tournament_goes_to_rating td {
  background: rgba(var(--bs-success-rgb), 0.07) !important;
  border: rgba(var(--bs-success-rgb), 0.07) !important;
}

.tournament_away td {
  background: rgba(var(--bs-primary-rgb), 0.07) !important;
  border: rgba(var(--bs-primary-rgb), 0.07) !important;
}

.tournament_b td {
  background: rgba(var(--bs-secondary-rgb), 0.07) !important;
  border: rgba(var(--bs-secondary-rgb), 0.07) !important;
}
