/* =====================================================================
   SHARED.CSS  – gemensam stil för hela TT Ranking
   ===================================================================== */

/* ---------- 1. Globala variabler ------------------------------------ */
:root {
  --color-primary: #003366;
  --color-primary-light: #2566b2;
  --color-accent: #cddc39;
  --color-bg: #f5f5f5;

  --color-ongoing: #4caf50;
  --color-upcoming: #ffc107;
  --color-completed: #9e9e9e;

  --font-base: "Arial", sans-serif;
}

/* ---------- 2. Grundlayout & typografi ------------------------------ */

/* Tillåt body att växa längre än 100% när innehåll kräver det */
html {
  height: auto;
  /* Ta bort fixed height */
  min-height: 100%;
  /* Garanti att alltid fylla fönstret minst */
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: #333;
}

.page-flex {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Bra: säkerställer sticky footer om du har en */
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  padding: 30px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 40px rgba(0, 0, 0, .12);
  flex: 1 0 auto;
  /* Fyller flex-utrymme men tillåter naturlig höjd */
  box-sizing: border-box;
  /* Viktigt: padding räknas inom width */
  padding-bottom: 100px;
  /* 🟢 Anpassa efter stickyns höjd + lite luft */
}


/* ---------- 3. Hero‑band -------------------------------------------- */
.hero {
  background: linear-gradient(135deg,
      var(--color-primary) 0%,
      var(--color-primary-light) 100%);
  color: #fff;
  padding: 26px 0;
  text-align: center;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: 1.8em;
  color: #fff;
}

.hero p {
  opacity: .85;
  margin-top: 6px;
  font-size: .95em;
}

/* 3b. Nav när det ligger i hero -------------------------------------- */
.hero .nav-container {
  background: transparent;
  border: none;
  gap: 8px;
}

.hero .nav-link {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border-color: transparent;
}

.hero .nav-link:hover {
  background: rgba(255, 255, 255, .25);
}

.hero .nav-link.current {
  border-color: #ffcc00;
}

.hero .icon {
  color: #ffcc00;
}

/* ===== 3 · FILTER‑RAD (sticky på mobil) ============================= */
.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid #e0e0e0;
}

@media(max-width:768px) {
  .filter-controls {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
  }
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f5f5f5;
  min-height: 44px;
  font-size: .9em;
  color: #555;
  transition: .2s
}

.tab-btn:hover {
  background: #e0e0e0;
  color: #333;
}

.tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: inset 0 -3px 0 #ff9800;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block
}

.status-indicator.ongoing {
  background: var(--color-ongoing);
}

.status-indicator.upcoming {
  background: var(--color-upcoming);
}

.status-indicator.completed {
  background: var(--color-completed);
}

.status-indicator.all {
  background: #2196f3;
}

.count-badge {
  background: rgba(0, 0, 0, .1);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: .8em
}

/* ---------- 4. Rubriker --------------------------------------------- */
h1,
h2,
h3 {
  text-align: center;
  color: var(--color-primary);
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- 5. Nav‑container ---------------------------------------- */
.nav-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  line-height: 1.4;
}

.nav-link {
  padding: 10px 20px;
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: .2s;
  border: 2px solid transparent;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
  max-width: 100px;
  word-wrap: break-word;
  min-width: 0;
}

.nav-link:hover {
  background: #dee2e6;
  border-color: #adb5bd;
}

.nav-link.current {
  border-color: #0056b3;
  font-weight: 600;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 123, 255, .2);
}

.nav-link.current::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #ffcc00;
  border-radius: 3px;
}

.icon {
  font-size: 1.2em;
  margin-bottom: 2px;
}

/* ---------- 6. Knappar ---------------------------------------------- */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid #ccc;
  background: #f7f7f7;
  color: #222;
  transition: .2s;
  cursor: pointer;
}

.btn:hover {
  background: #e4f1fb;
  border-color: #007bff;
}

.btn-primary {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.btn-primary:hover {
  background: #0069d9;
}

.btn.active,
.centered-controls button.active,
.pulje-buttons button.active {
  background: #007bff;
  color: #fff;
  font-weight: bold;
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, .1);
}

/* ---------- 7. Form‑element ----------------------------------------- */
select {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 200px;
  background: #fff;
  color: #333;
  outline: none;
}

