/* WFSC 2026 — Head Judge — Layout-Ergänzungen (Farben/Komponenten aus tokens.css) */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.error-banner {
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 600;
  margin: 16px 16px 0;
}

/* ---------- Selector card ---------- */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-condensed);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field select {
  min-height: 44px;
  font-size: 1rem;
}

#btn-load-current {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .selector-grid {
    grid-template-columns: 1fr 1fr;
  }
  #btn-load-current {
    grid-column: 1 / -1;
  }
}

/* ---------- Scores card ---------- */
.scores-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.status-area {
  display: flex;
  align-items: center;
  min-height: 44px;
}

#approve-badge {
  font-size: 0.95rem;
  padding: 6px 14px;
}

.table-scroll {
  overflow-x: auto;
}

#scores-table {
  min-width: 560px;
}

#scores-table th, #scores-table td {
  white-space: nowrap;
}

#scores-table th:first-child, #scores-table td:first-child {
  white-space: normal;
  min-width: 200px;
}

.criterion-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.criterion-bundle {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-input {
  width: 84px;
  min-height: 44px;
  text-align: center;
  font-size: 1rem;
}

.score-input:disabled {
  opacity: 0.6;
}

.judge-total-cell {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}

.judge-total-cell.is-dropped {
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.judge-col-header {
  text-align: center;
}

.judge-col-header .judge-name {
  color: var(--ink);
  font-weight: 700;
}

.judge-col-header .judge-slot {
  color: var(--muted);
}

.approve-row {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.approve-btn {
  min-height: 52px;
  padding: 12px 32px;
  font-size: 1.1rem;
}

#scores-empty {
  padding: 20px 0;
  text-align: center;
}

@media (max-width: 640px) {
  .scores-header {
    flex-direction: column;
  }
  .approve-row {
    justify-content: stretch;
  }
  .approve-btn {
    width: 100%;
  }
}
