/* ============================================================================
   LISTINY JEDNOTLIVCOV — prihláška a štartová listina (100, 101, 102, 112,
   127, 128). Jazyk .sk-v2: ploché plochy, riadky delia 1px čiary, žiadne
   farebné pásy kategórií ani pastelové podfarbenia; čísla tabuľkové.
   Koreň stránky: .lj-strana (pridáva prihlaska/index a startovky/show).
   Prebíja staré pravidlá z offcanvas.css (.tfl-row, .startove-cislo,
   .row-present …), preto sú selektory vedené cez .lj-strana.
   ========================================================================== */

.lj-num { font-variant-numeric: tabular-nums; }
.lj-strana { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* ── Štartová listina TFA (lj-*) ─────────────────────────────────────── */
.lj-panel {
    background: var(--sk-surface);
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius-md);
    overflow: hidden;
}
.lj-prazdne { padding: 1rem; color: var(--sk-ink-muted); }
.lj-tab { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.lj-tab th {
    padding: .55rem .6rem;
    background: var(--sk-surface-subtle);
    border-bottom: 1px solid var(--sk-border);
    color: var(--sk-ink-muted);
    font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
    text-align: left; white-space: nowrap;
}
.lj-tab td { padding: .6rem; border-bottom: 1px solid var(--sk-border-soft); vertical-align: middle; }
.lj-tab tbody tr:last-child td { border-bottom: 0; }
.lj-tab .c-sc { width: 3rem; padding-left: 1rem; color: var(--sk-ink-soft); font-weight: 700; }
.lj-tab .c-rok, .lj-tab .c-roz { width: 4rem; color: var(--sk-ink-muted); }
.lj-tab .c-druzstvo { color: var(--sk-ink-muted); font-size: .875rem; }
.lj-tab .c-cas, .lj-tab .c-por { text-align: right; white-space: nowrap; }
.lj-tab .c-por { width: 3rem; padding-right: 1rem; }
.lj-tab .c-cas b { color: var(--sk-ink-heading); font-weight: 800; }
.lj-meno { color: var(--sk-ink-heading); font-weight: 700; font-stretch: var(--sk-stretch-condensed); font-size: 1rem; text-decoration: none; }
a.lj-meno:hover { color: var(--sk-brand-link); text-decoration: underline; }
.lj-klub { display: block; color: var(--sk-ink-muted); font-size: .8125rem; }
.lj-kat { display: block; color: var(--sk-ink-soft); font-size: .75rem; font-weight: 600; }
.lj-neplatny { color: var(--sk-ink-soft); font-weight: 600; }
.lj-papier { display: none; }
.lj-desk { display: none; }

.lj-por, .lj-strana .tfl-por {
    position: relative; display: inline-block; min-width: 1.4rem; padding-left: .65rem;
    color: var(--sk-ink-heading); font-weight: 750; font-variant-numeric: tabular-nums;
    background: none; border-radius: 0; height: auto; font-size: inherit;
}
.lj-por::before, .lj-strana .tfl-por::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
}
.lj-por[data-m="1"]::before, .lj-strana .tfl-por-medal-1::before { background: var(--sk-medal-gold); }
.lj-por[data-m="2"]::before, .lj-strana .tfl-por-medal-2::before { background: var(--sk-medal-silver); }
.lj-por[data-m="3"]::before, .lj-strana .tfl-por-medal-3::before { background: var(--sk-medal-bronze); }

@media (min-width: 576px) {
    .lj-desk { display: table-cell; }
    .lj-mob { display: none; }
}