/* ---------- 8. Resultat‑tabeller ------------------------------------ */
.resultat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.resultat-table th,
.resultat-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.resultat-table th {
  background: #f8f9fa;
  text-transform: uppercase;
  color: #333;
  font-weight: 600;
}

.resultat-table td:nth-child(2),
.resultat-table td:nth-child(3) {
  text-align: center;
}

.resultat-table td:nth-child(2)>span,
.resultat-table td:nth-child(3)>span {
  display: inline-block;
  max-width: 100%;
  width: 100%;
  padding-left: 20%;
  box-sizing: border-box;
}

.sticky-row {
  background: #fffbe6;
  font-weight: bold;
}

.medal {
  font-size: 1.6em;
  text-align: center;
}

/* ---------- 9. Gemensamma layoutelement ----------------------------- */
.centered-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.pulje-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.pulje-buttons button {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid #ccc;
  background: #f8f8f8;
  color: #333;
  cursor: pointer;
  transition: .2s;
  font-weight: 500;
}

.pulje-buttons button:hover {
  background: #e4f1fb;
  border-color: #007bff;
}

/* ---------- 10. Klass‑ / avsnittsrubriker --------------------------- */
.class-header {
  text-align: center;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin: 20px 0 10px;
  text-transform: uppercase;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0 25px;
  flex-wrap: wrap;
}

.download-buttons .btn-icon {
  padding: 8px 14px;
  font-size: .95rem;
}

/* ---------- 11. Layoutkolumner (statistikvyer m.m.) ----------------- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
}

.columns-container {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.left-column {
  flex: 3;
  min-width: 0;
}

.right-column {
  flex: 2;
  min-width: 300px;
}

.session-container {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
}

.club-stats-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  position: sticky;
  top: 20px;
}

.session-container h3,
.club-stats-box h3 {
  padding-left: 10px;
  margin-top: 0;
  margin-bottom: 15px;
}

/* ---------- 12. Stat‑grid ------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-items: stretch;
  margin: 20px 0 40px;
}

.stat-box {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  text-align: center;
}

.highlight {
  font-size: 1.6em;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 6px;
}

/* ---------- 13. Övriga hjälpelement --------------------------------- */
.text-center {
  text-align: center;
}

button:disabled,
.btn:disabled {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  opacity: .6;
  border-color: #bbb !important;
}

.btn-icon {
  padding: 6px 14px;
  font-size: .9rem;
  border-radius: 6px;
  border: 2px solid #ccc;
  background: #f7f7f7;
  color: #333;
  transition: .2s;
}

.btn-icon:hover {
  background: #ffe066;
  border-color: #ffc107;
  color: #000;
}

.btn-icon.pameldte {
  background: #5cb85c;
  border-color: #4cae4c;
  color: #fff;
}

.btn-icon.pameldte:hover {
  background: #449d44;
  border-color: #398439;
}

/* ---------- 14. Turneringstitlar / topbars -------------------------- */
.tournament-header {
  text-align: center;
  margin-bottom: 25px;
}

.tournament-header h2.subheading {
  font-size: 1.4rem;
  color: #555;
  margin-top: 5px;
}

.tournament-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.tournament-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: 0 auto;
  flex-grow: 1;
  text-align: center;
}

.home-link {
  font-size: .95rem;
  color: #007bff;
  text-decoration: none;
  padding: 6px 8px;
}

.home-link:hover {
  text-decoration: underline;
}

/* ---------- 15. Responsivitet --------------------------------------- */
@media (max-width:768px) {
  .container {
    margin: 15px auto;
    padding: 20px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .nav-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .btn {
    font-size: .95rem;
    padding: 8px 14px;
  }

  select {
    font-size: .95rem;
  }

  .resultat-table th,
  .resultat-table td {
    padding: 8px 4px;
  }
}

@media (max-width:480px) {
  .nav-link {
    font-size: .85rem;
    gap: 3px;
  }

  .icon {
    font-size: 1rem;
  }
}

/* ---------- 16. Footer ---------------------------------------------- */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 18px 0;
  background: #fafafa;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

/* Hero‑specifik justering av underrubrik  */
.hero .tournament-header .subheading {
  color: #e9e9e9;
}

/* === STICKY NAV ==================================================== */
.hero .nav-container {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
  border: none;
  padding: 10px 12px;
}

.hero .nav-link {
  background: rgba(255, 255, 255, .15);
}

.hero .nav-link:hover {
  background: rgba(255, 255, 255, .25);
}

:root {
  scroll-padding-top: 72px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, .25);
}

