/* National Crossminton Ranking - finálny štýl */

.ncr-wrapper {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ncr-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ncr-controls label {
    font-weight: 600;
    font-size: 14px;       /* zmenší alebo zväčší text */
    color: #035C91;        /* nastaví farbu (napr. tmavomodrá) */
}

.ncr-btn {
  background: #1d4ed8;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.ncr-btn:hover { background: #1e40af; }

.ncr-status { margin: 8px 0; }
.ncr-error { color: #b91c1c; }
.ncr-loading { color: #374151; }

.ncr-table-wrap { overflow-x: auto; }

.ncr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px; /* menšie písmo, napr. 14px */
  font-family: "Segoe UI", Arial, sans-serif !important; /* pevný font */
}

.ncr-table th,
.ncr-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #000000;
}

/* Hlavička tabuľky – pevná biela farba textu a modré pozadie */
.ncr-table th {
  background-color: #035C91 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important; /* pevná veľkosť pre hlavičku */
}

/* Hrubé písmo pre Meno a Body */
.ncr-table td:nth-child(2),
.ncr-table td:nth-child(3) {
  font-weight: 600;
}

/* Hover efekt na riadok */
.ncr-table tr:hover {
  background-color: #F2F4F5;
  transition: background-color 0.3s ease;
}

/* Select box štýl */
.ncr-controls select {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 6px 8px;
  font-size: 14px;
  background-color: #fff;
}

/* Zarovnanie stĺpca Body na stred */
.ncr-table th:nth-child(3),
.ncr-table td:nth-child(3),
.ncr-table th:nth-child(1),
.ncr-table td:nth-child(1) {
  text-align: center !important;
}

/* Farby pre medailové pozície */
.ncr-gold { background-color: #EBDA7C; }
.ncr-silver { background-color: #EDE8E8; }
.ncr-bronze { background-color: #F5D5B1; }

.ncr-meta {
  margin-top: 8px;
  font-size: 0.92em;
  color: #4b5563;
}