html,
body {
  overflow-x: clip;
}

body {
  padding-top: 56px;
}

/* ── MOBILNÉ MENU ── */
@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 290px;
    max-width: 88vw;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    background-color: #ffffff !important;
    background: #ffffff !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s ease;
    transform: translateX(100%);
    z-index: 1070;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: auto;
    flex-grow: 0;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(0);
  }

  /* hlavička offcanvas panelu */
  .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1064ad;
    padding: 15px 18px;
    border-bottom: 3px solid #e6640d;
    flex-shrink: 0;
  }
  .offcanvas-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .offcanvas-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
  }
  .offcanvas-close-btn:hover { background: rgba(255,255,255,0.28); }

  .offcanvas-collapse .navbar-nav {
    padding: 8px 0 20px;
    margin: 0 !important;
    background-color: #ffffff !important;
    flex: 1;
    width: 100%;
    align-items: stretch;
  }

  .offcanvas-collapse .offcanvas-header,
  .offcanvas-collapse .navbar-nav,
  .offcanvas-collapse .nav-link {
    width: 100%;
  }

  .offcanvas-collapse .nav-item,
  .offcanvas-collapse .offcanvas-cta-section {
    width: auto;
    align-self: stretch;
  }

  /* každá položka */
  .offcanvas-collapse .nav-item {
    border-bottom: 1px solid #f1f5f9;
  }
  .offcanvas-collapse .nav-item:last-child { border-bottom: none; }

  .offcanvas-collapse .nav-link {
    color: #1e293b !important;
    font-size: 0.97rem;
    font-weight: 500;
    padding: 13px 20px !important;
    display: flex !important;
    align-items: center;
    gap: 11px;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
  }
  .offcanvas-collapse .nav-link:hover {
    background: #fff8f3 !important;
    border-left-color: #e6640d;
    color: #c4511a !important;
  }
  .offcanvas-collapse .nav-link i {
    font-size: 1.05rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color .15s;
  }
  .offcanvas-collapse .nav-link:hover i { color: #e6640d; }

  /* dropdown – accordion na mobile, skrytý by default */
  .offcanvas-collapse .nav-item.dropdown .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    background: #f0f6ff;
    border-radius: 0;
    border-left: 3px solid #1064ad;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .32s cubic-bezier(.4,0,.2,1), opacity .22s ease;
  }
  .offcanvas-collapse .nav-item.dropdown.mob-open .dropdown-menu {
    max-height: 600px;
    opacity: 1;
    padding: 4px 0;
  }
  .offcanvas-collapse .dropdown-item {
    padding: 10px 20px 10px 46px;
    font-size: 0.88rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: none;
    transition: background .12s, color .12s;
  }
  .offcanvas-collapse .dropdown-item:hover {
    background: #dbeafe;
    color: #1064ad;
  }
  .offcanvas-collapse .dropdown-item i { color: #94a3b8; font-size: 0.9rem; }
  .offcanvas-collapse .dropdown-divider { margin: 4px 20px; border-color: #dde8f5; }

  /* šípka – otočí sa pri otvorení */
  .offcanvas-collapse .nav-link.dropdown-toggle::after {
    margin-left: auto;
    transition: transform .28s ease;
  }
  .offcanvas-collapse .nav-item.dropdown.mob-open > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }
  /* parent link – zvýrazni keď je otvorený */
  .offcanvas-collapse .nav-item.dropdown.mob-open > .nav-link {
    background: #e8f0fb !important;
    border-left-color: #1064ad !important;
    color: #1064ad !important;
  }
  .offcanvas-collapse .nav-item.dropdown.mob-open > .nav-link i { color: #1064ad; }

  /* tlačidlá prihlásiť/registrácia */
  .offcanvas-collapse .btn {
    margin: 6px 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
  }
  .offcanvas-collapse .nav-item:has(.btn) { border-bottom: none; }

  /* ── Hlavička účtu nad profilovými položkami (mobil/tablet) ── */
  .mobil-ucet-hlavicka {
    border-bottom: none !important;
    padding: 14px 14px 4px;
    margin-top: 6px;
    border-top: 1px solid #f1f5f9;
  }
  .mobil-ucet-meno {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
  }
  .mobil-ucet-meno > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }
  .mobil-ucet-meno strong {
    overflow: hidden;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobil-ucet-meno small {
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .offcanvas-collapse .nav-notification-badge {
    position: static;
    min-width: 22px;
    margin-left: auto;
  }

  /* ── CTA sekcia v spodnej časti mobilného menu ── */
  .offcanvas-cta-section {
    padding: 14px 14px 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
  }
  .offcanvas-cta-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 10px 2px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .offcanvas-cta-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: filter .15s, transform .15s;
  }
  .offcanvas-cta-card:last-child { margin-bottom: 0; }
  .offcanvas-cta-card:hover { filter: brightness(1.05); transform: translateY(-1px); }

  .offcanvas-cta-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  .offcanvas-cta-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .offcanvas-cta-body strong {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .offcanvas-cta-body span {
    font-size: 0.76rem;
    opacity: 0.82;
    line-height: 1.3;
  }
  .offcanvas-cta-arrow {
    font-size: 1.15rem;
    flex-shrink: 0;
    opacity: 0.6;
  }

  /* Nahraj výsledky – oranžová */
  .offcanvas-cta-upload {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
  }
  .offcanvas-cta-upload .offcanvas-cta-ico {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
  }

  /* Vytvor štartovku – zelená */
  .offcanvas-cta-new {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #15803d;
  }
  .offcanvas-cta-new .offcanvas-cta-ico {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
  }

  /* Jednotný mobilný navigačný panel */
  .offcanvas-collapse {
    width: min(330px, 92vw) !important;
    max-width: 92vw;
    margin: 0 !important;
    background: var(--sk-surface-subtle) !important;
  }
  .offcanvas-header {
    min-height: 66px;
    padding: 14px 16px;
    background: var(--sk-brand-gradient);
    border-bottom: 0;
  }
  .offcanvas-title {
    font-size: var(--sk-size-meta);
    letter-spacing: var(--sk-tracking-wide);
  }
  .offcanvas-close-btn { border-radius: var(--sk-radius-md); }

  .offcanvas-collapse .navbar-nav {
    gap: 2px;
    padding: 10px 10px 16px;
    margin: 0 !important;
    background: transparent !important;
  }
  .offcanvas-collapse .nav-item {
    margin: 0;
    border-bottom: 0;
  }
  .offcanvas-collapse .nav-link {
    min-height: 46px;
    padding: 10px 12px !important;
    color: var(--sk-ink-strong) !important;
    border: 0;
    border-radius: var(--sk-radius-md);
    font-size: .9rem;
    font-weight: 650;
  }
  .offcanvas-collapse .nav-link i {
    display: inline-flex;
    width: 22px;
    justify-content: center;
    color: var(--sk-ink-soft);
  }
  .offcanvas-collapse .nav-link:hover,
  .offcanvas-collapse .nav-link.active {
    color: var(--sk-brand-hover) !important;
    background: var(--sk-surface-info) !important;
  }
  .offcanvas-collapse .nav-link:hover i,
  .offcanvas-collapse .nav-link.active i { color: var(--sk-brand-ink); }
  .offcanvas-collapse .nav-panel-link {
    color: var(--sk-brand-hover) !important;
    background: var(--sk-surface-info);
    border: 1px solid var(--sk-border-info);
  }

  .mobile-nav-section-label {
    margin: 14px 10px 4px;
    padding: 0 2px;
    color: var(--sk-ink-soft);
    font-size: var(--sk-size-label);
    font-weight: var(--sk-weight-bold);
    letter-spacing: var(--sk-tracking-wide);
    list-style: none;
    text-transform: uppercase;
  }
  .mobile-nav-section-label:first-child { margin-top: 4px; }

  .offcanvas-collapse .nav-item.dropdown .dropdown-menu {
    margin: 2px 4px 5px;
    background: var(--sk-surface);
    border: 1px solid var(--sk-border-soft);
    border-left: 1px solid var(--sk-border-soft);
    border-radius: var(--sk-radius-md);
  }
  .offcanvas-collapse .nav-item.dropdown.mob-open .dropdown-menu { padding: 5px; }
  .offcanvas-collapse .dropdown-item {
    min-height: 40px;
    padding: 9px 11px 9px 38px;
    color: var(--sk-ink-label);
    border-radius: var(--sk-radius-sm);
    font-size: .83rem;
  }
  .offcanvas-collapse .dropdown-item:hover {
    color: var(--sk-brand-hover);
    background: var(--sk-surface-tint);
  }
  .offcanvas-collapse .nav-item.dropdown.mob-open > .nav-link {
    color: var(--sk-brand-hover) !important;
    background: var(--sk-surface-info) !important;
    border-left: 0 !important;
  }

  .mobil-ucet-hlavicka {
    margin: 16px 4px 0 !important;
    padding: 13px !important;
    background: var(--sk-surface);
    border: 1px solid var(--sk-border) !important;
    border-radius: var(--sk-radius-lg);
    box-shadow: var(--sk-shadow-sm);
  }
  .mobile-nav-section-label.is-account { margin-top: 10px; }
  .offcanvas-collapse .nav-link.text-danger {
    color: var(--sk-state-live-fg) !important;
  }
  .offcanvas-collapse .nav-link.text-danger i { color: var(--sk-state-live-fg); }

  .offcanvas-cta-section {
    margin: 0 10px 14px;
    padding: 12px 0 0;
    border-top-color: var(--sk-border);
  }
  .offcanvas-cta-card {
    margin: 0;
    border: 1px solid var(--sk-role-owner-bg);
    border-radius: var(--sk-radius-lg);
    box-shadow: var(--sk-shadow-sm);
  }
}

/* backdrop za mobilným menu */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1060;
  opacity: 0;
  transition: opacity .3s ease;
}
.menu-backdrop.show {
  display: block;
  opacity: 1;
}
body.menu-open {
  overflow: hidden;
}

/* hamburger tlačidlo – moderné */
.mobile-menu-box {
  background-color: #1064ad;
  width: 48px;
  height: 48px;
  margin-right: 6px !important;
  border-radius: 12px;
  position: relative;
  top: auto;
  right: auto;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.mobile-menu-box:hover,
.mobile-menu-box:focus { background-color: #0d4f8b; }
.mobile-menu-box .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 22px;
  height: 22px;
}


.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.nav-link.active{
  background-color: none;
  color: #343a40;
}

.text-white-50 { color: rgba(255, 255, 255, .5); }

.bg-purple { background-color: #6f42c1; }

/* ── HLAVNÉ MENU ── */
.hlavne-menu {
  background: linear-gradient(135deg, #0b4f8a 0%, #1064ad 60%, #1472c0 100%);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  height: 60px;
  padding: 0;
  z-index: 1080; /* nad .menu-backdrop (1060), aby off-canvas menu bolo klikateľné */
}

/* .hlavne-menu (1080) je vyššie ako Bootstrapov default pre modálne okná
   (.modal 1055 / .modal-backdrop 1050), takže vrch každého modálu sa schovával
   pod modrý header. Modál musí byť nad hlavným menu. */
.modal-backdrop {
  z-index: 1085;
}

.modal {
  z-index: 1090;
}

/* Globálny fallback – biele linky všade kde nie je iný štýl */
.nav-link { color: #ffffff !important; }
.nav-link:hover { background-color: transparent; }

/* ── DESKTOP navbar (≥992px) ── */
@media (min-width: 992px) {
  /* nav linky */
  .hlavne-menu .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 11px !important;
    border-radius: 8px;
    margin: 0 1px;
    transition: background .18s, color .18s;
    white-space: nowrap;
  }
  .hlavne-menu .nav-link:hover {
    background: rgba(255,255,255,0.14) !important;
    color: #fff !important;
  }
  .hlavne-menu .nav-link.active {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
  }

  .hlavne-menu .nav-panel-link {
    margin-left: 8px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.1);
    font-weight: 650;
  }
  .hlavne-menu .nav-panel-link:hover,
  .hlavne-menu .nav-panel-link.active {
    background: #fff !important;
    color: #0b4f8a !important;
  }

  .hlavne-menu .nav-icon-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }

  .hlavne-menu .nav-account-trigger {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 4px 9px 4px 5px !important;
  }

  .hlavne-menu .nav-account-name {
    display: block;
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* dropdown toggle šípka jemnejšia */
  .hlavne-menu .dropdown-toggle::after {
    opacity: 0.7;
    margin-left: 5px;
  }

  /* dropdown – moderný biely panel */
  .hlavne-menu .nav-item.dropdown .dropdown-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateY(6px);
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    padding: 6px;
    min-width: 230px;
    margin-top: 0px;
  }
  .hlavne-menu .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .hlavne-menu .dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: background .12s, color .12s;
    border: none;
  }
  .hlavne-menu .dropdown-item:hover {
    background: #eff6ff;
    color: #1064ad;
  }
  .hlavne-menu .dropdown-item i {
    color: #64748b;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: color .12s;
  }
  .hlavne-menu .dropdown-item:hover i { color: #1064ad; }
  .hlavne-menu .dropdown-divider {
    margin: 4px 8px;
    border-color: #f1f5f9;
  }

  .hlavne-menu .nav-account-menu {
    right: 0 !important;
    left: auto !important;
    width: 250px;
    min-width: 250px !important;
    max-width: calc(100vw - 24px);
  }

  .hlavne-menu .nav-account-menu .dropdown-item {
    width: 100%;
    white-space: nowrap;
  }

  /* Prihlásiť / Registrácia tlačidlá */
  .hlavne-menu .nav-item .btn-success {
    background: #22c55e !important;
    border-color: #22c55e !important;
    font-weight: 600;
    border-radius: 9px;
    padding: 6px 14px;
    font-size: 0.875rem;
    transition: filter .15s, transform .15s;
  }
  .hlavne-menu .nav-item .btn-success:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
  }

  /* offcanvas header nikdy na desktope */
  .offcanvas-header { display: none !important; }
}

/* Na užšom desktope ponechaj väčšiu časť šírky obsahu stránke. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hlavne-menu .container-fluid {
    padding-right: 8px;
    padding-left: 8px;
  }

  .hlavne-menu .nav-link {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .hlavne-menu .nav-panel-link {
    margin-left: 3px;
  }

  .hlavne-menu .nav-account-name {
    max-width: 88px;
  }
}

.nav-account-avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.nav-account-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px 14px 7px;
}
.nav-account-meta strong {
  overflow: hidden;
  color: #1e3a56;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-meta small {
  overflow: hidden;
  color: #7a8da0;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-notification-badge {
  position: absolute;
  top: 1px;
  right: -2px;
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #1064ad;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 0.59rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .mobil-ucet-hlavicka .nav-account-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-color: #cfe0ee;
    background: #eaf3fa;
    color: #155f91;
  }
}

/* NAVBAR LOGÁ – izolované */
.navbar-logos {
    display: flex;
    align-items: center;
}

/* základ logo */
.nav-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    transition: 0.2s ease;
}

/* keď je len jedno logo */
.nav-logo.single {
    height: 32px;
}

/* hover jemný efekt */
.nav-logo:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* mobil */
@media (max-width: 768px) {
    .nav-logo,
    .nav-logo.single {
        height: 24px;
    }
}

@media (max-width: 420px) {
    .nav-logo,
    .nav-logo.single {
        height: 20px;
    }
}

/* Skupina logo + jazykové vlajky vľavo v hlavnom menu – nesmie sa zalomiť
   a na mobile sa medzera medzi logom a vlajkami zužuje, aby ostalo miesto
   pre login tlačidlo a hamburger vpravo. */
.navbar-brand-group {
    min-width: 0;
    flex-shrink: 1;
}
.navbar-brand-langs {
    margin-left: 1rem;
    min-width: 0;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .navbar-brand-langs { margin-left: 0.6rem; }
}
@media (max-width: 420px) {
    .navbar-brand-langs { margin-left: 0.35rem; }
}

/* Jazykový prepínač vo vlajkách – vlajky sa na mobile zmenšia a zúžia medzery,
   aby sa do horného riadku vždy zmestili spolu s logom, login tlačidlom a hamburgerom. */
.lang-flag-link {
    margin-right: 8px;
    display: inline-flex;
    line-height: 0;
}
.lang-flag-link:last-child {
    margin-right: 0;
}
.lang-flag {
    height: 20px;
    border-radius: 2px;
}

@media (max-width: 575.98px) {
    .lang-flag-link { margin-right: 5px; }
    .lang-flag { height: 16px; }
}

@media (max-width: 420px) {
    .lang-flag-link { margin-right: 4px; }
    .lang-flag { height: 14px; }
}

/* Pravá skupina na mobile (login + hamburger) – kompaktnejšie odsadenie
   a skrytý text v login tlačidle na veľmi úzkych obrazovkách, nech ostane
   len ikona a je viac miesta pre logo + vlajky. */
