@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
  background-color: #212529;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
  font-family: "Inter", sans-serif;
  font-size: 10px;
  line-height: 1.5;
  padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
  color: #f8f9fa;
}

a {
  color: #f8f9fa;
}
a:hover {
  color: rgb(218.25, 223.5, 228.75);
}

hr {
  border-top: 1px solid #f8f9fa;
}

.a {
  border: 1px solid red;
  display: inline;
}

.a li {
  display: inline;
  height: 5em;
  width: 5em;
}

.b {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px; /* row/column gaps */
  margin: 0 0 12px;
  padding-left: 1.2em; /* keep bullets */
}

.b li {
  width: 17em;
  /* no floats needed */
}

/* One vertical scrollbar per grid cell. No horizontal scroll by default. */
.pane-scroll, .user-details,
.user-invites,
.user-gameinfo,
.user-teamstats,
.user-gamegraph,
.user-fixtures,
.topscorer,
.herbstmeister,
.mostgoalschristmas, .gameresult,
.fixtures {
  min-height: 0; /* let the pane shrink inside grid tracks */
  overflow-y: auto; /* single scroll axis */
  overflow-x: hidden;
}

/* Prevent inner wrappers from adding a second scrollbar */
.pane-scroll > :not(.table-responsive), .user-details > :not(.table-responsive),
.user-invites > :not(.table-responsive),
.user-gameinfo > :not(.table-responsive),
.user-teamstats > :not(.table-responsive),
.user-gamegraph > :not(.table-responsive),
.user-fixtures > :not(.table-responsive),
.topscorer > :not(.table-responsive),
.herbstmeister > :not(.table-responsive),
.mostgoalschristmas > :not(.table-responsive), .gameresult > :not(.table-responsive),
.fixtures > :not(.table-responsive) {
  overflow: visible !important;
  max-height: none !important;
}

/* Admin stored-results: allow horizontal scroll for wide tables (avoid clipped columns). */
.admin-stored.pane-scroll, .admin-stored.user-details,
.admin-stored.user-invites,
.admin-stored.user-gameinfo,
.admin-stored.user-teamstats,
.admin-stored.user-gamegraph,
.admin-stored.user-fixtures,
.admin-stored.topscorer,
.admin-stored.herbstmeister,
.admin-stored.mostgoalschristmas, .admin-stored.gameresult,
.admin-stored.fixtures {
  overflow-x: auto;
}

/* Grid box look shared across pages (home, user, etc.) */
.grid-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem; /* <- the missing rounded corners */
  background: transparent;
  padding: 8px;
}

/* Mobile-first: hidden on mobile */
.mobile_hide {
  display: none;
}

/* At md and up: put cells back as real table cells */
@media (min-width: 768px) {
  th.mobile_hide,
  td.mobile_hide {
    display: table-cell;
  }
}
.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

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