/* ------------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, .25);
  border: none;
  padding: 10px 12px;
}

.site-nav .nav-link {
  background: rgba(255, 255, 255, .15);
}

.site-nav .nav-link:hover {
  background: rgba(255, 255, 255, .25);
}

:root {
  scroll-padding-top: 72px;
}

/* === TOP NAV, helt integrerad med hero ============================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg,
      var(--color-primary) 0%,
      var(--color-primary-light) 100%);
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  padding: 10px 12px;
}

.site-nav .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border-color: transparent;
}

.site-nav .nav-link:hover {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.site-nav .icon {
  color: #ffcc00;
}

.hero {
  margin-top: 0;
}

/* ===== 5 · KORTLAYOUT =============================================== */

.competition-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.competition-card {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 6px solid var(--color-accent);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
  transition: .2s;
  cursor: pointer;
  color: inherit;
}

.competition-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
}

.competition-card.ongoing {
  border-left-color: var(--color-ongoing);
}

.competition-card.upcoming {
  border-left-color: var(--color-upcoming);
}

.competition-card.completed {
  border-left-color: var(--color-completed);
}

.competition-name {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.competition-date {
  color: #555;
  font-size: .95em;
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.mini-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mini-nav-link,
.mini-nav-link.compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 9px;
  font-size: .85em;
  background: #e9ecef;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: var(--color-primary);
  transition: .2s
}

.mini-nav-link:hover {
  background: #dee2e6;
  border-color: #007bff;
  color: #000;
}

.mini-nav-link.disabled {
  filter: grayscale(1);
  cursor: not-allowed;
  pointer-events: none;
  opacity: .4
}

/* ===== 6 · LISTLAYOUT =============================================== */
@media (min-width: 601px) {
  .competition-list.list-mode {
    display: block;
    width: 100%;
  }

  .competition-row.compact {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: inherit;
    cursor: pointer;
  }

  .competition-row.compact:hover {
    background: #f9f9f9;
  }

  .list-name.compact {
    font-weight: bold;
    color: var(--color-primary);
  }

  .list-date.compact {
    color: #666;
    font-size: .85em;
    white-space: nowrap;
  }

  .list-links.compact {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: end;
  }

  .mini-nav-link.compact {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: .75em;
    border-radius: 4px;
  }
}

.btn-icon.pameldte {
  background-color: #e9f7ef;
  /* Ljusgrön bakgrund */
  border: 1px solid #c3e6cb;
  color: #155724;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-icon.pameldte:hover {
  background-color: #d4edda;
  border-color: #b8dfc0;
}

@media (max-width: 600px) {
  .btn-icon.pameldte {
    font-size: 0.85rem;
    padding: 3px 8px;
  }

  .btn-icon.pameldte .btn-text {
    display: none;
  }
}



/* ================================================================ */
/* MOBIL-LAYOUT  ≤ 600px  – Rensad & stabiliserad                   */
/* ================================================================ */
@media (max-width: 600px) {

  html,
  body {
    overflow-x: hidden;
  }

  .filter-controls {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 6px;
    width: 100%;
  }

  .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow-x: visible;
    /* Tar bort scrollningen */
    -webkit-overflow-scrolling: auto;
    gap: 8px;
    /* Mellanrum mellan knappar */
  }

  .tab-btn {
    flex: 0 0 calc(50% - 4px);
    /* 50% bredd minus hälften av gap */
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: .85em;
    min-width: 0;
    /* Överstyr tidigare min-width */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toggle-btn {
    padding: 6px 10px;
    font-size: .85em;
  }
}

@media (max-width: 600px) {

  /* 0. Ingen sidscroll, box-sizing fix */
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 24px 12px;
    box-sizing: border-box;
  }

  /* 1. Nav-rutor i hero (grid med wrapping) */
  .site-nav.nav-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
    padding: 8px 6px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .nav-link {
    min-width: 0;
    padding: 6px 4px;
    font-size: 0.85rem;
  }

  /* 3. Tabeller – scrollvänliga på små skärmar */
  /* table.resultat-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  table.resultat-table thead,
  table.resultat-table tbody {
    min-width: 620px;
  }
  table.resultat-table th {
    white-space: normal;
    word-break: break-word;
  }
  table.resultat-table td:nth-child(2) {
    text-align: left;
    word-break: break-word;
  }*/

  /* 4. Påmeldte/Statistik – vänster/höger listor */
  .player-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 12px;
  }

  .player-list,
  .selected-list {
    max-width: 100%;
    width: 100%;
    min-width: unset;
  }

  #selectedPlayers .selected-class-entry ul li {
    flex-wrap: wrap;
  }

  #selectedPlayers .selected-class-entry ul li span {
    min-width: 0;
  }
}