/* ── Štartová listina veža / 100 m / 60 m (tfl-jed-*) ───────────────── */
.lj-strana .tlac-disc-blok + .tlac-disc-blok { margin-top: 1.75rem; }
.lj-strana .tlac-disc-blok h3 {
    color: var(--sk-ink-heading); font-size: 1.375rem; font-weight: 750;
    font-stretch: var(--sk-stretch-condensed);
}
.tfl-jed-wrap {
    background: var(--sk-surface);
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius-md);
    overflow-x: auto;
}
.tfl-jed-table { width: 100%; margin: 0; border-collapse: collapse; background: var(--sk-surface); font-size: .9375rem; }
.tfl-jed-table > :not(caption) > * > * { padding: 0; box-shadow: none; background: transparent; }
.tfl-jed-table thead th {
    padding: .55rem .55rem !important;
    background: var(--sk-surface-subtle) !important;
    border-bottom: 1px solid var(--sk-border) !important;
    color: var(--sk-ink-muted);
    font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
    white-space: nowrap; text-align: center;
}
.tfl-th-meno, .tfl-th-druzstvo { text-align: left !important; }
.tfl-th-roz { width: 3rem; }
.tfl-th-sc { width: 3.5rem; }
.tfl-th-meno { min-width: 9rem; }
.tfl-th-dr { width: 2.25rem; }
.tfl-th-cas { width: 4.5rem; }
.tfl-th-lepsi { width: 4.5rem; }
.tfl-th-por { width: 3rem; }
.tfl-th-vek { width: 4rem; }

.tfl-jed-row td { padding: .55rem .55rem !important; vertical-align: middle; border-bottom: 1px solid var(--sk-border-soft); }
.tfl-jed-row:last-child td { border-bottom: 0; }
/* rozbeh = skupina riadkov, oddelená silnejšou čiarou (bez zebry a medailí v pozadí) */
.tfl-jed-row.tfl-roz-first td { border-top: 1px solid var(--sk-border-strong); }
.tfl-jed-table tbody tr:first-child td { border-top: 0 !important; }