.pb-0 {
  padding-bottom: 0 !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.wrapper {
  display: flex;
  width: 100%;
  padding-bottom: 10px;
  align-items: stretch;
}

.grid-container {
  display: grid;
  grid-gap: 1em;
}

.box {
  color: #fff;
  border-radius: 5px;
  font-size: 100%;
  padding: 0.5em;
  background-color: transparent;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
  width: 100%;
  background: var(--bs-dark-bg-subtle);
}

@media (min-width: 576px) {
  .grid-container {
    grid-gap: 1.25em;
  }
}
@media (min-width: 768px) {
  .grid-container {
    grid-gap: 1.5em;
  }
}
@media (min-width: 992px) {
  .grid-container {
    grid-gap: 2em;
  }
}
@media (min-width: 1400px) {
  .grid-container {
    grid-gap: 2.5em;
  }
}
header.navbar {
  background-color: var(--banner-color, #212529) !important;
  padding: 0.2rem 0.7rem;
}
header.navbar img {
  display: block;
}
header.navbar .nav-link {
  color: #fff;
  font-size: 0.7rem;
}
header.navbar .nav-link:hover {
  color: rgb(229.5, 229.5, 229.5);
}
header.navbar .navbar-text {
  font-size: 0.875rem;
}
header.navbar select.custom-select {
  background-color: #212529;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}
header.navbar select.custom-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
header.navbar .navbar-avatar-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  display: block;
}
header.navbar .navbar-avatar-icon {
  font-size: 1.6rem;
  line-height: 1;
}
header.navbar .dropdown-menu {
  font-size: 0.7rem;
}

.sidebar {
  width: 250px;
  position: fixed;
  left: 0;
  top: 56px;
  background-color: #212529;
  transition: transform 0.3s ease-in-out;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 1050;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  .sidebar {
    transform: translateX(-220px);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}
.gameresult {
  grid-area: gameresult;
}

.fixtures {
  grid-area: fixtures;
}

.topscorer {
  grid-area: topscorer;
}

.herbstmeister {
  grid-area: herbstmeister;
}

.mostgoalschristmas {
  grid-area: mostgoalschristmas;
}

.chat {
  grid-area: chat;
}

.response {
  grid-area: response;
}

.user-details {
  grid-area: user-details;
}

.user-gameinfo {
  grid-area: user-gameinfo;
}

.user-gamegraph {
  grid-area: user-gamegraph;
}

.user-teamstats {
  grid-area: user-teamstats;
}

.user-fixtures {
  grid-area: user-fixtures;
}

.user-invites {
  grid-area: user-invites;
}

.wrapper-home,
.wrapper-user {
  display: grid;
  gap: 1rem;
  padding: 8px;
  margin: 0 auto;
  max-width: 100%;
  align-items: stretch;
}

.wrapper-usergameselections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  padding: 1rem;
}

.wrapper-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gameresult,
.chat,
.fixtures,
.user-fixtures,
.user-gamegraph,
.user-details,
.user-gameinfo,
.user-invites,
.user-teamstats,
.topscorer,
.herbstmeister,
.mostgoalschristmas {
  min-height: 0;
}

.topscorer,
.herbstmeister,
.mostgoalschristmas {
  max-height: 15em;
  overflow-y: auto;
}

.gameresult,
.fixtures,
.user-fixtures,
.chat {
  max-height: 56vh;
  overflow-y: auto;
  overflow-x: auto;
}

@media (min-width: 576px) {
  .topscorer,
  .herbstmeister,
  .mostgoalschristmas {
    max-height: 15em;
    overflow-y: auto;
  }
}
@media (min-width: 768px) {
  .topscorer,
  .herbstmeister,
  .mostgoalschristmas {
    max-height: 18em;
    overflow-y: auto;
  }
}
@media (min-width: 992px) {
  .topscorer,
  .herbstmeister,
  .mostgoalschristmas {
    align-self: stretch;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .gameresult,
  .fixtures,
  .chat,
  .user-fixtures {
    align-self: stretch;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
}
.wrapper-home {
  grid-template-columns: 1fr;
  grid-template-areas: "gameresult" "chat" "fixtures" "topscorer" "herbstmeister" "mostgoalschristmas";
  grid-auto-rows: minmax(0, auto);
}

.wrapper-user {
  grid-template-columns: 1fr;
  grid-template-areas: "user-details" "user-invites" "user-gameinfo" "user-teamstats" "user-gamegraph" "topscorer" "herbstmeister" "mostgoalschristmas" "user-fixtures";
  grid-auto-rows: minmax(0, auto);
}

@media (min-width: 576px) {
  .wrapper-home {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "gameresult gameresult" "fixtures   chat" "topscorer  herbstmeister" "mostgoalschristmas mostgoalschristmas";
    grid-auto-rows: minmax(0, auto);
  }
  .wrapper-user {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "user-details   user-details" "user-invites   user-invites" "user-gameinfo  user-gameinfo" "user-teamstats user-teamstats" "user-gamegraph user-gamegraph" "topscorer      user-fixtures" "herbstmeister  user-fixtures" "mostgoalschristmas user-fixtures";
    grid-auto-rows: minmax(0, auto);
  }
}
@media (min-width: 768px) {
  .wrapper-home {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "gameresult gameresult" "fixtures   chat" "topscorer  herbstmeister" "mostgoalschristmas mostgoalschristmas";
    grid-auto-rows: minmax(0, auto);
  }
  .wrapper-user {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "user-details   user-details" "user-invites   user-invites" "user-gameinfo  user-gameinfo" "user-teamstats user-teamstats" "user-gamegraph user-gamegraph" "topscorer      user-fixtures" "herbstmeister  user-fixtures" "mostgoalschristmas user-fixtures";
    grid-auto-rows: minmax(0, auto);
  }
}
@media (min-width: 992px) {
  .wrapper-home,
  .wrapper-user {
    height: calc(100vh - 56px);
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .wrapper-home {
    grid-template-rows: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "gameresult gameresult gameresult gameresult gameresult gameresult fixtures fixtures fixtures fixtures" "gameresult gameresult gameresult gameresult gameresult gameresult fixtures fixtures fixtures fixtures" "topscorer topscorer herbstmeister herbstmeister mostgoalschristmas mostgoalschristmas chat chat chat chat";
  }
  .wrapper-user {
    grid-template-rows: minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    grid-template-areas: "user-details user-details user-details user-gamegraph user-gamegraph user-gamegraph user-invites user-invites user-invites user-invites" "user-details user-details user-details user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-gameinfo user-gameinfo user-gameinfo user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-gameinfo user-gameinfo user-gameinfo user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-teamstats user-teamstats user-teamstats user-teamstats user-teamstats user-teamstats user-fixtures user-fixtures user-fixtures user-fixtures" "topscorer topscorer herbstmeister herbstmeister mostgoalschristmas mostgoalschristmas user-fixtures user-fixtures user-fixtures user-fixtures";
  }
}
@media (min-width: 1200px) {
  .wrapper-home,
  .wrapper-user {
    height: calc(100vh - 56px);
  }
  .wrapper-home {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "gameresult gameresult gameresult gameresult gameresult gameresult fixtures fixtures fixtures fixtures" "gameresult gameresult gameresult gameresult gameresult gameresult fixtures fixtures fixtures fixtures" "topscorer topscorer herbstmeister herbstmeister mostgoalschristmas mostgoalschristmas chat chat chat chat";
  }
  .wrapper-user {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    grid-template-areas: "user-details user-details user-details user-gamegraph user-gamegraph user-gamegraph user-invites user-invites user-invites user-invites" "user-details user-details user-details user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-gameinfo user-gameinfo user-gameinfo user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-gameinfo user-gameinfo user-gameinfo user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-teamstats user-teamstats user-teamstats user-teamstats user-teamstats user-teamstats user-fixtures user-fixtures user-fixtures user-fixtures" "topscorer topscorer herbstmeister herbstmeister mostgoalschristmas mostgoalschristmas user-fixtures user-fixtures user-fixtures user-fixtures";
  }
}
@media (min-width: 1400px) {
  .wrapper-home,
  .wrapper-user {
    height: calc(100vh - 56px);
  }
  .wrapper-home {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr);
    grid-template-areas: "gameresult gameresult gameresult gameresult gameresult gameresult fixtures fixtures fixtures fixtures" "gameresult gameresult gameresult gameresult gameresult gameresult fixtures fixtures fixtures fixtures" "topscorer topscorer herbstmeister herbstmeister mostgoalschristmas mostgoalschristmas chat chat chat chat";
  }
  .wrapper-user {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    grid-template-areas: "user-details user-details user-details user-gamegraph user-gamegraph user-gamegraph user-invites user-invites user-invites user-invites" "user-details user-details user-details user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-gameinfo user-gameinfo user-gameinfo user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-gameinfo user-gameinfo user-gameinfo user-gamegraph user-gamegraph user-gamegraph user-fixtures user-fixtures user-fixtures user-fixtures" "user-teamstats user-teamstats user-teamstats user-teamstats user-teamstats user-teamstats user-fixtures user-fixtures user-fixtures user-fixtures" "topscorer topscorer herbstmeister herbstmeister mostgoalschristmas mostgoalschristmas user-fixtures user-fixtures user-fixtures user-fixtures";
  }
}
/* ============================================================================
   ADMIN & SPORTSADMIN WRAPPERS (v1)
   - Consistent with home/user wrappers
   - One block per breakpoint; multiple wrappers inside
   - Two variants: regular (Filters/Responses + Stored), and test (adds Actions row)
   ============================================================================ */
/* Shared admin grid-area assignments */
.admin-filters {
  grid-area: admin-filters;
}

.admin-responses {
  grid-area: admin-responses;
}

.admin-stored {
  grid-area: admin-stored;
}

.admin-actions {
  grid-area: admin-actions;
}

.response {
  grid-area: response;
}

/* Wrapper primitives (identical baseline) */
.wrapper-sportsadmin,
.wrapper-gameadmin {
  display: grid;
  gap: 1rem;
  padding: 8px;
  margin: 0 auto;
  max-width: 100%;
  align-items: stretch;
}

/* Scroll safety for heavy panels */
.admin-filters,
.admin-responses,
.admin-actions,
.response,
.admin-stored,
.admin-actions {
  min-height: 0;
}

/* Phone defaults (<576): stacked */
.wrapper-sportsadmin,
.wrapper-gameadmin {
  grid-template-columns: 1fr;
  grid-template-areas: "admin-filters" "admin-responses" "admin-actions" "response" "admin-stored";
  grid-auto-rows: minmax(0, auto);
}

/* ≥576px */
@media (min-width: 576px) {
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    grid-template-columns: 1fr;
    grid-template-areas: "admin-filters" "admin-responses" "admin-actions" "response" "admin-stored";
    grid-auto-rows: minmax(0, auto);
  }
}
/* ≥768px (2-columns) */
@media (min-width: 768px) {
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "admin-filters   admin-responses" "admin-actions response" "admin-stored    admin-stored";
    grid-auto-rows: minmax(0, auto);
  }
}
/* ≥992px (Desktop small) — lock height; switch to 10-col skeleton */
@media (min-width: 992px) {
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    height: calc(100vh - 196px);
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  /* 2 rows: top auto, bottom fills */
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    grid-template-rows: minmax(0, auto) minmax(0, auto) minmax(0, 1fr); /* Stored results fills remaining */
    grid-template-areas: "admin-filters admin-filters admin-filters admin-filters admin-filters admin-filters admin-filters admin-filters admin-responses admin-responses" "admin-actions  admin-actions  admin-actions  admin-actions  admin-actions  admin-actions admin-actions admin-actions response response" "admin-stored  admin-stored  admin-stored  admin-stored  admin-stored  admin-stored  admin-stored  admin-stored  admin-stored  admin-stored";
  }
}
/* ≥1200px (explicit, tweakable) */
@media (min-width: 1200px) {
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    height: calc(100vh - 196px);
  }
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: minmax(0, auto), minmax(0, auto), minmax(0, 1fr);
  }
}
/* ≥1400px (explicit, tweakable) */
@media (min-width: 1400px) {
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    height: calc(100vh - 196px);
  }
  .wrapper-sportsadmin,
  .wrapper-gameadmin {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: minmax(0, auto), minmax(0, auto), minmax(0, 1fr);
  }
}
/* ==========================================================================
   admin_test: Stored results internal layout
   - 1 column, 2 rows: gameresult (auto) + fixed-bets (height-capped + scroll)
   - Keeps fixed-bet partials usable without modifying their markup
   ========================================================================== */