@media (max-width: 420px) {
    .navbar .d-flex.d-lg-none.align-items-center.gap-2 {
        gap: 4px !important;
    }
    .navbar-mobile-login-text {
        display: none;
    }
    .navbar .d-flex.d-lg-none .btn-success {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* SECONDARY MENU */
.secondary-menu {
  position: sticky;
  top: 59px!important;
  z-index: 999;
  background-color: #f8f9fa;

  display: flex;
  flex-wrap: nowrap; /* 🔥 ZMENA */

  align-items: center;
  gap: 8px;

  padding: 8px;
  margin: 0;
}
.secondary-menu::-webkit-scrollbar {
    display: none;
}
@media (min-width: 769px) {
  .secondary-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {

  .secondary-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;

    padding-right: 20px; /* menšie ako šírka tlačidla */
  }

  .secondary-menu > * {
    flex: 0 0 auto;
  }

   .offcanvas-collapse {
    overflow-y: visible;
    overflow-x: visible;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    box-shadow: none;
  }

}



/* každý prvok menu */
.secondary-menu > * {
  flex: 0 1 auto;
}

/* tlačidlá */
.secondary-menu a,
.secondary-menu button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  font-size: 15px;
  font-weight: 500;

  padding: 8px 14px;

  border-radius: 6px;
  border: none;

  white-space: nowrap;

  box-shadow: 0 1px 3px rgba(0,0,0,0.08);

  transition: all 0.2s ease;
}

.dropdown-menu {
  z-index: 99999!important;
}

/* hover efekt */
.secondary-menu a:hover,
.secondary-menu button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* mobil */
@media (max-width: 768px) {

  .secondary-menu {
    justify-content: stretch;
  }

  .secondary-menu > * {
    flex: 1 1 calc(50% - 8px);
  }

  .secondary-menu a,
  .secondary-menu button {
    width: auto;
    font-size: 14px;
    padding: 10px;
  }

}

/* veľmi malé displeje */
@media (max-width: 420px) {

  .secondary-menu > * {
    flex: 1 1 100%;
  }

}


.admin-secondary-menu {
  background-color: #f9f9f9;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  top: 130px;
}
.admin-secondary-menu a,
.admin-secondary-menu button {
  text-decoration: none;
  color: white;
  padding: 7px 15px;
  border-radius: 3px;
  font-weight: bold;
  white-space: nowrap;
}



.modern-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.modern-header {
  background: linear-gradient(90deg, #1f5f9b, #2c7be5);
  color: white;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px 10px 0 0;
}

.modern-input {
  border-radius: 6px;
  padding: 8px 10px;
  border: 1px solid #ddd;
}

.modern-input:focus {
  border-color: #2c7be5;
  box-shadow: 0 0 0 2px rgba(44,123,229,0.15);
}

.modern-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  transition: 0.2s;
}

.modern-checkbox:hover {
  background-color: #f5f7fa;
}

.admin-competitions .competition-row{
    background:white;
    border-radius:14px;
    border:1px solid #eef1f5;
    transition:all .15s ease;
    flex-wrap:wrap;
    gap:12px;
}



.kolo-badge {
  background: #1993b8;
  color: white;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
}



.admin-competitions .competition-row:hover{
    background:#fafafa;
    border-color:#ddd;
}

.admin-competitions .competition-title{
    text-decoration:none;
    color:#0d6efd;
}

.admin-competitions .competition-title:hover{
    text-decoration:underline;
}

.admin-competitions .competition-info{
    flex:1 1 320px;
    min-width:0;
}


.content{
  padding: 20px 0px;
}

h1 {
  font-size: 2vw; /* Dynamická veľkosť písma, ktorá sa prispôsobí šírke obrazovky */
  white-space: normal; /* Povoliť zalamovanie textu */
  word-wrap: break-word; /* Umožní zalamovanie dlhých slov */
  /* margin-bottom: 20px; Odstup od ďalšieho bloku */
}


/* Responzívne úpravy pre menšie obrazovky */
@media (max-width: 768px) {
  h1 {
      font-size: 7vw; /* Menšia veľkosť písma na mobilných zariadeniach */
  }
}

.content h1 .nadpis-datum{
  font-size: 0.7em;
  color: #555;
  font-weight: 400;
}

.content .miesto-konania{
  font-size: 18px;
  color: #666666;
}

.content .miesto-konania-title{
  font-size: 0.8em;
}

.card-results{
  width: 100%;
  border: 1px solid #d7dfe3;
    border-radius: 4px;
    -webkit-box-shadow: 0px 5px 20px rgb(0 0 0 / 5%);
    box-shadow: 0px 5px 20px rgb(0 0 0 / 5%);
    color: #455a64;
}

.nav-pills .nav-link.active{
  background-color: transparent;
  color: #007bff;
  font-weight: 600;
  border-bottom-color: #77abe4;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-radius: 0rem;
}

.scroll-container {
  overflow-x: scroll; /* umožní horizontálne posúvanie */
  -webkit-overflow-scrolling: touch; /* prehladávač Safari pre plynulé posúvanie */
  width: 100%; /* nastaví šírku kontajnera na 100% obrazovky */
}

.startovka-druzstva-tlac {
  border-collapse: collapse; /* Odstráni medzery medzi bunkami */
}

.startovka-druzstva-tlac td {
  border: 1px solid #999;
  padding: 3px; /* Odstráni vnútorné medzery v bunkách */
}
.startovka-druzstva-tlac .stred {
  text-align: center;
}

.table-jednotlivci,
.table-druzstva,
.table-stafeta,
.table-utok{
  font-size: 13px;
  border-collapse: collapse;
}

/* ============ Požiarny útok – výsledková tabuľka (redesign) ============ */
:root{
  --pu-blue: #2563eb;        /* prirodzená modrá akcent */
  --pu-blue-dark: #1e40af;   /* tmavšia hlavička */
  --pu-blue-soft: #eef4ff;   /* jemný podklad 1. pokusu */
  --pu-slate-soft: #eef2f7;  /* jemný podklad 2. pokusu */
  --pu-worse: #fff4d6;       /* horší (platný) čas prúdu */
  --pu-best: #eef8f1;        /* jemná zelená – lepší pokus / výsledok */
  --pu-best-accent: #86d0a3; /* jemný zelený akcent */
  --pu-best-border: #2f9e63;
  --pu-top: #fde68a;         /* top zostrek */
}

.table-pu{
  font-size: 13px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.table-pu thead th{
  background-color: var(--pu-blue-dark);
  color: #ffffff;
  font-weight: 700;
  vertical-align: middle;
  border: none;
  padding: 8px 6px;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.table-pu thead th.pu-pokus-1{ background-color: #2853c4; }
.table-pu thead th.pu-pokus-2{ background-color: #445a7d; }
.table-pu thead .pu-pokus-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 3px;
  color: #ffffff;
}
.table-pu thead .pu-prud-head{
  display: flex;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  opacity: 1;
  color: #dbe6ff;
}
.table-pu thead .pu-prud-head span{ flex: 1; text-align: center; }

.table-pu tbody td,
.table-pu tbody th{
  vertical-align: middle;
  border-bottom: 1px solid #e5e9f0;
  padding: 6px;
}
.table-pu tbody tr:nth-child(odd) td,
.table-pu tbody tr:nth-child(odd) th{ background-color: #fbfcfe; }
.table-pu tbody tr:hover td,
.table-pu tbody tr:hover th{ background-color: #f0f5ff; }

.table-pu .pu-poradie{
  text-align: center;
  font-weight: 700;
  color: var(--pu-blue-dark);
  width: 42px;
}
.table-pu .pu-sc{ text-align: center; color: #9aa3ad; width: 40px; }
.table-pu .pu-druzstvo{ font-weight: 600; }
.table-pu .pu-druzstvo a{ color: #1f2937; text-decoration: none; }
.table-pu .pu-druzstvo a:hover{ color: var(--pu-blue); text-decoration: underline; }

/* bloky pokusov */
.table-pu .pu-pokus{ padding: 4px 5px; }
.table-pu .pu-pokus-1{ background-color: var(--pu-blue-soft); }
.table-pu .pu-pokus-2{ background-color: var(--pu-slate-soft); }
.table-pu .pu-prudy{
  display: flex;
  gap: 4px;
  justify-content: center;
}
.table-pu .pu-prud{
  flex: 1;
  min-width: 42px;
  text-align: center;
  padding: 3px 4px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  line-height: 1.15;
  position: relative;
}
.table-pu .pu-prud small{
  display: block;
  font-size: 8px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}
.table-pu .pu-prud.pu-top{
  background: var(--pu-top);
  border-color: #f2c94c;
  font-weight: 700;
}
/* horší (platný) čas pokusu – medzistĺpec (len desktop) */
.table-pu .pu-cas-pokus{
  text-align: center;
  font-weight: 700;
  color: #334155;
  width: 58px;
}
/* lepší pokus – jemné zvýraznenie: tenký zelený akcent + veľmi jemný podklad */
.table-pu .pu-pokus.pu-lepsi{
  background: var(--pu-best);
  box-shadow: inset 3px 0 0 0 var(--pu-best-accent);
}
.table-pu .pu-cas-pokus.pu-lepsi{
  background: var(--pu-best);
  color: var(--pu-best-border);
}
.table-pu .pu-lepsi-znak{
  display: inline-block;
  font-size: 9px;
  color: var(--pu-best-border);
  font-weight: 700;
}
/* trestné sekundy k pokusu (súťaže s nastavením pu_trestne) */
.table-pu .trestne-badge{
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #e63946;
  line-height: 1.1;
}

/* výsledok */
.table-pu tbody .pu-vysledok{
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: #166534;
  background: var(--pu-best) !important;
  border-left: 2px solid var(--pu-best-accent);
  width: 74px;
}
.table-pu .pu-vysledok .pu-delta{
  display: block;
  font-weight: 600;
  font-size: 9px;
  color: #059669;
}
/* body v lige */
.table-pu .pu-body{ text-align: center; width: 60px; }
.table-pu .pu-body .pu-body-hlavne{ font-weight: 700; color: var(--pu-blue-dark); }
.table-pu .pu-body .pu-body-rozpis{ font-weight: 400; font-size: 9px; color: #64748b; }

/* medzistĺpec horšieho času skryť na tablet/mobile, ukázať od lg */
.table-pu .pu-cas-pokus{ display: none; }
@media (min-width: 992px){
  .table-pu .pu-cas-pokus{ display: table-cell; }
}

/* mobil – prehľadné: Ľ/P v každom pokuse pod sebou, pevné šírky nech sa vždy zmestí
   pokus 1 + pokus 2 + výsledok + body */
@media (max-width: 575px){
  .table-pu{ font-size: 11px; table-layout: auto; width: 100%; }
  .table-pu thead th{ padding: 5px 1px; font-size: 10px; white-space: nowrap; }
  .table-pu thead .pu-pokus-label{ font-size: 10px; margin-bottom: 1px; }
  .table-pu thead .pu-prud-head{ display: none; } /* Ľ/P je pri číslach v riadku */
  .table-pu tbody td,
  .table-pu tbody th{ padding: 3px 1px; }

  .table-pu .pu-sc{ display: none; }
  .table-pu .pu-poradie{ width: 1%; }
  /* názov družstva dostane zvyšný priestor */
  .table-pu .pu-druzstvo{ font-size: 11px; line-height: 1.15; width: auto; word-break: break-word; }

  /* stĺpce pokusov – úzke, Ľ/P pod sebou; width:1% + nowrap = zmrští sa na obsah */
  .table-pu .pu-pokus{ width: 1%; padding: 2px 3px; white-space: nowrap; }
  .table-pu .pu-prudy{ flex-direction: column; gap: 2px; }
  .table-pu .pu-prud{
    min-width: 44px;
    padding: 1px 4px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .table-pu .pu-prud small{ display: inline; font-size: 8px; margin-right: 2px; }

  .table-pu tbody .pu-vysledok{ font-size: 13px; width: 1%; white-space: nowrap; padding: 2px 4px; }
  .table-pu tbody .pu-vysledok .pu-delta{ font-size: 8px; }
  .table-pu .pu-body{ width: 1%; white-space: nowrap; padding: 2px 4px; }
  .table-pu .pu-body .pu-body-rozpis{ display: none; } /* rozpis 15(12+3) skryť, hlavné body stačia */
}
/* ====================================================================== */


.table-jednotlivci > :not(caption) > * > * {
  padding: 5px 1px !important;
}

.table-jednotlivci .poradie,
.table-jednotlivci .sc,
.poradie,
.sc{
  padding: 5px 1px!important;
  text-align: center;
}

.table-jednotlivci .poradie,
.table-jednotlivci .lepsi,
.table-druzstva .poradie{
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.table-jednotlivci .meno,
.table-druzstva .meno{
  font-size: 13px;
  font-weight: 700;
}

.table-jednotlivci .druzstvo{
  font-size: 11px;
  font-weight: 400;
}

.celkove-discipliny{
  font-size: 11px;
  font-weight: 400;
}

.celkove-discipliny strong{
  font-size: 12px;
  font-weight: 600;
}


.card {
  margin-bottom: 1.875rem;
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 40px 0 rgb(62 57 107 / 7%), 0 2px 9px 0 rgb(62 57 107 / 6%);
}

.card .card-header{
  color: #fff;
  background-color: #1064ad;
}

.card-body .row{
  margin: 20px 0 0 0;
}


.card-body.nastavenie .row{
  margin: 20px 0;
}

.card-body .media .icon{
  display: block;
  width: 100%;
}
.card-body .media .media-body{
  display: block;
  width: 100%;
}
.card-body .media i{
  font-size: 45px;
}

.admin-menu-wrap{
  width: 100%;
  margin: 0px 0;
  padding: 0;
}
.admin-menu-wrap .menu-item,
.zoznam-slug-menu .menu-item {
  display: inline-block;
  margin: 10px 0;
  width: 100%;
  height: 90%;
  text-align: center;
  color: #ffffff;
  background-color: #fff;
  border-radius: 5px;
  padding: 50px;
  text-decoration: none;
  transition: box-shadow .2s;

  box-shadow: 0 0 15px rgba(0,0,0,.1);
}

@media (max-width: 767px) {
  .admin-menu-wrap .menu-item {
    padding: 5px;
  }
}

.admin-menu-wrap .menu-item .name,
.zoznam-slug-menu .menu-item .name {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  min-height: 2.2em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-menu-wrap .menu-item .info {
  font-size: 14px;
  margin: 0 0 16px 0;
  min-height: 2.2em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-menu-wrap .menu-item .button {
  display: inline-block;
  line-height: 35px;
  width: 90%;
  max-width: 100%;
  background-color: #04a748;
  border-radius: 7px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  transition: background-color .2s;
}
.admin-menu-wrap .menu-item .otvorit {
  background-color: #1655dc;
}

#accordionZoznamStartoviek .accordion-item{
  margin: 3px 0;
}


.farebne-zobrazenie{
  color: #1b1b1b;
  background-color: #ffffff;
  margin-bottom: 25px;
  padding: 15px;
}

.farebne-zobrazenie h3{
  width: 100%;
  margin-top: 25px;
  background-color: #2aacac;
  color: #ffffff;
  padding: 5px 0 5px 30px ;
}

.farebne-zobrazenie label{
  margin-top: 10px;
  font-weight: 500;
}

.startovka .title,
.startovka h2{
  font-size: 16px;
  color: #d80d0d;
}

.check-box-nadpis{
  font-size: 18px;
  margin: 15px 0;
}

.startovka .miesto-konania{
  font-size: 15px;
  color: #6d6d6d;
}

.startovka .velky-button,
.velky-button{
  background-color: #04a748;
  width: 200px;
  padding: 15px 10px;
  font-size: 18px;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  border: none;
  float: right;
}

.startovka .second-menu-button{
  padding: 5px 8px;
  font-size: 11pt;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  border: none!important;
  display: inline-block;
}
.second-menu-button{
  border: none!important;
}

.startovka .kategoria-nazov {
  border-radius: 3px; /* Zaoblené rohy */
  padding: 3px 5px; /* Vnútorný odsadenie */
  margin: 0px 5px;
  color: white; /* Biely text */
  font-size: 11px; /* Veľkosť písma */
}


.karta-startovky{
  margin: 0px 0 40px 0;
}

.dnes {
  background: linear-gradient(135deg, #22c55e, #05a432);
  padding: 4px 16px;
  font-size: 11px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 8px 8px 0 0;
  display: inline-block;
  margin-left: 20px;
  margin-right: 0;
  box-shadow: 0 -2px 8px rgba(34, 197, 94, .25);
}

.dnesv {
  background: linear-gradient(135deg, #22c55e, #05a432);
  padding: 2px 9px;
  font-size: 10px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  border: none;
  border-radius: 20px;
  display: inline-block;
}

.obsah{
  padding: 0 10px;
}


.vysledky-menu-button-show {
  background-color: #05a432;
  padding: 10px 20px; /* Väčší padding pre lepšie rozmiestnenie textu a ikony */
  margin: 0 15px 0 0;
  font-size: 15pt;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 5px; /* Zaoblené rohy pre lepší vzhľad */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Jemný tieň pre lepšiu viditeľnosť */
}

.vysledky-menu-button {
  background-color: #05a432;
  padding: 10px 20px; /* Väčší padding pre lepšie rozmiestnenie textu a ikony */
  font-size: 15pt;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  border: none;
  display: inline-block;
  position: fixed; /* Fixovaná pozícia */
  top: 80px; /* Umiestni tlačidlo 20px od horného okraja */
  right: 10px; /* Môžeš prispôsobiť podľa potreby, ak chceš tlačidlo napríklad na pravej strane */
  z-index: 1050; /* Zabezpečí, že tlačidlo bude nad ostatným obsahom */
  border-radius: 5px; /* Zaoblené rohy pre lepší vzhľad */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Jemný tieň pre lepšiu viditeľnosť */
  opacity: 0; /* Tlačidlo je skryté na začiatku */
  transition: opacity 1s ease-in-out; /* Plynulý prechod */
}

.vysledky-menu-button.show {
  opacity: 1; /* Tlačidlo bude plne viditeľné po pridaní triedy 'show' */
}

.vysledky-menu-button:hover {
  background-color: #04a12b; /* Zmena farby pri hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Zvýšený tieň pri hover */
}






/* Tento štýl pre overflow zabezpečí, že tlačidlo sa nezakryje */
body {
  overflow-x: clip;  /* clip (nie hidden) — hidden by rozbilo position:sticky */
}

/* Ak niečo iné prekryje tlačidlo, pridaj aj tento kód */
html, body {
  /* overflow-y: visible; Umožní vertikálny scroll bez prekrývania tlačidla */
}





.startovka-info{
  background-color: #efefef;
  padding: 3px;
  margin: 0px!important;
}
.startovka .datum-konania{
  font-size: 16px;
  color: #1757b7;
  margin: 5px 0;
}

.startovka .posledne-miesta{
  font-size: 12px;
  color: #479c0a;
}

.otvorenie-startovky{
  margin: 0 -15px;
}
.startovka .otvorenie,
.startovka .uzavretie{
  max-width: 100%;
  background-color: #2879d6;
  text-align: right;
  padding: 5px 15px;
  font-size: 14px;
  color: #f7f7f7;
  object-fit: contain;
}

.startovka .poznamka{
  font-size: 13px;
  color: #696969;
  padding: 10px;
}
.startove-cislo{
  width: 25px;
  font-size: 10pt;
  text-align: center;
  vertical-align: middle;
  padding: 3px!important;
  margin: 5px 0!important;
  color: #ffffff!important;
  background-color: #1064ad!important;
  font-weight: 500;
  border-radius: 3px;
}

.hodnota-vysledku {
  display: inline-block;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  padding: 1px 4px; /* Pridá trochu priestoru na šírku */
  color: #ffffff;
  background-color: #1064ad;
  font-weight: 500;
  border-radius: 2px;
}


.startovka #menu-startovky-hazz{
  background-color: #eeeeee;
  padding: 10px 0;
  margin-top: 10px;
}

#accordionZoznamStartoviek .accordion-item .accordion-header button,
#accordionZoznamStartoviek .accordion-item .accordion-header button::after{
  background-color: #1d7add;
  color: #fff;
  font-weight: 500;
}


.main-header{
  width: 100%;
  text-align: center;
}

.startovkaIndex,
.startovka60 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px; /* medzery medzi tlačidlami */
}














.startovkaIndex,
.startovka60 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.startovkaIndex a,
.startovka60 a {
  background-color: #1064ad!important;
  font-size: 14px;
  border-radius: 3px;
  padding: 10px 12px;
  color: white!important;
  white-space: nowrap; /* nezalamuje text */
  text-align: center;
  text-decoration: none;
  flex: 0 1 auto; /* necháva sa prispôsobiť šírke textu */
  box-sizing: border-box;
}

/* Na desktopových zariadeniach tlačidlá vedľa seba podľa dĺžky textu */
@media (min-width: 769px) {
  .startovkaIndex a,
  .startovka60 a {
    max-width: auto; /* Tlačidlá sa prispôsobia šírke textu */
  }
}

/* Na mobilných zariadeniach každé tlačidlo zaberá 50% šírky a medzery sú rovnaké */
@media (max-width: 768px) {
  .startovkaIndex a,
  .startovka60 a {
    flex: 0 1 calc(48%); /* každé tlačidlo zaberá 48% šírky riadku */
    margin: 0.5%; /* rovnaké medzery okolo každého tlačidla */
  }
}


.form-check-input:checked {
        background-color: #28a745; /* Bootstrap zelená */
        border-color: #28a745;
    }
























.startovkaIndex .active,
.startovka60 .active{
  background-color: #ffffff!important;
  margin: 0 3px;
  color: #1064ad!important;
  font-weight: 600;
} 

















.container-main {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  margin: 0 auto;
}

.container-main .tabs {
  display: flex;
}

.container-main .tab {
  flex: 1;
  padding: 10px 20px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  transition: background-color 0.3s ease;
}

.container-main .tab.startovky { background-color: #04a748; }
.container-main .tab.vysledky { background-color: #3498db; }
.container-main .tab.profily { background-color: #e67e22; }

.container-main .tab.startovky .row { background-color: #04a748; }
.container-main .tab.vysledky .row { background-color: #6ab8ec; }
.container-main .tab.profily .row { background-color: #e67e22; }

.container-main .content {
  padding: 20px;
  display: none;
  text-align: center;
}

.container-main .content.active {
  display: block;
}














.table-startovky-pridat-sportovcov{
  margin-top: 15px;
}
.table-startovky-pridat-sportovcov .meno{
  min-width: 20%;
  vertical-align: middle;
  font-weight: 500;
  padding: 0 25px;
}
.table-startovky-pridat-sportovcov .nastavenia{
  text-align: center;
  width: 6%;
  font-size: 12px;
  font-weight: 500;
}
.table-startovky-pridat-sportovcov .nastavenia.stafeta,
.table-startovky-pridat-sportovcov .nastavenia.jednotlivec{
  width: 8%;
}

select.form-control.form-control-sm {
  font-size: 12px !important;
}

.filter{
  background-color: #1064ad;
  color: #ffffff;
  padding: 0 0px 10px 0px;
}

.filter label{
  color: #ffffff;
  font-size: 14px;
  font-weight: 300;
  margin: 10px 0 -5px 10px;
}

.filter input, .filter select {
  font-size: 14px;
  padding: 5px 15px;
}


.liga-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.filter-item {
    cursor: pointer;
}

.filter-item input {
    display: none;
}

.filter-item span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #dde2ea;
    padding: 6px 14px;
    border-radius: 22px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.18s;
}

.filter-item span i {
    font-size: 0.82rem;
    opacity: 0.65;
}

.filter-item input:checked + span {
    background: #1064ad;
    border-color: #1064ad;
    color: #fff;
    font-weight: 600;
}

.filter-item input:checked + span i {
    opacity: 1;
}

.disciplina-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.disciplina-title i {
    color: #1064ad;
    font-size: 1rem;
}

.liga-count {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 2px;
}

.liga-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 13px 15px;
    border: 1px solid #e8edf4;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.liga-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 100, 173, 0.12);
    border-color: #1064ad;
    text-decoration: none;
}

.liga-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px;
}

.liga-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.liga-info {
    flex: 1;
    min-width: 0;
}

.liga-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.liga-disciplina {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 3px;
}

.liga-card-arrow {
    color: #cbd5e1;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color .15s, transform .15s;
}

.liga-card:hover .liga-card-arrow {
    color: #1064ad;
    transform: translateX(2px);
}

/* Obal karty s hviezdičkou "Obľúbené" — hviezdička je SESTRA .liga-card
   (nie jej dieťa), aby ju hover efekt karty (translateY) nezobral so sebou. */
.liga-card-slot { position: relative; }
.liga-card-slot .ob-hviezda {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 2;
    background: var(--sk-surface);
    box-shadow: var(--sk-shadow-sm);
}

.liga-oblubene-hint {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: .9rem 1.1rem;
    background: var(--sk-role-owner-bg);
    border: 1px solid color-mix(in srgb, var(--sk-role-owner-fg) 35%, transparent);
    border-radius: var(--sk-radius-lg);
}
.liga-oblubene-hint i { color: var(--sk-role-owner-fg); font-size: 1.15rem; margin-top: .1rem; }
.liga-oblubene-hint strong { display: block; color: var(--sk-ink-heading); font-size: .92rem; }
.liga-oblubene-hint span { color: var(--sk-ink-muted); font-size: .85rem; }
.liga-oblubene-hint a { color: var(--sk-brand-link); font-weight: 700; }



/* ADMIN FILTER BOX */

.admin-filter-wrapper{
    margin-bottom:20px;
    background:#fff;
    padding:20px;
    border-radius:16px;
    border:1px solid #e8edf4;
    box-shadow:0 4px 16px rgba(15,23,42,0.06);
}

.admin-filter-box{
    background:transparent;
    padding:0;
    border:none;
    box-shadow:none;
}


/* LABEL */

.admin-filter-label{

    font-size:12.5px;

    font-weight:600;

    margin-bottom:4px;

    color:#64748b;

    text-transform:uppercase;

    letter-spacing:.02em;

    display:flex;

    align-items:center;

    gap:5px;
}

.admin-filter-label i{
    color:#94a3b8;
}


/* SEARCH */

.admin-filter-search{
    position:relative;
    display:flex;
    align-items:center;
}

.admin-filter-search i{
    position:absolute;
    left:14px;
    color:#94a3b8;
    font-size:15px;
}

.admin-filter-search-input{
    width:100%;
    font-size:15px;
    padding:10px 14px 10px 40px;
    border:1.5px solid #e2e8f0;
    border-radius:10px;
    background:#f8fafc;
    transition:all .15s;
}

.admin-filter-search-input:focus{
    outline:none;
    border-color:#1064ad;
    background:#fff;
    box-shadow:0 0 0 3px rgba(16,100,173,0.1);
}


/* INPUT */

.admin-filter-input{

    font-size:14px;

}


/* SELECT */

.admin-filter-select{

    font-size:13.5px;

    border:1.5px solid #e2e8f0;

    border-radius:10px;

    background-color:#f8fafc;

    padding-top:8px;

    padding-bottom:8px;
}

.admin-filter-select:focus{
    border-color:#1064ad;
    background-color:#fff;
    box-shadow:0 0 0 3px rgba(16,100,173,0.1);
}


/* BUTTONS */

.admin-filter-btn{

    font-size:14px;

    border-radius:10px;

    padding:8px 16px;

    white-space:nowrap;

}


/* AKTÍVNE FILTRE – CHIPS */

.admin-active-filters{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding-top:14px;
    border-top:1px solid #f1f5f9;
}

.admin-filter-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 10px;
    border-radius:20px;
    background:#eef4fb;
    color:#1064ad;
    font-size:0.8rem;
    font-weight:500;
    text-decoration:none;
    border:1px solid #dbe8f5;
    transition:all .15s;
}

.admin-filter-chip:hover{
    background:#dceafd;
    color:#0b4c82;
}

.admin-filter-chip i{
    font-size:0.85rem;
}


/* MOBILE SPACING */

@media (max-width:992px){

.admin-filter-wrapper{

padding:14px;

}

}










.nadpis-vysledkova-listina{
  padding: 24px 0 0 30px;
  font-size: 22px;
  color: #3d4447;
}

.zapis-utoky input{
  margin: 3px 0;
}

@media (max-width: 767.98px) {
  .zapis-utoky .casy {
    font-size: 10pt;
  }
  
  .zapis-utoky .casy .btn,
  .zapis-utoky .casy .form-control {
    font-size: 9pt;
  }

  .zapis-utoky .casy .col {
    vertical-align: middle;
    padding: 5px 1px;
  }
}


.input-ligove{
  max-height: 10px!important;
}

.zapis-vysledkov-top{
  background-color: #cc2727!important;
  padding: 15px;
  margin: 0px!important;
  color: #ffffff!important;
}

/* už zapísané trestné sekundy pri požiarnom útoku (nastavenie pu_trestne) */
.zapis-trest{
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #e63946;
}

/* .startovky .row:nth-child(odd):not(.results-pretekarov) {
  background-color: #bddcff;
}

.startovky .row:nth-child(even):not(.results-pretekarov) {
  background-color: #ffffff;
} */

.startovky-top{
  background-color: #ffffff;
  margin: 0px;
  color: #282828!important;
}

.management-startovky-top{
  background: linear-gradient(135deg, #e06a24 0%, #d85f19 60%, #c2540f 100%);
  padding:14px 18px;
  margin:-15px -15px 0 -15px;
  border-radius: 6px 6px 0 0;
  color:#fff;
  gap: 10px;
  flex-wrap: wrap;
}

.management-startovky-top h2{
  font-size:30px;
  font-weight:600;
  margin:0;
  color:#fff;
}

.management-startovky-top .btn-light{
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* tablet */
@media (max-width:768px){

  .management-startovky-top h2{
    font-size:24px;
  }

}

/* mobil */
@media (max-width:480px){

  .management-startovky-top{
    padding:12px 14px;
    border-radius: 10px 10px 0 0;
  }

  .management-startovky-top h2{
    font-size:18px;
    line-height: 1.25;
  }

  .management-startovky-top .btn{
    font-size: 13px;
    padding: 6px 10px;
  }

}

/* ============================================================
   MANAGEMENT – team cards  (stĺpcový layout)
   ============================================================ */

/* ---- Drag & drop tip banner ---- */
.mgmt-dnd-tip {
  background: #fff8f0;
  border-bottom: 1px solid #f0d8c4;
  color: #92400e;
  font-size: 13px;
  padding: 7px 14px;
}

/* ---- Hlavičkový riadok ---- */
.mgmt-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
  border-bottom: 1px solid #e2e8f0;
}

/* ---- Stĺpce – zdieľané medzi header aj kartami ---- */
.mgmt-col--num {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mgmt-col--status {
  flex-shrink: 0;
  width: 128px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mgmt-vlajka-form {
  width: 100%;
}

.mgmt-vlajka-select {
  font-size: 11px;
  padding: 2px 4px;
  height: auto;
  width: 100%;
  cursor: pointer;
}

.mgmt-col--name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.mgmt-col--actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Karta ---- */
.mgmt-cards {
  display: flex;
  flex-direction: column;
}

.mgmt-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 8px;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.mgmt-card--filled {
  border-left: 4px solid #d85f19;
}

.mgmt-card--filled:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.mgmt-card--empty {
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  opacity: 0.82;
}

.mgmt-card--closed {
  opacity: 0.45;
}

.mgmt-card--input {
  border-left: 4px solid #3b82f6;
  background: #f0f7ff;
}

/* ---- Pozičný select ---- */
.mgmt-pos-form {
  width: 100%;
}

.mgmt-pos-select {
  font-size: 11px;
  padding: 2px 4px;
  height: auto;
  text-align: center;
  cursor: pointer;
  border-color: #d85f19;
  color: #d85f19;
  font-weight: 600;
  width: 100%;
}

/* ---- Číselný badge ---- */
.mgmt-card__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d85f19;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mgmt-card--empty   .mgmt-card__num  { background: #94a3b8; }
.mgmt-card__num--blue                { background: #3b82f6; }

/* ---- Meno ---- */
.mgmt-card__name-text {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mgmt-badge {
  font-size: 11px;
  white-space: nowrap;
}

/* ---- Prázdny slot ---- */
.mgmt-card__empty-label { font-weight: 500; color: #64748b; font-size: 14px; }
.mgmt-card__lock-icon   { color: #94a3b8; }
.mgmt-card__login-hint  { font-size: 12px; color: #94a3b8; }

/* ---- V rámci súťaže toggle ---- */
.mgmt-toggle-btn {
  font-size: 12px;
  white-space: nowrap;
  width: 100%;
}

.mgmt-toggle--in {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.mgmt-toggle--in:hover {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.mgmt-toggle--out {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.mgmt-toggle--out:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* ---- Akčné tlačidlá ---- */
.mgmt-btn-edit-sutaziaci {
  background-color: #16b1a9;
  border-color: #16b1a9;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.mgmt-btn-edit-sutaziaci:hover {
  background-color: #0e9691;
  border-color: #0e9691;
  color: #fff;
}

.mgmt-btn-preview {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.mgmt-btn-preview:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* ---- Search input ---- */
.mgmt-search-input {
  max-width: 100%;
}

/* ---- Náhľad pretekárov – read-only tabuľka ---- */
.nahlad-table th.nahlad-disc {
  width: 70px;
}

.nahlad-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.nahlad-badge--yes  { background: #dcfce7; color: #166534; }
.nahlad-badge--side { background: #fef9c3; color: #854d0e; }
.nahlad-badge--no   { background: #fee2e2; color: #b91c1c; }

/* ============================================================
   Responzívne úpravy
   ============================================================ */

/* Tablet ≤ 768px – skryť textové labely v toggle a akciách */
@media (max-width: 768px) {
  .mgmt-col--status {
    width: 80px;
  }

  .mgmt-toggle-label {
    display: none;
  }

  .mgmt-toggle-btn {
    width: auto;
    padding: 4px 6px;
  }
}

/* Mobil ≤ 576px – kompaktný layout */
@media (max-width: 576px) {
  .mgmt-header-row {
    display: none;   /* hlavičku na mobile schovať, je zrejmá z kontextu */
  }

  .mgmt-card {
    padding: 7px 6px;
    gap: 6px;
    flex-wrap: wrap;
  }

  /* prvý riadok: handle+číslo + status + akcie */
  .mgmt-col--num { width: 60px; }

  .mgmt-col--status {
    width: auto;
    flex: 1;
  }

  .mgmt-col--name {
    flex-basis: 100%;
    order: 10;          /* presunúť meno na druhý riadok */
    padding-left: 60px; /* zarovnanie pod číslo */
    font-size: 13px;
  }

  .mgmt-card__name-text {
    font-size: 13px;
    white-space: normal; /* na mobile nech je celý názov čitateľný */
  }

  .mgmt-card__num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .mgmt-card__handle { font-size: 18px; }

  /* akcie na tretí riadok, na celú šírku, aby sa zmestil celý text tlačidiel */
  .mgmt-col--actions {
    order: 11;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 60px;
    margin-top: 2px;
  }

  .mgmt-btn-edit-sutaziaci,
  .mgmt-btn-preview {
    font-size: 12px;
    padding: 5px 9px;
  }
}

/* ============================================================
   END management cards
   ============================================================ */

/* ============================================================
   Pridanie sutaziacich – moderný dizajn (management pretekárov)
   ============================================================ */

/* ---- Header ---- */
.ps-mgmt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #16b1a9 0%, #0e9691 100%);
  padding: 14px 20px;
  border-radius: 6px 6px 0 0;
  color: #fff;
}
.ps-mgmt-header__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ps-mgmt-header__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.ps-mgmt-header__sub {
  font-size: 11px;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ps-mgmt-header__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-mgmt-back-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.4) !important;
  color: #fff !important;
  white-space: nowrap;
}
.ps-mgmt-back-btn:hover {
  background: rgba(255,255,255,.3) !important;
}

/* ---- Table wrapper ---- */
.ps-athletes-table-wrap {
  border: 0;
}
.ps-athletes-table {
  margin-bottom: 0;
  font-size: 14px;
}
.ps-athletes-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #e2e8f0;
  padding: 8px 10px;
  white-space: nowrap;
}

/* ---- Drag handle ---- */
.th-handle, .td-handle {
  width: 28px;
  padding: 4px 6px !important;
  text-align: center;
}
.athlete-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: #94a3b8;
  padding: 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  touch-action: none;
  user-select: none;
}
.athlete-drag-handle:hover {
  color: #475569;
  background: #e2e8f0;
}
.athlete-drag-handle:active { cursor: grabbing; }
.athlete-drag-handle .bi { font-size: 1rem; }

.tfl-col-handle {
  flex-direction: column;
  gap: 2px;
  flex-wrap: wrap;
}
.tfl-col-handle .athlete-drag-handle {
  padding: 2px;
}
.tfl-col-handle .athlete-drag-handle .bi { font-size: .85rem; }

/* ---- Disciplíny – chip bar (pod každým pretekárom) ---- */
.ps-disc-row td.ps-disc-td {
  padding: 0 8px 6px !important;
  border-top: 0 !important;
  background: #f8fafc;
}
.ps-disc-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}
.ps-disc-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ps-disc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 12px;
  white-space: nowrap;
}
.ps-disc-chip--yes  { background: #d1fae5; border-color: #6ee7b7; }
.ps-disc-chip--side { background: #fef3c7; border-color: #fcd34d; }
.ps-disc-chip--no   { background: #fee2e2; border-color: #fca5a5; }
.ps-disc-chip__label {
  font-weight: 600;
  color: #374151;
}
.ps-disc-chip__select {
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 5px;
  background: rgba(255,255,255,.75);
  padding: 2px 5px;
  font-size: 12px;
  cursor: pointer;
  max-width: 120px;
}
.ps-disc-chip__select:focus {
  outline: 2px solid #16b1a9;
  outline-offset: 1px;
}

/* ---- Odobrať tlačidlo ---- */
.ps-remove-btn {
  white-space: nowrap;
}

/* ---- Responzív ---- */
@media (max-width: 768px) {
  .ps-mgmt-header__title { font-size: .95rem; }
  .ps-mgmt-header { padding: 12px 14px; }
  .ps-athletes-table { font-size: 13px; }
}
@media (max-width: 576px) {
  .ps-mgmt-header__icon { display: none; }
  .ps-athletes-table thead th { font-size: 11px; padding: 6px 6px; }
}

/* ---- Desktop discipline columns ---- */
.ps-disc-th {
  font-size: 11px;
  white-space: nowrap;
  padding: 6px 8px !important;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ps-disc-cell {
  padding: 4px 6px !important;
  vertical-align: middle;
}
.ps-disc-cell--yes  { background: #ecfdf5; }
.ps-disc-cell--side { background: #fffbeb; }
.ps-disc-cell--no   { background: #fef2f2; }
.ps-disc-sel {
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 5px;
  background: rgba(255,255,255,.8);
  padding: 2px 4px;
  font-size: 11px;
  cursor: pointer;
  width: 100%;
  min-width: 70px;
}
.ps-disc-sel:focus {
  outline: 2px solid #16b1a9;
  outline-offset: 1px;
}
.ps-disc-sel--yes  { background: #d1fae5 !important; border-color: #6ee7b7 !important; color: #166534 !important; }
.ps-disc-sel--side { background: #fef3c7 !important; border-color: #fcd34d !important; color: #854d0e !important; }
.ps-disc-sel--no   { background: #fee2e2 !important; border-color: #fca5a5 !important; color: #b91c1c !important; }

/* ============================================================
   END pridanie sutaziacich
   ============================================================ */

.hazz-startovky-top{
  background-color: #459405;
  padding: 15px;
  margin: -15px;
  color: #ffffff;
}

.hazz-vysledky-top{
  background-color: #1367d4;
  padding: 15px 15px 0px 15px;
  color: #ffffff;
}

.management-druzstva-top{
  background-color: #16b1a9;
  padding: 15px;
  margin: -15px;
  color: #ffffff;
}

.zapis-vysledkov-top h1,
.management-druzstva-top h1,
.hazz-startovky-top h1,
.hazz-vysledky-top h1{
  font-size: 40px;
}

.zapis-vysledkov-top h2,
.startovky-top h2,
.management-druzstva-top h2,
.hazz-startovky-top h2,
.hazz-vysledky-top h2{
  font-size: 30px;
}

.startovky-top h2{
  padding: 15px 0 15px 15px;
}

.startovky .nazov-druzstva a {
  text-decoration: none; /* Odstránenie podčiarknutia */
  color: #b9000f; /* Neutrálna farba textu */
  font-weight: 500; /* Mierne tučné písmo pre lepšiu čitateľnosť */
  font-size: 18px;
}

.startovky .nazov-druzstva a:hover {
  color: #4a4f53; /* Pri hover zmene na výraznejšiu farbu (napr. modrú) */
  /* text-shadow: 0 2px 8px rgba(0, 123, 255, 0.5); */
  text-decoration: underline; /* Stále žiadne podčiarknutie */
}



/* Rodičovské divy s tlačidlami */
.menu-zapis-discipliny,
/* Prepínač kategórií vo výsledkoch – desktop: pôvodný (zalamovaný) stav */
.menu-kategorie {
  width: 100%;
  margin: 0 0 25px 0 !important;
  padding-bottom: 5px;
  background-color: #d1d1d1;
  display: flex;
  flex-wrap: wrap; /* Umožní zalamovanie tlačidiel na ďalší riadok */
  justify-content: space-between; /* Medzi tlačidlami bude rovnaký priestor */
}

.menu-zapis-discipliny .btn,
.menu-kategorie a {
  color: #ffffff;
  font-size: 15px;
  padding: 5px 15px;
  margin: 2px; /* Rovnaké medzery */
  text-align: center; /* Vycentrovanie textu */
  background-color: #17b157;
  border-radius: 3px; /* Zaoblenie rohov */
  flex: 1 1 calc(48% - 4px); /* Každé tlačidlo zaberá približne 48% šírky rodiča s rozostupom */
  box-sizing: border-box; /* Zabezpečí správne zarátanie paddingu do šírky */
  max-width: 100%; /* Tlačidlo bude zaberáť maximálnu dostupnú šírku */
}

/* Mobil: kategórie do jedného riadku s horizontálnym posunom (ako v štartovkách) */
@media (max-width: 768px) {
  .menu-kategorie {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 5px;
    justify-content: flex-start;
  }
  .menu-kategorie::-webkit-scrollbar { display: none; }

  .menu-kategorie > .col-12 {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
  }

  .menu-kategorie a {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
    padding: 5px 12px;
  }

  .menu-zapis-discipliny .btn {
    flex-basis: calc(48%)!important; /* Každé tlačidlo zaberá 50% šírky riadku, s medzerou */
    margin: 0.5%; /* Rovnaké medzery medzi tlačidlami, lepšie prispôsobenie */
    padding: 5px 10px; /* Zvýšený padding pre lepší vzhľad na mobile */
  }
}





.zapis-vysledkov-poznamka{
  margin: 25px 0 10px 15px;
  font-size: 13px;
}

.zapis-vysledkov-menu-pokus,
.zapis-vysledkov-menu-pokus-1,
.zapis-vysledkov-menu-pokus-2{
  color: #1d1d1d;
  text-decoration: none;
  padding: 10px 75px!important;
  border-top-left-radius: 5px; /* Zaoblenie ľavého horného rohu */
  border-top-right-radius: 5px; /* Zaoblenie pravého horného rohu */
}

.zapis-vysledkov-menu-pokus:hover{
  background-color: #d4d4d4!important;
}

.zapis-vysledkov-menu-pokus-1{
  background-color: #e6f7d2!important;
}

.zapis-vysledkov-menu-pokus-2{
  background-color: #d8f3ff!important;
}





/* spoločný box */
.tfl-legend-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2563eb;

    border-radius: 10px;
    padding: 14px 16px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* špeciálne pre štartovanie */
.tfl-start-box {
    border-left-color: #16a34a; /* zelený accent = akcia */
}

/* title */
.tfl-legend-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    color: #1e293b;
}

/* select */
.tfl-settings-select {
    border-radius: 6px;
}

/* item */
.tfl-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    margin-bottom: 8px;
}

/* badge */
.legend-badge {
    display: inline-block;
    min-width: 32px;

    text-align: center;
    padding: 4px 8px;

    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

/* NP */
.tfl-legend-item.np .legend-badge {
    background: #facc15;
    color: #1f2937;
}

/* D */
.tfl-legend-item.d .legend-badge {
    background: #ef4444;
    color: #ffffff;
}

/* poznámka */
.tfl-legend-note {
    margin-top: 10px;
    font-size: 12px;
    color: #475569;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

/* === Zápis PÚ (106): kompaktný toolbar (štart + legenda) === */
.tfl-zapis-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 8px 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.tfl-zapis-toolbar .tfl-toolbar-start {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.tfl-toolbar-label {
    font-weight: 700;
    font-size: 13px;
    color: #166534;
    white-space: nowrap;
}
.tfl-toolbar-start .tfl-settings-select {
    width: auto;
    min-width: 140px;
}
.tfl-legend-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    font-size: 12.5px;
    color: #475569;
}
.tfl-legend-inline-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tfl-legend-inline-note {
    color: #64748b;
    font-style: italic;
}
.legend-badge.np-badge { background: #facc15; color: #1f2937; }
.legend-badge.d-badge  { background: #ef4444; color: #ffffff; }

/* === Zápis PÚ (106): hlavička pokusov === */
.pokus-th { text-align: center; }
.pokus-th-nazov {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
}
.pokus-th-1 .pokus-th-nazov { color: #1d4ed8; }
.pokus-th-2 .pokus-th-nazov { color: #b45309; }
.pokus-th-lp {
    display: flex;
    justify-content: space-around;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-top: 1px;
}

/* === Zápis PÚ (106): farebne odlíšené bloky pokusov === */
.zapis-utoky .pokus-blok {
    border-radius: 8px;
    padding: 4px 6px;
}
.zapis-utoky .pokus-blok.pokus-1 {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.18);
}
.zapis-utoky .pokus-blok.pokus-2 {
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.18);
}

.administrator-startovky,
.facebook{
  font-size: 10px;
  margin: 5px 0;
  display: flex;
  align-items: flex-end;
}

.startovky .form-control{
  margin: 5px 0;
}

.druzstvo-jednotlivec-platny{
  background-color: #b8fcd4;
  border-right: #cccccc solid 1px;
  text-align: center;
  font-weight: 400;
}

.druzstvo-jednotlivec-neplatny{
  background-color: #e0e0e0;
  border-right: #cccccc solid 1px;
  text-align: center;
  font-weight: 400;
}
.druzstvo-jednotlivec-platny:nth-child(3n), .druzstvo-jednotlivec-neplatny:nth-child(3n){
  border-bottom: #cccccc solid 0px;
}





@media (max-width: 767px) {
  .p-3 {
    padding: 3px !important;
  }
}


/* .table-startovka tr:nth-child(4n+1),
.table-startovka tr:nth-child(4n+2) {
  background-color: #ffffff; 
}

.table-startovka tr:nth-child(4n+3),
.table-startovka tr:nth-child(4n+4) {
  background-color: #f1f1f1; 
} */


.btn-orange {
  color: #fcfcfc;
  background-color: rgb(214, 124, 22);
}

.menu-vysledky{
  margin: 20px 0;
}

.vysledky-head{
  background-color: #1861d6;
  color: #eaeff5;
}

.liga-head{
  background-color: #e48d29;
  color: #ffffff;
}


.btn-extra-small {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}

.zapis-druzstva {
  color: #575757 !important;
  background-color: #ffffff;
  padding: 6px;
  margin: 10px 0;
  /* border-bottom: #d1d1d1 solid 1px; */
  border-radius: 4px; /* Zaoblenie rohov */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Jemný tieň */
}

.col-1{
  white-space: nowrap;
}
.zapis-druzstva .form-label{
  font-size: 11px;
  font-weight: 500;
  margin-bottom: -5px;
}
.zapis-druzstva .nazov-druzstva{
  font-size: 16px;
  font-weight: 500;
  /* color: #fff; */
  padding: 10px 0 0 0;
}
.id-druzstva{
  font-size: 10px;
  font-weight: 400;
  color: #858585;
  padding: 0 0 11px 0;
  display: inline-block;
}

.zapis-druzstva .poznamka-druzstva,
.zapis-druzstva .poznamka-kategoria{
  font-size: 12px;
  font-weight: 400;
  color: #757575;
}
.zapis-druzstva .poznamka-druzstva .kategoria{
  font-size: 13px;
  font-weight:700;
  color: #ef0909;
}

.zoznam-sutazi {
  color: #092c53;
  font-size: 16px;
  margin: 15px 0px;
  padding: 0px 20px;
  text-align: center;
}

.card-pretekari {
  color: #585858;
  font-size: 15px;
  margin: 15px 0px;
  padding: 0px 20px;
}

/* Striedanie farieb pre riadky */
.zoznam-sutazi .even-row {
  background-color: #f4f9ff;
}

.zoznam-sutazi .odd-row {
  background-color: #ffffff;
}

.striped-div .row:nth-child(even) {
  background-color: #f2f2f2; /* svetlá šedá pre párne riadky */
}

/* Odkazy v riadkoch */
.card-pretekari .row-link,
.zoznam-sutazi .row-link {
  text-decoration: none;
  border-radius: 8px;
  padding: 12px;
  align-items: center;
  transition: transform 0.2s ease, background-color 0.3s ease;
}



/* Zvýraznenie hľadania */
.search-highlight {
  color: white;
  background-color: #1064ad;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Hover efekt na rodičovské prvky */
.zoznam-sutazi .row-link:hover {
  color: #ffffff !important;
  background-color: #1865be;
  transform: scale(1.02);
}

/* Hover efekt na vnorene prvky */
.zoznam-sutazi .row-link:hover .nadpis,
.zoznam-sutazi .row-link:hover .miesto-konania,
.zoznam-sutazi .row-link:hover .datum {
  color: #ffffff;
}

/* Dátum */
.zoznam-sutazi .datum {
  color: #7a7e81;
  font-style: italic;
  font-size: 12px;
  font-weight: bold;
  margin: 5px 0 5px 0;
}

.karta-startovky .nalepka,
.zoznam-sutazi .nalepka {
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  margin: 5px 0px 5px 5px;
  display: inline-block; /* zabezpečí, že šírka sa prispôsobí obsahu */
  border-radius: 20px; /* pill */
  white-space: nowrap; /* zabráni textu sa lámať */
  box-shadow: 0 1px 3px rgba(15, 23, 42, .15);
}


/* Nadpis súťaže */
.card-pretekari .nadpis,
.zoznam-sutazi .nadpis,
.zoznam-sutazi .nadpis a  {
  color: #f04d02;
  font-size: 15px;
  font-weight: 600;
  text-align: left; /* Default pre desktop */
}

/* Miesto konania */
.card-pretekari .miesto-konania,
.zoznam-sutazi .miesto-konania {
  color: #6e6e6e; 
  font-style: italic;
  font-size: 13px;
  text-align: left;
}

/* Pre mobilné zariadenia */
@media (max-width: 767px) {
  .card-pretekari .nadpis,
  .zoznam-sutazi .nadpis,
  .zoznam-sutazi .nadpis a,
  .card-pretekari .miesto-konania,
  .zoznam-sutazi .miesto-konania {
    text-align: center; /* Pre mobilné zariadenia */
  }
}

/* Responzívne štýly pre desktop */
@media (min-width: 768px) {
  .zoznam-sutazi .row-link {
      padding: 15px;
  }

  .zoznam-sutazi .col {
      vertical-align: middle;
      padding: 5px 0;
  }
}

/* Responzívne štýly pre mobil */
@media (max-width: 768px) {
  .zoznam-sutazi .row-link {
      flex-direction: column;
      text-align: center;
      padding: 15px;
  }

  .zoznam-sutazi .nadpis,
  .zoznam-sutazi .miesto-konania,
  .zoznam-sutazi .datum {
      width: 100%;
      margin-bottom: 5px;
  }
}


.even-row,
.light {
  background-color: #f0f0f0; /* Farba pre párne riadky */
  padding: 3px;
}

.odd-row,
.dark {
  background-color: #ffffff; /* Farba pre nepárne riadky */
  padding: 3px;
}

.rozbeh {
  text-align: center;
  vertical-align: middle;
  font-size: 20px;
}



/* Efekt pri hover */
.clickable-row:hover {
  color: #ffffff!important;
  background-color: #127dc5;
}

/* Uistíme sa, že riadky budú mať rukavý kurzor */
.clickable-row {
  cursor: pointer;
}

.modal{
  color: #2b2b2b;
}

.modal label{
  font-weight: 500;
  margin: 15px 0 0 0;
}



body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #343a40;
}


.wizard-steps{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}

.wizard-steps .step{
text-align:center;
flex:1;
position:relative;
}

.wizard-steps .step:after{
content:"";
position:absolute;
top:18px;
right:-50%;
width:100%;
height:3px;
background:#ddd;
z-index:0;
}

.wizard-steps .step:last-child:after{
display:none;
}

.wizard-steps .circle{
width:36px;
height:36px;
border-radius:50%;
background:#ccc;
color:white;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
font-weight:bold;
z-index:1;
position:relative;
}

.wizard-steps .step.active .circle{
background:#198754;
}

.wizard-steps .label{
margin-top:8px;
font-size:14px;
color:#666;
}

.wizard-steps .step.active .label{
color:#198754;
font-weight:600;
}

.wizard-steps a{
text-decoration:none;
color:inherit;
}

.wizard-steps a:hover .circle{
transform:scale(1.1);
}

.wizard-steps .circle{
transition:0.2s;
cursor:pointer;
}


.competition-row
{
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.15s ease;
}

.competition-row:hover
{
    background: #fafafa;
    border-color: #ddd;
}

.competition-info
{
    max-width: 70%;
}



.container.create {
  margin: 0 auto;
}

.container.create  h1 {
  font-size: 2rem;
  color: #007bff;
}

.card {
  border-radius: 10px;
  background: #ffffff;
  border: none;
}

.form-label {
  font-weight: bold;
  color: #495057;
}

.fixed-alert {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px; /* Voliteľné obmedzenie */
  z-index: 9999;
  font-size: 1rem;
  font-weight: bold;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}


.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}


.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}


.footer {
  background: linear-gradient(160deg, #0f1f35 0%, #0c1828 100%);
  color: #cbd5e1;
  padding-top: 48px;
  padding-bottom: 0;
  margin-top: 40px;
}

.sf-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 991px) {
  .sf-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 575px) {
  .sf-top { grid-template-columns: 1fr; gap: 24px; }
}

.sf-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sf-brand-name i {
  color: #e55a2b;
}

.sf-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 18px;
}

.sf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1064ad;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter .15s;
}

.sf-cta-btn:hover {
  filter: brightness(1.15);
  color: #fff !important;
}

.sf-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin-bottom: 14px;
}

.sf-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-links a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .15s;
}

.sf-links a i {
  font-size: 0.8rem;
  width: 16px;
  color: #334155;
  transition: color .15s;
  flex-shrink: 0;
}

.sf-links a:hover {
  color: #fff !important;
}

.sf-links a:hover i {
  color: #3b9ae1;
}

.sf-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.sf-contact-item i {
  color: #334155;
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.sf-contact-item a {
  color: #3b9ae1 !important;
  text-decoration: none !important;
}

.sf-contact-item a:hover {
  color: #fff !important;
}

.sf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.sf-copy {
  font-size: 0.78rem;
  color: #334155;
  margin: 0;
}

.sf-tagline {
  font-size: 0.78rem;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sf-tagline i {
  color: #e55a2b;
}

/* Sociálne siete */
.social-icons a {
  display: inline-block;
  font-size: 24px;
  margin-right: 15px;
  color: #EEEEEE;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a.facebook:hover {
  color: #1877F2;
  transform: scale(1.2);
}

.social-icons a.twitter:hover {
  color: #1DA1F2;
  transform: scale(1.2);
}

.social-icons a.instagram:hover {
  color: #E1306C;
  transform: scale(1.2);
}

.border-light {
  border-color: rgba(255, 255, 255, 0.2) !important;
}







.zoznam-startoviek .competition-card {
  border: 1px solid #eef2f7;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.zoznam-startoviek .competition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
  border-color: #dbe4ee;
}

.zoznam-startoviek .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
}

.zoznam-startoviek .competition-img-container {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .10);
}

.zoznam-startoviek .competition-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.zoznam-startoviek .competition-card:hover .competition-img {
  transform: scale(1.06);
}

.zoznam-startoviek .availability {
  font-weight: bold;
}

.zoznam-startoviek .mt-auto {
  margin-top: auto; /* Zabezpečí, že spodné prvky budú zarovnané dole */
}

.zoznam-startoviek .nazov-sutaze {
  font-size: 14px;
  color: #0f2f5e;
  font-weight: 700;
  line-height: 1.3;
}

/* --- Stavové badge (pill) --- */
.zoznam-startoviek .otvorena,
.zoznam-startoviek .pred-otvorenim,
.zoznam-startoviek .uzavreta,
.zoznam-startoviek .nebude-mozne {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 30px;
  line-height: 1.2;
  white-space: nowrap;
}

.zoznam-startoviek .otvorena {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(34, 197, 94, .35);
}

.zoznam-startoviek .pred-otvorenim {
  background: linear-gradient(135deg, #fb923c, #f15c16);
}

.zoznam-startoviek .uzavreta {
  background: linear-gradient(135deg, #ef4444, #db1a01);
}

.zoznam-startoviek .nebude-mozne {
  background: linear-gradient(135deg, #a3a3a3, #6b7280);
  white-space: normal;
}

/* --- Dátum súťaže (hlavná informácia) --- */
.zoznam-startoviek .comp-date {
  font-size: 14px;
  color: #0f172a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.zoznam-startoviek .comp-date i {
  color: #2360b1;
}

.zoznam-startoviek .comp-date strong {
  font-weight: 700;
  font-size: 15px;
}

/* --- Footer so stavom štartovky (sekundárna info) --- */
.zoznam-startoviek .startlist-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.zoznam-startoviek .status-pill {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 30px;
  line-height: 1.3;
  white-space: nowrap;
}

.zoznam-startoviek .status-pill.otvorena {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(34, 197, 94, .30);
}
.zoznam-startoviek .status-pill.uzavreta {
  background: linear-gradient(135deg, #ef4444, #db1a01);
}
.zoznam-startoviek .status-pill.pred-otvorenim {
  background: linear-gradient(135deg, #fb923c, #f15c16);
}
.zoznam-startoviek .status-pill.nebude-mozne {
  background: linear-gradient(135deg, #a3a3a3, #6b7280);
  white-space: normal;
}
.zoznam-startoviek .status-pill.vysledky {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 2px 8px rgba(59, 130, 246, .28);
}

/* stav výsledkov na karte súťaže (sutaze.vysledky_stav) */
.zoznam-startoviek .vysledky-pill { margin-left: 6px; }
.zoznam-startoviek .vysledky-pill-kompletne {
  background: linear-gradient(135deg, #22c55e, #15803d);
}
.zoznam-startoviek .vysledky-pill-ciastocne {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.zoznam-startoviek .vysledky-pill-len_subor {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.zoznam-startoviek .startlist-time {
  font-size: 12px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zoznam-startoviek .startlist-time i {
  color: #cbd5e1;
}



/* .zoznam-startoviek .uzavierka {
  color: #db1a01;
} */

.zoznam-startoviek .bi-geo-alt {
  color: #d11313;
}

.zoznam-startoviek .bi-calendar-event {
  color: #2360b1;
}

.zoznam-startoviek .uzavierka span {
  color: #8d8d8d;
}


.bg-rekordy{
  color: #fff;
  background-color: #d83f03!important;
  font-size: 15px;
}

.card-pretekari .veza,
.card-pretekari .stovka,
.card-pretekari .dvojboj,
.card-pretekari .sestdesiatka {
  color: #fff;
  font-size: 14px; /* Veľkosť písma */
  border-radius: 4px; /* Zaoblenie rohov */
  padding: 5px 8px; /* Pridanie malého paddingu pre lepší vzhľad */
}

.card-pretekari .veza {
  background-color: #380a8d;
}

.card-pretekari .stovka {
  background-color: #158d0a;
}

.card-pretekari .dvojboj {
  background-color: #d33607;
}

.card-pretekari .sestdesiatka {
  background-color: #c40d0d;
}








.table-startovka-tlac-jednotlivci{
    /* display: none; */
}

@media print {
  *,
  *::before,
  *::after {
    box-sizing: border-box !important;
  }

  body, html, main, section, article, div {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  

  .table-responsive-mobile {
    overflow: visible !important;
    -webkit-overflow-scrolling: auto !important;
    display: block !important;
  }

  .table-responsive-mobile table {
    width: 100% !important;
  }

  /* Skryť netlačiteľné prvky */
  .alert,
  .hlavne-menu,
  .secondary-menu,
  .menu-kategorie,
  .mobile-druzstva,
  .buttons-print-none,
  .page-breadcrumb,
  .trofejovo-banner,
  .ligova-tabulka,
  #ligova-tabulka,
  header,
  footer,
  .mobile-only,
  .otvorenie-startovky,
  .startovka-info,
  .startovka-tabs,
  .startovka.poznamka,
  .startovka60,
  .administrator-startovky,
  #nastavenie-sc,
  .table-jednotlivci-bez-tlace,
  .menu-startovky-tlac,
  .no-print,
  .no-print * {
        display: none !important;
        visibility: hidden !important;
    }

  .content, .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    border: 0;
    background-color: #fff !important;
  }

    /* Odkazy bez podčiarknutia a farby */
  a {
    text-decoration: none !important;
    color: inherit !important;
  }


  .hazz-startovky-top,
  .hazz-vysledky-top {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    background-color: #fff;
    color: #111;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hazz-startovky-top h1,
  .hazz-vysledky-top h1 {
    font-size: 22pt;
  }

  .hazz-startovky-top h2,
  .hazz-vysledky-top h2 {
    font-size: 18pt;
  }


  .hazz-startovky-top .nadpisy {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  h1 {
    font-size: 28px;
    margin: 0;
    padding: 0;
  }

  .tlac-startovky-hlavicka {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;       /* celá šírka kontajnera */
  margin-bottom: 10px;
  font-size: 14px;
  flex-wrap: nowrap; /* nezahlási bloky pod seba */
  box-sizing: border-box; /* aby padding/margin nerušil šírku */
}

.tlac-startovky-hlavicka .hlavicka-vlavo,
.tlac-startovky-hlavicka .hlavicka-vpravo {
  width: 50%;        /* polovica šírky */
  box-sizing: border-box;
}

.tlac-startovky-hlavicka .hlavicka-vlavo {
  text-align: left;  /* zarovnanie doľava */
}

.tlac-startovky-hlavicka .hlavicka-vpravo {
  text-align: right; /* zarovnanie doprava */
}


  .table-startovka-tlac-jednotlivci{
      display: table !important;
  }

  table {
    all: unset !important;
    display: table !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-collapse: collapse !important;
    font-size: 11px !important;
    page-break-inside: avoid;
  }

  thead, tfoot {
    display: table-header-group; /* zabezpečí opakovanie hlavičky */
  }

  th, td {
    font-size: 11px !important;
    white-space: nowrap !important;
    padding: 2px 6px !important;
    border: 1px solid #000 !important; /* čierna čiara */
    break-inside: avoid;
  }

  thead th {
    background-color: #f0f0f0 !important;
    font-weight: bold;
    border-bottom: 2px solid #000 !important;
  }

  table.table-druzstva {
    border-collapse: collapse !important;
    width: 100% !important;
    font-size: 11px !important;
    border: 1px solid #000 !important;
  }

  table.table-druzstva th,
  table.table-druzstva td {
    border: 1px solid #000 !important;
    padding: 2px 5px !important;
    white-space: nowrap !important;
    font-size: 11px !important;
  }

  table.table-druzstva thead th {
    background-color: #f0f0f0 !important;
    border-bottom: 2px solid #000 !important;
  }

  .d-print-table-cell {
    display: table-cell !important;
  }
  

  .startove-cislo,
  .hodnota-vysledku {
    all: unset !important;
    display: revert !important;
  }

  .zapis-jednotlivca {
    padding: 10px 0;
    margin: 10px 0;
  }

  .table-jednotlivci thead tr th {
    color: #ffffff !important;
    background-color: #0652a3 !important;
  }

  .table-jednotlivci,
  tr, td, th {
    font-size: 13px !important;
  }

  .print-jednotlivci-box {
    border-collapse: collapse;
  }

  .print-jednotlivci-box tr {
    padding: 15px 0 0 0;
  }

  .table-cell,
  .pc-druzstva,
  .print-visible {
    display: table-cell !important;
  }

  .print-druzstva {
    font-size: 10px !important;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .druzstvo-jednotlivec-platny {
    background-color: #ffffff !important;
    border: none !important;
    text-align: center !important;
    font-weight: 400 !important;
  }

  .druzstvo-jednotlivec-neplatny {
    background-color: #e0e0e0 !important;
    border: none !important;
    text-align: center !important;
    font-weight: 400 !important;
  }

  .top-8-tlac {
    display: inline-block !important;
    width: 12.5% !important;
  }

  .lepsi {
    font-size: 18px !important;
  }

  .hazz-podpisy {
    display: block;
    margin-left: 3cm;
    margin-top: 3cm;
    margin-bottom: 1cm;
    font-size: 14px;
  }

  /* Odstránenie tieňov a zaoblení */
  .p-3,
  .rounded,
  .shadow-sm {
    width: 100%;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .tab-pane {
    display: none !important;
  }

  .tab-pane.active {
    display: block !important;
  }
}

ul.startovka-tabs > li > .nav-link {
  color: #333 !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  background-color: transparent !important;
  font-weight: 500;
}

ul.startovka-tabs > li > .nav-link.active {
  border-bottom: 3px solid orange !important;
  color: #000 !important;
  background-color: transparent !important;
}


.vysledok-karta {
    background: #fff;
    border: 2px solid #007bff33;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.vysledok-karta-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.vysledok-poradie {
    font-weight: bold;
    color: #007bff;
    margin-right: 8px;
    font-size: 1.2rem;
}

.vysledok-nazov {
    font-weight: bold;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}

.vysledok-nazov:hover {
    color: #007bff;
}

.vysledok-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.vysledok-blok {
    margin-bottom: 8px;
}

.vysledok-nadpis {
    font-weight: bold;
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.vysledok-pokus {
    font-size: 0.9rem;
    margin-left: 8px;
}

.vysledok-trestne {
    color: #d9534f;
    font-weight: bold;
}

.vysledok-final {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.vysledok-cas {
    display: block;
    font-size: 1.3rem;
    color: #28a745;
}

.vysledok-rozdiel {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}

.menu-startovky-tlac{
  margin-top:20px;
  margin-bottom:15px;
  text-align:left;
}











/* TITLE */
.pl-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* SEARCH */
.pl-search-box {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pl-search-input {
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    flex: 1;
}

.pl-present-counter {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #1c8818;
    white-space: nowrap;
}

/* FILTERS */
.pl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.pl-help {
    background: #eef6ff;
    border: 1px solid #cfe2ff;
    color: #084298;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* BUTTON */
.pl-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pl-btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
}

.pl-btn-success {
    background: #1c8818;
    color: #fff;
}

.pl-btn-danger {
    background: #c82333;
    color: #fff;
}

.pl-btn.active {
    background: #1c8818;
    color: #fff;
}

/* hover */
.pl-btn-success:hover {
    background: #146412;
}

.pl-btn-danger:hover {
    background: #a71d2a;
}

/* väčšie tlačidlá */
.pl-btn-lg {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}

/* BULK ACTIONS */
.pl-bulk-actions {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* LIST */
.pl-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ROW */
.pl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.2s ease;
}

.pl-row:hover {
    background: #f9f9f9;
}

/* PRESENT */
.pl-row-present {
    background: #f3fff3;
    border-color: #1c8818;
}

/* ABSENT */
.pl-row-absent {
    background: #fff5f5;
    border-color: #c82333;
}

/* COLUMNS */
.pl-col-main {
    flex: 2;
}

.pl-col-info {
    flex: 1;
    text-align: center;
}

.pl-col-action {
    flex: 1;
    text-align: right;
}

/* TEXT */
.pl-team {
    font-size: 16px;
    font-weight: 600;
}

.pl-sub {
    font-size: 13px;
    color: #666;
}

/* NUMBER */
.pl-number {
    font-size: 20px;
    font-weight: 700;
}

/* BADGE */
.pl-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

/* SUCCESS */
.pl-badge-success {
    background: #1c8818;
    color: #fff;
}

/* DANGER */
.pl-badge-danger {
    background: #c82333;
    color: #fff;
}

/* NEUTRAL */
.pl-badge-gray {
    background: #ddd;
    color: #333;
}

/* CATEGORY BADGE */
.pl-cat-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* MOBILE */
@media (max-width: 768px) {
    .pl-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pl-col-info,
    .pl-col-action {
        width: 100%;
        text-align: left;
    }
}


/* ROW STATES */
.pl-row-present {
    background: #f3fff3;
    border-left: 5px solid #1c8818;
}

.pl-row-absent {
    background: #fff5f5;
    border-left: 5px solid #c82333;
}

/* CATEGORY COLUMN */
.pl-col-category {
    flex: 1;
    text-align: center;
}

/* CATEGORY BADGE */
.pl-cat-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #333;
    color: #fff;
}

/* STATUS */
.pl-badge-success {
    background: #1c8818;
    color: #fff;
}

.pl-badge-danger {
    background: #c82333;
    color: #fff;
}

/* FILTER ACTIVE */
.pl-btn.active {
    background: #1c8818;
    color: #fff;
    border-color: #1c8818;
}

/* checkbox-like button */
.pl-check-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #ccc;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* checked */
.pl-check-btn.checked {
    background: #1c8818;
    color: #fff;
    border-color: #1c8818;
}

/* hover */
.pl-check-btn:hover {
    transform: scale(1.1);
}

.pl-toast {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);

    background: #28a745;
    color: white;
    padding: 14px 22px;
    border-radius: 10px;

    opacity: 0;
    transition: all 0.25s ease;

    z-index: 9999;
}

.pl-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    justify-content: space-between;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    font-size: 15px;
    color: #555;
}

#insertBtn {
    padding: 8px 14px;
    font-weight: 500;
}

#swapBtn {
    padding: 8px 14px;
}

.modal-footer {
    display: flex;
    width: 100%;
}

.modal-footer .btn {
    flex: 1;
    padding: 10px;
    font-weight: 500;
    border-radius: 8px;
}

/* jemný hover efekt */
#swapBtn:hover {
    background-color: #1e4fd1;
    border-color: #1e4fd1;
}

#insertBtn {
    background-color: #2563eb;
    border-color: #2563eb;
}

#insertBtn:hover {
    background-color: #1e4fd1;
    border-color: #1e4fd1;
}




.tfl-card {
  background: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* HEADER */
.tfl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tfl-title {
  font-size: 26px;
  font-weight: 600;
  color: #e26600;
}

.tfl-admin {
  font-size: 13px;
  color: #666;
}

/* STATUS BOX */
.tfl-status {
  padding: 14px 18px;
  border-radius: 12px;
  min-width: 220px;
  font-size: 14px;
  text-align: right;
}

.tfl-status strong {
  display: block;
  font-size: 15px;
}

/* STATES */
.tfl-status-open {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}

.tfl-status-before {
  background: #f1f5f9;
  color: #334155;
}

.tfl-status-closed {
  background: #e5e7eb;
  color: #6b7280;
}

/* INFO */
.tfl-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
  flex-wrap: wrap;
}

.tfl-place {
  font-size: 20px;
  font-weight: 600;
}

.tfl-date {
  color: #666;
}

/* RIGHT */
.tfl-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tfl-img {
  width: 60px;
  border-radius: 8px;
}

/* BUTTON */
.tfl-btn {
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

/* NOTE */
.tfl-note {
  margin-top: 15px;
  font-size: 14px;
  color: #444;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
  .tfl-header {
    flex-direction: column;
  }

  .tfl-status {
    width: 100%;
    text-align: left;
  }

  .tfl-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tfl-right {
    width: 100%;
    justify-content: space-between;
  }
}



/* WRAPPER */
.tfl-tabs-wrapper {
  background-color: #f8f9fa;
  position: relative;
  padding: 10px;
  margin: 0 0 20px 0;

  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* SCROLL CONTAINER */
.tfl-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* skryje scrollbar */
  scrollbar-width: none;
}

.tfl-tabs-scroll::-webkit-scrollbar {
  display: none;
}

/* TAB */
.tfl-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;

  background: #fdfdfd;
  color: #57657a;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;

  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

/* HOVER */
.tfl-tab:hover {
  background: #e2e8f0;
}

/* ACTIVE */
.tfl-tab.active {
  background: var(--cat-color);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* GRADIENT NAZNAČUJÚCI SCROLL */
.tfl-tabs-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;

  background: linear-gradient(to right, transparent, #fff);
}

/* DESKTOP */
@media (min-width: 992px) {
  .tfl-tabs-scroll {
    flex-wrap: wrap;
    overflow: visible;
  }

  .tfl-tabs-wrapper::after {
    display: none;
  }
}


/* BOX */
/* spoločné zarovnanie výšky */
.tfl-admin-box,
.tfl-admin-hint-box {
    border-radius: 10px;
    padding: 14px 16px;
}

/* EXISTUJÚCI box nechaj, len doplň */
.tfl-admin-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* NOVÝ hint box – výraznejší */
.tfl-admin-hint-box {
    display: flex;
    align-items: center;
    gap: 12px;

    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #16a34a;
}

/* ikona */
.tfl-admin-hint-icon {
    font-size: 22px;
    font-weight: bold;
    color: #16a34a;
}

/* title */
.tfl-admin-hint-title {
    font-weight: 700;
    font-size: 14px;
    color: #065f46;
}

/* text */
.tfl-admin-hint-text {
    font-size: 12px;
    color: #047857;
}

/* HEADER */
.tfl-admin-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.tfl-admin-header span {
  font-size: 12px;
  color: #64748b;
}

/* wrapper = 1 riadok */
.tfl-item {
    padding: 0px;
}

/* zebra už funguje správne */
.tfl-item:nth-child(even) {
    background: #f2f3f5;
}

/* výsledky vizuálne oddeliť */
.tfl-results {
    padding-left: 40px;
}

/* FORM */
.tfl-admin-form {
  margin-top: 10px;
}

/* INPUT GROUP */
.tfl-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* INPUT */
.tfl-input {
  width: 100px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: #ffffff!important;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  transition: 0.2s;
}

.tfl-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* BUTTON */
.tfl-btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s;
}

.tfl-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 576px) {
  .tfl-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tfl-input {
    width: 100%;
  }

  .tfl-btn-primary {
    width: 100%;
  }
}

.tfl-row {
  display: flex;
  align-items: center; /* KĽÚČOVÉ */
  min-height: 48px;
  border-bottom: 1px solid #eee;
}

.tfl-row > div {
  display: block;
  align-items: center;
}



.tfl-row .form-control {
  background: transparent !important;
  border: 1px solid #ddd;
}

.tfl-item:nth-of-type(even) {
    background: #f2f3f5;
}

.tfl-row .form-control {
  background: #fff!important;
  border: 1px solid #ddd;
}

.tfl-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.tfl-row {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #eee;
}



/* každý stĺpec je flex */
.tfl-col {
  display: flex;
  align-items: center;
}

#searchResults {
  width: 100%;
}

#searchResults > form {
  display: block;
  width: 100%;
}

.tfl-result-row {
  width: 100%;
}

/* meno link */
.tfl-name {
  display: block;
  width: 100%;
  background: transparent;
  color: #05308d;
  font-weight: 600;
  text-decoration: none;
}

.tfl-name:hover {
  text-decoration: underline;
}

/* mobile info */
.tfl-subinfo {
  font-size: 12px;
  color: #666;
}

/* menší text */
.tfl-subtext {
  font-size: 11px;
  opacity: 0.7;
}

/* select fix */
.tfl-select {
  min-width: 60px;
  padding: 2px;
  background-color: #fff!important;
}

/* form inline */
.tfl-inline-form {
  margin: 0;
  display: block;
  width: 100%;
}

/* actions zarovnanie */
.tfl-actions-col {
  justify-content: flex-end;
}



.tfl-empty-row {
  background: #f8fafc;
}

.tfl-input {
  height: 30px;
  font-size: 12px;
  padding: 4px 6px;
  background: #fff;
}
/* ===================== */
/* BASE ROW */
/* ===================== */

.tfl-result-row {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #eee;
    position: relative;
}

/* ===================== */
/* STATES */
/* ===================== */

.tfl-result-row.valid {
    border-left: 4px solid #198754;
    background: #f0fff4;
}

.tfl-result-row.invalid {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
    opacity: 0.9;
}

/* ===================== */
/* DESKTOP COLUMNS */
/* ===================== */

.tfl-col {
    display: flex;
    align-items: center;
}

.tfl-col.id {
    width: 80px;
    font-size: 12px;
}

.tfl-col.name {
    flex: 1;
    font-weight: 600;
}

.tfl-col.team {
    flex: 1;
    font-size: 13px;
    color: #555;
}

.tfl-col.year {
    width: 80px;
    font-size: 13px;
}

.tfl-col.action {
    width: 100px;
    justify-content: flex-end;
}

/* ===================== */
/* MOBILE BLOCK (hidden by default) */
/* ===================== */

.tfl-mobile {
    display: none;
}

.tfl-name {
    font-weight: 600;
}

.tfl-team {
    font-size: 13px;
    color: #888;
}

.tfl-meta {
    font-size: 12px;
    color: #888;
}

/* ===================== */
/* ALERT */
/* ===================== */

.tfl-alert {
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.tfl-alert.warning {
    background: #fff3cd;
}

.tfl-alert.danger {
    background: #f8d7da;
}

/* ===================== */
/* MOBILE */
/* ===================== */

@media (max-width: 768px) {

    /* schovaj desktop stĺpce */
    .tfl-col.id,
    .tfl-col.name,
    .tfl-col.team,
    .tfl-col.year,
    .tfl-col.kategoria {
        display: none;
    }

    /* zobraz mobile layout */
    .tfl-mobile {
        display: block;
        width: 100%;
    }

    .tfl-mobile .tfl-kategoria-badge {
        display: inline-block;
        margin-top: 4px;
    }

    /* riadok sa skladá pod seba, tlačidlo je plnošírkové dole - ľahšie sa naň
       trafí na mobile než malé tlačidlo v rohu */
    .tfl-result-row {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .tfl-name {
        font-size: 16px;
    }

    .tfl-team {
        font-size: 14px;
        color: #666;
    }

    .tfl-meta {
        font-size: 11px;
    }

    .tfl-col.action {
        position: static;
        width: 100%;
        margin-top: 10px;
        transform: none;
    }

    .tfl-col.action form,
    .tfl-col.action .tfl-inline-form {
        width: 100%;
    }

    .tfl-result-row .btn {
        width: 100%;
        padding: 10px;
        font-size: 15px;
        font-weight: 600;
    }
}

/* CTA button */
.tfl-btn-add {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: linear-gradient(135deg, #198754, #157347);
    color: #fff;
    border: none;

    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: 0.2s;
}

/* hover */
.tfl-btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* active */
.tfl-btn-add:active {
    transform: scale(0.98);
}

/* plus ikonka */
.tfl-plus {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* mobile – ešte väčší tap target */
@media (max-width: 768px) {
    .tfl-btn-add {
        padding: 14px;
        font-size: 15px;
    }
}
/* desktop */
@media (min-width: 768px) {
    .tfl-btn-add {
        width: auto;
        padding: 10px 18px;
    }
}

/* modal "Pridať nového pretekára" - väčšie polia a tlačidlá na mobile */
.tfl-modal-add .form-label {
    font-size: 13px;
    margin-bottom: 2px;
}

.tfl-modal-add-footer {
    flex-wrap: wrap;
    gap: 8px;
}

.tfl-modal-add-footer .btn {
    flex: 1 1 auto;
    padding: 10px;
}

@media (max-width: 575.98px) {
    .tfl-modal-add .modal-body,
    .tfl-modal-add-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tfl-modal-add .form-control {
        font-size: 16px; /* zabráni auto-zoomu na iOS pri fokuse */
        padding: 10px 12px;
    }

    .tfl-modal-add-footer {
        flex-direction: column-reverse;
    }

    .tfl-modal-add-footer .btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

:target {
    background: #fff3cd;
    transition: 0.5s;
}
.tfl-login-link {
    color: #0d6efd;
    text-decoration: underline;
}

.tfl-login-link:hover {
    text-decoration: none;
    opacity: 0.8;
}
.col-error {
    background-color: #ffe5e5;
}




#sortable-startovka tr {
    cursor: grab;
}

#sortable-startovka tr:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background: #e5e7eb;
}

.sortable-chosen {
    background: #dbeafe;
}

/* 🔥 celý riadok */
.row-present {
    background: #ecfdf5; /* jemná zelená */
    border-left: 4px solid #16a34a;
}

/* hover nech nezmizne */
.row-present:hover {
    background: #d1fae5;
}

/* badge */
.present-badge {
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

/* ešte zvýrazni meno */
.row-present .tfl-name {
    font-weight: 600;
    color: #065f46;
}

.row-error {
    background-color: #ffe5e5;
}

#print-area {
    display: none;
}

@media print {

    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        background: #fff;
    }
    td div,
    td span,
    td small,
    td strong {
        all: unset;
        display: inline;
    }

    /* skry všetko */
    body * {
        /* visibility: hidden; */
    }

    /* zobraz len tabuľku */
    #print-area,
    #print-area * {
        visibility: visible;
    }

    /* presuň hore a natiahni */
    #print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* 100% containing block — funguje pri position:absolute aj position:static */
    }

    h1 {
        font-size: 24px;
        font-weight: 700;
        margin: 0 0 10px 0;
        padding: 0;
        text-align: left;
    }

    h2 {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 8px 0;
        padding: 0;
        text-align: left;
    }

    h3 {
        font-size: 16px;
        margin: 0 0 8px 0;
        padding: 0;
        text-align: left;
    }

    /* TABUĽKA */
    .print-table {
        width: 100% !important;
        border-collapse: collapse;
        table-layout: fixed; /* 🔥 fix stĺpcov */
        font-size: 11px;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #000;
        padding: 4px 15px;
        white-space: nowrap;
    }

    .print-table th {
        background: #eee;
        font-weight: bold;
    }

    /* opakovanie hlavičky na každej strane */
    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
    }

        .d-none {
        display: table-cell !important;
    }

    .d-sm-table-cell {
        display: table-cell !important;
    }

    .mobile-only {
        /* display: table-cell !important; */
    }

    .print-visible {
        display: table-cell !important;
    }

}


.pl-disciplines {
    display: flex;
    gap: 6px;
}

.pl-disc-btn {
    border: 1px solid #ccc;
    background: #f8f9fa;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
}

.pl-disc-btn.active {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

/* =========================================================
   HAZZSR – Zoznam súťaží (moderný dizajn)
   ========================================================= */

.hazzsr-wrap {
    --hz-future: #16a34a;
    --hz-future-2: #059669;
    --hz-archive: #64748b;
    --hz-archive-2: #475569;
    --hz-ink: #0f172a;
    --hz-muted: #64748b;
}

/* --- Hlavička sekcie --- */
.hazzsr-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 2.2rem 0 1.4rem;
}

.hazzsr-section-title .hz-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.hazzsr-section-title.is-future .hz-ico {
    background: linear-gradient(135deg, #16a34a, #059669);
}

.hazzsr-section-title.is-archive .hz-ico {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* --- Tlačidlo Slovenský pohár --- */
.hazzsr-cta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.4rem;
}

.btn-pohar {
    --bp-1: #e11d48;
    --bp-2: #be123c;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, var(--bp-1), var(--bp-2));
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-pohar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(225, 29, 72, 0.45);
    filter: brightness(1.05);
    color: #fff !important;
}

.btn-pohar:active {
    transform: translateY(0);
}

.btn-pohar i {
    font-size: 1.05rem;
}

.btn-pohar .bp-arrow {
    transition: transform .18s ease;
}

.btn-pohar:hover .bp-arrow {
    transform: translateX(3px);
}

/* --- Mesačný oddeľovač --- */
.hazzsr-month-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin: 1.6rem 0 0.85rem;
    padding-left: 2px;
}

.hazzsr-month-title::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 14px;
    min-width: 40px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

/* --- Karta súťaže --- */
.hazzsr-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}

.hazzsr-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background .2s ease;
}

.hazzsr-card.is-future::before { background: linear-gradient(180deg, #16a34a, #059669); }
.hazzsr-card.is-archive::before { background: linear-gradient(180deg, #94a3b8, #64748b); }

/* odkaz cez celú kartu – aktívny len na mobile */
.hazzsr-card-link {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
}

.hazzsr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
    border-color: #e2e8f0;
}

/* --- Dátumový box --- */
.hazzsr-date-box {
    width: 76px;
    min-width: 76px;
    height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}

.hazzsr-date-box.future {
    background: linear-gradient(145deg, #22c55e, #059669);
}

.hazzsr-date-box.archive {
    background: linear-gradient(145deg, #94a3b8, #475569);
}

.hazzsr-date-day {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}

.hazzsr-date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 4px;
    opacity: 0.92;
}

/* --- Info --- */
.hazzsr-info {
    flex: 1;
    min-width: 0;
}

.hazzsr-title {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}

.hazzsr-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .15s ease;
}

.hazzsr-title a:hover {
    color: #1d4ed8;
}

.hazzsr-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.9rem;
}

.hazzsr-location i {
    color: #ef4444;
}

/* --- Pravá strana --- */
.hazzsr-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 130px;
    text-align: right;
}

.hazzsr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hazzsr-badge.future { background: linear-gradient(135deg, #16a34a, #059669); }
.hazzsr-badge.archive { background: linear-gradient(135deg, #64748b, #475569); }
.hazzsr-badge.msr { background: linear-gradient(135deg, #b45309, #d97706); box-shadow: 0 2px 8px rgba(180,83,9,0.3); }

.hazzsr-days-left {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #15803d;
    background: #dcfce7;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* --- Mobilný chip (zobrazí sa len na mobile) --- */
.hazzsr-mobile-meta {
    display: none;
    margin-top: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================================================
   MOBIL
   ========================================================= */
@media (max-width: 768px) {

    .hazzsr-section-title {
        font-size: 1.2rem;
        gap: 10px;
        margin-top: 1.8rem;
    }

    .hazzsr-section-title .hz-ico {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .hazzsr-cta { justify-content: stretch; }

    .btn-pohar {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }

    .hazzsr-card {
        gap: 14px;
        padding: 14px 16px;
        border-radius: 16px;
        align-items: center;
    }

    .hazzsr-date-box {
        width: 60px;
        min-width: 60px;
        height: 60px;
        border-radius: 13px;
    }

    .hazzsr-date-day { font-size: 1.5rem; }
    .hazzsr-date-month { font-size: 0.62rem; }

    .hazzsr-title { font-size: 1rem; }
    .hazzsr-location { font-size: 0.84rem; }

    /* desktopovú pravú stranu skryjeme, ukážeme kompaktné chipy */
    .hazzsr-right { display: none; }

    .hazzsr-mobile-meta { display: flex; }

    /* celá karta klikateľná na mobile */
    .hazzsr-card-link { display: block; }
    .hazzsr-card { cursor: pointer; }
    .hazzsr-card:active { transform: translateY(0); }

    .hazzsr-mobile-meta .hazzsr-days-left,
    .hazzsr-mobile-meta .hazzsr-badge {
        font-size: 0.72rem;
        padding: 4px 11px;
    }
}

@media (max-width: 480px) {
    .hazzsr-date-box {
        width: 54px;
        min-width: 54px;
        height: 54px;
    }
    .hazzsr-date-day { font-size: 1.35rem; }
    .hazzsr-title { font-size: 0.96rem; }
}

/* --- Filter navigácia --- */
.hazzsr-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.4rem;
}

.hazzsr-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    min-height: 46px;
}

.hazzsr-filter-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

.hazzsr-filter-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hazzsr-filter-btn.active {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.hazzsr-filter-btn.active:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.45);
    color: #fff;
}

.hazzsr-rok-select {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    height: 46px;
    min-width: 140px;
    appearance: auto;
}

.hazzsr-rok-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

@media (max-width: 640px) {
    .hazzsr-filter-nav {
        gap: 8px;
    }
    .hazzsr-filter-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 12px 14px;
        font-size: 0.88rem;
        border-radius: 10px;
        min-height: 48px;
    }
    .hazzsr-rok-select {
        flex: 1 1 100%;
        min-height: 48px;
    }
}

@media (max-width: 360px) {
    .hazzsr-filter-btn {
        flex: 1 1 100%;
    }
}

/* =========================================================
   ZOZNAM SÚŤAŽÍ – moderný filter + zoznam
   ========================================================= */

/* --- FILTER --- */
.zs-filter {
    background: linear-gradient(135deg, #0d4f8b, #1064ad);
    border-radius: 18px;
    padding: 18px 20px;
    margin: 10px 0 24px;
    box-shadow: 0 8px 24px rgba(16, 100, 173, 0.25);
}

.zs-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 14px;
    align-items: end;
}

/* keď je aktívne "presnejšie filtrovanie" (6 polí) */
.zs-filter-grid:has(.zs-field:nth-child(5)) {
    grid-template-columns: 2fr repeat(4, 1fr);
}

.zs-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zs-field label {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.95;
}

.zs-input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.92rem;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
}

select.zs-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

.zs-input:focus {
    outline: none;
    border-color: #7cb2ec;
    box-shadow: 0 0 0 3px rgba(124, 178, 236, 0.45);
}

/* --- Vyhľadávací dropdown --- */
.zs-search-wrap {
    position: relative;
}

.zs-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    z-index: 1000;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    max-height: 320px;
    overflow-y: auto;
}

.zs-search-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #0f172a;
    transition: background .12s ease;
}

.zs-search-item:hover {
    background: #f1f5f9;
}

.zs-search-empty {
    color: #94a3b8;
    cursor: default;
}

.zs-search-empty:hover {
    background: transparent;
}

.search-highlight {
    color: #fff;
    background-color: #1064ad;
    padding: 1px 5px;
    border-radius: 4px;
}

/* --- TABLET --- */
@media (max-width: 991px) {
    .zs-filter-grid,
    .zs-filter-grid:has(.zs-field:nth-child(5)) {
        grid-template-columns: 1fr 1fr;
    }
    .zs-field-search {
        grid-column: 1 / -1;
    }
}

/* --- MOBIL --- */
@media (max-width: 575px) {
    .zs-filter {
        padding: 14px;
        border-radius: 14px;
    }
    .zs-filter-grid,
    .zs-filter-grid:has(.zs-field:nth-child(5)) {
        grid-template-columns: 1fr;
        gap: 11px;
    }
}

/* =========================================================
   ZOZNAM – karty súťaží
   ========================================================= */

.zs-list {
    margin: 0;
    padding: 0;
}

.zs-month {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin: 1.6rem 0 0.8rem;
    display: flex;
    align-items: center;
}

.zs-month::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 14px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

.zs-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.zs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
    border-color: #dbe4ee;
}

/* Dátum vľavo */
.zs-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-width: 64px;
    padding: 8px 4px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1064ad, #0d4f8b);
    color: #fff;
    line-height: 1;
}

.zs-date-day {
    font-size: 1.5rem;
    font-weight: 800;
}

.zs-date-mon {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
    opacity: 0.9;
}

.zs-date-year {
    font-size: 0.62rem;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.7;
}

/* Telo */
.zs-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.zs-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ea580c;
    line-height: 1.3;
    margin-bottom: 3px;
}

.zs-title i {
    color: #f59e0b;
}

.zs-place {
    font-size: 0.86rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zs-place i {
    color: #ef4444;
}

/* Štítky vpravo */
.zs-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.zs-tag {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.2;
}

/* prázdny stav */
.zs-empty {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.zs-empty i {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 10px;
}

.zs-empty p {
    font-size: 1rem;
    margin: 0;
}

/* --- MOBIL: karty --- */
@media (max-width: 575px) {
    .zs-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 14px;
    }

    .zs-date {
        width: 54px;
        min-width: 54px;
    }

    .zs-date-day { font-size: 1.3rem; }

    .zs-body {
        flex: 1 1 0;
    }

    .zs-title {
        font-size: 0.82rem;
    }

    .zs-place { font-size: 0.8rem; }
    .sv-status-line { font-size: 0.74rem; }
    .zs-month { font-size: 0.75rem; }

    /* štítky pod obsah, doľava, horizontálne */
    .zs-tags {
        flex-basis: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 66px;
    }
}

/* tablet: zs-karta – medzihodnotý (576px–991px) */
@media (min-width: 576px) and (max-width: 991px) {
    .zs-date-day { font-size: 1.4rem; }
    .zs-title    { font-size: 0.98rem; }
    .zs-place    { font-size: 0.83rem; }
}

/* =========================================================
   HOMEPAGE – dlaždice + sekcie + filter
   ========================================================= */

/* --- STATUS BAR (čo sa deje teraz) --- */
.status-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 6px 0 14px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
    text-decoration: none;
    color: #0f172a;
    transition: transform .18s ease, box-shadow .18s ease;
}
.status-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
    color: #0f172a;
}

.status-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.15rem;
}

.status-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}
.status-lbl {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.2;
}

/* zarovnanie čísla + popisu do stĺpca vedľa ikony */
.status-item .status-val + .status-lbl { margin-top: 2px; }
.status-item {
    flex-wrap: wrap;
}
.status-item .status-val { margin-left: 0; }
.status-item .status-ico { order: 0; }
.status-item .status-val { order: 1; }
.status-item .status-lbl { order: 2; flex-basis: 100%; padding-left: 54px; margin-top: -6px; }

/* LIVE variant – dnes prebieha súťaž */
.status-item.is-live .status-ico {
    background: #fee2e2;
    color: #dc2626;
    animation: statusPulse 1.6s infinite;
}
.status-item.is-live .status-val { color: #dc2626; }

.status-open .status-ico { background: #dcfce7; color: #16a34a; }

@keyframes statusPulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); }
    70%  { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* tablet */
@media (max-width: 991px) {
    .status-bar { grid-template-columns: repeat(2, 1fr); }
}
/* mobil */
@media (max-width: 575px) {
    .status-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .status-item { padding: 10px 12px; gap: 8px; }
    .status-ico { width: 36px; height: 36px; font-size: 1rem; }
    .status-val { font-size: 1.25rem; }
    .status-lbl { font-size: 0.72rem; padding-left: 44px; }
}

/* --- 4 dlaždice --- */
.home-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 10px 0 8px;
}

.home-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 26px 18px;
    border-radius: 18px;
    color: #fff;
    background: #1064ad;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    position: relative;
    overflow: hidden;
}

.home-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    filter: brightness(1.04);
    color: #fff;
}

/* ikonový / logo kruh */
.home-tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    margin-bottom: 14px;
}

.home-tile-media i {
    font-size: 2rem;
    line-height: 1;
}

.home-tile-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.home-tile-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.home-tile-info {
    font-size: 0.85rem;
    margin-top: 6px;
    opacity: 0.92;
    line-height: 1.35;
}

/* farby dlaždíc (gradienty) */
.tile-startovky { background: linear-gradient(145deg, #f97316, #ea580c); }
.tile-archiv    { background: linear-gradient(145deg, #3b9ae1, #2563eb); }
.tile-ligy      { background: linear-gradient(145deg, #a3cc1f, #65a30d); }

/* HaZZ – svetlá dlaždica s logom */
.tile-hazz {
    background: #ffffff;
    color: #334155;
    border: 1px solid #eef2f7;
}
.tile-hazz:hover { color: #334155; }
.tile-hazz .home-tile-media { background: #f1f5f9; }
.tile-hazz .home-tile-name { color: #1e293b; }
.tile-hazz .home-tile-info { color: #64748b; opacity: 1; }

/* tablet */
@media (max-width: 991px) {
    .home-tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .home-tile-name { font-size: 1.15rem; }
    .home-tile-info { font-size: 0.82rem; }
}

/* mobil */
@media (max-width: 575px) {
    .home-tiles { gap: 12px; }
    .home-tile { padding: 20px 12px; border-radius: 14px; }
    .home-tile-media { width: 60px; height: 60px; margin-bottom: 10px; }
    .home-tile-media i { font-size: 1.6rem; }
    .home-tile-logo { height: 42px; }
    .home-tile-name { font-size: 1.1rem; }
    .home-tile-info { font-size: 0.78rem; }
}

/* zvýraznenie čísel v info riadku dlaždice */
.home-tile-info strong { font-weight: 800; }

/* farba DPO dlaždice */
.tile-dpo { background: linear-gradient(145deg, #ef4444, #b91c1c); }

/* odznak "pripravujeme" */
.tile-badge {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    margin-left: 4px;
}

/* --- DNEŠNÝ PRUH --- */
.today-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #fca5a5;
    border-radius: 14px;
    padding: 12px 16px;
    margin: 6px 0 14px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.today-bar:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(220, 38, 38, .18); }
.today-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, .5);
    animation: statusPulse 1.6s infinite;
}
.today-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.today-title { font-size: 0.92rem; font-weight: 800; color: #b91c1c; }
.today-sub { font-size: 0.85rem; color: #7f1d1d; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-arrow { color: #dc2626; font-size: 1.2rem; flex-shrink: 0; }

/* --- 2 MENŠIE DLAŽDICE --- */
.home-tiles-sub {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 14px 0 8px;
}
.home-tile-sm {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.home-tile-sm:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .18); filter: brightness(1.04); color: #fff; }
.home-tile-sm-ico {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    font-size: 1.5rem;
}
.home-tile-sm-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.home-tile-sm-info { font-size: 0.85rem; opacity: 0.95; margin-top: 2px; }
.home-tile-sm-info strong { font-weight: 800; }

.tile-kalendar { background: linear-gradient(145deg, #7c6ff0, #5b46d6); }

/* --- ORGANIZÁTORSKÝ CTA --- */
.org-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px 16px;
    margin: 14px 0 4px;
}
.org-cta-label { font-size: 0.92rem; color: #475569; font-weight: 600; margin-right: auto; }
.org-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.org-cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.9rem; font-weight: 700;
    padding: 9px 16px; border-radius: 10px;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}
.org-cta-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.org-cta-primary { background: #05a432; color: #fff; }
.org-cta-ghost { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }

/* tablet */
@media (max-width: 991px) {
    .home-tiles-sub { gap: 14px; }
}
/* mobil */
@media (max-width: 575px) {
    .home-tiles-sub { grid-template-columns: 1fr; gap: 12px; }
    .home-tile-sm { padding: 14px; border-radius: 14px; }
    .home-tile-sm-ico { width: 44px; height: 44px; font-size: 1.25rem; }
    .home-tile-sm-name { font-size: 1.05rem; }
    .org-cta { flex-direction: column; align-items: stretch; }
    .org-cta-label { margin-right: 0; }
    .org-cta-actions { width: 100%; }
    .org-cta-btn { flex: 1; justify-content: center; }
    .today-sub { font-size: 0.8rem; }
}

/* --- Nadpisy sekcií --- */
.home-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 2rem 0 1rem;
}

/* hlavička sekcie s filtrom */
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0 1rem;
}

.home-section-head .home-section-title {
    margin: 0;
}

/* --- Filter štartoviek --- */
.startovky-filter {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
}

.startovky-filter .sf-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.startovky-filter .sf-btn:hover {
    color: #0f172a;
}

.startovky-filter .sf-btn.active {
    background: #fff;
    color: #0d4f8b;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
}

.startovky-filter .sf-count {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    margin-left: 5px;
    font-size: 0.72rem;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #2cbd00;
    border-radius: 10px;
    vertical-align: middle;
}

/* prázdny stav pri filtri */
.startovky-empty {
    text-align: center;
    padding: 36px 20px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    margin-top: 4px;
}

.startovky-empty i {
    color: #3b9ae1;
    margin-right: 6px;
}

@media (max-width: 575px) {
    .home-section-head { justify-content: center; }
    .startovky-filter { width: 100%; justify-content: center; }
    .home-section-title { font-size: 1.2rem; }
}

/* =========================================================
   STRÁNKA ŠTARTOVIEK – filter panel + chipy
   ========================================================= */

.sf-panel {
    background: linear-gradient(135deg, #047a35, #048f3e);
    border-radius: 18px;
    padding: 18px 20px;
    margin: 0 0 24px;
    box-shadow: 0 8px 24px rgba(4, 143, 62, 0.25);
}

.sf-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

/* --- Chipy aktuálnosti --- */
.sf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #eafff992;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.sf-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.sf-chip.active {
    background: #fff;
    color: #047a35;
    border-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.sf-chip i {
    font-size: 0.95rem;
}

/* prispôsobenie zdieľaného gridu pre tento panel – flex namiesto 5 stĺpcov */
.sf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.sf-grid .zs-field {
    flex: 1 1 200px;
}

.sf-grid .zs-field-search {
    flex: 2 1 280px;
}

@media (max-width: 575px) {
    .sf-grid .zs-field,
    .sf-grid .zs-field-search {
        flex: 1 1 100%;
    }
}

/* mesačný nadpis na stránke štartoviek */
.zs-month-head {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin: 1.4rem 0 0.4rem;
    display: flex;
    align-items: center;
}

.zs-month-head::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 14px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

.zoznam-startoviek .comp-days {
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
}

/* mobil: chipy scrollovateľné v rade pre lepšiu klikateľnosť */
@media (max-width: 575px) {
    .sf-panel {
        padding: 14px;
        border-radius: 14px;
    }
    .sf-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sf-chips::-webkit-scrollbar { display: none; }
    .sf-chip {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* =========================================================
   KALENDÁR SÚŤAŽÍ
   ========================================================= */
.kalendar-page { margin-top: 8px; }

.kalendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 16px;
}
.kalendar-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.kalendar-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.kal-select {
    border: 1px solid #d7dee8;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
}
.kal-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}
.kal-export:hover { color: #fff; filter: brightness(1.05); }

/* FullCalendar prispôsobenie */
#calendar {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
}
.fc .fc-toolbar-title { font-size: 1.2rem; font-weight: 800; }
.fc .fc-button-primary {
    background: #1064ad;
    border-color: #1064ad;
}
.fc .fc-button-primary:hover { background: #0d4f8b; border-color: #0d4f8b; }
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #0d4f8b; border-color: #0d4f8b;
}
.fc-event { cursor: pointer; font-size: 0.8rem; }
.fc .fc-daygrid-day.fc-day-today { background: #eff6ff; }

/* tablet */
@media (max-width: 991px) {
    .kalendar-title { font-size: 1.35rem; }
}
/* mobil */
@media (max-width: 575px) {
    .kalendar-head { flex-direction: column; align-items: stretch; }
    .kalendar-tools { width: 100%; }
    .kal-select { flex: 1 1 calc(50% - 5px); }
    .kal-export { width: 100%; justify-content: center; }
    #calendar { padding: 8px; border-radius: 12px; }
    .fc .fc-toolbar.fc-header-toolbar { flex-direction: column; gap: 8px; }
    .fc .fc-toolbar-title { font-size: 1.05rem; }
}

/* =========================================================
   PREPÍNAČ ZOBRAZENIA (karty / tabuľka) + TABUĽKA SÚŤAŽÍ
   ========================================================= */
.sv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.sv-head h1 { margin-bottom: 0; }

.view-toggle {
    display: inline-flex;
    background: #eef2f7;
    border-radius: 24px;
    padding: 4px;
}
.view-toggle .vt-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.view-toggle .vt-btn.active {
    background: #fff;
    color: #0d4f8b;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
}

/* Odkaz na /kalendar vedľa .view-toggle — zámerne mimo tej skupiny
   (pozri komentár vo startovky/index.blade.php), takže má vlastný, jednoduchší
   vzhľad (obrys namiesto vyplnenej pilulky). */
.sv-kalendar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: .5rem;
    padding: 7px 14px;
    border: 1px solid #d8e3ee;
    border-radius: 20px;
    color: #475569;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.sv-kalendar-link:hover { border-color: #1064ad; color: #0d4f8b; text-decoration: none; }

.sv-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
}
.sv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.sv-table thead th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 12px 14px;
    border-bottom: 2px solid #eef2f7;
    white-space: nowrap;
}
.sv-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.sv-table tbody tr {
    cursor: pointer;
    transition: background .12s ease;
}
.sv-table tbody tr:hover { background: #f8fafc; }
.sv-td-date strong { display: block; white-space: nowrap; }
.sv-td-date .sv-time { font-size: 0.78rem; color: #64748b; }
.sv-td-name { font-weight: 600; color: #0f172a; }
.sv-td-place.sv-only-sm { display: none; font-weight: 400; color: #64748b; font-size: 0.8rem; }

.sv-chip {
    display: inline-block;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    margin: 1px 2px 1px 0;
    white-space: nowrap;
}

/* status-pill aj mimo .zoznam-startoviek (v tabuľke) */
.sv-table .status-pill {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 30px;
    white-space: nowrap;
}
.sv-table .status-pill.otvorena { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sv-table .status-pill.uzavreta { background: linear-gradient(135deg, #ef4444, #db1a01); }
.sv-table .status-pill.pred-otvorenim { background: linear-gradient(135deg, #fb923c, #f15c16); }
.sv-table .status-pill.nebude-mozne { background: linear-gradient(135deg, #a3a3a3, #6b7280); }

/* mobil – schovaj stredné stĺpce, miesto presuň pod názov */
@media (max-width: 575px) {
    .sv-table .sv-hide-sm { display: none; }
    .sv-td-place.sv-only-sm { display: block; margin-top: 3px; }
    .sv-table { font-size: 0.86rem; }
    .sv-table thead th,
    .sv-table tbody td { padding: 10px 10px; }
}

/* ── status-pill v zs-card (startovky zoznam) ── */
.zs-tags .status-pill {
    display: inline-block;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.2;
}
.zs-tags .status-pill.otvorena {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 2px 6px rgba(34,197,94,.28);
}
.zs-tags .status-pill.uzavreta {
    background: linear-gradient(135deg, #ef4444, #db1a01);
}
.zs-tags .status-pill.pred-otvorenim {
    background: linear-gradient(135deg, #fb923c, #f15c16);
}
.zs-tags .status-pill.nebude-mozne {
    background: linear-gradient(135deg, #a3a3a3, #6b7280);
}

/* dnes – zelený dátumový blok */
.zs-date.zs-date-today { background: linear-gradient(145deg, #16a34a, #15803d); }

/* ── farebné dátumové bloky podľa stavu štartovky ── */
.zs-date.zs-date-open   { background: linear-gradient(145deg, #16a34a, #15803d); }
.zs-date.zs-date-before { background: linear-gradient(145deg, #ea580c, #c2410c); }
.zs-date.zs-date-closed { background: linear-gradient(145deg, #64748b, #475569); }

/* ── sv-card: vylepšená karta štartovky ── */
.sv-card .zs-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}
.sv-card .zs-title i { display: none; }

.sv-card .zs-place {
    font-size: 0.83rem;
    color: #64748b;
    gap: 4px;
    margin-bottom: 2px;
}

.sv-status-line {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.sv-status-line strong { color: #334155; }

.sv-sdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.sv-sdot-open   { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
.sv-sdot-before { background: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.2); }
.sv-sdot-closed { background: #ef4444; }
.sv-sdot-none   { background: #94a3b8; }

/* tagy vpravo – menšie, muted */
.sv-card-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}
.sv-tag-sm {
    color: rgba(255,255,255,0.95);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
    line-height: 1.2;
    opacity: 0.82;
}

/* ── 2-stĺpcový layout na /startovky ── */
.sv-page-row {
    margin-top: 0;
}
.sv-main-col {
    padding-right: 0;
}
@media (min-width: 992px) {
    .sv-main-col { padding-right: 20px; }
}
.sv-sidebar-col { padding-left: 0; }

.sv-sidebar {
    position: sticky;
    top: 76px;
    padding: 8px 0 0 0;
}
.sv-sidebar-banner {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
}
.sv-sidebar-banner:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    transform: translateY(-2px);
}
.sv-sidebar-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* mobil: banner pod zoznamom */
@media (max-width: 991.98px) {
    .sv-mobile-banner { display: block; margin: 12px 0; text-align: center; }
    .sv-mobile-banner img { max-width: 100%; height: auto; border-radius: 10px; }
}
@media (min-width: 992px) {
    .sv-mobile-banner { display: none; }
}

/* ── mobilný CTA plugin ── */
.sv-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: linear-gradient(135deg, #0b4f8a 0%, #1472c0 100%);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin: 0.75rem 0;
    color: #fff;
}
.sv-mcta-ico {
    font-size: 1.4rem;
    line-height: 1;
}
.sv-mcta-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sv-mcta-body strong { font-size: 0.95rem; }
.sv-mcta-body span   { font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.sv-mcta-links {
    display: flex;
    gap: 8px;
    margin-top: 0.2rem;
}
.sv-mcta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}
.sv-mcta-btn:hover { opacity: 0.88; text-decoration: none; }
.sv-mcta-primary {
    background: #fff;
    color: #0b4f8a;
}
.sv-mcta-ghost {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}

/* ── FILTER BAR – čipy + disciplína ── */
.sv-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.sv-fchips-wrap {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.sv-fchips-wrap::-webkit-scrollbar { display: none; }

.sv-fchips {
    display: flex;
    gap: 6px;
    white-space: nowrap;
    padding-bottom: 2px;
}

.sv-fchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 22px;
    border: 1.5px solid #dde2ea;
    background: #fff;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
    flex-shrink: 0;
}
.sv-fchip i { font-size: 0.9rem; opacity: 0.7; }
.sv-fchip:hover {
    border-color: #1064ad;
    color: #1064ad;
    background: #f0f6ff;
}
.sv-fchip.active {
    background: #1064ad;
    border-color: #1064ad;
    color: #fff;
    font-weight: 600;
}
.sv-fchip.active i { opacity: 1; }

.sv-filter-selects {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.sv-fselect {
    background: #fff;
    border: 1.5px solid #dde2ea;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    transition: border-color .15s;
    min-width: 150px;
}
.sv-fselect:hover, .sv-fselect:focus {
    border-color: #1064ad;
    outline: none;
}

/* mobil: filter na 2 riadky */
@media (max-width: 767px) {
    .sv-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    .sv-fchips-wrap {
        width: 100%;
        max-width: 100%;
    }
    .sv-filter-selects {
        flex-direction: column;
    }
    .sv-fselect { min-width: 0; width: 100%; }
}

/* ── SIDEBAR ORG CTA ── */
.sv-sidebar-cta {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 20px 18px 16px;
    text-align: center;
}

.sv-sidebar-cta-icon {
    width: 42px;
    height: 42px;
    background: #fff5ee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.sv-sidebar-cta-icon i {
    font-size: 1.3rem;
    color: #e6640d;
}

.sv-sidebar-cta-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.sv-sidebar-cta-sub {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 14px;
}

.sv-sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 7px;
    transition: opacity .15s, transform .15s;
}
.sv-sidebar-cta-btn:last-child { margin-bottom: 0; }
.sv-sidebar-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.sv-sidebar-cta-primary {
    background: #1064ad;
    color: #fff;
}
.sv-sidebar-cta-ghost {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #dde2ea;
}

/* ── FILTER ARCHÍVU ── */
.zs-filter-bar {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.zs-fb-row1 {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.zs-fb-search-wrap {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.zs-fb-search-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.88rem;
    color: #94a3b8;
    pointer-events: none;
}

.zs-fb-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1.5px solid #dde2ea;
    border-radius: 10px;
    font-size: 0.85rem;
    background: #f8fafc;
    color: #334155;
    box-sizing: border-box;
    transition: border-color .15s;
}
.zs-fb-input:focus {
    outline: none;
    border-color: #1064ad;
    background: #fff;
}

/* rok-čipy */
.zs-fb-years {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.zs-fb-year-label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    margin-right: 3px;
    white-space: nowrap;
}

.zs-ychip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid #dde2ea;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}
.zs-ychip:hover {
    border-color: #1064ad;
    color: #1064ad;
    background: #f0f6ff;
}
.zs-ychip.active {
    background: #1064ad;
    border-color: #1064ad;
    color: #fff;
    font-weight: 600;
}

/* mobil: filter na 2 riadky */
@media (max-width: 767px) {
    .zs-fb-row1 { flex-direction: column; align-items: stretch; }
    .zs-fb-search-wrap { min-width: 0; }
    .sv-fselect { width: 100%; min-width: 0; }
    .zs-fb-years { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
    .zs-fb-years::-webkit-scrollbar { display: none; }
}

/* výsledky badge v zs-card archívu */
.zs-tag-vysledky {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
    line-height: 1.2;
}
.zs-tag-vysledky i { font-size: 0.7rem; }

/* ── HOME LISTS: mobilné taby + desktop 50/50 ── */

/* Tab nav (mobile) */
.hl-tabnav {
    display: flex;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    gap: 2px;
    margin: 16px 0 14px;
}
.hl-tab {
    flex: 1;
    padding: 9px 6px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.hl-tab.active {
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
.hl-tab-dnes.active { color: #16a34a; }
.hl-tdot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    flex-shrink: 0;
    animation: statusPulse 1.6s infinite;
}
.hl-tbadge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.4;
}

/* Slider kontajner (prepínacie karty — rovnaké na mobile aj desktope) */
.hl-outer {
    overflow: hidden;
}
.hl-track {
    display: flex;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    align-items: flex-start;
}
.hl-panel {
    flex: 0 0 100%;
    min-width: 0;
    padding-right: 2px;
}

/* Layout: ľavý stĺpec s prepínanými kartami, pravý stĺpec s bannerom (ak je) */
.hl-left-col {
    min-width: 0;
}
@media (min-width: 992px) {
    .hl-layout:has(.hl-banner-col) {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 24px;
        align-items: start;
    }
    .hl-banner-col .sv-sidebar-banner {
        position: sticky;
        top: 90px;
    }
}

/* Sekčná hlavička stĺpca */
.hl-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}
.hl-col-head span {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 7px;
}
.hl-col-head a {
    font-size: 0.82rem;
    color: #1064ad;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    transition: opacity .15s;
}
.hl-col-head a:hover { opacity: 0.75; }

.hl-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #dde2ea;
    border-radius: 20px;
    padding: 4px 11px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.hl-filter-btn:hover {
    border-color: #22c55e;
    color: #15803d;
    background: #f0fdf4;
}
.hl-filter-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    font-weight: 600;
}

.hl-filter-empty {
    text-align: center;
    padding: 24px 16px;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.hl-filter-empty i { font-size: 1.1rem; }

.hl-col-head-dnes {
    border-bottom-color: #fee2e2;
    margin-bottom: 6px;
}
.hl-col-head-dnes span { color: #dc2626; }

/* Dnes zoznam na desktope – trochu kompaktnejší */
.hl-dnes-list { margin-bottom: 16px; }
.hl-dnes-list .zs-card { padding: 10px 14px; }

/* Spodná lišta (gnav) je teraz samostatná v resources/views/partials/bottom-nav.blade.php. */


/* ============================================================
   HLAVIČKA SÚŤAŽE – moderný redizajn
   (breadcrumb, secondary-menu, mobilná spodná lišta,
   skladateľný info panel). Doplnené 2026-07.
   ============================================================ */

/* --- Odľahčený breadcrumb (menej výrazný, na mobile skrytý) --- */
.page-breadcrumb .breadcrumb {
    font-size: 12px;
    margin-bottom: .25rem;
    opacity: .75;
}
.page-breadcrumb .breadcrumb a { color: #6b7280; text-decoration: none; }
.page-breadcrumb .breadcrumb a:hover { color: #374151; text-decoration: underline; }
@media screen and (max-width: 767.98px) {
    .page-breadcrumb { display: none !important; }
}

/* --- Secondary menu: moderné „chip" tlačidlá namiesto pestrofarebných --- */
.secondary-menu .sm-btn {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    font-weight: 600;
}
.secondary-menu .sm-btn:hover {
    background-color: #f9fafb;
    color: #111827;
    border-color: #d1d5db !important;
}
/* Štartové a výsledkové listiny – rovnaký princíp ako sm-cta: farebné orámovanie + jemné podfarbenie */
.secondary-menu .sm-startovky {
    background-color: #eafaf1;
    color: #157a3a;
    border: 1px solid #1a9d4b !important;
}
.secondary-menu .sm-startovky:hover { background-color: #dcf5e6; color: #0f5c2b; border-color: #157a3a !important; }
.secondary-menu .sm-startovky i { color: #1a9d4b; }

.secondary-menu .sm-vysledky {
    background-color: #eaf3fc;
    color: #0f5f92;
    border: 1px solid #1480c7 !important;
}
.secondary-menu .sm-vysledky:hover { background-color: #dcecfa; color: #0b4a72; border-color: #0f5f92 !important; }
.secondary-menu .sm-vysledky i { color: #1480c7; }

/* farebný akcent len cez ikonu – pokojnejší, jednotný vzhľad */
.secondary-menu .sm-liga i      { color: #6ba500; }
.secondary-menu .sm-prezencka i { color: #cd33cf; }

/* výrazné CTA – hlavná verejná akcia (prihláška / správa štartoviek) – len orámovanie + jemné podfarbenie */
.secondary-menu .sm-cta {
    background-color: #fff1e6;
    color: #b6540a;
    border: 1px solid #f56e00 !important;
}
.secondary-menu .sm-cta:hover { background-color: #ffe3cc; color: #943f00; border-color: #e05f00 !important; }
.secondary-menu .sm-cta i { color: #f56e00; }

/* organizátorská akcia – zápis výsledkov */
.secondary-menu .sm-zapis {
    background-color: #fff;
    color: #cf1515;
    border: 1px solid #f3c0c0 !important;
}
.secondary-menu .sm-zapis:hover { background-color: #fef2f2; color: #b91c1c; border-color: #eaa4a4 !important; }
.secondary-menu .sm-zapis i { color: #cf1515; }

/* administrácia súťaže – len orámovanie + jemné podfarbenie */
.secondary-menu .sm-admin {
    background-color: #eef0f2;
    color: #1f2937;
    border: 1px solid #9aa4b2 !important;
}
.secondary-menu .sm-admin:hover { background-color: #e2e5e9; color: #111827; border-color: #6b7280 !important; }
.secondary-menu .sm-admin i { color: #374151; }

/* --- Mobil: secondary-menu sa skryje a otvára ako panel zdola cez tlačidlo „Viac"
   Platí len pre disciplínu 113 (template 6) – tá má na mobile vlastné dolné menu
   s výberom disciplín (bottom-nav.blade.php), takže plný secondary-menu je tam
   zbytočný a otvára sa cez admin FAB. Ostatné súťaže majú secondary-menu
   (trieda .sm-mobile-visible) viditeľné rovno na mobile ako predtým. --- */
@media screen and (max-width: 767.98px) {

    nav.secondary-menu:not(.sm-mobile-visible) {
        position: fixed;
        left: 0; right: 0;
        bottom: 56px;                 /* tesne nad spodnou lištou (.app-bn má výšku 56px) */
        top: auto !important;
        z-index: 1042;

        display: none;                /* skryté kým nie je otvorené */
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        max-height: 70vh;
        overflow-y: auto;
        overflow-x: hidden;

        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -8px 28px rgba(0,0,0,.18);
        border-radius: 16px 16px 0 0;
        padding: 14px;
        gap: 8px;
    }

    nav.secondary-menu.is-open { display: flex; }

    nav.secondary-menu:not(.sm-mobile-visible) > *,
    nav.secondary-menu:not(.sm-mobile-visible) .btn-group,
    nav.secondary-menu:not(.sm-mobile-visible) .dropdown { width: 100%; flex: 0 0 auto; }

    nav.secondary-menu:not(.sm-mobile-visible) .sm-btn { justify-content: flex-start; width: 100%; }
    nav.secondary-menu:not(.sm-mobile-visible) .btn-group .sm-btn,
    nav.secondary-menu:not(.sm-mobile-visible) .dropdown .sm-btn { width: 100%; }
}

/* --- Skladateľný info panel súťaže (plagát/propozície/uzávierky/poznámka) ---
   Predvolene skrytý na VŠETKÝCH veľkostiach; otvára ho tlačidlo "Viac o súťaži". --- */
.sutaz-info-collapse { display: none; }
.sutaz-info-collapse.is-open { display: block; }

/* --- Tlač: nikdy nezobrazuj prepínacie tlačidlá, info panel vždy ukáž --- */
@media print {
    .sutaz-info-toggle,
    .suthlav-more,
    [data-sutaz-info-toggle] { display: none !important; }
    .sutaz-info-collapse { display: block !important; }
}

/* === Správcovia súťaže ===
   Vzorový komponent celého webu. Farby a tvary sa berú výhradne
   z dizajnových tokenov (public/css/tokens.css) — nepíš sem hex. */
.competition-managers { max-width: 1240px; color: var(--sk-ink); }
.cm-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.cm-back-link { display:inline-flex; align-items:center; gap:.4rem; color:var(--sk-ink-link); font-size:.9rem; font-weight:600; text-decoration:none; margin-bottom:.45rem; }
.cm-back-link:hover { color:var(--sk-brand-ink); text-decoration:underline; }
.cm-page-head h1 { margin:0; color:var(--sk-ink-heading); font-size:var(--sk-size-h1); font-weight:var(--sk-weight-heading); letter-spacing:var(--sk-tracking-tight); }
.cm-page-head p { margin:.28rem 0 0; color:var(--sk-ink-muted); font-size:1rem; }
.cm-outline-button { border:1px solid var(--sk-border-strong); color:var(--sk-brand-link); background:var(--sk-surface); font-weight:600; white-space:nowrap; }
.cm-outline-button:hover { border-color:var(--sk-brand-accent); color:var(--sk-brand-hover); background:var(--sk-surface-tint); }
.cm-alert { display:flex; align-items:center; gap:.65rem; border-radius:var(--sk-radius-md); margin-bottom:1rem; }
.cm-invite-link { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; padding:1rem 1.1rem; margin-bottom:1.2rem; background:var(--sk-surface-info); border:1px solid var(--sk-border-info); border-radius:var(--sk-radius-lg); color:var(--sk-brand-hover); }
.cm-invite-link strong { display:block; font-size:1rem; }
.cm-invite-link p { margin:.15rem 0 0; font-size:var(--sk-size-meta); color:var(--sk-ink-muted); }
.cm-invite-link .input-group { flex:0 1 510px; }
.cm-stat-grid { display:grid; grid-template-columns:1.55fr repeat(3, 1fr); gap:.85rem; margin-bottom:1.35rem; }
.cm-stat-card { display:flex; align-items:center; gap:.75rem; min-width:0; padding:1rem; background:var(--sk-surface); border:1px solid var(--sk-border); border-radius:var(--sk-radius-lg); box-shadow:var(--sk-shadow-sm); }
.cm-stat-owner { background:linear-gradient(135deg, var(--sk-surface-subtle), var(--sk-surface-tint)); }
.cm-stat-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 40px; width:40px; height:40px; border-radius:var(--sk-radius-md); background:var(--sk-surface-accent); color:var(--sk-brand-ink); font-size:1.15rem; }
.cm-stat-icon-admin { color:var(--sk-role-admin-fg); background:var(--sk-role-admin-bg); }
.cm-stat-icon-writer { color:var(--sk-role-writer-fg); background:var(--sk-role-writer-bg); }
.cm-stat-icon-pending { color:var(--sk-role-pending-fg); background:var(--sk-role-pending-bg); }
.cm-stat-card div { min-width:0; display:flex; flex-direction:column; }
.cm-stat-label { overflow:hidden; color:var(--sk-ink-muted); font-size:var(--sk-size-label); font-weight:var(--sk-weight-bold); letter-spacing:var(--sk-tracking-wide); text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.cm-stat-card strong { overflow:hidden; color:var(--sk-ink-strong); font-size:1rem; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.cm-stat-card small { overflow:hidden; color:var(--sk-ink-soft); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.cm-panel { background:var(--sk-surface); border:1px solid var(--sk-border); border-radius:var(--sk-radius-xl); box-shadow:var(--sk-shadow-md); overflow:hidden; }
.cm-panel-head { display:flex; justify-content:space-between; gap:1rem; padding:1.2rem 1.25rem 1rem; border-bottom:1px solid var(--sk-border-soft); }
.cm-panel-head h2, .cm-invite-panel h2 { margin:0; color:var(--sk-ink-title); font-size:var(--sk-size-h2); font-weight:var(--sk-weight-heading); }
.cm-panel-head p, .cm-invite-panel > p { margin:.35rem 0 0; color:var(--sk-ink-muted); font-size:var(--sk-size-meta); line-height:1.45; }
.cm-count-badge { display:inline-flex; align-items:center; justify-content:center; flex:0 0 32px; width:32px; height:32px; border-radius:50%; background:var(--sk-surface-accent); color:var(--sk-brand-ink); font-size:.85rem; font-weight:var(--sk-weight-heading); }
.cm-manager-list { padding:.4rem .7rem .7rem; }
.cm-owner-row, .cm-manager-row { display:grid; grid-template-columns:42px minmax(140px, 1fr) minmax(165px, 185px) auto; align-items:center; gap:.8rem; padding:.85rem .55rem; border-bottom:1px solid var(--sk-border-soft); }
.cm-owner-row { grid-template-columns:42px minmax(140px, 1fr) auto; background:var(--sk-surface-subtle); border-radius:var(--sk-radius-row); }
.cm-manager-row:last-child { border-bottom:0; }
.cm-manager-row.is-pending { background:var(--sk-surface-warn); border-radius:var(--sk-radius-row); }
.cm-avatar { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:var(--sk-surface-accent); color:var(--sk-ink-strong); font-size:.92rem; font-weight:800; }
.cm-avatar-owner { color:var(--sk-role-owner-fg); background:var(--sk-role-owner-bg); }
.cm-avatar-admin { color:var(--sk-role-admin-fg); background:var(--sk-role-admin-bg); }
.cm-avatar-writer { color:var(--sk-role-writer-fg); background:var(--sk-role-writer-bg); }
.cm-person { min-width:0; display:flex; flex-direction:column; }
.cm-person strong, .cm-person small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cm-person strong { color:var(--sk-ink-strong); font-size:.91rem; }
.cm-person small { color:var(--sk-ink-soft); font-size:var(--sk-size-small); }
.cm-pending-label { margin-top:.24rem; color:var(--sk-role-pending-fg); font-size:.74rem; font-weight:650; }
.cm-role-badge { display:inline-flex; align-items:center; gap:.35rem; justify-self:end; padding:.38rem .62rem; border-radius:var(--sk-radius-pill); color:var(--sk-role-owner-fg); background:var(--sk-role-owner-bg); font-size:.76rem; font-weight:var(--sk-weight-bold); white-space:nowrap; }
.cm-role-form { margin:0; }
.cm-role-form .form-select { min-height:35px; border-color:var(--sk-border-input); color:var(--sk-ink-strong); font-size:.84rem; }
.cm-row-actions { display:flex; justify-content:flex-end; gap:.35rem; }
.cm-row-actions form { margin:0; }
.cm-row-actions .btn { display:inline-flex; align-items:center; justify-content:center; min-width:35px; min-height:35px; padding:.35rem .55rem; }
.cm-empty-state { display:flex; flex-direction:column; align-items:center; gap:.35rem; padding:2.6rem 1rem; color:var(--sk-ink-soft); text-align:center; }
.cm-empty-state i { color:var(--sk-ink-faint); font-size:2rem; }
.cm-empty-state strong { color:var(--sk-ink-label); font-size:.95rem; }
.cm-empty-state span { font-size:.84rem; }
.cm-invite-panel { padding:1.45rem; }
.cm-invite-icon { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; margin-bottom:.85rem; border-radius:var(--sk-radius-lg); background:var(--sk-brand-gradient); color:var(--sk-surface); font-size:1.3rem; box-shadow:var(--sk-shadow-lg); }
.cm-invite-form { display:grid; gap:1rem; margin-top:1.25rem; }
.cm-invite-form .form-label { margin-bottom:.35rem; color:var(--sk-ink-label); font-size:.84rem; font-weight:var(--sk-weight-bold); }
.cm-invite-form .form-control, .cm-invite-form .form-select { border-color:var(--sk-border-input); min-height:var(--sk-control-height); }
.cm-submit-button { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-height:var(--sk-control-height); background:var(--sk-brand); border-color:var(--sk-brand); font-weight:var(--sk-weight-bold); }
.cm-submit-button:hover { background:var(--sk-brand-hover); border-color:var(--sk-brand-hover); }
@media (max-width: 1199.98px) {
    .cm-stat-grid { grid-template-columns:repeat(2, 1fr); }
    .cm-stat-owner { grid-column:span 2; }
}
@media (max-width: 767.98px) {
    .cm-page-head { align-items:flex-start; flex-direction:column; margin-bottom:1.15rem; }
    .cm-page-head .cm-outline-button { width:100%; }
    .cm-invite-link { align-items:stretch; flex-direction:column; }
    .cm-invite-link .input-group { flex-basis:auto; }
    .cm-stat-grid { grid-template-columns:1fr 1fr; gap:.65rem; }
    .cm-stat-owner { grid-column:span 2; }
    .cm-stat-card { padding:.8rem; }
    .cm-stat-icon { flex-basis:36px; width:36px; height:36px; border-radius:10px; }
    .cm-panel-head { padding:1rem; }
    .cm-manager-list { padding:.35rem .45rem .5rem; }
    .cm-owner-row, .cm-manager-row { grid-template-columns:40px minmax(0, 1fr) auto; gap:.65rem; padding:.8rem .35rem; }
    .cm-role-form { grid-column:2 / 3; }
    .cm-row-actions { grid-column:3 / 4; grid-row:1 / 3; align-self:center; flex-direction:column; }
    .cm-owner-row .cm-role-badge { grid-column:3 / 4; }
    .cm-role-form .form-select { width:100%; }
    .cm-invite-panel { padding:1.15rem; }
}
@media (max-width: 399.98px) {
    .cm-stat-grid { grid-template-columns:1fr; }
    .cm-stat-owner { grid-column:auto; }
}

/* ============================================================
   Mobilné kontextové záložky súťaže (s výnimkou SK/CZ HaZZ 113)
   ============================================================ */
.mobile-tab-sheet-scrim { display:none; }

@media (max-width: 767.98px) {
    nav.secondary-menu.sm-mobile-tabs {
        position:sticky;
        top:60px !important;
        z-index:1042;
        display:flex;
        align-items:stretch;
        gap:0;
        min-height:48px;
        margin:0;
        padding:0 6px;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-padding-inline:12px;
        scrollbar-width:none;
        background:rgba(255,255,255,.96);
        border-top:1px solid #edf2f7;
        border-bottom:1px solid #dce7f0;
        box-shadow:0 7px 14px -16px rgba(20,53,82,.72);
        -webkit-backdrop-filter:blur(12px);
        backdrop-filter:blur(12px);
        -webkit-overflow-scrolling:touch;
    }
    nav.secondary-menu.sm-mobile-tabs::-webkit-scrollbar { display:none; }

    /* Pri medzinárodnej 113 je pôvodná dvojica tlačidiel zoskupená vo vnútri
       wrappera. Na mobile z nej spravíme rovnocenné položky pásu záložiek. */
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab-group {
        display:contents !important;
    }
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab-group > .btn-group {
        flex:0 0 auto;
        width:auto;
    }

    nav.secondary-menu.sm-mobile-tabs > *,
    nav.secondary-menu.sm-mobile-tabs > .dropdown,
    nav.secondary-menu.sm-mobile-tabs > .btn-group {
        flex:0 0 auto;
        width:auto;
        min-width:auto;
    }

    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab {
        position:relative;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:.38rem;
        width:auto;
        min-height:48px;
        margin:0;
        padding:0 .72rem;
        border:0 !important;
        border-radius:0;
        background:transparent !important;
        box-shadow:none !important;
        color:#66829b !important;
        font-size:.78rem;
        font-weight:700;
        line-height:1;
        white-space:nowrap;
        text-decoration:none;
        transition:color .16s ease, background-color .16s ease;
    }
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab i {
        color:currentColor !important;
        font-size:1rem;
    }
    nav.secondary-menu.sm-mobile-tabs .mobile-tab-refresh {
        min-width:44px;
        padding:0 .58rem;
    }
    nav.secondary-menu.sm-mobile-tabs .mobile-tab-refresh i { font-size:1.08rem; }
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab::before {
        content:'';
        position:absolute;
        right:.72rem;
        bottom:0;
        left:.72rem;
        height:3px;
        border-radius:3px 3px 0 0;
        background:#1a3a5c;
        opacity:0;
        transform:scaleX(.45);
        transition:opacity .16s ease, transform .16s ease;
    }
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab.is-active,
    nav.secondary-menu.sm-mobile-tabs.mobile-sheet-open .sm-admin {
        color:#173d61 !important;
    }
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab.is-active::before,
    nav.secondary-menu.sm-mobile-tabs.mobile-sheet-open .sm-admin::before {
        opacity:1;
        transform:scaleX(1);
    }
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab:hover,
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab:active {
        transform:none;
        background:#f4f8fb !important;
        box-shadow:none !important;
    }
    nav.secondary-menu.sm-mobile-tabs .sm-mobile-tab:focus-visible {
        z-index:1;
        outline:2px solid #3779ac;
        outline-offset:-3px;
    }

    /* Administrácia je na mobile akčný sheet, nie rozbaľovacia položka v páse. */
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu,
    .dropdown-menu.sm-mobile-sheet-panel,
    .dropdown-menu.sm-mobile-discipline-panel {
        position:fixed !important;
        top:auto !important;
        right:12px !important;
        bottom:calc(68px + env(safe-area-inset-bottom, 0px)) !important;
        left:12px !important;
        z-index:1050 !important;
        width:auto !important;
        max-height:min(66vh, 540px);
        margin:0 !important;
        padding:.35rem .6rem calc(.55rem + env(safe-area-inset-bottom, 0px));
        overflow:auto;
        border:1px solid #dce7f0;
        border-radius:18px;
        box-shadow:0 -8px 28px rgba(20,53,82,.24) !important;
        background:#fff;
    }
    body:not(.has-gnav) nav.secondary-menu.sm-mobile-tabs .dropdown-menu {
        bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* Administrácia sa rozbalí pri svojej záložke, nie ako vzdialený sheet odspodu. */
    .dropdown-menu.sm-mobile-sheet-panel {
        top:var(--mobile-dropdown-menu-top, 54px) !important;
        bottom:auto !important;
        max-height:calc(100dvh - var(--mobile-dropdown-menu-top, 54px) - 12px);
        border-radius:0 0 16px 16px;
        box-shadow:0 10px 24px rgba(20,53,82,.22) !important;
        overscroll-behavior:contain;
        z-index:1060 !important;
    }
    /* Výber disciplíny pri medzinárodnej 113 sa rozbalí priamo pod pásom
       záložiek; nejde o administračný sheet odspodu. */
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu.sm-discipline-menu,
    .dropdown-menu.sm-mobile-discipline-panel {
        top:var(--mobile-discipline-menu-top, 54px) !important;
        bottom:auto !important;
        max-height:calc(100dvh - var(--mobile-discipline-menu-top, 54px) - 12px);
        border-radius:0 0 16px 16px;
        box-shadow:0 10px 24px rgba(20,53,82,.22) !important;
        overscroll-behavior:contain;
        z-index:1060 !important;
    }
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu.sm-discipline-menu::before,
    .dropdown-menu.sm-mobile-sheet-panel::before,
    .dropdown-menu.sm-mobile-discipline-panel::before {
        display:none;
    }
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu::before {
        content:'';
        display:block;
        width:36px;
        height:4px;
        margin:.15rem auto .45rem;
        border-radius:4px;
        background:#d6e4ef;
    }
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu .dropdown-item,
    .dropdown-menu.sm-mobile-sheet-panel .dropdown-item,
    .dropdown-menu.sm-mobile-discipline-panel .dropdown-item {
        display:flex;
        align-items:center;
        gap:.65rem;
        min-height:44px;
        padding:.7rem .55rem;
        border-radius:9px;
        box-shadow:none !important;
        color:#294b69;
        font-size:.9rem;
        font-weight:600;
        white-space:normal;
    }
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu .dropdown-item:hover,
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu .dropdown-item:focus,
    .dropdown-menu.sm-mobile-sheet-panel .dropdown-item:hover,
    .dropdown-menu.sm-mobile-sheet-panel .dropdown-item:focus,
    .dropdown-menu.sm-mobile-discipline-panel .dropdown-item:hover,
    .dropdown-menu.sm-mobile-discipline-panel .dropdown-item:focus {
        transform:none;
        background:#eef5fa;
        color:#173d61;
    }
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu .dropdown-item i,
    .dropdown-menu.sm-mobile-sheet-panel .dropdown-item i,
    .dropdown-menu.sm-mobile-discipline-panel .dropdown-item i {
        color:#4f7899;
    }
    nav.secondary-menu.sm-mobile-tabs .dropdown-menu .dropdown-divider,
    .dropdown-menu.sm-mobile-sheet-panel .dropdown-divider,
    .dropdown-menu.sm-mobile-discipline-panel .dropdown-divider {
        margin:.3rem 0;
        border-color:#e8f0f5;
    }

    .mobile-tab-sheet-scrim {
        position:fixed;
        inset:60px 0 0;
        z-index:1040;
        background:rgba(14,34,51,.4);
        -webkit-backdrop-filter:blur(1px);
        backdrop-filter:blur(1px);
    }
    .mobile-tab-sheet-scrim.is-open { display:block; }
}

@media print {
    .mobile-tab-sheet-scrim { display:none !important; }
}

/* ---- Našepkávač družstva (spoločný pre štartovky aj zápis výsledkov) ----
   Zoznam sa vykresľuje pod vyhľadávacie pole. Bez obmedzenia výšky pri
   širokom dopyte narástol cez celú stránku a pole sa stratilo mimo
   obrazovky. Panel preto skroluje vo vnútri a výška stránky sa nemení. */
.druzstvo-vysledky:not(:empty) {
  max-height: 55vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  padding: 6px;
  margin-top: 6px;
}

/* Hľadacie pole aj panel výsledkov musia byť pod sebou na plnú šírku.
   .mgmt-col--name je flex s align-items:center - bez tohto sa formulár
   vertikálne vycentruje voči vysokému panelu a pole opticky "odskočí"
   doprostred výsledkov. */
.mgmt-col--name > form[id^="searchForm"],
.mgmt-col--name > .ajax-vysledky {
  flex: 0 0 100%;
  width: 100%;
}

/* Ceruzka na úpravu družstva v registri (admin) pri názve v štartovke. */
.mgmt-uprava-btn {
  padding: 0 4px;
  line-height: 1;
  color: #94a3b8;
  text-decoration: none;
  vertical-align: baseline;
}

.mgmt-uprava-btn:hover,
.mgmt-uprava-btn:focus { color: #2563eb; }

/* Položka vybraná šípkami na klávesnici (Enter ju zapíše). */
.ajax-vysledky .js-vybrane {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  border-radius: 6px;
  background-color: #eaf1fe;
}

/* Kým beží dotaz, panel jemne stlmíme - používateľ vidí, že sa hľadá,
   ale zoznam pod prstom neposkakuje. */
.ajax-vysledky.js-hlada:not(:empty) {
  opacity: 0.55;
  transition: opacity 0.12s linear;
}

/* ---- Jedna ponúknutá položka ---- */
.ns-polozka {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border-bottom: 1px solid #f1f3f5;
}

.ns-polozka:last-of-type { border-bottom: 0; }
.ns-polozka:hover { background-color: #f6f9ff; }

.ns-polozka__info { flex: 1; min-width: 0; }

.ns-polozka__nazov {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ns-polozka__skratka {
  font-weight: 700;
  color: #6b7280;
  margin-right: 2px;
}

.ns-polozka__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.ns-znacka {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4338ca;
  white-space: nowrap;
}

.ns-znacka--tlmena { background: #f1f5f9; color: #64748b; }

.ns-polozka__akcia { flex: 0 0 auto; }
.ns-polozka__akcia .btn { white-space: nowrap; }

.ns-polozka__strava { flex: 0 0 84px; }
.ns-polozka__strava .form-label { font-size: 10px; margin-bottom: 0; color: #6b7280; }

.ns-hlavicka {
  font-size: 12px;
  color: #6b7280;
  padding: 4px 10px 8px;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 4px;
}

.ns-pata,
.ns-prazdne {
  font-size: 12.5px;
  color: #7c5800;
  background: #fff8e6;
  border: 1px solid #ffe6a1;
  border-radius: 6px;
  padding: 7px 10px;
  margin: 8px 0 6px;
}

.ns-tlacidlo-nove { width: 100%; }

/* ---- Tablet a mobil ---- */
@media (max-width: 767.98px) {
  .druzstvo-vysledky:not(:empty) { max-height: 48vh; }

  /* Na úzkej obrazovke ide tlačidlo pod názov, nech sa názov needituje
     do jedného nečitateľného stĺpca. */
  .ns-polozka {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
  }

  .ns-polozka__info { flex: 1 0 100%; }
  .ns-polozka__akcia { flex: 1 1 auto; }
  .ns-polozka__akcia .btn { width: 100%; }
  .ns-polozka__strava { flex: 0 0 90px; }
  .ns-polozka__nazov { font-size: 13.5px; }
}

/* =====================================================================
   HaZZ 113 – zjednotený moderný vzhľad správy štartovky a zostavy
   ===================================================================== */
.hazz-management-shell,
.ps-mgmt-shell {
  overflow: hidden;
  border: 1px solid #e4ebf1;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08) !important;
}

.management-startovky-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  margin: 0;
  padding: 18px 22px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(125deg, #a9400b 0%, #d85f19 48%, #f18a3d 100%);
}
.management-startovky-top::after,
.ps-mgmt-header::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border: 28px solid rgba(255,255,255,.11);
  border-radius: 50%;
}
.management-startovky-top::after { width: 180px; height: 180px; right: -55px; top: -105px; }
.management-startovky-top__intro,
.management-startovky-top__actions,
.ps-mgmt-header__info,
.ps-mgmt-header__actions { position: relative; z-index: 1; }
.management-startovky-top__intro { min-width: 0; }
.management-startovky-top__actions,
.ps-mgmt-header__actions { display: flex; align-items: center; gap: 10px; }
.management-startovky-top__eyebrow,
.ps-athletes-heading__eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.management-startovky-top__eyebrow { color: rgba(255,255,255,.78); }
.management-startovky-top h2 { font-size: 26px; font-weight: 700; }
.management-startovky-top__meta { display: block; margin-top: 4px; color: rgba(255,255,255,.84); font-size: 13px; }
.management-startovky-top__admin,
.ps-mgmt-header__count {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(64,26,8,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.management-startovky-top .btn-light { border: 0; box-shadow: 0 5px 16px rgba(92,32,8,.2); }
.mgmt-workflow-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-bottom: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}
.mgmt-header-row { padding: 11px 16px 7px; }
.mgmt-cards { gap: 7px; padding-top: 8px; background: #f8fafc; }
.mgmt-card { border-radius: 10px; padding: 10px 12px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.mgmt-card--filled:hover { transform: translateY(-1px); border-color: #fed7aa; box-shadow: 0 7px 16px rgba(15,23,42,.08); }
.mgmt-card__num { border-radius: 8px; background: linear-gradient(135deg, #d85f19, #ec7a30); }
.mgmt-card__name-text { font-size: 15px; color: #1e293b; }
.mgmt-toggle-btn { border-radius: 7px; }
.mgmt-btn-edit-sutaziaci { background-color: #0f766e; border-color: #0f766e; }
.mgmt-btn-edit-sutaziaci:hover { background-color: #115e59; border-color: #115e59; }

.ps-page-title { margin-bottom: 10px; color: #182c3a; font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 750; }
.ps-mgmt-header {
  position: relative;
  overflow: hidden;
  padding: 18px 22px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(125deg, #075a58 0%, #0f9289 53%, #32b7a9 100%);
}
.ps-mgmt-header::after { width: 210px; height: 210px; right: -40px; bottom: -95px; border-width: 30px; }
.ps-mgmt-header__icon { border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.16); }
.ps-mgmt-header__title { font-size: 1.2rem; }
.ps-mgmt-tools { border-bottom: 1px solid #deecea; background: #f7fbfb; }
.ps-athletes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 10px;
  background: #fff;
}
.ps-athletes-heading__eyebrow { color: #0f766e; }
.ps-athletes-heading h3 { margin: 0; color: #1e293b; font-size: 17px; font-weight: 700; }
.ps-athletes-heading__available { padding: 5px 9px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ps-athletes-table-wrap { border-top: 1px solid #e7edf2; }
.ps-athletes-table thead th { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.ps-athletes-table tbody > tr:not(.ps-disc-row) > td { vertical-align: middle; border-color: #edf2f7; }
.ps-athletes-table tbody > tr.sortable-item:hover > td { background: #f0fdfa; }

/* V desktopovej tabuľke je každý pretekár samostatný, ľahko skenovateľný riadok. */
@media (min-width: 768px) {
  .ps-athletes-table {
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-top: -6px;
  }
  .ps-athletes-table tbody > tr:not(.ps-disc-row) > td {
    background: #fff;
    border-top: 1px solid #dfe8ee;
    border-bottom: 1px solid #dfe8ee;
  }
  .ps-athletes-table tbody > tr:not(.ps-disc-row) > td:first-child {
    border-left: 1px solid #dfe8ee;
    border-radius: 9px 0 0 9px;
  }
  .ps-athletes-table tbody > tr:not(.ps-disc-row) > td:last-child {
    border-right: 1px solid #dfe8ee;
    border-radius: 0 9px 9px 0;
  }
  .ps-athletes-table tbody > tr.sortable-item:hover > td {
    border-color: #9edbd4;
    background: #f0fdfa;
  }
}

@media (max-width: 768px) {
  .management-startovky-top,
  .ps-mgmt-header { padding: 14px; }
  .management-startovky-top h2 { font-size: 21px; }
  .mgmt-workflow-note { padding: 9px 14px; }
}
@media (max-width: 576px) {
  .management-startovky-top__admin,
  .ps-mgmt-header__count { display: none; }
  .ps-athletes-heading { align-items: flex-start; }
  .ps-athletes-heading__available { font-size: 11px; }
}

/* Pretekár je primárna informácia: typograficky vystupuje aj v hustej tabuľke. */
.ps-athlete-order {
  width: 48px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.ps-athlete-name-cell { min-width: 190px; }
.ps-athlete-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: #173b4d;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
  text-decoration: none;
}
.ps-athlete-name:hover { color: #087a72; text-decoration: none; }
.ps-athlete-name:focus-visible { outline: 2px solid #14b8a6; outline-offset: 3px; border-radius: 5px; }
.ps-athlete-name__icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e6f7f5;
  color: #0f766e;
  font-size: 13px;
}
.ps-athlete-name__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-athlete-birth {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
}
.ps-athlete-birth .bi { color: #0f9488; font-size: 11px; }
.ps-athlete-guest {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0 36px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 10.5px;
  font-weight: 700;
}
.ps-athlete-guest--legacy { display: none; }
.ps-athlete-host-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0 0 36px;
  width: calc(100% - 36px);
}
.ps-athlete-host-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ps-athlete-host-toggle input { width: 14px; height: 14px; margin: 0; accent-color: #0f9488; }
.ps-athlete-host-form .hostovanie-edit { color: #0f766e; }
.ps-athlete-host-form .hostovanie-editor {
  position: static;
  flex: 0 0 100%;
  width: 100%;
  padding: 10px;
  margin-top: 3px !important;
  border: 1px solid #b9ddd8;
  border-radius: 7px;
  background: #f8fffe;
  box-shadow: none;
  color: #334155;
  font-size: 12px;
}
.ps-athlete-host-form .hostovanie-editor .form-control { min-height: 32px; }
.ps-hosting-head,
.ps-hosting-cell { display: none; }
.ps-athlete-birth-cell { width: 120px; white-space: nowrap; }
.ps-athlete-category {
  display: block;
  width: min(100%, 170px);
  margin: 5px 0 0 36px;
}
.ps-athlete-category .form-select {
  min-height: 26px;
  padding-top: 2px;
  padding-bottom: 2px;
  border-color: #b9ddd8;
  background-color: #f4fbfa;
  color: #155e58;
  font-size: 11px;
  font-weight: 700;
}
.ps-athlete-category-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0 0 36px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}
.ps-athlete-category-info .bi { color: #0f9488; }
.ps-action-head,
.ps-action-cell { width: 1%; white-space: nowrap; text-align: right; }
.ps-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.ps-remove-btn:hover,
.ps-remove-btn:focus {
  border-color: #ef4444;
  background: #fff1f2;
  color: #991b1b;
  transform: translateY(-1px);
}
.ps-remove-btn:focus-visible { box-shadow: 0 0 0 3px rgba(239,68,68,.2); }

@media (min-width: 992px) {
  .ps-athlete-name { font-size: 15.5px; }
  .ps-athletes-table tbody > tr:not(.ps-disc-row) > td { padding-top: 10px; padding-bottom: 10px; }
  .ps-athlete-name-cell { min-width: 170px; max-width: 245px; }
  .ps-athletes-table .ps-disc-cell { width: 78px; padding-right: 2px !important; padding-left: 2px !important; }
  .ps-athletes-table .ps-disc-sel { width: 76px; min-width: 0; padding-right: 16px; padding-left: 5px; font-size: 11px; }
}
@media (min-width: 577px) and (max-width: 991px) {
  .ps-athlete-name-cell { min-width: 150px; }
  .ps-athlete-name { font-size: 14px; }
  .ps-athlete-name__icon { width: 25px; height: 25px; font-size: 12px; }
  .ps-remove-btn { min-width: 32px; padding: 0; }
}
@media (max-width: 576px) {
  .ps-athletes-table { width: 100%; min-width: 0; table-layout: auto; }
  .ps-athletes-table .td-handle,
  .ps-athletes-table .th-handle { display: none; }
  .ps-athlete-order { width: 30px; padding-right: 3px !important; padding-left: 5px !important; }
  .ps-athlete-name-cell { min-width: 120px; }
  .ps-athlete-name { gap: 6px; font-size: 13.5px; }
  .ps-athlete-name__icon { width: 24px; height: 24px; font-size: 11px; }
  .ps-athlete-birth,
  .ps-athlete-guest,
  .ps-athlete-category,
  .ps-athlete-category-info,
  .ps-athlete-host-form { margin-left: 30px; }
  .ps-action-cell { padding-right: 6px !important; padding-left: 4px !important; }
  .ps-remove-btn { min-width: 32px; padding: 0; }
}

/* Mobil je záložný pracovný režim: iba údaje nutné na správu zostavy. */
@media (max-width: 767px) {
  .ps-athletes-table-wrap { overflow-x: hidden; }
  .ps-athletes-table .ps-birth-head,
  .ps-athletes-table .ps-athlete-birth-cell,
  .ps-athletes-table .ps-hosting-head,
  .ps-athletes-table .ps-hosting-cell { display: none; }
  .ps-athletes-table thead th { padding-top: 7px; padding-bottom: 7px; }
  .ps-athletes-table .ps-athlete-name-cell { min-width: 0; width: 100%; }
  .ps-athlete-name { font-size: 14px; }
  .ps-athlete-category { width: min(100%, 150px); }
  .ps-athlete-host-form { flex-wrap: wrap; }
  .ps-athletes-table tbody > tr.sortable-item > td { background: #fff; border-bottom: 1px solid #dce7eb; }
  .ps-disc-row td.ps-disc-td { padding-top: 3px !important; padding-bottom: 8px !important; }
  .ps-disc-chip { min-height: 32px; }
}

/* Tablety: základné údaje ostávajú v riadku, disciplíny pod ním.
   Vďaka tomu stránka nikdy nepotrebuje vodorovné posúvanie. */
@media (min-width: 768px) and (max-width: 991px) {
  .ps-athletes-table-wrap { overflow-x: hidden; }
  .ps-athletes-table { width: 100%; min-width: 0; }
  .ps-athletes-table .ps-disc-th,
  .ps-athletes-table .ps-disc-cell { display: none !important; }
  .ps-athletes-table .ps-disc-row.d-md-none { display: table-row !important; }
  .ps-disc-row td.ps-disc-td { padding: 3px 10px 9px !important; }
}