.tfl-td-roz { text-align: center; vertical-align: top !important; border-right: 1px solid var(--sk-border-soft); }
.tfl-roz-badge { color: var(--sk-ink-heading); font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.tfl-td-sc { text-align: center; }
.tfl-sc-val { color: var(--sk-ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.tfl-td-sc input { min-height: 32px; }

.tfl-name-row { display: flex; align-items: baseline; gap: .35rem; min-width: 0; }
.tfl-name { color: var(--sk-ink-heading); font-weight: 700; font-stretch: var(--sk-stretch-condensed); font-size: 1rem; text-decoration: none; white-space: nowrap; }
.tfl-name:hover { color: var(--sk-brand-link); text-decoration: underline; }
.tfl-mob-sc { display: none; color: var(--sk-ink-soft); font-size: .8125rem; font-weight: 600; }
.tfl-mob-klub, .tfl-mob-vek { display: none; color: var(--sk-ink-muted); font-size: .8125rem; line-height: 1.35; }
.tfl-mob-pokusy { display: none; margin-top: .15rem; color: var(--sk-ink-strong); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tfl-mob-pokus-lbl { color: var(--sk-ink-soft); font-size: .75rem; }
.tfl-mob-pokus-sep { margin: 0 .35rem; color: var(--sk-ink-faint); }
.tfl-td-druzstvo { color: var(--sk-ink-muted); font-size: .875rem; }
.tfl-td-vek { color: var(--sk-ink-muted); font-size: .875rem; text-align: center; font-variant-numeric: tabular-nums; }
.tfl-td-dr { color: var(--sk-ink-soft); font-size: .8125rem; }
.tfl-td-cas { color: var(--sk-ink-muted); font-variant-numeric: tabular-nums; }
.tfl-td-lepsi { text-align: right !important; font-variant-numeric: tabular-nums; }
.tfl-td-lepsi strong { color: var(--sk-ink-heading); font-weight: 800; }
.tfl-td-por { text-align: right !important; }
.tfl-np, .tfl-disk { color: var(--sk-ink-soft); font-style: normal; font-weight: 600; font-size: .8125rem; }
.tfl-dr-inline { color: var(--sk-ink-soft); font-size: .75rem; margin-right: .2rem; }

@media (max-width: 575px) {
    .tfl-mob-klub, .tfl-mob-vek, .tfl-mob-pokusy { display: block; }
    .tfl-mob-sc { display: inline; }
    .tfl-jed-wrap { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -.5rem; }
    .tfl-jed-row td, .tfl-jed-table thead th { padding-left: .35rem !important; padding-right: .35rem !important; }
    .tfl-th-roz { width: 2rem; }
}

/* ── Prihláška (tfl-row v prihlaska/_row, _row-empty) ────────────────── */
.lj-strana .lj-kat-hlava { margin: .25rem 0 .75rem; }
.lj-strana .lj-kat-hlava h3 {
    margin: 0; color: var(--sk-ink-heading);
    font-size: 1.375rem; font-weight: 750; font-stretch: var(--sk-stretch-condensed);
}
.lj-strana .lj-kat-hlava p { margin: .15rem 0 0; color: var(--sk-ink-muted); font-size: .875rem; }

.lj-strana .table-jednotlivci-bez-tlace {
    background: var(--sk-surface);
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius-md);
    overflow: hidden;
}
.lj-strana .tfl-table-header {
    margin: 0; padding: .55rem .25rem;
    background: var(--sk-surface-subtle) !important;
    border-bottom: 1px solid var(--sk-border);
    color: var(--sk-ink-muted) !important;
    font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
}
.lj-strana .tfl-table-header div { background: transparent !important; color: inherit !important; }

.lj-strana .tfl-row {
    margin: 0;
    min-height: 56px;
    padding: .45rem .25rem;
    background: var(--sk-surface) !important;
    border-bottom: 1px solid var(--sk-border-soft);
    border-left: 0;
}
.lj-strana .striped-div .row:nth-child(even),
.lj-strana .striped-div .tfl-row:nth-child(even) { background: var(--sk-surface) !important; }
.lj-strana .tfl-row:last-child { border-bottom: 0; }
.lj-strana .tfl-row:hover { background: var(--sk-surface-subtle) !important; }
.lj-strana .row-present { background: var(--sk-surface) !important; border-left: 0; }
.lj-strana .row-error { box-shadow: inset 3px 0 0 var(--sk-state-live-fg); }
.lj-strana .startove-cislo {
    width: auto; min-width: 2rem; margin: 0 !important; padding: 0 !important;
    background: transparent !important; color: var(--sk-ink-soft) !important;
    font-size: .9375rem; font-weight: 700; text-align: left;
    font-variant-numeric: tabular-nums;
}
.lj-strana .tfl-name {
    display: inline; width: auto;
    color: var(--sk-ink-heading); font-weight: 700; font-stretch: var(--sk-stretch-condensed); font-size: 1rem;
}
.lj-strana .row-present .tfl-name { color: var(--sk-ink-heading); }
.lj-strana .tfl-subinfo { color: var(--sk-ink-muted); font-size: .8125rem; line-height: 1.35; }
.lj-strana .lj-id { color: var(--sk-ink-faint); font-size: .75rem; font-weight: 500; margin-left: .25rem; }
.lj-strana .lj-prezent { margin-left: .35rem; color: var(--sk-state-open-fg); font-size: .75rem; font-weight: 650; }
.lj-strana .lj-disc { display: inline-flex; gap: .35rem; align-items: center; color: var(--sk-ink-muted); font-size: .8125rem; }
.lj-strana .lj-disc span { padding: 0 .4rem; border: 1px solid var(--sk-border); border-radius: var(--sk-radius-sm); }
.lj-strana .lj-disc span.is-nie { color: var(--sk-ink-faint); text-decoration: line-through; border-style: dashed; }

/* prázdne miesto: vyhľadávanie pretekára */
.lj-strana .tfl-search-form .form-control { min-height: 40px; font-size: 1rem; border-color: var(--sk-border-input); }
.lj-strana .lj-prihlasit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--sk-ink-muted); font-size: .8125rem; }

/* panely správcu (číslovanie, presun) */
.lj-strana .tfl-admin-box,
.lj-strana .tfl-admin-hint-box {
    background: var(--sk-surface) !important;
    border: 1px solid var(--sk-border) !important;
    border-left-width: 1px !important;
    border-radius: var(--sk-radius-md);
    color: var(--sk-ink);
}
.lj-strana .tfl-admin-hint-icon, .lj-strana .tfl-admin-hint-title, .lj-strana .tfl-admin-hint-text { color: var(--sk-ink-muted) !important; }
.lj-strana .tfl-admin-hint-title { color: var(--sk-ink-strong) !important; }

/* tlačidlo úpravy v akciách (_actions má inline modrý štvorec) */
.lj-strana .tfl-actions-col button[data-bs-toggle="modal"] {
    background: var(--sk-surface) !important; color: var(--sk-ink-strong) !important;
    border-color: var(--sk-border-strong) !important;
}
