.ngt-box{border:1px solid #d9e2ef;border-radius:10px;padding:22px;margin:20px 0;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.05)}
.ngt-box h2{margin-top:0}.ngt-form{display:grid;gap:14px;max-width:720px}.ngt-form label{display:grid;gap:6px;font-weight:600}.ngt-form input,.ngt-form select,.ngt-form textarea{width:100%;max-width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px}.ngt-checkbox{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px;font-weight:400!important}.ngt-checkbox input{width:auto}.ngt-button{display:inline-block;border-radius:999px;background:#172554;color:#fff!important;padding:10px 18px;text-decoration:none;border:0;cursor:pointer;font-weight:700}.ngt-button-secondary{background:#475569}.ngt-success{background:#dcfce7;border:1px solid #86efac;padding:12px;border-radius:8px;margin:10px 0}.ngt-error{background:#fee2e2;border:1px solid #fecaca;padding:12px;border-radius:8px;margin:10px 0}.ngt-warning,.ngt-info{background:#fef9c3;border:1px solid #fde68a;padding:12px;border-radius:8px;margin:10px 0}.ngt-squad-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.ngt-squad-item{border:1px solid #e2e8f0;border-radius:8px;padding:12px;background:#f8fafc}.ngt-table{width:100%;border-collapse:collapse}.ngt-table th,.ngt-table td{border-bottom:1px solid #e2e8f0;padding:10px;text-align:left}.ngt-table th{background:#f8fafc}
.ngt-status{padding:3px 8px;border-radius:999px;background:#e2e8f0;font-weight:700;white-space:nowrap}.ngt-status-pending{background:#fef3c7}.ngt-status-confirmed{background:#dcfce7}.ngt-status-rejected,.ngt-status-cancelled{background:#fee2e2}.ngt-button-danger{background:#991b1b}.ngt-table form{margin:0}
.ngt-table-wrap { overflow-x: auto; }
.ngt-table th, .ngt-table td { white-space: nowrap; }

.ngt-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 14px 0 24px;
}
.ngt-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}
.ngt-filter-form select {
  min-width: 240px;
  padding: 9px 10px;
  border: 1px solid #ccd3df;
  border-radius: 8px;
  background: #fff;
}
.ngt-top3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 12px 0 26px;
}
.ngt-top3-card {
  border: 1px solid #d8deea;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}
.ngt-top3-card h4 {
  margin: 0 0 10px;
}
.ngt-top3-table th,
.ngt-top3-table td {
  white-space: nowrap;
}

.ngt-section-separator{border:0;border-top:1px solid #e2e8f0;margin:30px 0 24px}
.ngt-final-rounds-public{display:grid;gap:18px;margin-top:12px}
.ngt-final-round-card{border:1px solid #d8deea;border-radius:12px;padding:14px;background:#fff}
.ngt-final-round-card h4{margin:0 0 6px;font-size:1.1rem}
.ngt-final-round-meta{margin:0 0 12px;color:#475569;font-size:.95rem}
.ngt-final-table th,.ngt-final-table td{white-space:nowrap}
.ngt-final-status-advanced{background:#dcfce7}
.ngt-final-status-eliminated{background:#fee2e2}
.ngt-final-status-reserve{background:#e0f2fe}
.ngt-final-status-withdrawn{background:#f3f4f6}

/* v0.6.12: Compact, readable Top-3 tables inside cards */
.ngt-top3-card .ngt-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.ngt-top3-card .ngt-top3-table,
.ngt-top3-card table.ngt-top3-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}
.ngt-top3-card .ngt-top3-table th,
.ngt-top3-card .ngt-top3-table td {
  border: 1px solid #dcdcde;
  padding: 7px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.ngt-top3-card .ngt-top3-table th {
  background: #f6f7f7;
  font-weight: 700;
}
.ngt-top3-card .ngt-top3-table th:nth-child(1),
.ngt-top3-card .ngt-top3-table td:nth-child(1) { width: 52px; text-align: center; }
.ngt-top3-card .ngt-top3-table th:nth-child(2),
.ngt-top3-card .ngt-top3-table td:nth-child(2) { width: 26%; text-align: left; }
.ngt-top3-card .ngt-top3-table th:nth-child(3),
.ngt-top3-card .ngt-top3-table td:nth-child(3) { width: 20%; text-align: left; }
.ngt-top3-card .ngt-top3-table th:nth-child(n+4),
.ngt-top3-card .ngt-top3-table td:nth-child(n+4) { text-align: right; }
.ngt-top3-card .ngt-top3-table th:last-child,
.ngt-top3-card .ngt-top3-table td:last-child {
  width: 84px;
  font-weight: 700;
}


/* v0.6.14: Top-3 tables fit into two-column cards with wrapped HDC headers */
.ngt-top3-card .ngt-table-wrap {
  overflow-x: visible;
}
.ngt-top3-card .ngt-top3-table,
.ngt-top3-card table.ngt-top3-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.ngt-top3-card .ngt-top3-table th,
.ngt-top3-card .ngt-top3-table td {
  padding: 7px 6px;
  font-size: 0.92em;
  line-height: 1.2;
}
.ngt-top3-card .ngt-top3-table th {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ngt-top3-card .ngt-top3-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ngt-top3-card .ngt-top3-table th:nth-child(1),
.ngt-top3-card .ngt-top3-table td:nth-child(1) { width: 46px; text-align: center; }
.ngt-top3-card .ngt-top3-table th:nth-child(2),
.ngt-top3-card .ngt-top3-table td:nth-child(2) { width: 28%; text-align: left; }
.ngt-top3-card .ngt-top3-table th:nth-child(3),
.ngt-top3-card .ngt-top3-table td:nth-child(3) { width: 21%; text-align: left; }
.ngt-top3-card .ngt-top3-table th:nth-child(4),
.ngt-top3-card .ngt-top3-table td:nth-child(4) { width: 12%; text-align: right; }
.ngt-top3-card .ngt-top3-table th:nth-child(5),
.ngt-top3-card .ngt-top3-table td:nth-child(5) { width: 12%; text-align: right; }
.ngt-top3-card .ngt-top3-table th:nth-child(6),
.ngt-top3-card .ngt-top3-table td:nth-child(6) { width: 13%; text-align: right; }
.ngt-top3-card .ngt-top3-table th:nth-child(7),
.ngt-top3-card .ngt-top3-table td:nth-child(7) { width: 13%; text-align: right; font-weight: 700; }
@media (max-width: 780px) {
  .ngt-top3-grid { grid-template-columns: 1fr; }
  .ngt-top3-card .ngt-table-wrap { overflow-x: auto; }
  .ngt-top3-card .ngt-top3-table { min-width: 560px; }
}


/* v0.6.15: Frontend Top-3 cards stacked full-width with readable tables */
.ngt-box .ngt-top3-grid,
.ngt-top3-grid {
  grid-template-columns: 1fr !important;
}
.ngt-box .ngt-top3-card {
  width: 100%;
  box-sizing: border-box;
}
.ngt-box .ngt-top3-card .ngt-table-wrap {
  overflow-x: auto !important;
}
.ngt-box .ngt-top3-card .ngt-top3-table,
.ngt-box .ngt-top3-card table.ngt-top3-table {
  width: 100%;
  min-width: 760px;
  table-layout: auto;
}
.ngt-box .ngt-top3-card .ngt-top3-table th,
.ngt-box .ngt-top3-card .ngt-top3-table td {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.ngt-box .ngt-top3-card .ngt-top3-table th:nth-child(1),
.ngt-box .ngt-top3-card .ngt-top3-table td:nth-child(1) { width: 70px; text-align: center; }
.ngt-box .ngt-top3-card .ngt-top3-table th:nth-child(2),
.ngt-box .ngt-top3-card .ngt-top3-table td:nth-child(2) { min-width: 190px; text-align: left; }
.ngt-box .ngt-top3-card .ngt-top3-table th:nth-child(3),
.ngt-box .ngt-top3-card .ngt-top3-table td:nth-child(3) { min-width: 150px; text-align: left; }
.ngt-box .ngt-top3-card .ngt-top3-table th:nth-child(n+4),
.ngt-box .ngt-top3-card .ngt-top3-table td:nth-child(n+4) { text-align: right; }
.ngt-box .ngt-top3-card .ngt-top3-table th:last-child,
.ngt-box .ngt-top3-card .ngt-top3-table td:last-child { font-weight: 700; }

/* v0.6.17: Best single games tabs */
.ngt-best-games-tabs{margin:12px 0 26px}
.ngt-best-games-tab-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.ngt-best-games-tab-button{border:1px solid #cbd5e1;background:#f8fafc;border-radius:999px;padding:8px 14px;cursor:pointer;font-weight:700;color:#172554}
.ngt-best-games-tab-button.is-active{background:#172554;color:#fff;border-color:#172554}
.ngt-best-games-tab-panel{display:none;border:1px solid #d8deea;border-radius:12px;background:#fff;padding:14px;margin-bottom:16px}
.ngt-best-games-tab-panel.is-active{display:block}
.ngt-best-games-tab-panel h4{margin:12px 0 8px}
.ngt-best-games-tab-panel h4:first-child{margin-top:0}
.ngt-best-games-table{min-width:760px}
.ngt-best-games-table th,.ngt-best-games-table td{white-space:nowrap}
.ngt-best-games-table th:nth-child(1),.ngt-best-games-table td:nth-child(1){width:70px;text-align:center}
.ngt-best-games-table th:nth-child(n+5),.ngt-best-games-table td:nth-child(n+5){text-align:right}
.ngt-best-games-table th:last-child,.ngt-best-games-table td:last-child{font-weight:700}


/* v0.6.18: Best single games tables stacked with aligned compact columns */
.ngt-best-games-tab-panel .ngt-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}
.ngt-best-games-tab-panel .ngt-best-games-table,
.ngt-best-games-table {
  width: auto !important;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
}
.ngt-best-games-table th,
.ngt-best-games-table td {
  padding: 9px 10px;
  white-space: nowrap;
}
.ngt-best-games-table th:nth-child(1),
.ngt-best-games-table td:nth-child(1){width:70px;text-align:center;}
.ngt-best-games-table th:nth-child(2),
.ngt-best-games-table td:nth-child(2){width:230px;text-align:left;}
.ngt-best-games-table th:nth-child(3),
.ngt-best-games-table td:nth-child(3){width:200px;text-align:left;}
.ngt-best-games-table th:nth-child(4),
.ngt-best-games-table td:nth-child(4){width:170px;text-align:left;}
.ngt-best-games-table th:nth-child(5),
.ngt-best-games-table td:nth-child(5){width:80px;text-align:right;}
.ngt-best-games-table th:nth-child(6),
.ngt-best-games-table td:nth-child(6){width:100px;text-align:right;font-weight:700;}
.ngt-best-games-table th:nth-child(7),
.ngt-best-games-table td:nth-child(7){width:110px;text-align:right;}
.ngt-best-games-table th:nth-child(8),
.ngt-best-games-table td:nth-child(8){width:110px;text-align:right;font-weight:700;}

/* v0.6.22: Frontend-Ergebnisse und Squad-Teilnehmer */
.ngt-top3-grid.ngt-top3-grid-single {
    display: block;
}
.ngt-top3-grid.ngt-top3-grid-single .ngt-top3-card {
    width: 100%;
    margin-bottom: 16px;
}
.ngt-squad-participants {
    margin-top: 8px;
    font-size: 0.92em;
}
.ngt-squad-participants summary {
    cursor: pointer;
    font-weight: 600;
}
.ngt-squad-participants ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

/* v0.6.23: Squad-Ergebnisse in "Alle Ergebnisse" aufklappbar */
.ngt-muted {
    opacity: 0.78;
    margin-top: -4px;
}
.ngt-squad-results-accordion {
    margin: 10px 0 22px;
}
.ngt-result-accordion {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    margin: 10px 0;
    background: rgba(255,255,255,.55);
    overflow: hidden;
}
.ngt-result-accordion summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 14px;
    list-style-position: inside;
}
.ngt-result-accordion summary span {
    font-weight: 400;
    opacity: .72;
    margin-left: 6px;
}
.ngt-result-accordion .ngt-table-wrap {
    margin: 0;
    border-top: 1px solid rgba(0,0,0,.08);
}

/* v0.6.25: High-Low checkbox aligned in frontend registration form */
.ngt-form label.ngt-checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  font-weight: 700;
}
.ngt-form label.ngt-checkbox-label input[type="checkbox"] {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

/* v0.6.28: Breitere Squad-Karten und kompaktere Spielerlisten */
.ngt-squad-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
}
.ngt-squad-item {
  min-width: 0;
}
.ngt-squad-participants li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .ngt-squad-list { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 640px) {
  .ngt-squad-list { grid-template-columns: 1fr; }
  .ngt-squad-participants li { white-space: normal; }
}

/* v0.6.60: Frontend-Anmeldung mit Mehrfach-Squad-Auswahl */
.ngt-field{display:grid;gap:6px;font-weight:600}
.ngt-field-label{font-weight:700;color:#0f172a}
.ngt-help{margin:6px 0 0;color:#475569;font-size:.95em;line-height:1.45;font-weight:400}
.ngt-squad-choice-list{display:grid;gap:8px;max-height:340px;overflow:auto;border:1px solid #cbd5e1;border-radius:8px;padding:10px;background:#fff}
.ngt-squad-choice{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:9px;margin:0!important;padding:8px;border-radius:7px;font-weight:500!important;line-height:1.35;background:#f8fafc;border:1px solid #eef2f7}
.ngt-squad-choice:hover{background:#f1f5f9}
.ngt-squad-choice input{width:auto!important;margin-top:2px;flex:0 0 auto}
.ngt-squad-choice input:disabled + span{opacity:.55;text-decoration:line-through}
@media (max-width:700px){.ngt-squad-choice-list{max-height:420px}.ngt-squad-choice{font-size:.95em}}