.admin-test-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto clamp(240px, 40vh, 560px);
  grid-template-areas: "gameresult gameresult gameresult" "topscorer herbstmeister mostgoalschristmas";
  gap: 1rem;
  min-height: 0;
}

.admin-test-results-grid__gameresult,
.admin-test-results-grid__topscorer,
.admin-test-results-grid__herbstmeister,
.admin-test-results-grid__mostgoals {
  min-height: 0;
}

.admin-test-results-grid__gameresult {
  grid-area: gameresult;
}

.admin-test-results-grid__topscorer {
  grid-area: topscorer;
}

.admin-test-results-grid__herbstmeister {
  grid-area: herbstmeister;
}

.admin-test-results-grid__mostgoals {
  grid-area: mostgoalschristmas;
}

@media (max-width: 991.98px) {
  .admin-test-results-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "gameresult" "topscorer" "herbstmeister" "mostgoalschristmas";
  }
}
.wrapper-modal {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "modal-header" "modal-response" "modal-body" "modal-footer";
  height: 100%;
  gap: 1rem;
}
.wrapper-modal .modal-header {
  grid-area: modal-header;
}
.wrapper-modal .modal-response {
  grid-area: modal-response;
  padding: 0 1rem;
  min-height: 2rem;
}
.wrapper-modal .modal-response .alert {
  margin: 0;
}
.wrapper-modal .modal-body {
  grid-area: modal-body;
  overflow-y: auto;
  padding: 1rem;
}
.wrapper-modal .modal-footer {
  grid-area: modal-footer;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  bottom: 0;
}