/* =============================================================== */
/* LISTVY – MOBIL (max‑bredd 600 px)                               */
/* =============================================================== */
@media (max-width: 600px) {

  /* --- Rad‑layout ------------------------------------------------ */
  .competition-row.compact {
    display: grid;
    grid-template-columns: 1fr auto;
    /* kolumn 1 = namn+datum, kolumn 2 = ikoner */
    grid-template-areas:
      "name  name"
      /* rad 1: bara namn               */
      "date  links";
    /* rad 2: datum  |  ikoner        */
    column-gap: 10px;
    row-gap: 4px;
    padding: 10px 8px;
  }

  /* --- Namn ------------------------------------------------------ */
  .list-name.compact {
    grid-area: name;
    font-size: .95em;
    font-weight: 600;
    color: var(--color-primary);
  }

  /* --- Datum (vänster rad 2) ------------------------------------ */
  .list-date.compact {
    grid-area: date;
    font-size: .8em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* --- Ikoner (höger rad 2) ------------------------------------- */
  .list-links.compact {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    /* får brytas i två rader om många */
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    /* OBS: ingen width eller max‑width här! */
  }

  /* --- Enskild ikon --------------------------------------------- */
  .mini-nav-link.compact {
    width: 22px;
    height: 22px;
    font-size: .70em;
    padding: 0;
    border-radius: 4px;
  }
}

/* =============================================================== */
/*   SIGNUPS  –  MOBILFIXAR  (≤ 600 px)                            */
/* =============================================================== */
@media (max-width: 600px) {

  /* 1. “Pass‑rader” till vänster – låt texten radbrytas och ta 100 %  */
  .session-container {
    overflow-x: hidden;
    /* hindra sidscroll                 */
    word-break: break-word;
    /* bryt långa pass‑rubriker         */
    padding-left: 6px;
    /* lite mindre luft                 */
  }

  /* 2. Stat‑kolumner / klubbtabell – scrollbar i X i stället för overflow  */
  table.resultat-table,
  table.resultat-table.alt {
    /*display: block;*/
    width: 100%;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  /* min‑bredd ≈ desktop‑layout så allt ryms utan bryt‑kaos            */
  table.resultat-table thead,
  table.resultat-table tbody,
  table.resultat-table.alt thead,
  table.resultat-table.alt tbody {
    min-width: 500px;
  }

  /* rubriker får radbrytas snyggt                                     */
  table.resultat-table th,
  table.resultat-table.alt th {
    white-space: normal;
    word-break: break-word;
    padding: 8px 4px;
  }

  /* 3. “Toppklubber”‑kortet – lite smalare padding                   */
  .club-stats-box,
  .resultat-table.alt {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* 4. Popup‑rutan – fyller nästan hela skärmen                      */
  #clubPopup .popup-content,
  .popup-content {
    width: 100%;
    max-width: 420px;
  }

  /* 5. Stacka vänster + höger kolumn under varandra */
  .columns-container {
    flex-direction: column;
    gap: 20px;
  }

  .left-column,
  .right-column {
    width: 100%;
    min-width: unset;
  }
}

.empty-state {
  background: #f9f9f9;
  border: 2px dashed #ddd;
  padding: 40px;
  margin: 40px auto;
  max-width: 500px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1em;
  color: #555;
}

.empty-state p {
  margin: 0;
}


/* =============================================================== */

/* ------------ALLTID SIST! -------------------------*/

/* --------------------------------------------------------------- */
body>* {
  width: 100%;
  flex-shrink: 0;
}

.existing-reg-actions {
  justify-content: center;
}

.existing-reg-actions .btn {
  min-width: 160px;
}

.late-warning {
  gap: 18px;
}

.late-warning::before {
  flex-shrink: 0;
}

.club-name .custom-marker {
  color: #888;
  font-size: 0.8em;
  margin-left: 5px;
}