/* ============================================================
   SCREEN-SCOPED PATTERN (for any modal partial):
   #<modalId> .wrapper-modal .modal-body > .modal-screen--<name> { ... }
   This keeps each partial isolated and easy to style.
   ============================================================ */
/* User Game Create – Step 2 (exact DOM path; no bleed to other steps) */
#userGameSetupModal .wrapper-modal .modal-body > .modal-screen--user-create-step2 {
  /* Internal layout for this screen: counters, note (p), cards grid */
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  /* Counters row tweaks */
}
#userGameSetupModal .wrapper-modal .modal-body > .modal-screen--user-create-step2 .step2 .d-flex {
  gap: 0.75rem;
  flex-wrap: wrap;
}
#userGameSetupModal .wrapper-modal .modal-body > .modal-screen--user-create-step2 {
  /* Seeding group card grid (flex across available width) */
}
#userGameSetupModal .wrapper-modal .modal-body > .modal-screen--user-create-step2 .user-create-step2-cards > form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  padding: 0;
}
#userGameSetupModal .wrapper-modal .modal-body > .modal-screen--user-create-step2 {
  /* Card sizing – reuses global .game-card visuals */
}
#userGameSetupModal .wrapper-modal .modal-body > .modal-screen--user-create-step2 .game-card {
  flex: 1 1 320px;
  max-width: 320px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
}

#gameadminTeamSeedingModal .modal-body .row {
  min-height: 0;
}

#gameadminTeamSeedingModal .modal-body [class*=col-] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#teamListScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100dvh - 260px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

/* keep your left-panel scroll from earlier */
#gameadminTeamSeedingModal .modal-body .row {
  min-height: 0;
}

#gameadminTeamSeedingModal .modal-body [class*=col-] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#teamListBox {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Optional: modal height cap on larger viewports */
@media (min-width: 768px) {
  .wrapper-modal {
    max-height: 80vh;
  }
}
.btn-outline-light {
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .5rem;
  --bs-btn-font-size: .75rem;
}

.card {
  background: var(--bs-dark-bg-subtle);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

.game-card {
  background: var(--bs-dark-bg-subtle);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  max-width: 320px;
  min-width: 160px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card-header {
  font-weight: bold;
  text-align: center;
}

.game-card-body {
  flex: 1;
  min-height: 8.5rem;
}
.game-card-body p {
  margin: 2px 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-card-body .external-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
}
.game-card-body .qualified-0 {
  opacity: 0.65;
  text-decoration: line-through;
}
.game-card-body hr {
  margin: 8px 0;
  opacity: 0.2;
}

.qualified-0 {
  opacity: 0.65;
  text-decoration: line-through;
}

.game-card-footer {
  margin-top: auto;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.8;
}

.table {
  width: 100%;
  border-collapse: collapse;
  /* keep table-layout: auto for natural column sizing */
}

.admin-results-table th.col-created,
.admin-results-table th.col-updated,
.admin-results-table td.col-created,
.admin-results-table td.col-updated {
  /* Fixed, readable datetime columns */
  width: 11.5rem;
  min-width: 11.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.admin-results-table {
  /* Match other text columns: align both header and content left */
}
.admin-results-table th.col-created,
.admin-results-table th.col-updated,
.admin-results-table td.col-created,
.admin-results-table td.col-updated {
  text-align: left;
}
.admin-results-table th.col-edit,
.admin-results-table td.col-edit,
.admin-results-table th.col-delete,
.admin-results-table td.col-delete {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}
.admin-results-table th.col-actions,
.admin-results-table td.col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

/* Use Bootstrap variables to keep rows compact (no hard padding override) */
.table.table-sm {
  --bs-table-cell-padding-y: .25rem;
  --bs-table-cell-padding-x: .5rem;
}

.topscorer .table td:first-child,
.topscorer .table th:first-child,
.herbstmeister .table td:first-child,
.herbstmeister .table th:first-child,
.mostgoalschristmas .table td:first-child,
.mostgoalschristmas .table th:first-child {
  text-align: left;
}

.user-teamstats .table td:first-child,
.user-teamstats .table th:first-child {
  text-align: left;
}

.form-control {
  background-color: #212529 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f9fa !important;
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.form-control:focus {
  background-color: #212529 !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control-sm {
  background-color: #212529 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f9fa !important;
}
.form-control-sm::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.form-control-sm:focus {
  background-color: #212529 !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select {
  background-color: #212529 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f9fa !important;
}
.form-select:focus {
  background-color: #212529 !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select-sm {
  background-color: #212529 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f9fa !important;
}
.form-select-sm:focus {
  background-color: #212529 !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

::-webkit-scrollbar {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  border-style: solid;
  width: thin;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  opacity: 1;
  background-color: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

input[type=number]::-webkit-inner-spin-button:hover,
input[type=number]::-webkit-inner-spin-button:active {
  box-shadow: 0 0 2px #0CF;
  opacity: 0.9;
}

input[type=number] {
  color-scheme: dark;
}

/* Team & player logos: stable footprint, no layout shift, crisp */
.external-logo {
  display: inline-block;
  height: 18px;
  width: auto;
  aspect-ratio: 1/1;
  object-fit: contain; /* team crests often need contain */
  vertical-align: middle;
  margin-inline: 0.5em;
  image-rendering: auto; /* let browser pick best */
}

.player-photo {
  display: inline-block;
  width: 20px;
  height: 20px;
  aspect-ratio: 1/1;
  object-fit: cover; /* player faces look better as cover */
  border-radius: 50%;
  vertical-align: middle;
  margin-inline: 0.5em;
}

.icon-info,
.icon-edit,
.icon-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.icon-check {
  fill: #5cb85c;
}

.gameresult .table {
  width: 100%;
  border-collapse: collapse;
}
.gameresult .table th,
.gameresult .table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gameresult .table th {
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 0;
}
.gameresult .table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}
.gameresult .table th:first-child {
  text-align: center;
  position: sticky;
  z-index: 1;
  left: 0;
  min-width: 30px;
  padding-right: 0;
  border-right: none;
}
.gameresult .table th:nth-child(2) {
  text-align: center;
  position: sticky;
  z-index: 1;
  left: 30px;
  min-width: 30px;
  padding-right: 0;
  border-right: none;
  padding-left: 0;
  border-left: none;
}
.gameresult .table th:nth-child(3) {
  text-align: left;
  position: sticky;
  z-index: 1;
  left: 60px;
  min-width: 100px;
  padding-right: 0;
  border-right: none;
}
.gameresult .table th:last-child {
  position: sticky;
  z-index: 1;
  right: 0;
}
.gameresult .table td:first-child {
  text-align: center;
  position: sticky;
  left: 0;
  min-width: 30px;
  padding-right: 0;
  border-right: none;
}
.gameresult .table td:nth-child(2) {
  text-align: center;
  position: sticky;
  left: 30px;
  min-width: 30px;
  padding-right: 0;
  border-right: none;
  padding-left: 0;
  border-left: none;
}
.gameresult .table td:nth-child(3) {
  text-align: left;
  position: sticky;
  left: 60px;
  min-width: 100px;
  padding-right: 0;
  border-right: none;
  padding-left: 0;
  border-left: none;
}
.gameresult .table td:last-child {
  position: sticky;
  right: 0;
}

.fixtures .table {
  width: 100%;
  border-collapse: collapse;
}
.fixtures .table th, .fixtures .table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fixtures .table th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.fixtures .table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.topscorer {
  border-collapse: collapse;
}
.topscorer table th, .topscorer table td {
  vertical-align: middle;
  text-align: left;
}

.herbstmeister {
  border-collapse: collapse;
}
.herbstmeister table th, .herbstmeister table td {
  vertical-align: middle;
  text-align: left;
}

.mostgoalschristmas {
  border-collapse: collapse;
}
.mostgoalschristmas table th, .mostgoalschristmas table td {
  vertical-align: middle;
  text-align: left;
}

.user-fixtures .table {
  width: 100%;
  border-collapse: collapse;
}
.user-fixtures .table th, .user-fixtures .table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-fixtures .table th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.user-fixtures .table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.user-teamstats .table {
  width: 100%;
  border-collapse: collapse;
}
.user-teamstats .table th, .user-teamstats .table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-teamstats .table th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.user-teamstats .table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* scss/components/_responsepanels.scss */
.api-status-box,
.api-response-box,
.api-results-box {
  width: 100%;
}

.user-fixtures .table {
  width: 100%;
  border-collapse: collapse;
}
.user-fixtures .table th, .user-fixtures .table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-fixtures .table th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.user-fixtures .table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.inline-list-segment {
  margin-bottom: 2rem;
}

.inline-list-segment h6 {
  margin: 0 0 0.5rem;
}

.inline-list-segment .b {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding-left: 1.2em;
}

.inline-list-segment p {
  margin: 0;
}

.home-chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 100%;
}

.home-chat__header {
  font-weight: 600;
  color: #f8f9fa;
  font-size: 0.6rem;
}

.home-chat__messages {
  overflow: visible;
  padding-right: 4px;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 80%;
}

.chat-msg.me .chat-col {
  align-items: flex-end;
}

.chat-msg.me {
  justify-content: flex-end;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(46.6459459459, 52.3, 57.9540540541);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.7rem;
  flex: 0 0 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  align-self: flex-start;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.chat-bubble {
  max-width: 80%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgb(42.0972972973, 47.2, 52.3027027027);
  color: #f8f9fa;
}

.chat-msg.me .chat-bubble {
  background: rgb(55.7432432432, 62.5, 69.2567567568);
  border-color: rgba(255, 255, 255, 0.32);
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  margin: 0 4px 4px 4px;
  line-height: 18px;
  min-height: 18px;
  width: 100%;
}

.chat-msg.me .chat-meta {
  justify-content: flex-end;
  text-align: right;
}

.chat-msg.other .chat-meta {
  justify-content: flex-start;
  text-align: left;
}

.chat-meta.me {
  justify-content: flex-end;
  text-align: right;
}

.chat-meta.other {
  justify-content: flex-start;
  text-align: left;
}

.chat-author {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.5rem;
}

.chat-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.5rem;
}

.chat-text {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.7rem;
  color: #f8f9fa;
}

.chat-msg .chat-avatar {
  margin-top: 22px;
}

.chat-group {
  display: block;
  text-align: center;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  position: relative;
}

.chat-group::before,
.chat-group::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.chat-group::before {
  left: 0;
}

.chat-group::after {
  right: 0;
}

.home-chat__inputbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: end;
}

#home-chat-input {
  resize: none;
  width: 100%;
  min-height: 36px;
  max-height: 160px;
  overflow: hidden;
  background: #212529;
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 8px 10px;
  font-size: 0.7rem;
}

.home-chat__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0 6px 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #212529;
  color: #f8f9fa;
  font-size: 1.1rem;
}

.home-chat__send:hover {
  background: rgba(255, 255, 255, 0.06);
}

.home-chat__send:disabled {
  opacity: 0.6;
}

/* _home.scss (tweak) */
.auth-card-header {
  text-align: center;
  margin-bottom: 1rem;
}

.auth-card-body {
  padding-top: 0;
}

.wrapper-usergameselections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  justify-items: stretch;
  align-items: stretch;
  margin: 0 auto;
  padding: 1rem;
}

/* Only on desktop and up, nudge min-height a bit so rows align prettier */
@media (min-width: 992px) {
  .game-card-body {
    min-height: 11rem;
  }
}
/* _user.scss (tweak) */
.user-gameinfo p {
  margin: 2px 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-gameinfo .external-logo {
  width: 20px;
  height: 20px;
}

.user-invites .btn {
  font-size: 1.4rem;
  padding: 6px 12px;
}

img.user-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
